From be9fec5a9fd241bf6bd8202147288dc97d577c85 Mon Sep 17 00:00:00 2001 From: Somebody Date: Sat, 24 Feb 2024 22:42:19 +0800 Subject: [PATCH] implement dispatch server --- .gitattributes | 63 ++ .gitignore | 364 +++++++ Common/Common.csproj | 20 + Common/Configuration/ConfigContainer.cs | 89 ++ Common/Database/Account/AccountData.cs | 63 ++ Common/Database/Account/AccountHelper.cs | 32 + Common/Database/BaseDatabaseData.cs | 77 ++ Common/Database/DatabaseEntity.cs | 8 + Common/Database/DatabaseHelper.cs | 105 ++ Common/Proto/ActivateFarmElementCsReq.cs | 272 ++++++ Common/Proto/ActivateFarmElementScRsp.cs | 309 ++++++ Common/Proto/ActivityScheduleInfo.cs | 346 +++++++ Common/Proto/ApplyFriendCsReq.cs | 272 ++++++ Common/Proto/ArchiveData.cs | 338 +++++++ Common/Proto/AssistSimpleInfo.cs | 346 +++++++ Common/Proto/Avatar.cs | 579 +++++++++++ Common/Proto/AvatarBattleInfo.cs | 432 ++++++++ Common/Proto/AvatarExpUpCsReq.cs | 281 ++++++ Common/Proto/AvatarExpUpScRsp.cs | 261 +++++ Common/Proto/AvatarProperty.cs | 458 +++++++++ Common/Proto/AvatarSkillTree.cs | 271 +++++ Common/Proto/AvatarSync.cs | 223 +++++ Common/Proto/AvatarType.cs | 52 + Common/Proto/BattleAvatar.cs | 662 +++++++++++++ Common/Proto/BattleBuff.cs | 403 ++++++++ Common/Proto/BattleEndReason.cs | 49 + Common/Proto/BattleEndStatus.cs | 50 + Common/Proto/BattleEquipment.cs | 346 +++++++ Common/Proto/BattleEventBattleInfo.cs | 282 ++++++ Common/Proto/BattleEventInitedData.cs | 244 +++++ Common/Proto/BattleMechanismBar.cs | 271 +++++ Common/Proto/BattleOp.cs | 458 +++++++++ Common/Proto/BattlePassInfoNotify.cs | 666 +++++++++++++ Common/Proto/BattleRelic.cs | 373 +++++++ Common/Proto/BattleSkillInfo.cs | 337 +++++++ Common/Proto/BattleStatistics.cs | 698 +++++++++++++ Common/Proto/BattleTarget.cs | 308 ++++++ Common/Proto/BattleTargetList.cs | 224 +++++ Common/Proto/BlackInfo.cs | 346 +++++++ Common/Proto/BoardDataSync.cs | 261 +++++ Common/Proto/BuffInfo.cs | 449 +++++++++ Common/Proto/BuyGoodsCsReq.cs | 346 +++++++ Common/Proto/BuyGoodsScRsp.cs | 393 ++++++++ Common/Proto/Challenge.cs | 346 +++++++ Common/Proto/ChallengeInfo.cs | 470 +++++++++ Common/Proto/ChallengeLineupNotify.cs | 235 +++++ Common/Proto/ChallengeReward.cs | 271 +++++ Common/Proto/ChallengeSettleNotify.cs | 431 ++++++++ Common/Proto/ChallengeStatus.cs | 50 + Common/Proto/ChallengeStoryBuffInfo.cs | 225 +++++ Common/Proto/ChallengeStoryInfo.cs | 244 +++++ Common/Proto/ChangeLineupLeaderCsReq.cs | 234 +++++ Common/Proto/ChangeLineupLeaderScRsp.cs | 271 +++++ Common/Proto/ChargerInfo.cs | 271 +++++ Common/Proto/Chat.cs | 383 ++++++++ Common/Proto/ChatType.cs | 48 + Common/Proto/ChessRogueAvatar.cs | 271 +++++ Common/Proto/ChessRogueAvatarInfo.cs | 272 ++++++ Common/Proto/ChessRogueBuffData.cs | 224 +++++ Common/Proto/ChessRogueBuffInfo.cs | 244 +++++ Common/Proto/ChessRogueCell.cs | 611 ++++++++++++ Common/Proto/ChessRogueCellInfo.cs | 264 +++++ Common/Proto/ChessRogueCellUpdateNotify.cs | 268 +++++ Common/Proto/ChessRogueConfirmRollScRsp.cs | 282 ++++++ Common/Proto/ChessRogueCurrentInfo.cs | 610 ++++++++++++ Common/Proto/ChessRogueInfo.cs | 290 ++++++ Common/Proto/ChessRogueItemInfo.cs | 225 +++++ Common/Proto/ChessRogueMiracleData.cs | 224 +++++ Common/Proto/ChessRogueMiracleInfo.cs | 244 +++++ Common/Proto/ChessRogueMoneyInfo.cs | 234 +++++ Common/Proto/ChessRogueNousDice.cs | 672 +++++++++++++ Common/Proto/ChessRogueNousDiceInfo.cs | 337 +++++++ Common/Proto/ChessRogueNousDiceSurfaceInfo.cs | 272 ++++++ Common/Proto/ChessRogueNousEditDiceCsReq.cs | 244 +++++ Common/Proto/ChessRogueNousEditDiceScRsp.cs | 282 ++++++ Common/Proto/ChessRogueNousMainStoryInfo.cs | 275 ++++++ Common/Proto/ChessRogueNousQueryInfo.cs | 205 ++++ Common/Proto/ChessRogueNousStoryInfo.cs | 469 +++++++++ Common/Proto/ChessRogueNousSubStoryInfo.cs | 234 +++++ Common/Proto/ChessRogueNousValue.cs | 234 +++++ Common/Proto/ChessRoguePhase.cs | 48 + Common/Proto/ChessRogueQuery.cs | 319 ++++++ Common/Proto/ChessRogueQueryInfo.cs | 355 +++++++ Common/Proto/ChessRogueQueryScRsp.cs | 381 ++++++++ Common/Proto/ChessRogueReRollDiceCsReq.cs | 234 +++++ Common/Proto/ChessRogueRollDiceCsReq.cs | 234 +++++ Common/Proto/ChessRogueRollDiceScRsp.cs | 319 ++++++ Common/Proto/ChessRogueSelectCellCsReq.cs | 234 +++++ Common/Proto/ChessRogueSelectCellScRsp.cs | 356 +++++++ Common/Proto/ChessRogueStartCsReq.cs | 426 ++++++++ Common/Proto/ChessRogueStartScRsp.cs | 474 +++++++++ .../ChessRogueUpdateActionPointScNotify.cs | 235 +++++ ...essRogueUpdateAllowedSelectCellScNotify.cs | 263 +++++ .../Proto/ChessRogueUpdateDiceInfoScNotify.cs | 245 +++++ ...pdateDicePassiveAccumulateValueScNotify.cs | 235 +++++ .../ChessRogueUpdateMoneyInfoScNotify.cs | 245 +++++ Common/Proto/ChessRogueVirtualItemInfo.cs | 343 +++++++ Common/Proto/ClientMail.cs | 569 +++++++++++ Common/Proto/ClientMailAttachmentItem.cs | 271 +++++ Common/Proto/CommonRogueQuery.cs | 291 ++++++ Common/Proto/CommonRogueQueryScRsp.cs | 282 ++++++ Common/Proto/CommonRogueUpdateScNotify.cs | 247 +++++ Common/Proto/ComposeItemCsReq.cs | 319 ++++++ Common/Proto/ComposeItemScRsp.cs | 356 +++++++ Common/Proto/ComposeSelectedRelicCsReq.cs | 394 ++++++++ Common/Proto/ComposeSelectedRelicScRsp.cs | 319 ++++++ Common/Proto/DMBBFODODOF.cs | 274 ++++++ Common/Proto/DailyActiveInfoNotify.cs | 291 ++++++ Common/Proto/DailyActivityInfo.cs | 346 +++++++ Common/Proto/DeactivateFarmElementCsReq.cs | 234 +++++ Common/Proto/DeactivateFarmElementScRsp.cs | 272 ++++++ Common/Proto/DelMailCsReq.cs | 225 +++++ Common/Proto/DelMailScRsp.cs | 262 +++++ Common/Proto/DeleteFriendCsReq.cs | 234 +++++ Common/Proto/DeployRotaterCsReq.cs | 244 +++++ Common/Proto/DeployRotaterScRsp.cs | 329 +++++++ Common/Proto/DialogueResult.cs | 309 ++++++ Common/Proto/DiscardRelicCsReq.cs | 271 +++++ Common/Proto/DispatchRegionData.cs | 373 +++++++ Common/Proto/DisplayAvatar.cs | 271 +++++ Common/Proto/DisplayAvatarVec.cs | 261 +++++ Common/Proto/DoGachaCsReq.cs | 346 +++++++ Common/Proto/DoGachaInRollShopCsReq.cs | 272 ++++++ Common/Proto/DoGachaInRollShopScRsp.cs | 393 ++++++++ Common/Proto/DoGachaScRsp.cs | 373 +++++++ Common/Proto/DressAvatarCsReq.cs | 272 ++++++ Common/Proto/DressRelicAvatarCsReq.cs | 261 +++++ Common/Proto/EnableRogueTalentCsReq.cs | 234 +++++ Common/Proto/EnableRogueTalentScRsp.cs | 281 ++++++ Common/Proto/EnhanceRogueBuffCsReq.cs | 234 +++++ Common/Proto/EnhanceRogueBuffScRsp.cs | 318 ++++++ Common/Proto/EnterMapRotationRegionCsReq.cs | 244 +++++ Common/Proto/EnterMapRotationRegionScRsp.cs | 319 ++++++ Common/Proto/EnterRogueMapRoomCsReq.cs | 271 +++++ Common/Proto/EnterRogueMapRoomScRsp.cs | 365 +++++++ Common/Proto/EnterSceneByServerScNotify.cs | 329 +++++++ Common/Proto/EnterSceneCsReq.cs | 271 +++++ Common/Proto/EnterSceneReason.cs | 50 + Common/Proto/EnteredSceneInfo.cs | 271 +++++ Common/Proto/EntityBuffChangeInfo.cs | 319 ++++++ Common/Proto/EntityBuffInfo.cs | 261 +++++ Common/Proto/EntityMotion.cs | 318 ++++++ Common/Proto/EquipRelic.cs | 271 +++++ Common/Proto/Equipment.cs | 495 ++++++++++ Common/Proto/ExchangeGachaCeilingCsReq.cs | 272 ++++++ Common/Proto/ExchangeGachaCeilingScRsp.cs | 404 ++++++++ Common/Proto/ExchangeHcoinCsReq.cs | 234 +++++ Common/Proto/ExchangeHcoinScRsp.cs | 271 +++++ Common/Proto/ExpUpEquipmentCsReq.cs | 281 ++++++ Common/Proto/ExpUpEquipmentScRsp.cs | 261 +++++ Common/Proto/ExpUpRelicCsReq.cs | 281 ++++++ Common/Proto/ExpUpRelicScRsp.cs | 261 +++++ Common/Proto/ExtraLineupType.cs | 64 ++ Common/Proto/FarmStageGachaInfo.cs | 309 ++++++ Common/Proto/FinishRogueDialogueGroupCsReq.cs | 234 +++++ Common/Proto/FinishTalkMissionCsReq.cs | 234 +++++ Common/Proto/FinishTalkMissionScRsp.cs | 234 +++++ Common/Proto/FirstNpcTalkInfo.cs | 271 +++++ Common/Proto/FriendApplyInfo.cs | 243 +++++ Common/Proto/FriendApplySource.cs | 55 ++ Common/Proto/FriendListInfo.cs | 243 +++++ Common/Proto/FriendOnlineStatus.cs | 48 + Common/Proto/FriendRecommendInfo.cs | 244 +++++ Common/Proto/GachaCeiling.cs | 299 ++++++ Common/Proto/GachaCeilingAvatar.cs | 271 +++++ Common/Proto/GachaInfo.cs | 487 +++++++++ Common/Proto/GachaItem.cs | 374 +++++++ Common/Proto/Gateserver.cs | 835 ++++++++++++++++ Common/Proto/Gender.cs | 48 + .../Proto/GetActivityScheduleConfigScRsp.cs | 262 +++++ Common/Proto/GetAllLineupDataScRsp.cs | 299 ++++++ Common/Proto/GetArchiveDataScRsp.cs | 281 ++++++ Common/Proto/GetAvatarDataCsReq.cs | 263 +++++ Common/Proto/GetAvatarDataScRsp.cs | 298 ++++++ Common/Proto/GetBagScRsp.cs | 315 ++++++ Common/Proto/GetBasicInfoScRsp.cs | 507 ++++++++++ Common/Proto/GetChallengeScRsp.cs | 289 ++++++ .../Proto/GetChessRogueNousStoryInfoScRsp.cs | 290 ++++++ Common/Proto/GetCurChallengeScRsp.cs | 281 ++++++ Common/Proto/GetCurLineupDataScRsp.cs | 281 ++++++ Common/Proto/GetCurSceneInfoScRsp.cs | 281 ++++++ Common/Proto/GetDailyActiveInfoCsReq.cs | 197 ++++ Common/Proto/GetDailyActiveInfoScRsp.cs | 328 +++++++ Common/Proto/GetEnteredSceneScRsp.cs | 261 +++++ Common/Proto/GetFarmStageGachaInfoCsReq.cs | 226 +++++ Common/Proto/GetFarmStageGachaInfoScRsp.cs | 262 +++++ .../GetFirstTalkByPerformanceNpcCsReq.cs | 226 +++++ .../GetFirstTalkByPerformanceNpcScRsp.cs | 262 +++++ Common/Proto/GetFirstTalkNpcCsReq.cs | 225 +++++ Common/Proto/GetFirstTalkNpcScRsp.cs | 261 +++++ Common/Proto/GetFriendApplyListInfoScRsp.cs | 262 +++++ Common/Proto/GetFriendListInfoScRsp.cs | 261 +++++ Common/Proto/GetFriendLoginInfoScRsp.cs | 291 ++++++ .../Proto/GetFriendRecommendListInfoScRsp.cs | 262 +++++ Common/Proto/GetGachaCeilingCsReq.cs | 234 +++++ Common/Proto/GetGachaCeilingScRsp.cs | 319 ++++++ Common/Proto/GetGachaInfoScRsp.cs | 261 +++++ Common/Proto/GetHeroBasicTypeInfoScRsp.cs | 338 +++++++ Common/Proto/GetJukeboxDataCsReq.cs | 196 ++++ Common/Proto/GetJukeboxDataScRsp.cs | 299 ++++++ Common/Proto/GetMailScRsp.cs | 400 ++++++++ .../Proto/GetMainMissionCustomValueCsReq.cs | 225 +++++ Common/Proto/GetMissionStatusCsReq.cs | 283 ++++++ Common/Proto/GetMissionStatusScRsp.cs | 375 +++++++ Common/Proto/GetNpcTakenRewardCsReq.cs | 234 +++++ Common/Proto/GetNpcTakenRewardScRsp.cs | 271 +++++ Common/Proto/GetPhoneDataCsReq.cs | 196 ++++ Common/Proto/GetPhoneDataScRsp.cs | 366 +++++++ Common/Proto/GetPlayerBoardDataScRsp.cs | 384 ++++++++ Common/Proto/GetPlayerDetailInfoCsReq.cs | 234 +++++ Common/Proto/GetPlayerDetailInfoScRsp.cs | 282 ++++++ Common/Proto/GetPrivateChatHistoryCsReq.cs | 272 ++++++ Common/Proto/GetPrivateChatHistoryScRsp.cs | 336 +++++++ Common/Proto/GetQuestDataCsReq.cs | 196 ++++ Common/Proto/GetQuestDataScRsp.cs | 298 ++++++ Common/Proto/GetRogueBuffEnhanceInfoScRsp.cs | 282 ++++++ Common/Proto/GetRogueHandbookDataScRsp.cs | 282 ++++++ Common/Proto/GetRogueInfoScRsp.cs | 281 ++++++ Common/Proto/GetRogueScoreRewardInfoScRsp.cs | 282 ++++++ Common/Proto/GetRogueTalentInfoScRsp.cs | 281 ++++++ Common/Proto/GetRollShopInfoCsReq.cs | 234 +++++ Common/Proto/GetRollShopInfoScRsp.cs | 337 +++++++ Common/Proto/GetSceneMapInfoCsReq.cs | 262 +++++ Common/Proto/GetSceneMapInfoScRsp.cs | 475 +++++++++ Common/Proto/GetShopListCsReq.cs | 234 +++++ Common/Proto/GetShopListScRsp.cs | 298 ++++++ Common/Proto/GetUnlockTeleportCsReq.cs | 225 +++++ Common/Proto/GetUnlockTeleportScRsp.cs | 263 +++++ Common/Proto/GetVideoVersionKeyScRsp.cs | 224 +++++ Common/Proto/Goods.cs | 383 ++++++++ Common/Proto/GroupStateChangeCsReq.cs | 244 +++++ Common/Proto/GroupStateChangeScNotify.cs | 244 +++++ Common/Proto/GroupStateChangeScRsp.cs | 281 ++++++ Common/Proto/GroupStateInfo.cs | 346 +++++++ Common/Proto/HandleFriendCsReq.cs | 271 +++++ Common/Proto/HandleFriendScRsp.cs | 356 +++++++ .../HandleRogueCommonPendingActionCsReq.cs | 454 +++++++++ .../HandleRogueCommonPendingActionScRsp.cs | 555 +++++++++++ Common/Proto/HeadIcon.cs | 233 +++++ Common/Proto/HeroBasicType.cs | 65 ++ Common/Proto/HeroBasicTypeInfo.cs | 299 ++++++ Common/Proto/InteractChargerCsReq.cs | 247 +++++ Common/Proto/InteractChargerScRsp.cs | 281 ++++++ Common/Proto/InteractPropCsReq.cs | 271 +++++ Common/Proto/InteractPropScRsp.cs | 309 ++++++ Common/Proto/Item.cs | 457 +++++++++ Common/Proto/ItemCost.cs | 318 ++++++ Common/Proto/ItemCostList.cs | 223 +++++ Common/Proto/ItemList.cs | 223 +++++ Common/Proto/JoinLineupCsReq.cs | 460 +++++++++ Common/Proto/LANBPBBAJLM.cs | 243 +++++ Common/Proto/LLJFPKKLGAK.cs | 291 ++++++ Common/Proto/LMDFPHAHJGL.cs | 225 +++++ Common/Proto/LanguageType.cs | 64 ++ Common/Proto/LeaveRogueScRsp.cs | 375 +++++++ Common/Proto/LineupAvatar.cs | 431 ++++++++ Common/Proto/LineupInfo.cs | 523 ++++++++++ Common/Proto/LineupSlotData.cs | 309 ++++++ Common/Proto/LockEquipmentCsReq.cs | 272 ++++++ Common/Proto/LockEquipmentScRsp.cs | 271 +++++ Common/Proto/LockRelicCsReq.cs | 271 +++++ Common/Proto/LockRelicScRsp.cs | 271 +++++ Common/Proto/MECNPEEJJDE.cs | 237 +++++ Common/Proto/MailType.cs | 47 + Common/Proto/MapInfoChestType.cs | 51 + Common/Proto/MarkReadMailCsReq.cs | 234 +++++ Common/Proto/MarkReadMailScRsp.cs | 271 +++++ Common/Proto/Material.cs | 271 +++++ Common/Proto/MazeChest.cs | 310 ++++++ Common/Proto/MazeGroup.cs | 271 +++++ Common/Proto/MazeMapData.cs | 448 +++++++++ Common/Proto/MazeProp.cs | 308 ++++++ Common/Proto/Mission.cs | 309 ++++++ Common/Proto/MissionAcceptScNotify.cs | 225 +++++ Common/Proto/MissionStatus.cs | 50 + Common/Proto/MissionSync.cs | 227 +++++ Common/Proto/MonsterArchive.cs | 271 +++++ Common/Proto/MotionInfo.cs | 289 ++++++ Common/Proto/MsgType.cs | 48 + Common/Proto/NewMailScNotify.cs | 225 +++++ Common/Proto/NpcExtraInfo.cs | 243 +++++ Common/Proto/NpcRogueInfo.cs | 490 ++++++++++ Common/Proto/NpcTalkInfo.cs | 234 +++++ Common/Proto/OFHBFINPHAG.cs | 225 +++++ Common/Proto/PVEBattleResultCsReq.cs | 534 ++++++++++ Common/Proto/PVEBattleResultScRsp.cs | 749 ++++++++++++++ Common/Proto/PickRogueAvatarCsReq.cs | 225 +++++ Common/Proto/PickRogueAvatarScRsp.cs | 225 +++++ Common/Proto/PileItem.cs | 271 +++++ Common/Proto/PlatformType.cs | 71 ++ Common/Proto/PlayBackGroundMusicCsReq.cs | 234 +++++ Common/Proto/PlayBackGroundMusicScRsp.cs | 309 ++++++ Common/Proto/PlayerBasicInfo.cs | 495 ++++++++++ Common/Proto/PlayerDetailInfo.cs | 537 ++++++++++ Common/Proto/PlayerGetTokenCsReq.cs | 309 ++++++ Common/Proto/PlayerGetTokenScRsp.cs | 393 ++++++++ Common/Proto/PlayerHeartbeatCsReq.cs | 234 +++++ Common/Proto/PlayerHeartbeatScRsp.cs | 309 ++++++ Common/Proto/PlayerLoginScRsp.cs | 431 ++++++++ Common/Proto/PlayerSettingInfo.cs | 309 ++++++ Common/Proto/PlayerSyncScNotify.cs | 504 ++++++++++ Common/Proto/PromoteAvatarCsReq.cs | 261 +++++ Common/Proto/PromoteEquipmentCsReq.cs | 282 ++++++ Common/Proto/PropAeonInfo.cs | 309 ++++++ Common/Proto/PropExtraInfo.cs | 243 +++++ Common/Proto/PropRogueInfo.cs | 271 +++++ Common/Proto/Quest.cs | 375 +++++++ Common/Proto/QuestStatus.cs | 51 + Common/Proto/QuitLineupCsReq.cs | 423 ++++++++ Common/Proto/RankUpAvatarCsReq.cs | 319 ++++++ Common/Proto/RankUpEquipmentCsReq.cs | 281 ++++++ Common/Proto/ReEnterLastElementStageCsReq.cs | 234 +++++ Common/Proto/ReEnterLastElementStageScRsp.cs | 319 ++++++ Common/Proto/RefreshTriggerByClientCsReq.cs | 348 +++++++ .../Proto/RefreshTriggerByClientScNotify.cs | 301 ++++++ Common/Proto/RefreshTriggerByClientScRsp.cs | 347 +++++++ Common/Proto/RegionEntry.cs | 420 ++++++++ Common/Proto/Relic.cs | 522 ++++++++++ Common/Proto/RelicAffix.cs | 308 ++++++ Common/Proto/RelicArchive.cs | 271 +++++ Common/Proto/RelicParam.cs | 271 +++++ Common/Proto/ReplaceLineupCsReq.cs | 412 ++++++++ Common/Proto/ReserveStaminaExchangeCsReq.cs | 234 +++++ Common/Proto/ReserveStaminaExchangeScRsp.cs | 272 ++++++ Common/Proto/RevcMsgScNotify.cs | 422 ++++++++ Common/Proto/RogueAchivedMiracleInfo.cs | 299 ++++++ Common/Proto/RogueAction.cs | 399 ++++++++ Common/Proto/RogueActionResult.cs | 282 ++++++ Common/Proto/RogueActionResultData.cs | 441 +++++++++ Common/Proto/RogueAeon.cs | 274 ++++++ Common/Proto/RogueAeonInfo.cs | 346 +++++++ Common/Proto/RogueArea.cs | 386 ++++++++ Common/Proto/RogueAreaInfo.cs | 223 +++++ Common/Proto/RogueAreaStatus.cs | 51 + Common/Proto/RogueAvatarInfo.cs | 634 ++++++++++++ Common/Proto/RogueAvatarReviveCost.cs | 244 +++++ Common/Proto/RogueBonusSelect.cs | 196 ++++ Common/Proto/RogueBonusSelectInfo.cs | 225 +++++ Common/Proto/RogueBonusSelectResult.cs | 234 +++++ Common/Proto/RogueBuff.cs | 271 +++++ Common/Proto/RogueBuffData.cs | 271 +++++ Common/Proto/RogueBuffEnhanceInfo.cs | 319 ++++++ Common/Proto/RogueBuffEnhanceShopInfo.cs | 224 +++++ Common/Proto/RogueBuffInfo.cs | 223 +++++ Common/Proto/RogueBuffRollInfo.cs | 196 ++++ Common/Proto/RogueBuffSelect.cs | 196 ++++ Common/Proto/RogueBuffSelectInfo.cs | 568 +++++++++++ Common/Proto/RogueBuffSource.cs | 63 ++ Common/Proto/RogueCommonBuff.cs | 271 +++++ Common/Proto/RogueCommonBuffSelectInfo.cs | 631 ++++++++++++ Common/Proto/RogueCommonBuffSelectResult.cs | 234 +++++ Common/Proto/RogueCommonBuffSelectSource.cs | 56 ++ Common/Proto/RogueCommonPendingAction.cs | 281 ++++++ Common/Proto/RogueCurrentInfo.cs | 614 ++++++++++++ Common/Proto/RogueDialogueEvent.cs | 403 ++++++++ Common/Proto/RogueDialogueEventParam.cs | 384 ++++++++ Common/Proto/RogueFinishInfo.cs | 822 ++++++++++++++++ Common/Proto/RogueHandbookAeon.cs | 403 ++++++++ Common/Proto/RogueHandbookBuff.cs | 234 +++++ Common/Proto/RogueHandbookData.cs | 307 ++++++ Common/Proto/RogueHandbookEvent.cs | 300 ++++++ Common/Proto/RogueHandbookMiracle.cs | 271 +++++ Common/Proto/RogueInfo.cs | 291 ++++++ Common/Proto/RogueInfoData.cs | 433 ++++++++ Common/Proto/RogueMapInfo.cs | 373 +++++++ Common/Proto/RogueMiracle.cs | 337 +++++++ Common/Proto/RogueMiracleData.cs | 244 +++++ Common/Proto/RogueMiracleDataInfo.cs | 375 +++++++ Common/Proto/RogueMiracleInfo.cs | 244 +++++ Common/Proto/RogueMiracleInfoData.cs | 299 ++++++ Common/Proto/RogueMiracleSelect.cs | 196 ++++ Common/Proto/RogueMiracleSelectInfo.cs | 335 +++++++ Common/Proto/RogueMiracleSelectResult.cs | 234 +++++ Common/Proto/RogueMiracleSource.cs | 69 ++ Common/Proto/RogueNpcDisappearCsReq.cs | 234 +++++ Common/Proto/RogueQuery.cs | 225 +++++ Common/Proto/RogueRecordAvatar.cs | 309 ++++++ Common/Proto/RogueRecordInfo.cs | 279 ++++++ Common/Proto/RogueRerollBuff.cs | 244 +++++ Common/Proto/RogueRoom.cs | 315 ++++++ Common/Proto/RogueRoomStatus.cs | 53 + Common/Proto/RogueScoreRewardInfo.cs | 462 +++++++++ Common/Proto/RogueSeasonInfo.cs | 309 ++++++ Common/Proto/RogueStatus.cs | 52 + Common/Proto/RogueSyncContextBoardEvent.cs | 272 ++++++ Common/Proto/RogueTalent.cs | 300 ++++++ Common/Proto/RogueTalentInfo.cs | 224 +++++ Common/Proto/RogueTalentStatus.cs | 49 + Common/Proto/RogueUnlockProgress.cs | 309 ++++++ Common/Proto/RogueUpdate.cs | 309 ++++++ Common/Proto/RogueVirtualItem.cs | 346 +++++++ Common/Proto/RogueVirtualItemData.cs | 271 +++++ Common/Proto/RogueVirtualItemInfo.cs | 271 +++++ Common/Proto/RollRogueBuffScRsp.cs | 281 ++++++ Common/Proto/RotateMapCsReq.cs | 924 ++++++++++++++++++ Common/Proto/RotateMapScRsp.cs | 318 ++++++ Common/Proto/RotaterData.cs | 308 ++++++ Common/Proto/RotatorEnergyInfo.cs | 271 +++++ Common/Proto/SceneActorInfo.cs | 347 +++++++ Common/Proto/SceneBattleInfo.cs | 523 ++++++++++ Common/Proto/SceneCastSkill.cs | 50 + Common/Proto/SceneCastSkillCsReq.cs | 414 ++++++++ .../Proto/SceneCastSkillMpUpdateScNotify.cs | 272 ++++++ Common/Proto/SceneCastSkillScRsp.cs | 319 ++++++ Common/Proto/SceneEnterStageCsReq.cs | 234 +++++ Common/Proto/SceneEnterStageScRsp.cs | 281 ++++++ Common/Proto/SceneEntityGroupInfo.cs | 299 ++++++ Common/Proto/SceneEntityInfo.cs | 592 +++++++++++ Common/Proto/SceneEntityMoveCsReq.cs | 261 +++++ Common/Proto/SceneEntityMoveScNotify.cs | 356 +++++++ Common/Proto/SceneEntityRefreshInfo.cs | 281 ++++++ Common/Proto/SceneEntityTeleportCsReq.cs | 281 ++++++ Common/Proto/SceneEntityTeleportScRsp.cs | 319 ++++++ Common/Proto/SceneGroupRefreshInfo.cs | 299 ++++++ Common/Proto/SceneGroupRefreshScNotify.cs | 225 +++++ Common/Proto/SceneGroupState.cs | 308 ++++++ Common/Proto/SceneInfo.cs | 598 ++++++++++++ Common/Proto/SceneMonster.cs | 308 ++++++ Common/Proto/SceneMonsterWave.cs | 373 +++++++ Common/Proto/SceneMonsterWaveParam.cs | 309 ++++++ Common/Proto/SceneNpcInfo.cs | 281 ++++++ Common/Proto/SceneNpcMonsterInfo.cs | 309 ++++++ Common/Proto/ScenePlaneEventScNotify.cs | 244 +++++ Common/Proto/ScenePropInfo.cs | 393 ++++++++ Common/Proto/SceneSummonUnitInfo.cs | 411 ++++++++ Common/Proto/SearchPlayerCsReq.cs | 225 +++++ Common/Proto/SearchPlayerScRsp.cs | 261 +++++ Common/Proto/SelectChatBubbleCsReq.cs | 234 +++++ Common/Proto/SelectChatBubbleScRsp.cs | 272 ++++++ Common/Proto/SelectPhoneThemeCsReq.cs | 234 +++++ Common/Proto/SelectPhoneThemeScRsp.cs | 272 ++++++ Common/Proto/SelectRogueBuffCsReq.cs | 234 +++++ Common/Proto/SelectRogueBuffScRsp.cs | 357 +++++++ Common/Proto/SelectRogueDialogueEventCsReq.cs | 272 ++++++ Common/Proto/SelectRogueDialogueEventScRsp.cs | 347 +++++++ Common/Proto/SelectRogueMiracleCsReq.cs | 234 +++++ Common/Proto/SelectRogueMiracleScRsp.cs | 330 +++++++ Common/Proto/SellItemCsReq.cs | 281 ++++++ Common/Proto/SellItemScRsp.cs | 281 ++++++ Common/Proto/SendMsgCsReq.cs | 375 +++++++ Common/Proto/SetClientPausedCsReq.cs | 234 +++++ Common/Proto/SetClientPausedScRsp.cs | 271 +++++ Common/Proto/SetFriendMarkCsReq.cs | 271 +++++ Common/Proto/SetFriendMarkScRsp.cs | 309 ++++++ Common/Proto/SetGameplayBirthdayCsReq.cs | 234 +++++ Common/Proto/SetGameplayBirthdayScRsp.cs | 271 +++++ Common/Proto/SetHeadIconCsReq.cs | 234 +++++ Common/Proto/SetHeadIconScRsp.cs | 271 +++++ Common/Proto/SetHeroBasicTypeCsReq.cs | 235 +++++ Common/Proto/SetHeroBasicTypeScRsp.cs | 272 ++++++ Common/Proto/SetLineupNameCsReq.cs | 271 +++++ Common/Proto/SetLineupNameScRsp.cs | 308 ++++++ Common/Proto/SetNicknameCsReq.cs | 234 +++++ Common/Proto/SetSignatureCsReq.cs | 234 +++++ Common/Proto/SetSignatureScRsp.cs | 271 +++++ Common/Proto/Shop.cs | 448 +++++++++ Common/Proto/SimpleInfo.cs | 600 ++++++++++++ Common/Proto/SpBarInfo.cs | 271 +++++ Common/Proto/StaminaInfoScNotify.cs | 309 ++++++ Common/Proto/StartChallengeCsReq.cs | 282 ++++++ Common/Proto/StartChallengeScRsp.cs | 375 +++++++ Common/Proto/StartChallengeStoryBuffInfo.cs | 272 ++++++ Common/Proto/StartChallengeStoryInfo.cs | 245 +++++ Common/Proto/StartCocoonStageCsReq.cs | 346 +++++++ Common/Proto/StartCocoonStageScRsp.cs | 394 ++++++++ Common/Proto/StartFinishSubMissionScNotify.cs | 234 +++++ Common/Proto/StartRogueCsReq.cs | 337 +++++++ Common/Proto/StartRogueScRsp.cs | 375 +++++++ Common/Proto/SwapLineupCsReq.cs | 422 ++++++++ Common/Proto/SwitchLineupIndexCsReq.cs | 234 +++++ Common/Proto/SwitchLineupIndexScRsp.cs | 271 +++++ Common/Proto/SyncApplyFriendScNotify.cs | 244 +++++ .../Proto/SyncChessRogueNousValueScNotify.cs | 244 +++++ Common/Proto/SyncClientResVersionCsReq.cs | 234 +++++ Common/Proto/SyncClientResVersionScRsp.cs | 272 ++++++ Common/Proto/SyncDeleteFriendScNotify.cs | 234 +++++ .../Proto/SyncEntityBuffChangeListScNotify.cs | 225 +++++ Common/Proto/SyncHandleFriendScNotify.cs | 319 ++++++ Common/Proto/SyncLineupNotify.cs | 273 ++++++ Common/Proto/SyncReason.cs | 52 + .../Proto/SyncRogueBuffSelectInfoScNotify.cs | 245 +++++ .../SyncRogueCommonActionResultScNotify.cs | 285 ++++++ .../SyncRogueCommonPendingActionScNotify.cs | 286 ++++++ .../SyncRogueDialogueEventDataScNotify.cs | 225 +++++ Common/Proto/SyncRogueFinishScNotify.cs | 244 +++++ Common/Proto/SyncRogueMapRoomScNotify.cs | 281 ++++++ .../SyncRogueMiracleSelectInfoScNotify.cs | 245 +++++ Common/Proto/SyncRogueStatusScNotify.cs | 235 +++++ .../Proto/SyncRogueVirtualItemInfoScNotify.cs | 245 +++++ Common/Proto/TakeChallengeRewardCsReq.cs | 234 +++++ Common/Proto/TakeChallengeRewardScRsp.cs | 299 ++++++ Common/Proto/TakeMailAttachmentCsReq.cs | 263 +++++ Common/Proto/TakeMailAttachmentScRsp.cs | 310 ++++++ Common/Proto/TakeOffEquipmentCsReq.cs | 234 +++++ Common/Proto/TakeOffRelicCsReq.cs | 262 +++++ Common/Proto/TakePromotionRewardCsReq.cs | 272 ++++++ Common/Proto/TakePromotionRewardScRsp.cs | 281 ++++++ Common/Proto/TakenChallengeRewardInfo.cs | 281 ++++++ Common/Proto/TextJoinInfo.cs | 271 +++++ Common/Proto/TextJoinQueryCsReq.cs | 225 +++++ Common/Proto/TextJoinQueryScRsp.cs | 261 +++++ Common/Proto/UnlockBackGroundMusicCsReq.cs | 225 +++++ Common/Proto/UnlockBackGroundMusicScRsp.cs | 290 ++++++ Common/Proto/UnlockChatBubbleScNotify.cs | 234 +++++ Common/Proto/UnlockPhoneThemeScNotify.cs | 234 +++++ Common/Proto/UnlockSkilltreeCsReq.cs | 298 ++++++ Common/Proto/UnlockSkilltreeScRsp.cs | 346 +++++++ Common/Proto/UnlockedMusic.cs | 311 ++++++ Common/Proto/UpdateEnergyScNotify.cs | 244 +++++ Common/Proto/UseItemCsReq.cs | 385 ++++++++ Common/Proto/UseItemScRsp.cs | 356 +++++++ Common/Proto/Vector.cs | 308 ++++++ Common/Proto/VideoVersionKey.cs | 271 +++++ Common/Util/ConfigManager.cs | 32 + Common/Util/Crypto.cs | 50 + Common/Util/Logger.cs | 123 +++ DanhengServer.sln | 42 + GameServer/Data/Excel/AvatarConfigExcel.cs | 18 + GameServer/Data/Excel/StageConfigExcel.cs | 36 + GameServer/Data/ExcelResource.cs | 21 + GameServer/Data/GameData.cs | 11 + GameServer/Data/ResourceEntity.cs | 18 + GameServer/Data/ResourceManager.cs | 93 ++ GameServer/GameServer.csproj | 27 + GameServer/Program/EntryPoint.cs | 81 ++ LICENSE.txt | 661 +++++++++++++ README.md | 2 + WebServer/Controllers/DispatchRoutes.cs | 73 ++ WebServer/Controllers/GateServerRoutes.cs | 13 + WebServer/Controllers/LogServerRoutes.cs | 17 + WebServer/Handler/ComboTokenGranterHandler.cs | 40 + WebServer/Handler/FingerprintHandler.cs | 45 + WebServer/Handler/QueryGatewayHandler.cs | 55 ++ WebServer/Handler/TokenLoginHandler.cs | 27 + WebServer/Handler/UsernameLoginHandler.cs | 37 + WebServer/Objects/ComboTokenResJson.cs | 26 + WebServer/Objects/LoginResJson.cs | 49 + WebServer/Objects/RequestBodies.cs | 24 + WebServer/Properties/launchSettings.json | 41 + WebServer/WebProgram.cs | 61 ++ WebServer/WebServer.csproj | 21 + WebServer/appsettings.Development.json | 8 + WebServer/appsettings.json | 9 + WebServer/certificate.p12 | Bin 0 -> 2611 bytes 544 files changed, 152440 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Common/Common.csproj create mode 100644 Common/Configuration/ConfigContainer.cs create mode 100644 Common/Database/Account/AccountData.cs create mode 100644 Common/Database/Account/AccountHelper.cs create mode 100644 Common/Database/BaseDatabaseData.cs create mode 100644 Common/Database/DatabaseEntity.cs create mode 100644 Common/Database/DatabaseHelper.cs create mode 100644 Common/Proto/ActivateFarmElementCsReq.cs create mode 100644 Common/Proto/ActivateFarmElementScRsp.cs create mode 100644 Common/Proto/ActivityScheduleInfo.cs create mode 100644 Common/Proto/ApplyFriendCsReq.cs create mode 100644 Common/Proto/ArchiveData.cs create mode 100644 Common/Proto/AssistSimpleInfo.cs create mode 100644 Common/Proto/Avatar.cs create mode 100644 Common/Proto/AvatarBattleInfo.cs create mode 100644 Common/Proto/AvatarExpUpCsReq.cs create mode 100644 Common/Proto/AvatarExpUpScRsp.cs create mode 100644 Common/Proto/AvatarProperty.cs create mode 100644 Common/Proto/AvatarSkillTree.cs create mode 100644 Common/Proto/AvatarSync.cs create mode 100644 Common/Proto/AvatarType.cs create mode 100644 Common/Proto/BattleAvatar.cs create mode 100644 Common/Proto/BattleBuff.cs create mode 100644 Common/Proto/BattleEndReason.cs create mode 100644 Common/Proto/BattleEndStatus.cs create mode 100644 Common/Proto/BattleEquipment.cs create mode 100644 Common/Proto/BattleEventBattleInfo.cs create mode 100644 Common/Proto/BattleEventInitedData.cs create mode 100644 Common/Proto/BattleMechanismBar.cs create mode 100644 Common/Proto/BattleOp.cs create mode 100644 Common/Proto/BattlePassInfoNotify.cs create mode 100644 Common/Proto/BattleRelic.cs create mode 100644 Common/Proto/BattleSkillInfo.cs create mode 100644 Common/Proto/BattleStatistics.cs create mode 100644 Common/Proto/BattleTarget.cs create mode 100644 Common/Proto/BattleTargetList.cs create mode 100644 Common/Proto/BlackInfo.cs create mode 100644 Common/Proto/BoardDataSync.cs create mode 100644 Common/Proto/BuffInfo.cs create mode 100644 Common/Proto/BuyGoodsCsReq.cs create mode 100644 Common/Proto/BuyGoodsScRsp.cs create mode 100644 Common/Proto/Challenge.cs create mode 100644 Common/Proto/ChallengeInfo.cs create mode 100644 Common/Proto/ChallengeLineupNotify.cs create mode 100644 Common/Proto/ChallengeReward.cs create mode 100644 Common/Proto/ChallengeSettleNotify.cs create mode 100644 Common/Proto/ChallengeStatus.cs create mode 100644 Common/Proto/ChallengeStoryBuffInfo.cs create mode 100644 Common/Proto/ChallengeStoryInfo.cs create mode 100644 Common/Proto/ChangeLineupLeaderCsReq.cs create mode 100644 Common/Proto/ChangeLineupLeaderScRsp.cs create mode 100644 Common/Proto/ChargerInfo.cs create mode 100644 Common/Proto/Chat.cs create mode 100644 Common/Proto/ChatType.cs create mode 100644 Common/Proto/ChessRogueAvatar.cs create mode 100644 Common/Proto/ChessRogueAvatarInfo.cs create mode 100644 Common/Proto/ChessRogueBuffData.cs create mode 100644 Common/Proto/ChessRogueBuffInfo.cs create mode 100644 Common/Proto/ChessRogueCell.cs create mode 100644 Common/Proto/ChessRogueCellInfo.cs create mode 100644 Common/Proto/ChessRogueCellUpdateNotify.cs create mode 100644 Common/Proto/ChessRogueConfirmRollScRsp.cs create mode 100644 Common/Proto/ChessRogueCurrentInfo.cs create mode 100644 Common/Proto/ChessRogueInfo.cs create mode 100644 Common/Proto/ChessRogueItemInfo.cs create mode 100644 Common/Proto/ChessRogueMiracleData.cs create mode 100644 Common/Proto/ChessRogueMiracleInfo.cs create mode 100644 Common/Proto/ChessRogueMoneyInfo.cs create mode 100644 Common/Proto/ChessRogueNousDice.cs create mode 100644 Common/Proto/ChessRogueNousDiceInfo.cs create mode 100644 Common/Proto/ChessRogueNousDiceSurfaceInfo.cs create mode 100644 Common/Proto/ChessRogueNousEditDiceCsReq.cs create mode 100644 Common/Proto/ChessRogueNousEditDiceScRsp.cs create mode 100644 Common/Proto/ChessRogueNousMainStoryInfo.cs create mode 100644 Common/Proto/ChessRogueNousQueryInfo.cs create mode 100644 Common/Proto/ChessRogueNousStoryInfo.cs create mode 100644 Common/Proto/ChessRogueNousSubStoryInfo.cs create mode 100644 Common/Proto/ChessRogueNousValue.cs create mode 100644 Common/Proto/ChessRoguePhase.cs create mode 100644 Common/Proto/ChessRogueQuery.cs create mode 100644 Common/Proto/ChessRogueQueryInfo.cs create mode 100644 Common/Proto/ChessRogueQueryScRsp.cs create mode 100644 Common/Proto/ChessRogueReRollDiceCsReq.cs create mode 100644 Common/Proto/ChessRogueRollDiceCsReq.cs create mode 100644 Common/Proto/ChessRogueRollDiceScRsp.cs create mode 100644 Common/Proto/ChessRogueSelectCellCsReq.cs create mode 100644 Common/Proto/ChessRogueSelectCellScRsp.cs create mode 100644 Common/Proto/ChessRogueStartCsReq.cs create mode 100644 Common/Proto/ChessRogueStartScRsp.cs create mode 100644 Common/Proto/ChessRogueUpdateActionPointScNotify.cs create mode 100644 Common/Proto/ChessRogueUpdateAllowedSelectCellScNotify.cs create mode 100644 Common/Proto/ChessRogueUpdateDiceInfoScNotify.cs create mode 100644 Common/Proto/ChessRogueUpdateDicePassiveAccumulateValueScNotify.cs create mode 100644 Common/Proto/ChessRogueUpdateMoneyInfoScNotify.cs create mode 100644 Common/Proto/ChessRogueVirtualItemInfo.cs create mode 100644 Common/Proto/ClientMail.cs create mode 100644 Common/Proto/ClientMailAttachmentItem.cs create mode 100644 Common/Proto/CommonRogueQuery.cs create mode 100644 Common/Proto/CommonRogueQueryScRsp.cs create mode 100644 Common/Proto/CommonRogueUpdateScNotify.cs create mode 100644 Common/Proto/ComposeItemCsReq.cs create mode 100644 Common/Proto/ComposeItemScRsp.cs create mode 100644 Common/Proto/ComposeSelectedRelicCsReq.cs create mode 100644 Common/Proto/ComposeSelectedRelicScRsp.cs create mode 100644 Common/Proto/DMBBFODODOF.cs create mode 100644 Common/Proto/DailyActiveInfoNotify.cs create mode 100644 Common/Proto/DailyActivityInfo.cs create mode 100644 Common/Proto/DeactivateFarmElementCsReq.cs create mode 100644 Common/Proto/DeactivateFarmElementScRsp.cs create mode 100644 Common/Proto/DelMailCsReq.cs create mode 100644 Common/Proto/DelMailScRsp.cs create mode 100644 Common/Proto/DeleteFriendCsReq.cs create mode 100644 Common/Proto/DeployRotaterCsReq.cs create mode 100644 Common/Proto/DeployRotaterScRsp.cs create mode 100644 Common/Proto/DialogueResult.cs create mode 100644 Common/Proto/DiscardRelicCsReq.cs create mode 100644 Common/Proto/DispatchRegionData.cs create mode 100644 Common/Proto/DisplayAvatar.cs create mode 100644 Common/Proto/DisplayAvatarVec.cs create mode 100644 Common/Proto/DoGachaCsReq.cs create mode 100644 Common/Proto/DoGachaInRollShopCsReq.cs create mode 100644 Common/Proto/DoGachaInRollShopScRsp.cs create mode 100644 Common/Proto/DoGachaScRsp.cs create mode 100644 Common/Proto/DressAvatarCsReq.cs create mode 100644 Common/Proto/DressRelicAvatarCsReq.cs create mode 100644 Common/Proto/EnableRogueTalentCsReq.cs create mode 100644 Common/Proto/EnableRogueTalentScRsp.cs create mode 100644 Common/Proto/EnhanceRogueBuffCsReq.cs create mode 100644 Common/Proto/EnhanceRogueBuffScRsp.cs create mode 100644 Common/Proto/EnterMapRotationRegionCsReq.cs create mode 100644 Common/Proto/EnterMapRotationRegionScRsp.cs create mode 100644 Common/Proto/EnterRogueMapRoomCsReq.cs create mode 100644 Common/Proto/EnterRogueMapRoomScRsp.cs create mode 100644 Common/Proto/EnterSceneByServerScNotify.cs create mode 100644 Common/Proto/EnterSceneCsReq.cs create mode 100644 Common/Proto/EnterSceneReason.cs create mode 100644 Common/Proto/EnteredSceneInfo.cs create mode 100644 Common/Proto/EntityBuffChangeInfo.cs create mode 100644 Common/Proto/EntityBuffInfo.cs create mode 100644 Common/Proto/EntityMotion.cs create mode 100644 Common/Proto/EquipRelic.cs create mode 100644 Common/Proto/Equipment.cs create mode 100644 Common/Proto/ExchangeGachaCeilingCsReq.cs create mode 100644 Common/Proto/ExchangeGachaCeilingScRsp.cs create mode 100644 Common/Proto/ExchangeHcoinCsReq.cs create mode 100644 Common/Proto/ExchangeHcoinScRsp.cs create mode 100644 Common/Proto/ExpUpEquipmentCsReq.cs create mode 100644 Common/Proto/ExpUpEquipmentScRsp.cs create mode 100644 Common/Proto/ExpUpRelicCsReq.cs create mode 100644 Common/Proto/ExpUpRelicScRsp.cs create mode 100644 Common/Proto/ExtraLineupType.cs create mode 100644 Common/Proto/FarmStageGachaInfo.cs create mode 100644 Common/Proto/FinishRogueDialogueGroupCsReq.cs create mode 100644 Common/Proto/FinishTalkMissionCsReq.cs create mode 100644 Common/Proto/FinishTalkMissionScRsp.cs create mode 100644 Common/Proto/FirstNpcTalkInfo.cs create mode 100644 Common/Proto/FriendApplyInfo.cs create mode 100644 Common/Proto/FriendApplySource.cs create mode 100644 Common/Proto/FriendListInfo.cs create mode 100644 Common/Proto/FriendOnlineStatus.cs create mode 100644 Common/Proto/FriendRecommendInfo.cs create mode 100644 Common/Proto/GachaCeiling.cs create mode 100644 Common/Proto/GachaCeilingAvatar.cs create mode 100644 Common/Proto/GachaInfo.cs create mode 100644 Common/Proto/GachaItem.cs create mode 100644 Common/Proto/Gateserver.cs create mode 100644 Common/Proto/Gender.cs create mode 100644 Common/Proto/GetActivityScheduleConfigScRsp.cs create mode 100644 Common/Proto/GetAllLineupDataScRsp.cs create mode 100644 Common/Proto/GetArchiveDataScRsp.cs create mode 100644 Common/Proto/GetAvatarDataCsReq.cs create mode 100644 Common/Proto/GetAvatarDataScRsp.cs create mode 100644 Common/Proto/GetBagScRsp.cs create mode 100644 Common/Proto/GetBasicInfoScRsp.cs create mode 100644 Common/Proto/GetChallengeScRsp.cs create mode 100644 Common/Proto/GetChessRogueNousStoryInfoScRsp.cs create mode 100644 Common/Proto/GetCurChallengeScRsp.cs create mode 100644 Common/Proto/GetCurLineupDataScRsp.cs create mode 100644 Common/Proto/GetCurSceneInfoScRsp.cs create mode 100644 Common/Proto/GetDailyActiveInfoCsReq.cs create mode 100644 Common/Proto/GetDailyActiveInfoScRsp.cs create mode 100644 Common/Proto/GetEnteredSceneScRsp.cs create mode 100644 Common/Proto/GetFarmStageGachaInfoCsReq.cs create mode 100644 Common/Proto/GetFarmStageGachaInfoScRsp.cs create mode 100644 Common/Proto/GetFirstTalkByPerformanceNpcCsReq.cs create mode 100644 Common/Proto/GetFirstTalkByPerformanceNpcScRsp.cs create mode 100644 Common/Proto/GetFirstTalkNpcCsReq.cs create mode 100644 Common/Proto/GetFirstTalkNpcScRsp.cs create mode 100644 Common/Proto/GetFriendApplyListInfoScRsp.cs create mode 100644 Common/Proto/GetFriendListInfoScRsp.cs create mode 100644 Common/Proto/GetFriendLoginInfoScRsp.cs create mode 100644 Common/Proto/GetFriendRecommendListInfoScRsp.cs create mode 100644 Common/Proto/GetGachaCeilingCsReq.cs create mode 100644 Common/Proto/GetGachaCeilingScRsp.cs create mode 100644 Common/Proto/GetGachaInfoScRsp.cs create mode 100644 Common/Proto/GetHeroBasicTypeInfoScRsp.cs create mode 100644 Common/Proto/GetJukeboxDataCsReq.cs create mode 100644 Common/Proto/GetJukeboxDataScRsp.cs create mode 100644 Common/Proto/GetMailScRsp.cs create mode 100644 Common/Proto/GetMainMissionCustomValueCsReq.cs create mode 100644 Common/Proto/GetMissionStatusCsReq.cs create mode 100644 Common/Proto/GetMissionStatusScRsp.cs create mode 100644 Common/Proto/GetNpcTakenRewardCsReq.cs create mode 100644 Common/Proto/GetNpcTakenRewardScRsp.cs create mode 100644 Common/Proto/GetPhoneDataCsReq.cs create mode 100644 Common/Proto/GetPhoneDataScRsp.cs create mode 100644 Common/Proto/GetPlayerBoardDataScRsp.cs create mode 100644 Common/Proto/GetPlayerDetailInfoCsReq.cs create mode 100644 Common/Proto/GetPlayerDetailInfoScRsp.cs create mode 100644 Common/Proto/GetPrivateChatHistoryCsReq.cs create mode 100644 Common/Proto/GetPrivateChatHistoryScRsp.cs create mode 100644 Common/Proto/GetQuestDataCsReq.cs create mode 100644 Common/Proto/GetQuestDataScRsp.cs create mode 100644 Common/Proto/GetRogueBuffEnhanceInfoScRsp.cs create mode 100644 Common/Proto/GetRogueHandbookDataScRsp.cs create mode 100644 Common/Proto/GetRogueInfoScRsp.cs create mode 100644 Common/Proto/GetRogueScoreRewardInfoScRsp.cs create mode 100644 Common/Proto/GetRogueTalentInfoScRsp.cs create mode 100644 Common/Proto/GetRollShopInfoCsReq.cs create mode 100644 Common/Proto/GetRollShopInfoScRsp.cs create mode 100644 Common/Proto/GetSceneMapInfoCsReq.cs create mode 100644 Common/Proto/GetSceneMapInfoScRsp.cs create mode 100644 Common/Proto/GetShopListCsReq.cs create mode 100644 Common/Proto/GetShopListScRsp.cs create mode 100644 Common/Proto/GetUnlockTeleportCsReq.cs create mode 100644 Common/Proto/GetUnlockTeleportScRsp.cs create mode 100644 Common/Proto/GetVideoVersionKeyScRsp.cs create mode 100644 Common/Proto/Goods.cs create mode 100644 Common/Proto/GroupStateChangeCsReq.cs create mode 100644 Common/Proto/GroupStateChangeScNotify.cs create mode 100644 Common/Proto/GroupStateChangeScRsp.cs create mode 100644 Common/Proto/GroupStateInfo.cs create mode 100644 Common/Proto/HandleFriendCsReq.cs create mode 100644 Common/Proto/HandleFriendScRsp.cs create mode 100644 Common/Proto/HandleRogueCommonPendingActionCsReq.cs create mode 100644 Common/Proto/HandleRogueCommonPendingActionScRsp.cs create mode 100644 Common/Proto/HeadIcon.cs create mode 100644 Common/Proto/HeroBasicType.cs create mode 100644 Common/Proto/HeroBasicTypeInfo.cs create mode 100644 Common/Proto/InteractChargerCsReq.cs create mode 100644 Common/Proto/InteractChargerScRsp.cs create mode 100644 Common/Proto/InteractPropCsReq.cs create mode 100644 Common/Proto/InteractPropScRsp.cs create mode 100644 Common/Proto/Item.cs create mode 100644 Common/Proto/ItemCost.cs create mode 100644 Common/Proto/ItemCostList.cs create mode 100644 Common/Proto/ItemList.cs create mode 100644 Common/Proto/JoinLineupCsReq.cs create mode 100644 Common/Proto/LANBPBBAJLM.cs create mode 100644 Common/Proto/LLJFPKKLGAK.cs create mode 100644 Common/Proto/LMDFPHAHJGL.cs create mode 100644 Common/Proto/LanguageType.cs create mode 100644 Common/Proto/LeaveRogueScRsp.cs create mode 100644 Common/Proto/LineupAvatar.cs create mode 100644 Common/Proto/LineupInfo.cs create mode 100644 Common/Proto/LineupSlotData.cs create mode 100644 Common/Proto/LockEquipmentCsReq.cs create mode 100644 Common/Proto/LockEquipmentScRsp.cs create mode 100644 Common/Proto/LockRelicCsReq.cs create mode 100644 Common/Proto/LockRelicScRsp.cs create mode 100644 Common/Proto/MECNPEEJJDE.cs create mode 100644 Common/Proto/MailType.cs create mode 100644 Common/Proto/MapInfoChestType.cs create mode 100644 Common/Proto/MarkReadMailCsReq.cs create mode 100644 Common/Proto/MarkReadMailScRsp.cs create mode 100644 Common/Proto/Material.cs create mode 100644 Common/Proto/MazeChest.cs create mode 100644 Common/Proto/MazeGroup.cs create mode 100644 Common/Proto/MazeMapData.cs create mode 100644 Common/Proto/MazeProp.cs create mode 100644 Common/Proto/Mission.cs create mode 100644 Common/Proto/MissionAcceptScNotify.cs create mode 100644 Common/Proto/MissionStatus.cs create mode 100644 Common/Proto/MissionSync.cs create mode 100644 Common/Proto/MonsterArchive.cs create mode 100644 Common/Proto/MotionInfo.cs create mode 100644 Common/Proto/MsgType.cs create mode 100644 Common/Proto/NewMailScNotify.cs create mode 100644 Common/Proto/NpcExtraInfo.cs create mode 100644 Common/Proto/NpcRogueInfo.cs create mode 100644 Common/Proto/NpcTalkInfo.cs create mode 100644 Common/Proto/OFHBFINPHAG.cs create mode 100644 Common/Proto/PVEBattleResultCsReq.cs create mode 100644 Common/Proto/PVEBattleResultScRsp.cs create mode 100644 Common/Proto/PickRogueAvatarCsReq.cs create mode 100644 Common/Proto/PickRogueAvatarScRsp.cs create mode 100644 Common/Proto/PileItem.cs create mode 100644 Common/Proto/PlatformType.cs create mode 100644 Common/Proto/PlayBackGroundMusicCsReq.cs create mode 100644 Common/Proto/PlayBackGroundMusicScRsp.cs create mode 100644 Common/Proto/PlayerBasicInfo.cs create mode 100644 Common/Proto/PlayerDetailInfo.cs create mode 100644 Common/Proto/PlayerGetTokenCsReq.cs create mode 100644 Common/Proto/PlayerGetTokenScRsp.cs create mode 100644 Common/Proto/PlayerHeartbeatCsReq.cs create mode 100644 Common/Proto/PlayerHeartbeatScRsp.cs create mode 100644 Common/Proto/PlayerLoginScRsp.cs create mode 100644 Common/Proto/PlayerSettingInfo.cs create mode 100644 Common/Proto/PlayerSyncScNotify.cs create mode 100644 Common/Proto/PromoteAvatarCsReq.cs create mode 100644 Common/Proto/PromoteEquipmentCsReq.cs create mode 100644 Common/Proto/PropAeonInfo.cs create mode 100644 Common/Proto/PropExtraInfo.cs create mode 100644 Common/Proto/PropRogueInfo.cs create mode 100644 Common/Proto/Quest.cs create mode 100644 Common/Proto/QuestStatus.cs create mode 100644 Common/Proto/QuitLineupCsReq.cs create mode 100644 Common/Proto/RankUpAvatarCsReq.cs create mode 100644 Common/Proto/RankUpEquipmentCsReq.cs create mode 100644 Common/Proto/ReEnterLastElementStageCsReq.cs create mode 100644 Common/Proto/ReEnterLastElementStageScRsp.cs create mode 100644 Common/Proto/RefreshTriggerByClientCsReq.cs create mode 100644 Common/Proto/RefreshTriggerByClientScNotify.cs create mode 100644 Common/Proto/RefreshTriggerByClientScRsp.cs create mode 100644 Common/Proto/RegionEntry.cs create mode 100644 Common/Proto/Relic.cs create mode 100644 Common/Proto/RelicAffix.cs create mode 100644 Common/Proto/RelicArchive.cs create mode 100644 Common/Proto/RelicParam.cs create mode 100644 Common/Proto/ReplaceLineupCsReq.cs create mode 100644 Common/Proto/ReserveStaminaExchangeCsReq.cs create mode 100644 Common/Proto/ReserveStaminaExchangeScRsp.cs create mode 100644 Common/Proto/RevcMsgScNotify.cs create mode 100644 Common/Proto/RogueAchivedMiracleInfo.cs create mode 100644 Common/Proto/RogueAction.cs create mode 100644 Common/Proto/RogueActionResult.cs create mode 100644 Common/Proto/RogueActionResultData.cs create mode 100644 Common/Proto/RogueAeon.cs create mode 100644 Common/Proto/RogueAeonInfo.cs create mode 100644 Common/Proto/RogueArea.cs create mode 100644 Common/Proto/RogueAreaInfo.cs create mode 100644 Common/Proto/RogueAreaStatus.cs create mode 100644 Common/Proto/RogueAvatarInfo.cs create mode 100644 Common/Proto/RogueAvatarReviveCost.cs create mode 100644 Common/Proto/RogueBonusSelect.cs create mode 100644 Common/Proto/RogueBonusSelectInfo.cs create mode 100644 Common/Proto/RogueBonusSelectResult.cs create mode 100644 Common/Proto/RogueBuff.cs create mode 100644 Common/Proto/RogueBuffData.cs create mode 100644 Common/Proto/RogueBuffEnhanceInfo.cs create mode 100644 Common/Proto/RogueBuffEnhanceShopInfo.cs create mode 100644 Common/Proto/RogueBuffInfo.cs create mode 100644 Common/Proto/RogueBuffRollInfo.cs create mode 100644 Common/Proto/RogueBuffSelect.cs create mode 100644 Common/Proto/RogueBuffSelectInfo.cs create mode 100644 Common/Proto/RogueBuffSource.cs create mode 100644 Common/Proto/RogueCommonBuff.cs create mode 100644 Common/Proto/RogueCommonBuffSelectInfo.cs create mode 100644 Common/Proto/RogueCommonBuffSelectResult.cs create mode 100644 Common/Proto/RogueCommonBuffSelectSource.cs create mode 100644 Common/Proto/RogueCommonPendingAction.cs create mode 100644 Common/Proto/RogueCurrentInfo.cs create mode 100644 Common/Proto/RogueDialogueEvent.cs create mode 100644 Common/Proto/RogueDialogueEventParam.cs create mode 100644 Common/Proto/RogueFinishInfo.cs create mode 100644 Common/Proto/RogueHandbookAeon.cs create mode 100644 Common/Proto/RogueHandbookBuff.cs create mode 100644 Common/Proto/RogueHandbookData.cs create mode 100644 Common/Proto/RogueHandbookEvent.cs create mode 100644 Common/Proto/RogueHandbookMiracle.cs create mode 100644 Common/Proto/RogueInfo.cs create mode 100644 Common/Proto/RogueInfoData.cs create mode 100644 Common/Proto/RogueMapInfo.cs create mode 100644 Common/Proto/RogueMiracle.cs create mode 100644 Common/Proto/RogueMiracleData.cs create mode 100644 Common/Proto/RogueMiracleDataInfo.cs create mode 100644 Common/Proto/RogueMiracleInfo.cs create mode 100644 Common/Proto/RogueMiracleInfoData.cs create mode 100644 Common/Proto/RogueMiracleSelect.cs create mode 100644 Common/Proto/RogueMiracleSelectInfo.cs create mode 100644 Common/Proto/RogueMiracleSelectResult.cs create mode 100644 Common/Proto/RogueMiracleSource.cs create mode 100644 Common/Proto/RogueNpcDisappearCsReq.cs create mode 100644 Common/Proto/RogueQuery.cs create mode 100644 Common/Proto/RogueRecordAvatar.cs create mode 100644 Common/Proto/RogueRecordInfo.cs create mode 100644 Common/Proto/RogueRerollBuff.cs create mode 100644 Common/Proto/RogueRoom.cs create mode 100644 Common/Proto/RogueRoomStatus.cs create mode 100644 Common/Proto/RogueScoreRewardInfo.cs create mode 100644 Common/Proto/RogueSeasonInfo.cs create mode 100644 Common/Proto/RogueStatus.cs create mode 100644 Common/Proto/RogueSyncContextBoardEvent.cs create mode 100644 Common/Proto/RogueTalent.cs create mode 100644 Common/Proto/RogueTalentInfo.cs create mode 100644 Common/Proto/RogueTalentStatus.cs create mode 100644 Common/Proto/RogueUnlockProgress.cs create mode 100644 Common/Proto/RogueUpdate.cs create mode 100644 Common/Proto/RogueVirtualItem.cs create mode 100644 Common/Proto/RogueVirtualItemData.cs create mode 100644 Common/Proto/RogueVirtualItemInfo.cs create mode 100644 Common/Proto/RollRogueBuffScRsp.cs create mode 100644 Common/Proto/RotateMapCsReq.cs create mode 100644 Common/Proto/RotateMapScRsp.cs create mode 100644 Common/Proto/RotaterData.cs create mode 100644 Common/Proto/RotatorEnergyInfo.cs create mode 100644 Common/Proto/SceneActorInfo.cs create mode 100644 Common/Proto/SceneBattleInfo.cs create mode 100644 Common/Proto/SceneCastSkill.cs create mode 100644 Common/Proto/SceneCastSkillCsReq.cs create mode 100644 Common/Proto/SceneCastSkillMpUpdateScNotify.cs create mode 100644 Common/Proto/SceneCastSkillScRsp.cs create mode 100644 Common/Proto/SceneEnterStageCsReq.cs create mode 100644 Common/Proto/SceneEnterStageScRsp.cs create mode 100644 Common/Proto/SceneEntityGroupInfo.cs create mode 100644 Common/Proto/SceneEntityInfo.cs create mode 100644 Common/Proto/SceneEntityMoveCsReq.cs create mode 100644 Common/Proto/SceneEntityMoveScNotify.cs create mode 100644 Common/Proto/SceneEntityRefreshInfo.cs create mode 100644 Common/Proto/SceneEntityTeleportCsReq.cs create mode 100644 Common/Proto/SceneEntityTeleportScRsp.cs create mode 100644 Common/Proto/SceneGroupRefreshInfo.cs create mode 100644 Common/Proto/SceneGroupRefreshScNotify.cs create mode 100644 Common/Proto/SceneGroupState.cs create mode 100644 Common/Proto/SceneInfo.cs create mode 100644 Common/Proto/SceneMonster.cs create mode 100644 Common/Proto/SceneMonsterWave.cs create mode 100644 Common/Proto/SceneMonsterWaveParam.cs create mode 100644 Common/Proto/SceneNpcInfo.cs create mode 100644 Common/Proto/SceneNpcMonsterInfo.cs create mode 100644 Common/Proto/ScenePlaneEventScNotify.cs create mode 100644 Common/Proto/ScenePropInfo.cs create mode 100644 Common/Proto/SceneSummonUnitInfo.cs create mode 100644 Common/Proto/SearchPlayerCsReq.cs create mode 100644 Common/Proto/SearchPlayerScRsp.cs create mode 100644 Common/Proto/SelectChatBubbleCsReq.cs create mode 100644 Common/Proto/SelectChatBubbleScRsp.cs create mode 100644 Common/Proto/SelectPhoneThemeCsReq.cs create mode 100644 Common/Proto/SelectPhoneThemeScRsp.cs create mode 100644 Common/Proto/SelectRogueBuffCsReq.cs create mode 100644 Common/Proto/SelectRogueBuffScRsp.cs create mode 100644 Common/Proto/SelectRogueDialogueEventCsReq.cs create mode 100644 Common/Proto/SelectRogueDialogueEventScRsp.cs create mode 100644 Common/Proto/SelectRogueMiracleCsReq.cs create mode 100644 Common/Proto/SelectRogueMiracleScRsp.cs create mode 100644 Common/Proto/SellItemCsReq.cs create mode 100644 Common/Proto/SellItemScRsp.cs create mode 100644 Common/Proto/SendMsgCsReq.cs create mode 100644 Common/Proto/SetClientPausedCsReq.cs create mode 100644 Common/Proto/SetClientPausedScRsp.cs create mode 100644 Common/Proto/SetFriendMarkCsReq.cs create mode 100644 Common/Proto/SetFriendMarkScRsp.cs create mode 100644 Common/Proto/SetGameplayBirthdayCsReq.cs create mode 100644 Common/Proto/SetGameplayBirthdayScRsp.cs create mode 100644 Common/Proto/SetHeadIconCsReq.cs create mode 100644 Common/Proto/SetHeadIconScRsp.cs create mode 100644 Common/Proto/SetHeroBasicTypeCsReq.cs create mode 100644 Common/Proto/SetHeroBasicTypeScRsp.cs create mode 100644 Common/Proto/SetLineupNameCsReq.cs create mode 100644 Common/Proto/SetLineupNameScRsp.cs create mode 100644 Common/Proto/SetNicknameCsReq.cs create mode 100644 Common/Proto/SetSignatureCsReq.cs create mode 100644 Common/Proto/SetSignatureScRsp.cs create mode 100644 Common/Proto/Shop.cs create mode 100644 Common/Proto/SimpleInfo.cs create mode 100644 Common/Proto/SpBarInfo.cs create mode 100644 Common/Proto/StaminaInfoScNotify.cs create mode 100644 Common/Proto/StartChallengeCsReq.cs create mode 100644 Common/Proto/StartChallengeScRsp.cs create mode 100644 Common/Proto/StartChallengeStoryBuffInfo.cs create mode 100644 Common/Proto/StartChallengeStoryInfo.cs create mode 100644 Common/Proto/StartCocoonStageCsReq.cs create mode 100644 Common/Proto/StartCocoonStageScRsp.cs create mode 100644 Common/Proto/StartFinishSubMissionScNotify.cs create mode 100644 Common/Proto/StartRogueCsReq.cs create mode 100644 Common/Proto/StartRogueScRsp.cs create mode 100644 Common/Proto/SwapLineupCsReq.cs create mode 100644 Common/Proto/SwitchLineupIndexCsReq.cs create mode 100644 Common/Proto/SwitchLineupIndexScRsp.cs create mode 100644 Common/Proto/SyncApplyFriendScNotify.cs create mode 100644 Common/Proto/SyncChessRogueNousValueScNotify.cs create mode 100644 Common/Proto/SyncClientResVersionCsReq.cs create mode 100644 Common/Proto/SyncClientResVersionScRsp.cs create mode 100644 Common/Proto/SyncDeleteFriendScNotify.cs create mode 100644 Common/Proto/SyncEntityBuffChangeListScNotify.cs create mode 100644 Common/Proto/SyncHandleFriendScNotify.cs create mode 100644 Common/Proto/SyncLineupNotify.cs create mode 100644 Common/Proto/SyncReason.cs create mode 100644 Common/Proto/SyncRogueBuffSelectInfoScNotify.cs create mode 100644 Common/Proto/SyncRogueCommonActionResultScNotify.cs create mode 100644 Common/Proto/SyncRogueCommonPendingActionScNotify.cs create mode 100644 Common/Proto/SyncRogueDialogueEventDataScNotify.cs create mode 100644 Common/Proto/SyncRogueFinishScNotify.cs create mode 100644 Common/Proto/SyncRogueMapRoomScNotify.cs create mode 100644 Common/Proto/SyncRogueMiracleSelectInfoScNotify.cs create mode 100644 Common/Proto/SyncRogueStatusScNotify.cs create mode 100644 Common/Proto/SyncRogueVirtualItemInfoScNotify.cs create mode 100644 Common/Proto/TakeChallengeRewardCsReq.cs create mode 100644 Common/Proto/TakeChallengeRewardScRsp.cs create mode 100644 Common/Proto/TakeMailAttachmentCsReq.cs create mode 100644 Common/Proto/TakeMailAttachmentScRsp.cs create mode 100644 Common/Proto/TakeOffEquipmentCsReq.cs create mode 100644 Common/Proto/TakeOffRelicCsReq.cs create mode 100644 Common/Proto/TakePromotionRewardCsReq.cs create mode 100644 Common/Proto/TakePromotionRewardScRsp.cs create mode 100644 Common/Proto/TakenChallengeRewardInfo.cs create mode 100644 Common/Proto/TextJoinInfo.cs create mode 100644 Common/Proto/TextJoinQueryCsReq.cs create mode 100644 Common/Proto/TextJoinQueryScRsp.cs create mode 100644 Common/Proto/UnlockBackGroundMusicCsReq.cs create mode 100644 Common/Proto/UnlockBackGroundMusicScRsp.cs create mode 100644 Common/Proto/UnlockChatBubbleScNotify.cs create mode 100644 Common/Proto/UnlockPhoneThemeScNotify.cs create mode 100644 Common/Proto/UnlockSkilltreeCsReq.cs create mode 100644 Common/Proto/UnlockSkilltreeScRsp.cs create mode 100644 Common/Proto/UnlockedMusic.cs create mode 100644 Common/Proto/UpdateEnergyScNotify.cs create mode 100644 Common/Proto/UseItemCsReq.cs create mode 100644 Common/Proto/UseItemScRsp.cs create mode 100644 Common/Proto/Vector.cs create mode 100644 Common/Proto/VideoVersionKey.cs create mode 100644 Common/Util/ConfigManager.cs create mode 100644 Common/Util/Crypto.cs create mode 100644 Common/Util/Logger.cs create mode 100644 DanhengServer.sln create mode 100644 GameServer/Data/Excel/AvatarConfigExcel.cs create mode 100644 GameServer/Data/Excel/StageConfigExcel.cs create mode 100644 GameServer/Data/ExcelResource.cs create mode 100644 GameServer/Data/GameData.cs create mode 100644 GameServer/Data/ResourceEntity.cs create mode 100644 GameServer/Data/ResourceManager.cs create mode 100644 GameServer/GameServer.csproj create mode 100644 GameServer/Program/EntryPoint.cs create mode 100644 LICENSE.txt create mode 100644 README.md create mode 100644 WebServer/Controllers/DispatchRoutes.cs create mode 100644 WebServer/Controllers/GateServerRoutes.cs create mode 100644 WebServer/Controllers/LogServerRoutes.cs create mode 100644 WebServer/Handler/ComboTokenGranterHandler.cs create mode 100644 WebServer/Handler/FingerprintHandler.cs create mode 100644 WebServer/Handler/QueryGatewayHandler.cs create mode 100644 WebServer/Handler/TokenLoginHandler.cs create mode 100644 WebServer/Handler/UsernameLoginHandler.cs create mode 100644 WebServer/Objects/ComboTokenResJson.cs create mode 100644 WebServer/Objects/LoginResJson.cs create mode 100644 WebServer/Objects/RequestBodies.cs create mode 100644 WebServer/Properties/launchSettings.json create mode 100644 WebServer/WebProgram.cs create mode 100644 WebServer/WebServer.csproj create mode 100644 WebServer/appsettings.Development.json create mode 100644 WebServer/appsettings.json create mode 100644 WebServer/certificate.p12 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..1ff0c423 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..dd4ff48d --- /dev/null +++ b/.gitignore @@ -0,0 +1,364 @@ +## 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 +/GameServer/OriginalProto diff --git a/Common/Common.csproj b/Common/Common.csproj new file mode 100644 index 00000000..f34b1b3b --- /dev/null +++ b/Common/Common.csproj @@ -0,0 +1,20 @@ + + + + net8.0 + enable + enable + EggLink.DanhengServer + + + + + + + + + + + + + diff --git a/Common/Configuration/ConfigContainer.cs b/Common/Configuration/ConfigContainer.cs new file mode 100644 index 00000000..6e7efa95 --- /dev/null +++ b/Common/Configuration/ConfigContainer.cs @@ -0,0 +1,89 @@ +using System.Collections.Generic; + +namespace EggLink.DanhengServer.Configuration +{ + public class ConfigContainer + { + public HttpServerConfig HttpServer { get; set; } = new HttpServerConfig(); + public KeyStoreConfig KeyStore { get; set; } = new KeyStoreConfig(); + public GameServerConfig GameServer { get; set; } = new GameServerConfig(); + public PathConfig Path { get; set; } = new PathConfig(); + public DatabaseConfig Database { get; set; } = new DatabaseConfig(); + public ServerOption ServerOption { get; set; } = new ServerOption(); + public DownloadUrlConfig DownloadUrl { get; set; } = new DownloadUrlConfig(); + } + + public class HttpServerConfig + { + public string BindAddress { get; set; } = "127.0.0.1"; + public int Port { get; set; } = 443; + public string PublicAddress { get; set; } = "127.0.0.1"; + public int PublicPort { get; set; } = 443; + public bool UseSSL { get; set; } = true; + public string GetDisplayAddress() + { + return (UseSSL ? "https" : "http") + "://" + PublicAddress + ":" + PublicPort; + } + } + + public class KeyStoreConfig + { + public string KeyStorePath { get; set; } = "certificate.p12"; + public string KeyStorePassword { get; set; } = "123456"; + } + + public class GameServerConfig + { + public string BindAddress { get; set; } = "127.0.0.1"; + public int Port { get; set; } = 23301; + public string PublicAddress { get; set; } = "127.0.0.1"; + public int PublicPort { get; set; } = 23301; + public string GameServerId { get; set; } = "dan_heng"; + public string GameServerName { get; set; } = "DanhengServer"; + public string GameServerDescription { get; set; } = "A re-implementation of StarRail server"; + public int KcpInterval { get; set; } = 40; + } + + public class PathConfig + { + public string ResourcePath { get; set; } = "Resources"; + public string ConfigPath { get; set; } = "Config"; + public string DatabasePath { get; set; } = "Config/Database"; + public string LogPath { get; set; } = "Logs"; + } + + public class DatabaseConfig + { + public string DatabaseType { get; set; } = "sqlite"; // only support sqlite for now + public string DatabaseName { get; set; } = "danheng.db"; + } + + public class ServerOption + { + public int StartTrailblazerLevel { get; set; } = 1; + public bool AutoUpgradeWorldLevel { get; set; } = true; + public string Language { get; set; } = "EN"; + public List DefaultPermissions { get; set; } = ["*"]; + public ServerProfile ServerProfile { get; set; } = new ServerProfile(); + public bool AutoCreateUser { get; set; } = true; + } + + public class ServerProfile + { + public string Name { get; set; } = "Server"; + public string Signature { get; set; } = "Type /help for a list of commands"; + public int Level { get; set; } = 1; + public int HeadIcon { get; set; } = 201001; + public int ChatBubbleId { get; set; } = 0; + public int DisplayAvatarId { get; set; } = 1001; + public int DisplayAvatarLevel { get; set; } = 1; + } + + public class DownloadUrlConfig + { + public string AssetBundleUrl { get; set; } = null; + public string ExResourceUrl { get; set; } = null; + public string LuaUrl { get; set; } = null; + public string IfixUrl { get; set; } = null; + } +} diff --git a/Common/Database/Account/AccountData.cs b/Common/Database/Account/AccountData.cs new file mode 100644 index 00000000..705d6289 --- /dev/null +++ b/Common/Database/Account/AccountData.cs @@ -0,0 +1,63 @@ +using EggLink.DanhengServer.Util; +using Microsoft.Data.Sqlite; + +namespace EggLink.DanhengServer.Database.Account +{ + [DatabaseEntity("account")] + public class AccountData(string username, long uid, string comboToken = "", string dispatchToken = "", string permissions = "") : BaseDatabaseData + { + public string Username { get; set; } = username; + public long Uid { get; set; } = uid; + public string ComboToken { get; set; } = comboToken; + public string DispatchToken { get; set; } = dispatchToken; + public string Permissions { get; set; } = permissions; // type: permission1,permission2,permission3... + + public static BaseDatabaseData? GetAccountByUserName(string username) + { + var connection = DatabaseHelper.Instance.connection; + var command = new SqliteCommand("SELECT * FROM account", connection); + var reader = command.ExecuteReader(); + AccountData? result = null; + while (reader.Read()) + { + if (reader.GetString(0) == username) + { + result = new(reader.GetString(0), reader.GetInt64(1), reader.GetString(2), reader.GetString(3), reader.GetString(4)); + break; + } + } + return result; + } + + public static BaseDatabaseData? GetAccountByUid(long uid) + { + var connection = DatabaseHelper.Instance.connection; + var command = new SqliteCommand("SELECT * FROM account", connection); + var reader = command.ExecuteReader(); + AccountData? result = null; + while (reader.Read()) + { + if (reader.GetInt64(1) == uid) + { + result = new(reader.GetString(0), reader.GetInt64(1), reader.GetString(2), reader.GetString(3), reader.GetString(4)); + break; + } + } + return result; + } + + public string GenerateDispatchToken() + { + DispatchToken = Crypto.CreateSessionKey(Uid.ToString()); + ModifyDatabase(Uid, "dispatchToken", DispatchToken); + return DispatchToken; + } + + public string GenerateComboToken() + { + ComboToken = Crypto.CreateSessionKey(Uid.ToString()); + ModifyDatabase(Uid, "comboToken", ComboToken); + return ComboToken; + } + } +} diff --git a/Common/Database/Account/AccountHelper.cs b/Common/Database/Account/AccountHelper.cs new file mode 100644 index 00000000..4304e0a8 --- /dev/null +++ b/Common/Database/Account/AccountHelper.cs @@ -0,0 +1,32 @@ +using EggLink.DanhengServer.Util; + +namespace EggLink.DanhengServer.Database.Account +{ + public static class AccountHelper + { + public static void CreateAccount(string username, long uid) + { + if (AccountData.GetAccountByUserName(username) != null) + { + throw new Exception("Account already exists"); + } + if (AccountData.GetAccountByUid(uid) != null) + { + + } + long newUid = uid; + if (uid == 0) + { + newUid = 10000; // start from 10000 + while (AccountData.GetAccountByUid(newUid) != null) + { + newUid++; + } + } + var per = ConfigManager.Config.ServerOption.DefaultPermissions; + var perStr = string.Join(",", per); + var account = new AccountData(username,newUid, permissions: perStr); + account.SaveToDatabase(); + } + } +} diff --git a/Common/Database/BaseDatabaseData.cs b/Common/Database/BaseDatabaseData.cs new file mode 100644 index 00000000..db5e4f24 --- /dev/null +++ b/Common/Database/BaseDatabaseData.cs @@ -0,0 +1,77 @@ +using Microsoft.Data.Sqlite; + +namespace EggLink.DanhengServer.Database +{ + public abstract class BaseDatabaseData + { + public void SaveToDatabase() + { + var connection = DatabaseHelper.Instance.connection; + var attributes = GetType().GetCustomAttributes(true); + string tableName = ""; + foreach ( var attribute in attributes ) + { + if (attribute is DatabaseEntity) + { + tableName = (attribute as DatabaseEntity).TableName; + break; + } + } + var command = new SqliteCommand($"INSERT INTO {tableName} (", connection); + var properties = GetType().GetProperties(); + foreach (var property in properties) + { + command.CommandText += $"{property.Name}, "; + } + command.CommandText = command.CommandText[..^2]; + command.CommandText += ") VALUES ("; + foreach (var property in properties) + { + command.CommandText += $"\"{property.GetValue(this)}\", "; + } + command.CommandText = command.CommandText[..^2]; + command.CommandText += ")"; + command.ExecuteNonQuery(); + } + + public void ModifyDatabase(long uid, string property, string value) + { + var connection = DatabaseHelper.Instance.connection; + var attributes = GetType().GetCustomAttributes(true); + string tableName = ""; + foreach ( var attribute in attributes ) + { + if (attribute is DatabaseEntity) + { + tableName = (attribute as DatabaseEntity).TableName; + break; + } + } + var command = new SqliteCommand($"UPDATE {tableName} SET \"{property}\" = \"{value}\" WHERE UID = {uid};", connection); + command.ExecuteNonQuery(); + } + + public void DeleteFromDatabase() + { + var connection = DatabaseHelper.Instance.connection; + var attributes = GetType().GetCustomAttributes(true); + string tableName = ""; + foreach ( var attribute in attributes ) + { + if (attribute is DatabaseEntity) + { + tableName = (attribute as DatabaseEntity).TableName; + break; + } + } + var command = new SqliteCommand($"DELETE FROM {tableName} WHERE ", connection); + var properties = GetType().GetProperties(); + foreach (var property in properties) + { + command.CommandText += $"{property.Name} = {property.GetValue(this)} AND "; + } + command.CommandText = command.CommandText[..^5]; + command.ExecuteNonQuery(); + } + } +} diff --git a/Common/Database/DatabaseEntity.cs b/Common/Database/DatabaseEntity.cs new file mode 100644 index 00000000..c4dd0e5a --- /dev/null +++ b/Common/Database/DatabaseEntity.cs @@ -0,0 +1,8 @@ +namespace EggLink.DanhengServer.Database +{ + [AttributeUsage(AttributeTargets.Class)] + public class DatabaseEntity(string tableName) : Attribute + { + public string TableName { get; set; } = tableName; + } +} diff --git a/Common/Database/DatabaseHelper.cs b/Common/Database/DatabaseHelper.cs new file mode 100644 index 00000000..6a3ce33f --- /dev/null +++ b/Common/Database/DatabaseHelper.cs @@ -0,0 +1,105 @@ +using EggLink.DanhengServer.Configuration; +using EggLink.DanhengServer.Util; +using Microsoft.Data.Sqlite; +using System.Reflection; + +namespace EggLink.DanhengServer.Database +{ + public class DatabaseHelper + { + public Logger logger = new("Database"); + public ConfigContainer config = ConfigManager.Config; + public SqliteConnection connection; + public static DatabaseHelper Instance; + + public DatabaseHelper() + { + var f = new FileInfo(config.Path.DatabasePath + "/" + config.Database.DatabaseName); + if (!f.Exists && f.Directory != null) + { + f.Directory.Create(); + } + connection = new SqliteConnection($"Data Source={f.FullName};"); + Instance = this; + } + public void Initialize() + { + logger.Info("Initializing database..."); + switch (config.Database.DatabaseType) + { + case "sqlite": + InitializeSqlite(); + break; + default: + logger.Error("Unsupported database type"); + break; + } + } + + public void InitializeSqlite() + { + SQLitePCL.Batteries.Init(); + connection.Open(); + var classes = Assembly.GetExecutingAssembly().GetTypes(); + foreach (var cls in classes) { + var attribute = (DatabaseEntity)Attribute.GetCustomAttribute(cls, typeof(DatabaseEntity)); + if (attribute != null) + { + var tableName = attribute.TableName; + var createTable = $"CREATE TABLE IF NOT EXISTS {tableName} ("; + var properties = cls.GetProperties(); + foreach (var property in properties) + { + createTable += $"{property.Name} {GetSqliteType(property.PropertyType)}, "; + } + createTable = createTable.Substring(0, createTable.Length - 2); + createTable += ")"; + var command = new SqliteCommand(createTable, connection); + command.ExecuteNonQuery(); + } + } + } + + private string GetSqliteType(Type propertyType) + { + if (propertyType == typeof(int)) + { + return "INTEGER"; + } + else if (propertyType == typeof(string)) + { + return "TEXT"; + } + else if (propertyType == typeof(bool)) + { + return "INTEGER"; + } + else if (propertyType == typeof(float)) + { + return "REAL"; + } + else if (propertyType == typeof(double)) + { + return "REAL"; + } + else if (propertyType == typeof(long)) + { + return "INTEGER"; + } + else if (propertyType == typeof(byte[])) + { + return "BLOB"; + } + else + { + logger.Error($"Unsupported type {propertyType}"); + return "TEXT"; + } + } + + public void Close() + { + connection.Close(); + } + } +} diff --git a/Common/Proto/ActivateFarmElementCsReq.cs b/Common/Proto/ActivateFarmElementCsReq.cs new file mode 100644 index 00000000..8700e648 --- /dev/null +++ b/Common/Proto/ActivateFarmElementCsReq.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ActivateFarmElementCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ActivateFarmElementCsReq.proto + public static partial class ActivateFarmElementCsReqReflection { + + #region Descriptor + /// File descriptor for ActivateFarmElementCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ActivateFarmElementCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5BY3RpdmF0ZUZhcm1FbGVtZW50Q3NSZXEucHJvdG8iQgoYQWN0aXZhdGVG", + "YXJtRWxlbWVudENzUmVxEhEKCWVudGl0eV9pZBgDIAEoDRITCgt3b3JsZF9s", + "ZXZlbBgFIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ActivateFarmElementCsReq), global::EggLink.DanhengServer.Proto.ActivateFarmElementCsReq.Parser, new[]{ "EntityId", "WorldLevel" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActivateFarmElementCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateFarmElementCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ActivateFarmElementCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateFarmElementCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateFarmElementCsReq(ActivateFarmElementCsReq other) : this() { + entityId_ = other.entityId_; + worldLevel_ = other.worldLevel_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateFarmElementCsReq Clone() { + return new ActivateFarmElementCsReq(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 3; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + /// Field number for the "world_level" field. + public const int WorldLevelFieldNumber = 5; + private uint worldLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WorldLevel { + get { return worldLevel_; } + set { + worldLevel_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivateFarmElementCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivateFarmElementCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntityId != other.EntityId) return false; + if (WorldLevel != other.WorldLevel) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (WorldLevel != 0) hash ^= WorldLevel.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntityId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(EntityId); + } + if (WorldLevel != 0) { + output.WriteRawTag(40); + output.WriteUInt32(WorldLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EntityId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(EntityId); + } + if (WorldLevel != 0) { + output.WriteRawTag(40); + output.WriteUInt32(WorldLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (WorldLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldLevel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivateFarmElementCsReq other) { + if (other == null) { + return; + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + if (other.WorldLevel != 0) { + WorldLevel = other.WorldLevel; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + EntityId = input.ReadUInt32(); + break; + } + case 40: { + WorldLevel = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + EntityId = input.ReadUInt32(); + break; + } + case 40: { + WorldLevel = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ActivateFarmElementScRsp.cs b/Common/Proto/ActivateFarmElementScRsp.cs new file mode 100644 index 00000000..b979aa61 --- /dev/null +++ b/Common/Proto/ActivateFarmElementScRsp.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ActivateFarmElementScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ActivateFarmElementScRsp.proto + public static partial class ActivateFarmElementScRspReflection { + + #region Descriptor + /// File descriptor for ActivateFarmElementScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ActivateFarmElementScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5BY3RpdmF0ZUZhcm1FbGVtZW50U2NSc3AucHJvdG8iUwoYQWN0aXZhdGVG", + "YXJtRWxlbWVudFNjUnNwEhMKC3dvcmxkX2xldmVsGAEgASgNEhEKCWVudGl0", + "eV9pZBgEIAEoDRIPCgdyZXRjb2RlGAUgASgNQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ActivateFarmElementScRsp), global::EggLink.DanhengServer.Proto.ActivateFarmElementScRsp.Parser, new[]{ "WorldLevel", "EntityId", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActivateFarmElementScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateFarmElementScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ActivateFarmElementScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateFarmElementScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateFarmElementScRsp(ActivateFarmElementScRsp other) : this() { + worldLevel_ = other.worldLevel_; + entityId_ = other.entityId_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateFarmElementScRsp Clone() { + return new ActivateFarmElementScRsp(this); + } + + /// Field number for the "world_level" field. + public const int WorldLevelFieldNumber = 1; + private uint worldLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WorldLevel { + get { return worldLevel_; } + set { + worldLevel_ = value; + } + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 4; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 5; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivateFarmElementScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivateFarmElementScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (WorldLevel != other.WorldLevel) return false; + if (EntityId != other.EntityId) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (WorldLevel != 0) hash ^= WorldLevel.GetHashCode(); + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (WorldLevel != 0) { + output.WriteRawTag(8); + output.WriteUInt32(WorldLevel); + } + if (EntityId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(EntityId); + } + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (WorldLevel != 0) { + output.WriteRawTag(8); + output.WriteUInt32(WorldLevel); + } + if (EntityId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(EntityId); + } + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (WorldLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldLevel); + } + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivateFarmElementScRsp other) { + if (other == null) { + return; + } + if (other.WorldLevel != 0) { + WorldLevel = other.WorldLevel; + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + WorldLevel = input.ReadUInt32(); + break; + } + case 32: { + EntityId = input.ReadUInt32(); + break; + } + case 40: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + WorldLevel = input.ReadUInt32(); + break; + } + case 32: { + EntityId = input.ReadUInt32(); + break; + } + case 40: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ActivityScheduleInfo.cs b/Common/Proto/ActivityScheduleInfo.cs new file mode 100644 index 00000000..1927ecbe --- /dev/null +++ b/Common/Proto/ActivityScheduleInfo.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ActivityScheduleInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ActivityScheduleInfo.proto + public static partial class ActivityScheduleInfoReflection { + + #region Descriptor + /// File descriptor for ActivityScheduleInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ActivityScheduleInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpBY3Rpdml0eVNjaGVkdWxlSW5mby5wcm90byJkChRBY3Rpdml0eVNjaGVk", + "dWxlSW5mbxITCgthY3Rpdml0eV9pZBgMIAEoDRIQCghlbmRfdGltZRgHIAEo", + "AxIRCgltb2R1bGVfaWQYBSABKA0SEgoKYmVnaW5fdGltZRgGIAEoA0IeqgIb", + "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ActivityScheduleInfo), global::EggLink.DanhengServer.Proto.ActivityScheduleInfo.Parser, new[]{ "ActivityId", "EndTime", "ModuleId", "BeginTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActivityScheduleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivityScheduleInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ActivityScheduleInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivityScheduleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivityScheduleInfo(ActivityScheduleInfo other) : this() { + activityId_ = other.activityId_; + endTime_ = other.endTime_; + moduleId_ = other.moduleId_; + beginTime_ = other.beginTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivityScheduleInfo Clone() { + return new ActivityScheduleInfo(this); + } + + /// Field number for the "activity_id" field. + public const int ActivityIdFieldNumber = 12; + private uint activityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ActivityId { + get { return activityId_; } + set { + activityId_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 7; + private long endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "module_id" field. + public const int ModuleIdFieldNumber = 5; + private uint moduleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ModuleId { + get { return moduleId_; } + set { + moduleId_ = value; + } + } + + /// Field number for the "begin_time" field. + public const int BeginTimeFieldNumber = 6; + private long beginTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BeginTime { + get { return beginTime_; } + set { + beginTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivityScheduleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivityScheduleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ActivityId != other.ActivityId) return false; + if (EndTime != other.EndTime) return false; + if (ModuleId != other.ModuleId) return false; + if (BeginTime != other.BeginTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ActivityId != 0) hash ^= ActivityId.GetHashCode(); + if (EndTime != 0L) hash ^= EndTime.GetHashCode(); + if (ModuleId != 0) hash ^= ModuleId.GetHashCode(); + if (BeginTime != 0L) hash ^= BeginTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ModuleId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(ModuleId); + } + if (BeginTime != 0L) { + output.WriteRawTag(48); + output.WriteInt64(BeginTime); + } + if (EndTime != 0L) { + output.WriteRawTag(56); + output.WriteInt64(EndTime); + } + if (ActivityId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(ActivityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ModuleId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(ModuleId); + } + if (BeginTime != 0L) { + output.WriteRawTag(48); + output.WriteInt64(BeginTime); + } + if (EndTime != 0L) { + output.WriteRawTag(56); + output.WriteInt64(EndTime); + } + if (ActivityId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(ActivityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ActivityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ActivityId); + } + if (EndTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime); + } + if (ModuleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ModuleId); + } + if (BeginTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivityScheduleInfo other) { + if (other == null) { + return; + } + if (other.ActivityId != 0) { + ActivityId = other.ActivityId; + } + if (other.EndTime != 0L) { + EndTime = other.EndTime; + } + if (other.ModuleId != 0) { + ModuleId = other.ModuleId; + } + if (other.BeginTime != 0L) { + BeginTime = other.BeginTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + ModuleId = input.ReadUInt32(); + break; + } + case 48: { + BeginTime = input.ReadInt64(); + break; + } + case 56: { + EndTime = input.ReadInt64(); + break; + } + case 96: { + ActivityId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + ModuleId = input.ReadUInt32(); + break; + } + case 48: { + BeginTime = input.ReadInt64(); + break; + } + case 56: { + EndTime = input.ReadInt64(); + break; + } + case 96: { + ActivityId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ApplyFriendCsReq.cs b/Common/Proto/ApplyFriendCsReq.cs new file mode 100644 index 00000000..3745b6ee --- /dev/null +++ b/Common/Proto/ApplyFriendCsReq.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ApplyFriendCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ApplyFriendCsReq.proto + public static partial class ApplyFriendCsReqReflection { + + #region Descriptor + /// File descriptor for ApplyFriendCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ApplyFriendCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZBcHBseUZyaWVuZENzUmVxLnByb3RvGhdGcmllbmRBcHBseVNvdXJjZS5w", + "cm90byJDChBBcHBseUZyaWVuZENzUmVxEgsKA3VpZBgFIAEoDRIiCgZzb3Vy", + "Y2UYDiABKA4yEi5GcmllbmRBcHBseVNvdXJjZUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.FriendApplySourceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ApplyFriendCsReq), global::EggLink.DanhengServer.Proto.ApplyFriendCsReq.Parser, new[]{ "Uid", "Source" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ApplyFriendCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApplyFriendCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ApplyFriendCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApplyFriendCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApplyFriendCsReq(ApplyFriendCsReq other) : this() { + uid_ = other.uid_; + source_ = other.source_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApplyFriendCsReq Clone() { + return new ApplyFriendCsReq(this); + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 5; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.FriendApplySource source_ = global::EggLink.DanhengServer.Proto.FriendApplySource.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.FriendApplySource Source { + get { return source_; } + set { + source_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ApplyFriendCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ApplyFriendCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uid != other.Uid) return false; + if (Source != other.Source) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Uid != 0) hash ^= Uid.GetHashCode(); + if (Source != global::EggLink.DanhengServer.Proto.FriendApplySource.None) hash ^= Source.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Uid != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Uid); + } + if (Source != global::EggLink.DanhengServer.Proto.FriendApplySource.None) { + output.WriteRawTag(112); + output.WriteEnum((int) Source); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Uid != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Uid); + } + if (Source != global::EggLink.DanhengServer.Proto.FriendApplySource.None) { + output.WriteRawTag(112); + output.WriteEnum((int) Source); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (Source != global::EggLink.DanhengServer.Proto.FriendApplySource.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ApplyFriendCsReq other) { + if (other == null) { + return; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + if (other.Source != global::EggLink.DanhengServer.Proto.FriendApplySource.None) { + Source = other.Source; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + Uid = input.ReadUInt32(); + break; + } + case 112: { + Source = (global::EggLink.DanhengServer.Proto.FriendApplySource) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + Uid = input.ReadUInt32(); + break; + } + case 112: { + Source = (global::EggLink.DanhengServer.Proto.FriendApplySource) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ArchiveData.cs b/Common/Proto/ArchiveData.cs new file mode 100644 index 00000000..9e144db0 --- /dev/null +++ b/Common/Proto/ArchiveData.cs @@ -0,0 +1,338 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ArchiveData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ArchiveData.proto + public static partial class ArchiveDataReflection { + + #region Descriptor + /// File descriptor for ArchiveData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ArchiveDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFBcmNoaXZlRGF0YS5wcm90bxoSUmVsaWNBcmNoaXZlLnByb3RvGhRNb25z", + "dGVyQXJjaGl2ZS5wcm90byLYAQoLQXJjaGl2ZURhdGESJgoeYXJjaGl2ZV9t", + "aXNzaW5nX2F2YXRhcl9pZF9saXN0GAcgAygNEikKIWFyY2hpdmVfbWlzc2lu", + "Z19lcXVpcG1lbnRfaWRfbGlzdBgLIAMoDRIwChdhcmNoaXZlX21vbnN0ZXJf", + "aWRfbGlzdBgOIAMoCzIPLk1vbnN0ZXJBcmNoaXZlEiEKCnJlbGljX2xpc3QY", + "ASADKAsyDS5SZWxpY0FyY2hpdmUSIQoZYXJjaGl2ZV9lcXVpcG1lbnRfaWRf", + "bGlzdBgEIAMoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RelicArchiveReflection.Descriptor, global::EggLink.DanhengServer.Proto.MonsterArchiveReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ArchiveData), global::EggLink.DanhengServer.Proto.ArchiveData.Parser, new[]{ "ArchiveMissingAvatarIdList", "ArchiveMissingEquipmentIdList", "ArchiveMonsterIdList", "RelicList", "ArchiveEquipmentIdList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ArchiveData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ArchiveData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ArchiveDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ArchiveData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ArchiveData(ArchiveData other) : this() { + archiveMissingAvatarIdList_ = other.archiveMissingAvatarIdList_.Clone(); + archiveMissingEquipmentIdList_ = other.archiveMissingEquipmentIdList_.Clone(); + archiveMonsterIdList_ = other.archiveMonsterIdList_.Clone(); + relicList_ = other.relicList_.Clone(); + archiveEquipmentIdList_ = other.archiveEquipmentIdList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ArchiveData Clone() { + return new ArchiveData(this); + } + + /// Field number for the "archive_missing_avatar_id_list" field. + public const int ArchiveMissingAvatarIdListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_archiveMissingAvatarIdList_codec + = pb::FieldCodec.ForUInt32(58); + private readonly pbc::RepeatedField archiveMissingAvatarIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ArchiveMissingAvatarIdList { + get { return archiveMissingAvatarIdList_; } + } + + /// Field number for the "archive_missing_equipment_id_list" field. + public const int ArchiveMissingEquipmentIdListFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_archiveMissingEquipmentIdList_codec + = pb::FieldCodec.ForUInt32(90); + private readonly pbc::RepeatedField archiveMissingEquipmentIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ArchiveMissingEquipmentIdList { + get { return archiveMissingEquipmentIdList_; } + } + + /// Field number for the "archive_monster_id_list" field. + public const int ArchiveMonsterIdListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_archiveMonsterIdList_codec + = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.MonsterArchive.Parser); + private readonly pbc::RepeatedField archiveMonsterIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ArchiveMonsterIdList { + get { return archiveMonsterIdList_; } + } + + /// Field number for the "relic_list" field. + public const int RelicListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_relicList_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.RelicArchive.Parser); + private readonly pbc::RepeatedField relicList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RelicList { + get { return relicList_; } + } + + /// Field number for the "archive_equipment_id_list" field. + public const int ArchiveEquipmentIdListFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_archiveEquipmentIdList_codec + = pb::FieldCodec.ForUInt32(34); + private readonly pbc::RepeatedField archiveEquipmentIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ArchiveEquipmentIdList { + get { return archiveEquipmentIdList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ArchiveData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ArchiveData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!archiveMissingAvatarIdList_.Equals(other.archiveMissingAvatarIdList_)) return false; + if(!archiveMissingEquipmentIdList_.Equals(other.archiveMissingEquipmentIdList_)) return false; + if(!archiveMonsterIdList_.Equals(other.archiveMonsterIdList_)) return false; + if(!relicList_.Equals(other.relicList_)) return false; + if(!archiveEquipmentIdList_.Equals(other.archiveEquipmentIdList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= archiveMissingAvatarIdList_.GetHashCode(); + hash ^= archiveMissingEquipmentIdList_.GetHashCode(); + hash ^= archiveMonsterIdList_.GetHashCode(); + hash ^= relicList_.GetHashCode(); + hash ^= archiveEquipmentIdList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + relicList_.WriteTo(output, _repeated_relicList_codec); + archiveEquipmentIdList_.WriteTo(output, _repeated_archiveEquipmentIdList_codec); + archiveMissingAvatarIdList_.WriteTo(output, _repeated_archiveMissingAvatarIdList_codec); + archiveMissingEquipmentIdList_.WriteTo(output, _repeated_archiveMissingEquipmentIdList_codec); + archiveMonsterIdList_.WriteTo(output, _repeated_archiveMonsterIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + relicList_.WriteTo(ref output, _repeated_relicList_codec); + archiveEquipmentIdList_.WriteTo(ref output, _repeated_archiveEquipmentIdList_codec); + archiveMissingAvatarIdList_.WriteTo(ref output, _repeated_archiveMissingAvatarIdList_codec); + archiveMissingEquipmentIdList_.WriteTo(ref output, _repeated_archiveMissingEquipmentIdList_codec); + archiveMonsterIdList_.WriteTo(ref output, _repeated_archiveMonsterIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += archiveMissingAvatarIdList_.CalculateSize(_repeated_archiveMissingAvatarIdList_codec); + size += archiveMissingEquipmentIdList_.CalculateSize(_repeated_archiveMissingEquipmentIdList_codec); + size += archiveMonsterIdList_.CalculateSize(_repeated_archiveMonsterIdList_codec); + size += relicList_.CalculateSize(_repeated_relicList_codec); + size += archiveEquipmentIdList_.CalculateSize(_repeated_archiveEquipmentIdList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ArchiveData other) { + if (other == null) { + return; + } + archiveMissingAvatarIdList_.Add(other.archiveMissingAvatarIdList_); + archiveMissingEquipmentIdList_.Add(other.archiveMissingEquipmentIdList_); + archiveMonsterIdList_.Add(other.archiveMonsterIdList_); + relicList_.Add(other.relicList_); + archiveEquipmentIdList_.Add(other.archiveEquipmentIdList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + relicList_.AddEntriesFrom(input, _repeated_relicList_codec); + break; + } + case 34: + case 32: { + archiveEquipmentIdList_.AddEntriesFrom(input, _repeated_archiveEquipmentIdList_codec); + break; + } + case 58: + case 56: { + archiveMissingAvatarIdList_.AddEntriesFrom(input, _repeated_archiveMissingAvatarIdList_codec); + break; + } + case 90: + case 88: { + archiveMissingEquipmentIdList_.AddEntriesFrom(input, _repeated_archiveMissingEquipmentIdList_codec); + break; + } + case 114: { + archiveMonsterIdList_.AddEntriesFrom(input, _repeated_archiveMonsterIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + relicList_.AddEntriesFrom(ref input, _repeated_relicList_codec); + break; + } + case 34: + case 32: { + archiveEquipmentIdList_.AddEntriesFrom(ref input, _repeated_archiveEquipmentIdList_codec); + break; + } + case 58: + case 56: { + archiveMissingAvatarIdList_.AddEntriesFrom(ref input, _repeated_archiveMissingAvatarIdList_codec); + break; + } + case 90: + case 88: { + archiveMissingEquipmentIdList_.AddEntriesFrom(ref input, _repeated_archiveMissingEquipmentIdList_codec); + break; + } + case 114: { + archiveMonsterIdList_.AddEntriesFrom(ref input, _repeated_archiveMonsterIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/AssistSimpleInfo.cs b/Common/Proto/AssistSimpleInfo.cs new file mode 100644 index 00000000..122177c4 --- /dev/null +++ b/Common/Proto/AssistSimpleInfo.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AssistSimpleInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from AssistSimpleInfo.proto + public static partial class AssistSimpleInfoReflection { + + #region Descriptor + /// File descriptor for AssistSimpleInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AssistSimpleInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZBc3Npc3RTaW1wbGVJbmZvLnByb3RvIloKEEFzc2lzdFNpbXBsZUluZm8S", + "EQoJYXZhdGFyX2lkGAcgASgNEgsKA3BvcxgEIAEoDRINCgVsZXZlbBgIIAEo", + "DRIXCg9kcmVzc2VkX3NraW5faWQYCyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVu", + "Z1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.AssistSimpleInfo), global::EggLink.DanhengServer.Proto.AssistSimpleInfo.Parser, new[]{ "AvatarId", "Pos", "Level", "DressedSkinId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AssistSimpleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssistSimpleInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.AssistSimpleInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AssistSimpleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AssistSimpleInfo(AssistSimpleInfo other) : this() { + avatarId_ = other.avatarId_; + pos_ = other.pos_; + level_ = other.level_; + dressedSkinId_ = other.dressedSkinId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AssistSimpleInfo Clone() { + return new AssistSimpleInfo(this); + } + + /// Field number for the "avatar_id" field. + public const int AvatarIdFieldNumber = 7; + private uint avatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AvatarId { + get { return avatarId_; } + set { + avatarId_ = value; + } + } + + /// Field number for the "pos" field. + public const int PosFieldNumber = 4; + private uint pos_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Pos { + get { return pos_; } + set { + pos_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 8; + 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 "dressed_skin_id" field. + public const int DressedSkinIdFieldNumber = 11; + private uint dressedSkinId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DressedSkinId { + get { return dressedSkinId_; } + set { + dressedSkinId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AssistSimpleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AssistSimpleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AvatarId != other.AvatarId) return false; + if (Pos != other.Pos) return false; + if (Level != other.Level) return false; + if (DressedSkinId != other.DressedSkinId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AvatarId != 0) hash ^= AvatarId.GetHashCode(); + if (Pos != 0) hash ^= Pos.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (DressedSkinId != 0) hash ^= DressedSkinId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Pos != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Pos); + } + if (AvatarId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(AvatarId); + } + if (Level != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Level); + } + if (DressedSkinId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(DressedSkinId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Pos != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Pos); + } + if (AvatarId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(AvatarId); + } + if (Level != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Level); + } + if (DressedSkinId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(DressedSkinId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AvatarId); + } + if (Pos != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Pos); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (DressedSkinId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DressedSkinId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AssistSimpleInfo other) { + if (other == null) { + return; + } + if (other.AvatarId != 0) { + AvatarId = other.AvatarId; + } + if (other.Pos != 0) { + Pos = other.Pos; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.DressedSkinId != 0) { + DressedSkinId = other.DressedSkinId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + Pos = input.ReadUInt32(); + break; + } + case 56: { + AvatarId = input.ReadUInt32(); + break; + } + case 64: { + Level = input.ReadUInt32(); + break; + } + case 88: { + DressedSkinId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + Pos = input.ReadUInt32(); + break; + } + case 56: { + AvatarId = input.ReadUInt32(); + break; + } + case 64: { + Level = input.ReadUInt32(); + break; + } + case 88: { + DressedSkinId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Avatar.cs b/Common/Proto/Avatar.cs new file mode 100644 index 00000000..87ee18a4 --- /dev/null +++ b/Common/Proto/Avatar.cs @@ -0,0 +1,579 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Avatar.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from Avatar.proto + public static partial class AvatarReflection { + + #region Descriptor + /// File descriptor for Avatar.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AvatarReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxBdmF0YXIucHJvdG8aFUF2YXRhclNraWxsVHJlZS5wcm90bxoQRXF1aXBS", + "ZWxpYy5wcm90byKYAgoGQXZhdGFyEigKDnNraWxsdHJlZV9saXN0GAsgAygL", + "MhAuQXZhdGFyU2tpbGxUcmVlEgsKA2V4cBgCIAEoDRIWCg5iYXNlX2F2YXRh", + "cl9pZBgFIAEoDRIMCgRyYW5rGAwgASgNEhcKD2RyZXNzZWRfc2tpbl9pZBgI", + "IAEoDRIbChNlcXVpcG1lbnRfdW5pcXVlX2lkGA8gASgNEiUKEGVxdWlwX3Jl", + "bGljX2xpc3QYCSADKAsyCy5FcXVpcFJlbGljEhUKDXRha2VuX3Jld2FyZHMY", + "CiADKA0SGwoTZmlyc3RfbWV0X3RpbWVzdGFtcBgGIAEoBBIRCglwcm9tb3Rp", + "b24YASABKA0SDQoFbGV2ZWwYByABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl", + "cnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AvatarSkillTreeReflection.Descriptor, global::EggLink.DanhengServer.Proto.EquipRelicReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Avatar), global::EggLink.DanhengServer.Proto.Avatar.Parser, new[]{ "SkilltreeList", "Exp", "BaseAvatarId", "Rank", "DressedSkinId", "EquipmentUniqueId", "EquipRelicList", "TakenRewards", "FirstMetTimestamp", "Promotion", "Level" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Avatar : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Avatar()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.AvatarReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Avatar() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Avatar(Avatar other) : this() { + skilltreeList_ = other.skilltreeList_.Clone(); + exp_ = other.exp_; + baseAvatarId_ = other.baseAvatarId_; + rank_ = other.rank_; + dressedSkinId_ = other.dressedSkinId_; + equipmentUniqueId_ = other.equipmentUniqueId_; + equipRelicList_ = other.equipRelicList_.Clone(); + takenRewards_ = other.takenRewards_.Clone(); + firstMetTimestamp_ = other.firstMetTimestamp_; + promotion_ = other.promotion_; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Avatar Clone() { + return new Avatar(this); + } + + /// Field number for the "skilltree_list" field. + public const int SkilltreeListFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_skilltreeList_codec + = pb::FieldCodec.ForMessage(90, global::EggLink.DanhengServer.Proto.AvatarSkillTree.Parser); + private readonly pbc::RepeatedField skilltreeList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SkilltreeList { + get { return skilltreeList_; } + } + + /// Field number for the "exp" field. + public const int ExpFieldNumber = 2; + private uint exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 5; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + /// Field number for the "rank" field. + public const int RankFieldNumber = 12; + private uint rank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Rank { + get { return rank_; } + set { + rank_ = value; + } + } + + /// Field number for the "dressed_skin_id" field. + public const int DressedSkinIdFieldNumber = 8; + private uint dressedSkinId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DressedSkinId { + get { return dressedSkinId_; } + set { + dressedSkinId_ = value; + } + } + + /// Field number for the "equipment_unique_id" field. + public const int EquipmentUniqueIdFieldNumber = 15; + private uint equipmentUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EquipmentUniqueId { + get { return equipmentUniqueId_; } + set { + equipmentUniqueId_ = value; + } + } + + /// Field number for the "equip_relic_list" field. + public const int EquipRelicListFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_equipRelicList_codec + = pb::FieldCodec.ForMessage(74, global::EggLink.DanhengServer.Proto.EquipRelic.Parser); + private readonly pbc::RepeatedField equipRelicList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EquipRelicList { + get { return equipRelicList_; } + } + + /// Field number for the "taken_rewards" field. + public const int TakenRewardsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_takenRewards_codec + = pb::FieldCodec.ForUInt32(82); + private readonly pbc::RepeatedField takenRewards_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TakenRewards { + get { return takenRewards_; } + } + + /// Field number for the "first_met_timestamp" field. + public const int FirstMetTimestampFieldNumber = 6; + private ulong firstMetTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong FirstMetTimestamp { + get { return firstMetTimestamp_; } + set { + firstMetTimestamp_ = value; + } + } + + /// Field number for the "promotion" field. + public const int PromotionFieldNumber = 1; + private uint promotion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Promotion { + get { return promotion_; } + set { + promotion_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 7; + 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 Avatar); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Avatar other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!skilltreeList_.Equals(other.skilltreeList_)) return false; + if (Exp != other.Exp) return false; + if (BaseAvatarId != other.BaseAvatarId) return false; + if (Rank != other.Rank) return false; + if (DressedSkinId != other.DressedSkinId) return false; + if (EquipmentUniqueId != other.EquipmentUniqueId) return false; + if(!equipRelicList_.Equals(other.equipRelicList_)) return false; + if(!takenRewards_.Equals(other.takenRewards_)) return false; + if (FirstMetTimestamp != other.FirstMetTimestamp) return false; + if (Promotion != other.Promotion) 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; + hash ^= skilltreeList_.GetHashCode(); + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (Rank != 0) hash ^= Rank.GetHashCode(); + if (DressedSkinId != 0) hash ^= DressedSkinId.GetHashCode(); + if (EquipmentUniqueId != 0) hash ^= EquipmentUniqueId.GetHashCode(); + hash ^= equipRelicList_.GetHashCode(); + hash ^= takenRewards_.GetHashCode(); + if (FirstMetTimestamp != 0UL) hash ^= FirstMetTimestamp.GetHashCode(); + if (Promotion != 0) hash ^= Promotion.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 (Promotion != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Promotion); + } + if (Exp != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Exp); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BaseAvatarId); + } + if (FirstMetTimestamp != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(FirstMetTimestamp); + } + if (Level != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Level); + } + if (DressedSkinId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(DressedSkinId); + } + equipRelicList_.WriteTo(output, _repeated_equipRelicList_codec); + takenRewards_.WriteTo(output, _repeated_takenRewards_codec); + skilltreeList_.WriteTo(output, _repeated_skilltreeList_codec); + if (Rank != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Rank); + } + if (EquipmentUniqueId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(EquipmentUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Promotion != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Promotion); + } + if (Exp != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Exp); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BaseAvatarId); + } + if (FirstMetTimestamp != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(FirstMetTimestamp); + } + if (Level != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Level); + } + if (DressedSkinId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(DressedSkinId); + } + equipRelicList_.WriteTo(ref output, _repeated_equipRelicList_codec); + takenRewards_.WriteTo(ref output, _repeated_takenRewards_codec); + skilltreeList_.WriteTo(ref output, _repeated_skilltreeList_codec); + if (Rank != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Rank); + } + if (EquipmentUniqueId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(EquipmentUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += skilltreeList_.CalculateSize(_repeated_skilltreeList_codec); + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Exp); + } + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (Rank != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rank); + } + if (DressedSkinId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DressedSkinId); + } + if (EquipmentUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EquipmentUniqueId); + } + size += equipRelicList_.CalculateSize(_repeated_equipRelicList_codec); + size += takenRewards_.CalculateSize(_repeated_takenRewards_codec); + if (FirstMetTimestamp != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(FirstMetTimestamp); + } + if (Promotion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Promotion); + } + 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(Avatar other) { + if (other == null) { + return; + } + skilltreeList_.Add(other.skilltreeList_); + if (other.Exp != 0) { + Exp = other.Exp; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + if (other.Rank != 0) { + Rank = other.Rank; + } + if (other.DressedSkinId != 0) { + DressedSkinId = other.DressedSkinId; + } + if (other.EquipmentUniqueId != 0) { + EquipmentUniqueId = other.EquipmentUniqueId; + } + equipRelicList_.Add(other.equipRelicList_); + takenRewards_.Add(other.takenRewards_); + if (other.FirstMetTimestamp != 0UL) { + FirstMetTimestamp = other.FirstMetTimestamp; + } + if (other.Promotion != 0) { + Promotion = other.Promotion; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Promotion = input.ReadUInt32(); + break; + } + case 16: { + Exp = input.ReadUInt32(); + break; + } + case 40: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 48: { + FirstMetTimestamp = input.ReadUInt64(); + break; + } + case 56: { + Level = input.ReadUInt32(); + break; + } + case 64: { + DressedSkinId = input.ReadUInt32(); + break; + } + case 74: { + equipRelicList_.AddEntriesFrom(input, _repeated_equipRelicList_codec); + break; + } + case 82: + case 80: { + takenRewards_.AddEntriesFrom(input, _repeated_takenRewards_codec); + break; + } + case 90: { + skilltreeList_.AddEntriesFrom(input, _repeated_skilltreeList_codec); + break; + } + case 96: { + Rank = input.ReadUInt32(); + break; + } + case 120: { + EquipmentUniqueId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Promotion = input.ReadUInt32(); + break; + } + case 16: { + Exp = input.ReadUInt32(); + break; + } + case 40: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 48: { + FirstMetTimestamp = input.ReadUInt64(); + break; + } + case 56: { + Level = input.ReadUInt32(); + break; + } + case 64: { + DressedSkinId = input.ReadUInt32(); + break; + } + case 74: { + equipRelicList_.AddEntriesFrom(ref input, _repeated_equipRelicList_codec); + break; + } + case 82: + case 80: { + takenRewards_.AddEntriesFrom(ref input, _repeated_takenRewards_codec); + break; + } + case 90: { + skilltreeList_.AddEntriesFrom(ref input, _repeated_skilltreeList_codec); + break; + } + case 96: { + Rank = input.ReadUInt32(); + break; + } + case 120: { + EquipmentUniqueId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/AvatarBattleInfo.cs b/Common/Proto/AvatarBattleInfo.cs new file mode 100644 index 00000000..15154f56 --- /dev/null +++ b/Common/Proto/AvatarBattleInfo.cs @@ -0,0 +1,432 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AvatarBattleInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from AvatarBattleInfo.proto + public static partial class AvatarBattleInfoReflection { + + #region Descriptor + /// File descriptor for AvatarBattleInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AvatarBattleInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZBdmF0YXJCYXR0bGVJbmZvLnByb3RvGhRBdmF0YXJQcm9wZXJ0eS5wcm90", + "bxoQQXZhdGFyVHlwZS5wcm90byKtAQoQQXZhdGFyQmF0dGxlSW5mbxIgCgth", + "dmF0YXJfdHlwZRgBIAEoDjILLkF2YXRhclR5cGUSCgoCaWQYAiABKA0SFAoM", + "YXZhdGFyX2xldmVsGAMgASgNEhMKC2F2YXRhcl9yYW5rGAQgASgNEhgKEGF2", + "YXRhcl9wcm9tb3Rpb24YBSABKA0SJgoNYXZhdGFyX3N0YXR1cxgGIAEoCzIP", + "LkF2YXRhclByb3BlcnR5Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJv", + "dG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AvatarPropertyReflection.Descriptor, global::EggLink.DanhengServer.Proto.AvatarTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.AvatarBattleInfo), global::EggLink.DanhengServer.Proto.AvatarBattleInfo.Parser, new[]{ "AvatarType", "Id", "AvatarLevel", "AvatarRank", "AvatarPromotion", "AvatarStatus" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AvatarBattleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AvatarBattleInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.AvatarBattleInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarBattleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarBattleInfo(AvatarBattleInfo other) : this() { + avatarType_ = other.avatarType_; + id_ = other.id_; + avatarLevel_ = other.avatarLevel_; + avatarRank_ = other.avatarRank_; + avatarPromotion_ = other.avatarPromotion_; + avatarStatus_ = other.avatarStatus_ != null ? other.avatarStatus_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarBattleInfo Clone() { + return new AvatarBattleInfo(this); + } + + /// Field number for the "avatar_type" field. + public const int AvatarTypeFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.AvatarType avatarType_ = global::EggLink.DanhengServer.Proto.AvatarType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.AvatarType AvatarType { + get { return avatarType_; } + set { + avatarType_ = 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; + } + } + + /// Field number for the "avatar_level" field. + public const int AvatarLevelFieldNumber = 3; + private uint avatarLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AvatarLevel { + get { return avatarLevel_; } + set { + avatarLevel_ = value; + } + } + + /// Field number for the "avatar_rank" field. + public const int AvatarRankFieldNumber = 4; + private uint avatarRank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AvatarRank { + get { return avatarRank_; } + set { + avatarRank_ = value; + } + } + + /// Field number for the "avatar_promotion" field. + public const int AvatarPromotionFieldNumber = 5; + private uint avatarPromotion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AvatarPromotion { + get { return avatarPromotion_; } + set { + avatarPromotion_ = value; + } + } + + /// Field number for the "avatar_status" field. + public const int AvatarStatusFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.AvatarProperty avatarStatus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.AvatarProperty AvatarStatus { + get { return avatarStatus_; } + set { + avatarStatus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AvatarBattleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AvatarBattleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AvatarType != other.AvatarType) return false; + if (Id != other.Id) return false; + if (AvatarLevel != other.AvatarLevel) return false; + if (AvatarRank != other.AvatarRank) return false; + if (AvatarPromotion != other.AvatarPromotion) return false; + if (!object.Equals(AvatarStatus, other.AvatarStatus)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) hash ^= AvatarType.GetHashCode(); + if (Id != 0) hash ^= Id.GetHashCode(); + if (AvatarLevel != 0) hash ^= AvatarLevel.GetHashCode(); + if (AvatarRank != 0) hash ^= AvatarRank.GetHashCode(); + if (AvatarPromotion != 0) hash ^= AvatarPromotion.GetHashCode(); + if (avatarStatus_ != null) hash ^= AvatarStatus.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(8); + output.WriteEnum((int) AvatarType); + } + if (Id != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Id); + } + if (AvatarLevel != 0) { + output.WriteRawTag(24); + output.WriteUInt32(AvatarLevel); + } + if (AvatarRank != 0) { + output.WriteRawTag(32); + output.WriteUInt32(AvatarRank); + } + if (AvatarPromotion != 0) { + output.WriteRawTag(40); + output.WriteUInt32(AvatarPromotion); + } + if (avatarStatus_ != null) { + output.WriteRawTag(50); + output.WriteMessage(AvatarStatus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(8); + output.WriteEnum((int) AvatarType); + } + if (Id != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Id); + } + if (AvatarLevel != 0) { + output.WriteRawTag(24); + output.WriteUInt32(AvatarLevel); + } + if (AvatarRank != 0) { + output.WriteRawTag(32); + output.WriteUInt32(AvatarRank); + } + if (AvatarPromotion != 0) { + output.WriteRawTag(40); + output.WriteUInt32(AvatarPromotion); + } + if (avatarStatus_ != null) { + output.WriteRawTag(50); + output.WriteMessage(AvatarStatus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AvatarType); + } + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (AvatarLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AvatarLevel); + } + if (AvatarRank != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AvatarRank); + } + if (AvatarPromotion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AvatarPromotion); + } + if (avatarStatus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AvatarStatus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AvatarBattleInfo other) { + if (other == null) { + return; + } + if (other.AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + AvatarType = other.AvatarType; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.AvatarLevel != 0) { + AvatarLevel = other.AvatarLevel; + } + if (other.AvatarRank != 0) { + AvatarRank = other.AvatarRank; + } + if (other.AvatarPromotion != 0) { + AvatarPromotion = other.AvatarPromotion; + } + if (other.avatarStatus_ != null) { + if (avatarStatus_ == null) { + AvatarStatus = new global::EggLink.DanhengServer.Proto.AvatarProperty(); + } + AvatarStatus.MergeFrom(other.AvatarStatus); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 16: { + Id = input.ReadUInt32(); + break; + } + case 24: { + AvatarLevel = input.ReadUInt32(); + break; + } + case 32: { + AvatarRank = input.ReadUInt32(); + break; + } + case 40: { + AvatarPromotion = input.ReadUInt32(); + break; + } + case 50: { + if (avatarStatus_ == null) { + AvatarStatus = new global::EggLink.DanhengServer.Proto.AvatarProperty(); + } + input.ReadMessage(AvatarStatus); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 16: { + Id = input.ReadUInt32(); + break; + } + case 24: { + AvatarLevel = input.ReadUInt32(); + break; + } + case 32: { + AvatarRank = input.ReadUInt32(); + break; + } + case 40: { + AvatarPromotion = input.ReadUInt32(); + break; + } + case 50: { + if (avatarStatus_ == null) { + AvatarStatus = new global::EggLink.DanhengServer.Proto.AvatarProperty(); + } + input.ReadMessage(AvatarStatus); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/AvatarExpUpCsReq.cs b/Common/Proto/AvatarExpUpCsReq.cs new file mode 100644 index 00000000..818c597f --- /dev/null +++ b/Common/Proto/AvatarExpUpCsReq.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AvatarExpUpCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from AvatarExpUpCsReq.proto + public static partial class AvatarExpUpCsReqReflection { + + #region Descriptor + /// File descriptor for AvatarExpUpCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AvatarExpUpCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZBdmF0YXJFeHBVcENzUmVxLnByb3RvGhJJdGVtQ29zdExpc3QucHJvdG8i", + "UQoQQXZhdGFyRXhwVXBDc1JlcRIlCg5pdGVtX2Nvc3RfbGlzdBgDIAEoCzIN", + "Lkl0ZW1Db3N0TGlzdBIWCg5iYXNlX2F2YXRhcl9pZBgJIAEoDUIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.AvatarExpUpCsReq), global::EggLink.DanhengServer.Proto.AvatarExpUpCsReq.Parser, new[]{ "ItemCostList", "BaseAvatarId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AvatarExpUpCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AvatarExpUpCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.AvatarExpUpCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarExpUpCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarExpUpCsReq(AvatarExpUpCsReq other) : this() { + itemCostList_ = other.itemCostList_ != null ? other.itemCostList_.Clone() : null; + baseAvatarId_ = other.baseAvatarId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarExpUpCsReq Clone() { + return new AvatarExpUpCsReq(this); + } + + /// Field number for the "item_cost_list" field. + public const int ItemCostListFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.ItemCostList itemCostList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList ItemCostList { + get { return itemCostList_; } + set { + itemCostList_ = value; + } + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 9; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AvatarExpUpCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AvatarExpUpCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ItemCostList, other.ItemCostList)) return false; + if (BaseAvatarId != other.BaseAvatarId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (itemCostList_ != null) hash ^= ItemCostList.GetHashCode(); + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (itemCostList_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ItemCostList); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (itemCostList_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ItemCostList); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (itemCostList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemCostList); + } + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AvatarExpUpCsReq other) { + if (other == null) { + return; + } + if (other.itemCostList_ != null) { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + ItemCostList.MergeFrom(other.ItemCostList); + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + case 72: { + BaseAvatarId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + case 72: { + BaseAvatarId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/AvatarExpUpScRsp.cs b/Common/Proto/AvatarExpUpScRsp.cs new file mode 100644 index 00000000..9c6d0ca9 --- /dev/null +++ b/Common/Proto/AvatarExpUpScRsp.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AvatarExpUpScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from AvatarExpUpScRsp.proto + public static partial class AvatarExpUpScRspReflection { + + #region Descriptor + /// File descriptor for AvatarExpUpScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AvatarExpUpScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZBdmF0YXJFeHBVcFNjUnNwLnByb3RvGg5QaWxlSXRlbS5wcm90byJIChBB", + "dmF0YXJFeHBVcFNjUnNwEg8KB3JldGNvZGUYDSABKA0SIwoQcmV0dXJuX2l0", + "ZW1fbGlzdBgKIAMoCzIJLlBpbGVJdGVtQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PileItemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.AvatarExpUpScRsp), global::EggLink.DanhengServer.Proto.AvatarExpUpScRsp.Parser, new[]{ "Retcode", "ReturnItemList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AvatarExpUpScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AvatarExpUpScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.AvatarExpUpScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarExpUpScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarExpUpScRsp(AvatarExpUpScRsp other) : this() { + retcode_ = other.retcode_; + returnItemList_ = other.returnItemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarExpUpScRsp Clone() { + return new AvatarExpUpScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 13; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "return_item_list" field. + public const int ReturnItemListFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_returnItemList_codec + = pb::FieldCodec.ForMessage(82, global::EggLink.DanhengServer.Proto.PileItem.Parser); + private readonly pbc::RepeatedField returnItemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ReturnItemList { + get { return returnItemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AvatarExpUpScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AvatarExpUpScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if(!returnItemList_.Equals(other.returnItemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= returnItemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + returnItemList_.WriteTo(output, _repeated_returnItemList_codec); + if (Retcode != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + returnItemList_.WriteTo(ref output, _repeated_returnItemList_codec); + if (Retcode != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += returnItemList_.CalculateSize(_repeated_returnItemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AvatarExpUpScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + returnItemList_.Add(other.returnItemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 82: { + returnItemList_.AddEntriesFrom(input, _repeated_returnItemList_codec); + break; + } + case 104: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 82: { + returnItemList_.AddEntriesFrom(ref input, _repeated_returnItemList_codec); + break; + } + case 104: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/AvatarProperty.cs b/Common/Proto/AvatarProperty.cs new file mode 100644 index 00000000..ccf92396 --- /dev/null +++ b/Common/Proto/AvatarProperty.cs @@ -0,0 +1,458 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AvatarProperty.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from AvatarProperty.proto + public static partial class AvatarPropertyReflection { + + #region Descriptor + /// File descriptor for AvatarProperty.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AvatarPropertyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRBdmF0YXJQcm9wZXJ0eS5wcm90byKCAQoOQXZhdGFyUHJvcGVydHkSDgoG", + "bWF4X2hwGAEgASgBEg4KBmF0dGFjaxgCIAEoARIPCgdkZWZlbmNlGAMgASgB", + "Eg0KBXNwZWVkGAQgASgBEg8KB2xlZnRfaHAYBSABKAESDwoHbGVmdF9zcBgG", + "IAEoARIOCgZtYXhfc3AYByABKAFCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl", + "ci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.AvatarProperty), global::EggLink.DanhengServer.Proto.AvatarProperty.Parser, new[]{ "MaxHp", "Attack", "Defence", "Speed", "LeftHp", "LeftSp", "MaxSp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AvatarProperty : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AvatarProperty()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.AvatarPropertyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarProperty() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarProperty(AvatarProperty other) : this() { + maxHp_ = other.maxHp_; + attack_ = other.attack_; + defence_ = other.defence_; + speed_ = other.speed_; + leftHp_ = other.leftHp_; + leftSp_ = other.leftSp_; + maxSp_ = other.maxSp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarProperty Clone() { + return new AvatarProperty(this); + } + + /// Field number for the "max_hp" field. + public const int MaxHpFieldNumber = 1; + private double maxHp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double MaxHp { + get { return maxHp_; } + set { + maxHp_ = value; + } + } + + /// Field number for the "attack" field. + public const int AttackFieldNumber = 2; + private double attack_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Attack { + get { return attack_; } + set { + attack_ = value; + } + } + + /// Field number for the "defence" field. + public const int DefenceFieldNumber = 3; + private double defence_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Defence { + get { return defence_; } + set { + defence_ = value; + } + } + + /// Field number for the "speed" field. + public const int SpeedFieldNumber = 4; + private double speed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Speed { + get { return speed_; } + set { + speed_ = value; + } + } + + /// Field number for the "left_hp" field. + public const int LeftHpFieldNumber = 5; + private double leftHp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double LeftHp { + get { return leftHp_; } + set { + leftHp_ = value; + } + } + + /// Field number for the "left_sp" field. + public const int LeftSpFieldNumber = 6; + private double leftSp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double LeftSp { + get { return leftSp_; } + set { + leftSp_ = value; + } + } + + /// Field number for the "max_sp" field. + public const int MaxSpFieldNumber = 7; + private double maxSp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double MaxSp { + get { return maxSp_; } + set { + maxSp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AvatarProperty); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AvatarProperty other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxHp, other.MaxHp)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Attack, other.Attack)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Defence, other.Defence)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Speed, other.Speed)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LeftHp, other.LeftHp)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LeftSp, other.LeftSp)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxSp, other.MaxSp)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MaxHp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxHp); + if (Attack != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Attack); + if (Defence != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Defence); + if (Speed != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Speed); + if (LeftHp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LeftHp); + if (LeftSp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LeftSp); + if (MaxSp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxSp); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MaxHp != 0D) { + output.WriteRawTag(9); + output.WriteDouble(MaxHp); + } + if (Attack != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Attack); + } + if (Defence != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Defence); + } + if (Speed != 0D) { + output.WriteRawTag(33); + output.WriteDouble(Speed); + } + if (LeftHp != 0D) { + output.WriteRawTag(41); + output.WriteDouble(LeftHp); + } + if (LeftSp != 0D) { + output.WriteRawTag(49); + output.WriteDouble(LeftSp); + } + if (MaxSp != 0D) { + output.WriteRawTag(57); + output.WriteDouble(MaxSp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MaxHp != 0D) { + output.WriteRawTag(9); + output.WriteDouble(MaxHp); + } + if (Attack != 0D) { + output.WriteRawTag(17); + output.WriteDouble(Attack); + } + if (Defence != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Defence); + } + if (Speed != 0D) { + output.WriteRawTag(33); + output.WriteDouble(Speed); + } + if (LeftHp != 0D) { + output.WriteRawTag(41); + output.WriteDouble(LeftHp); + } + if (LeftSp != 0D) { + output.WriteRawTag(49); + output.WriteDouble(LeftSp); + } + if (MaxSp != 0D) { + output.WriteRawTag(57); + output.WriteDouble(MaxSp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MaxHp != 0D) { + size += 1 + 8; + } + if (Attack != 0D) { + size += 1 + 8; + } + if (Defence != 0D) { + size += 1 + 8; + } + if (Speed != 0D) { + size += 1 + 8; + } + if (LeftHp != 0D) { + size += 1 + 8; + } + if (LeftSp != 0D) { + size += 1 + 8; + } + if (MaxSp != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AvatarProperty other) { + if (other == null) { + return; + } + if (other.MaxHp != 0D) { + MaxHp = other.MaxHp; + } + if (other.Attack != 0D) { + Attack = other.Attack; + } + if (other.Defence != 0D) { + Defence = other.Defence; + } + if (other.Speed != 0D) { + Speed = other.Speed; + } + if (other.LeftHp != 0D) { + LeftHp = other.LeftHp; + } + if (other.LeftSp != 0D) { + LeftSp = other.LeftSp; + } + if (other.MaxSp != 0D) { + MaxSp = other.MaxSp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9: { + MaxHp = input.ReadDouble(); + break; + } + case 17: { + Attack = input.ReadDouble(); + break; + } + case 25: { + Defence = input.ReadDouble(); + break; + } + case 33: { + Speed = input.ReadDouble(); + break; + } + case 41: { + LeftHp = input.ReadDouble(); + break; + } + case 49: { + LeftSp = input.ReadDouble(); + break; + } + case 57: { + MaxSp = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9: { + MaxHp = input.ReadDouble(); + break; + } + case 17: { + Attack = input.ReadDouble(); + break; + } + case 25: { + Defence = input.ReadDouble(); + break; + } + case 33: { + Speed = input.ReadDouble(); + break; + } + case 41: { + LeftHp = input.ReadDouble(); + break; + } + case 49: { + LeftSp = input.ReadDouble(); + break; + } + case 57: { + MaxSp = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/AvatarSkillTree.cs b/Common/Proto/AvatarSkillTree.cs new file mode 100644 index 00000000..1af33280 --- /dev/null +++ b/Common/Proto/AvatarSkillTree.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AvatarSkillTree.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from AvatarSkillTree.proto + public static partial class AvatarSkillTreeReflection { + + #region Descriptor + /// File descriptor for AvatarSkillTree.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AvatarSkillTreeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVBdmF0YXJTa2lsbFRyZWUucHJvdG8iMgoPQXZhdGFyU2tpbGxUcmVlEhAK", + "CHBvaW50X2lkGAEgASgNEg0KBWxldmVsGAIgASgNQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.AvatarSkillTree), global::EggLink.DanhengServer.Proto.AvatarSkillTree.Parser, new[]{ "PointId", "Level" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AvatarSkillTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AvatarSkillTree()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.AvatarSkillTreeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarSkillTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarSkillTree(AvatarSkillTree other) : this() { + pointId_ = other.pointId_; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarSkillTree Clone() { + return new AvatarSkillTree(this); + } + + /// Field number for the "point_id" field. + public const int PointIdFieldNumber = 1; + private uint pointId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PointId { + get { return pointId_; } + set { + pointId_ = 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 AvatarSkillTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AvatarSkillTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PointId != other.PointId) 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 (PointId != 0) hash ^= PointId.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 (PointId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(PointId); + } + 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 (PointId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(PointId); + } + 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 (PointId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PointId); + } + 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(AvatarSkillTree other) { + if (other == null) { + return; + } + if (other.PointId != 0) { + PointId = other.PointId; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + PointId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PointId = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/AvatarSync.cs b/Common/Proto/AvatarSync.cs new file mode 100644 index 00000000..11f88018 --- /dev/null +++ b/Common/Proto/AvatarSync.cs @@ -0,0 +1,223 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AvatarSync.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from AvatarSync.proto + public static partial class AvatarSyncReflection { + + #region Descriptor + /// File descriptor for AvatarSync.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AvatarSyncReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBBdmF0YXJTeW5jLnByb3RvGgxBdmF0YXIucHJvdG8iKgoKQXZhdGFyU3lu", + "YxIcCgthdmF0YXJfbGlzdBgJIAMoCzIHLkF2YXRhckIeqgIbRWdnTGluay5E", + "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AvatarReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.AvatarSync), global::EggLink.DanhengServer.Proto.AvatarSync.Parser, new[]{ "AvatarList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AvatarSync : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AvatarSync()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.AvatarSyncReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarSync() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarSync(AvatarSync other) : this() { + avatarList_ = other.avatarList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AvatarSync Clone() { + return new AvatarSync(this); + } + + /// Field number for the "avatar_list" field. + public const int AvatarListFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_avatarList_codec + = pb::FieldCodec.ForMessage(74, global::EggLink.DanhengServer.Proto.Avatar.Parser); + private readonly pbc::RepeatedField avatarList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AvatarList { + get { return avatarList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AvatarSync); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AvatarSync other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!avatarList_.Equals(other.avatarList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= avatarList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + avatarList_.WriteTo(output, _repeated_avatarList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + avatarList_.WriteTo(ref output, _repeated_avatarList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += avatarList_.CalculateSize(_repeated_avatarList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AvatarSync other) { + if (other == null) { + return; + } + avatarList_.Add(other.avatarList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 74: { + avatarList_.AddEntriesFrom(input, _repeated_avatarList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 74: { + avatarList_.AddEntriesFrom(ref input, _repeated_avatarList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/AvatarType.cs b/Common/Proto/AvatarType.cs new file mode 100644 index 00000000..024a4ea9 --- /dev/null +++ b/Common/Proto/AvatarType.cs @@ -0,0 +1,52 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AvatarType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from AvatarType.proto + public static partial class AvatarTypeReflection { + + #region Descriptor + /// File descriptor for AvatarType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AvatarTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBBdmF0YXJUeXBlLnByb3RvKoABCgpBdmF0YXJUeXBlEhQKEEFWQVRBUl9U", + "WVBFX05PTkUQABIVChFBVkFUQVJfVFJJQUxfVFlQRRABEhUKEUFWQVRBUl9M", + "SU1JVF9UWVBFEAISFgoSQVZBVEFSX0ZPUk1BTF9UWVBFEAMSFgoSQVZBVEFS", + "X0FTU0lTVF9UWVBFEARCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90", + "b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.AvatarType), }, null, null)); + } + #endregion + + } + #region Enums + public enum AvatarType { + [pbr::OriginalName("AVATAR_TYPE_NONE")] None = 0, + [pbr::OriginalName("AVATAR_TRIAL_TYPE")] AvatarTrialType = 1, + [pbr::OriginalName("AVATAR_LIMIT_TYPE")] AvatarLimitType = 2, + [pbr::OriginalName("AVATAR_FORMAL_TYPE")] AvatarFormalType = 3, + [pbr::OriginalName("AVATAR_ASSIST_TYPE")] AvatarAssistType = 4, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleAvatar.cs b/Common/Proto/BattleAvatar.cs new file mode 100644 index 00000000..12ff4101 --- /dev/null +++ b/Common/Proto/BattleAvatar.cs @@ -0,0 +1,662 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleAvatar.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleAvatar.proto + public static partial class BattleAvatarReflection { + + #region Descriptor + /// File descriptor for BattleAvatar.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleAvatarReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJCYXR0bGVBdmF0YXIucHJvdG8aFUJhdHRsZUVxdWlwbWVudC5wcm90bxoV", + "QXZhdGFyU2tpbGxUcmVlLnByb3RvGhBBdmF0YXJUeXBlLnByb3RvGhFCYXR0", + "bGVSZWxpYy5wcm90bxoPU3BCYXJJbmZvLnByb3RvIsICCgxCYXR0bGVBdmF0", + "YXISIAoLYXZhdGFyX3R5cGUYASABKA4yCy5BdmF0YXJUeXBlEgoKAmlkGAIg", + "ASgNEg0KBWxldmVsGAMgASgNEgwKBHJhbmsYBCABKA0SDQoFaW5kZXgYBSAB", + "KA0SKAoOc2tpbGx0cmVlX2xpc3QYBiADKAsyEC5BdmF0YXJTa2lsbFRyZWUS", + "KAoOZXF1aXBtZW50X2xpc3QYByADKAsyEC5CYXR0bGVFcXVpcG1lbnQSCgoC", + "aHAYCCABKA0SEQoJcHJvbW90aW9uGAogASgNEiAKCnJlbGljX2xpc3QYCyAD", + "KAsyDC5CYXR0bGVSZWxpYxITCgt3b3JsZF9sZXZlbBgMIAEoDRISCgphc3Np", + "c3RfdWlkGA0gASgNEhoKBnNwX2JhchgQIAEoCzIKLlNwQmFySW5mb0IeqgIb", + "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BattleEquipmentReflection.Descriptor, global::EggLink.DanhengServer.Proto.AvatarSkillTreeReflection.Descriptor, global::EggLink.DanhengServer.Proto.AvatarTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleRelicReflection.Descriptor, global::EggLink.DanhengServer.Proto.SpBarInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleAvatar), global::EggLink.DanhengServer.Proto.BattleAvatar.Parser, new[]{ "AvatarType", "Id", "Level", "Rank", "Index", "SkilltreeList", "EquipmentList", "Hp", "Promotion", "RelicList", "WorldLevel", "AssistUid", "SpBar" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleAvatar : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleAvatar()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattleAvatarReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleAvatar() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleAvatar(BattleAvatar other) : this() { + avatarType_ = other.avatarType_; + id_ = other.id_; + level_ = other.level_; + rank_ = other.rank_; + index_ = other.index_; + skilltreeList_ = other.skilltreeList_.Clone(); + equipmentList_ = other.equipmentList_.Clone(); + hp_ = other.hp_; + promotion_ = other.promotion_; + relicList_ = other.relicList_.Clone(); + worldLevel_ = other.worldLevel_; + assistUid_ = other.assistUid_; + spBar_ = other.spBar_ != null ? other.spBar_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleAvatar Clone() { + return new BattleAvatar(this); + } + + /// Field number for the "avatar_type" field. + public const int AvatarTypeFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.AvatarType avatarType_ = global::EggLink.DanhengServer.Proto.AvatarType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.AvatarType AvatarType { + get { return avatarType_; } + set { + avatarType_ = 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; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 3; + 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 "rank" field. + public const int RankFieldNumber = 4; + private uint rank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Rank { + get { return rank_; } + set { + rank_ = value; + } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 5; + private uint index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "skilltree_list" field. + public const int SkilltreeListFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_skilltreeList_codec + = pb::FieldCodec.ForMessage(50, global::EggLink.DanhengServer.Proto.AvatarSkillTree.Parser); + private readonly pbc::RepeatedField skilltreeList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SkilltreeList { + get { return skilltreeList_; } + } + + /// Field number for the "equipment_list" field. + public const int EquipmentListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_equipmentList_codec + = pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.BattleEquipment.Parser); + private readonly pbc::RepeatedField equipmentList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EquipmentList { + get { return equipmentList_; } + } + + /// Field number for the "hp" field. + public const int HpFieldNumber = 8; + private uint hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Hp { + get { return hp_; } + set { + hp_ = value; + } + } + + /// Field number for the "promotion" field. + public const int PromotionFieldNumber = 10; + private uint promotion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Promotion { + get { return promotion_; } + set { + promotion_ = value; + } + } + + /// Field number for the "relic_list" field. + public const int RelicListFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_relicList_codec + = pb::FieldCodec.ForMessage(90, global::EggLink.DanhengServer.Proto.BattleRelic.Parser); + private readonly pbc::RepeatedField relicList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RelicList { + get { return relicList_; } + } + + /// Field number for the "world_level" field. + public const int WorldLevelFieldNumber = 12; + private uint worldLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WorldLevel { + get { return worldLevel_; } + set { + worldLevel_ = value; + } + } + + /// Field number for the "assist_uid" field. + public const int AssistUidFieldNumber = 13; + private uint assistUid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AssistUid { + get { return assistUid_; } + set { + assistUid_ = value; + } + } + + /// Field number for the "sp_bar" field. + public const int SpBarFieldNumber = 16; + private global::EggLink.DanhengServer.Proto.SpBarInfo spBar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SpBarInfo SpBar { + get { return spBar_; } + set { + spBar_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleAvatar); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleAvatar other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AvatarType != other.AvatarType) return false; + if (Id != other.Id) return false; + if (Level != other.Level) return false; + if (Rank != other.Rank) return false; + if (Index != other.Index) return false; + if(!skilltreeList_.Equals(other.skilltreeList_)) return false; + if(!equipmentList_.Equals(other.equipmentList_)) return false; + if (Hp != other.Hp) return false; + if (Promotion != other.Promotion) return false; + if(!relicList_.Equals(other.relicList_)) return false; + if (WorldLevel != other.WorldLevel) return false; + if (AssistUid != other.AssistUid) return false; + if (!object.Equals(SpBar, other.SpBar)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) hash ^= AvatarType.GetHashCode(); + if (Id != 0) hash ^= Id.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (Rank != 0) hash ^= Rank.GetHashCode(); + if (Index != 0) hash ^= Index.GetHashCode(); + hash ^= skilltreeList_.GetHashCode(); + hash ^= equipmentList_.GetHashCode(); + if (Hp != 0) hash ^= Hp.GetHashCode(); + if (Promotion != 0) hash ^= Promotion.GetHashCode(); + hash ^= relicList_.GetHashCode(); + if (WorldLevel != 0) hash ^= WorldLevel.GetHashCode(); + if (AssistUid != 0) hash ^= AssistUid.GetHashCode(); + if (spBar_ != null) hash ^= SpBar.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(8); + output.WriteEnum((int) AvatarType); + } + if (Id != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Id); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Level); + } + if (Rank != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Rank); + } + if (Index != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Index); + } + skilltreeList_.WriteTo(output, _repeated_skilltreeList_codec); + equipmentList_.WriteTo(output, _repeated_equipmentList_codec); + if (Hp != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Hp); + } + if (Promotion != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Promotion); + } + relicList_.WriteTo(output, _repeated_relicList_codec); + if (WorldLevel != 0) { + output.WriteRawTag(96); + output.WriteUInt32(WorldLevel); + } + if (AssistUid != 0) { + output.WriteRawTag(104); + output.WriteUInt32(AssistUid); + } + if (spBar_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(SpBar); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(8); + output.WriteEnum((int) AvatarType); + } + if (Id != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Id); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Level); + } + if (Rank != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Rank); + } + if (Index != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Index); + } + skilltreeList_.WriteTo(ref output, _repeated_skilltreeList_codec); + equipmentList_.WriteTo(ref output, _repeated_equipmentList_codec); + if (Hp != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Hp); + } + if (Promotion != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Promotion); + } + relicList_.WriteTo(ref output, _repeated_relicList_codec); + if (WorldLevel != 0) { + output.WriteRawTag(96); + output.WriteUInt32(WorldLevel); + } + if (AssistUid != 0) { + output.WriteRawTag(104); + output.WriteUInt32(AssistUid); + } + if (spBar_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(SpBar); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AvatarType); + } + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (Rank != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rank); + } + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Index); + } + size += skilltreeList_.CalculateSize(_repeated_skilltreeList_codec); + size += equipmentList_.CalculateSize(_repeated_equipmentList_codec); + if (Hp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Hp); + } + if (Promotion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Promotion); + } + size += relicList_.CalculateSize(_repeated_relicList_codec); + if (WorldLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldLevel); + } + if (AssistUid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AssistUid); + } + if (spBar_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SpBar); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleAvatar other) { + if (other == null) { + return; + } + if (other.AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + AvatarType = other.AvatarType; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.Rank != 0) { + Rank = other.Rank; + } + if (other.Index != 0) { + Index = other.Index; + } + skilltreeList_.Add(other.skilltreeList_); + equipmentList_.Add(other.equipmentList_); + if (other.Hp != 0) { + Hp = other.Hp; + } + if (other.Promotion != 0) { + Promotion = other.Promotion; + } + relicList_.Add(other.relicList_); + if (other.WorldLevel != 0) { + WorldLevel = other.WorldLevel; + } + if (other.AssistUid != 0) { + AssistUid = other.AssistUid; + } + if (other.spBar_ != null) { + if (spBar_ == null) { + SpBar = new global::EggLink.DanhengServer.Proto.SpBarInfo(); + } + SpBar.MergeFrom(other.SpBar); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 16: { + Id = input.ReadUInt32(); + break; + } + case 24: { + Level = input.ReadUInt32(); + break; + } + case 32: { + Rank = input.ReadUInt32(); + break; + } + case 40: { + Index = input.ReadUInt32(); + break; + } + case 50: { + skilltreeList_.AddEntriesFrom(input, _repeated_skilltreeList_codec); + break; + } + case 58: { + equipmentList_.AddEntriesFrom(input, _repeated_equipmentList_codec); + break; + } + case 64: { + Hp = input.ReadUInt32(); + break; + } + case 80: { + Promotion = input.ReadUInt32(); + break; + } + case 90: { + relicList_.AddEntriesFrom(input, _repeated_relicList_codec); + break; + } + case 96: { + WorldLevel = input.ReadUInt32(); + break; + } + case 104: { + AssistUid = input.ReadUInt32(); + break; + } + case 130: { + if (spBar_ == null) { + SpBar = new global::EggLink.DanhengServer.Proto.SpBarInfo(); + } + input.ReadMessage(SpBar); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 16: { + Id = input.ReadUInt32(); + break; + } + case 24: { + Level = input.ReadUInt32(); + break; + } + case 32: { + Rank = input.ReadUInt32(); + break; + } + case 40: { + Index = input.ReadUInt32(); + break; + } + case 50: { + skilltreeList_.AddEntriesFrom(ref input, _repeated_skilltreeList_codec); + break; + } + case 58: { + equipmentList_.AddEntriesFrom(ref input, _repeated_equipmentList_codec); + break; + } + case 64: { + Hp = input.ReadUInt32(); + break; + } + case 80: { + Promotion = input.ReadUInt32(); + break; + } + case 90: { + relicList_.AddEntriesFrom(ref input, _repeated_relicList_codec); + break; + } + case 96: { + WorldLevel = input.ReadUInt32(); + break; + } + case 104: { + AssistUid = input.ReadUInt32(); + break; + } + case 130: { + if (spBar_ == null) { + SpBar = new global::EggLink.DanhengServer.Proto.SpBarInfo(); + } + input.ReadMessage(SpBar); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleBuff.cs b/Common/Proto/BattleBuff.cs new file mode 100644 index 00000000..c05b8480 --- /dev/null +++ b/Common/Proto/BattleBuff.cs @@ -0,0 +1,403 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleBuff.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleBuff.proto + public static partial class BattleBuffReflection { + + #region Descriptor + /// File descriptor for BattleBuff.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleBuffReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBCYXR0bGVCdWZmLnByb3RvItUBCgpCYXR0bGVCdWZmEgoKAmlkGAEgASgN", + "Eg0KBWxldmVsGAIgASgNEhAKCG93bmVyX2lkGAMgASgNEhEKCXdhdmVfZmxh", + "ZxgEIAEoDRIZChF0YXJnZXRfaW5kZXhfbGlzdBgFIAMoDRI2Cg5keW5hbWlj", + "X3ZhbHVlcxgGIAMoCzIeLkJhdHRsZUJ1ZmYuRHluYW1pY1ZhbHVlc0VudHJ5", + "GjQKEkR5bmFtaWNWYWx1ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY", + "AiABKAI6AjgBQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleBuff), global::EggLink.DanhengServer.Proto.BattleBuff.Parser, new[]{ "Id", "Level", "OwnerId", "WaveFlag", "TargetIndexList", "DynamicValues" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleBuff : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleBuff()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattleBuffReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleBuff() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleBuff(BattleBuff other) : this() { + id_ = other.id_; + level_ = other.level_; + ownerId_ = other.ownerId_; + waveFlag_ = other.waveFlag_; + targetIndexList_ = other.targetIndexList_.Clone(); + dynamicValues_ = other.dynamicValues_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleBuff Clone() { + return new BattleBuff(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 "owner_id" field. + public const int OwnerIdFieldNumber = 3; + private uint ownerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OwnerId { + get { return ownerId_; } + set { + ownerId_ = value; + } + } + + /// Field number for the "wave_flag" field. + public const int WaveFlagFieldNumber = 4; + private uint waveFlag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WaveFlag { + get { return waveFlag_; } + set { + waveFlag_ = value; + } + } + + /// Field number for the "target_index_list" field. + public const int TargetIndexListFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_targetIndexList_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField targetIndexList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TargetIndexList { + get { return targetIndexList_; } + } + + /// Field number for the "dynamic_values" field. + public const int DynamicValuesFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_dynamicValues_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForFloat(21, 0F), 50); + private readonly pbc::MapField dynamicValues_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField DynamicValues { + get { return dynamicValues_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleBuff); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleBuff 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 (OwnerId != other.OwnerId) return false; + if (WaveFlag != other.WaveFlag) return false; + if(!targetIndexList_.Equals(other.targetIndexList_)) return false; + if (!DynamicValues.Equals(other.DynamicValues)) return false; + 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 (OwnerId != 0) hash ^= OwnerId.GetHashCode(); + if (WaveFlag != 0) hash ^= WaveFlag.GetHashCode(); + hash ^= targetIndexList_.GetHashCode(); + hash ^= DynamicValues.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (OwnerId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(OwnerId); + } + if (WaveFlag != 0) { + output.WriteRawTag(32); + output.WriteUInt32(WaveFlag); + } + targetIndexList_.WriteTo(output, _repeated_targetIndexList_codec); + dynamicValues_.WriteTo(output, _map_dynamicValues_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (OwnerId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(OwnerId); + } + if (WaveFlag != 0) { + output.WriteRawTag(32); + output.WriteUInt32(WaveFlag); + } + targetIndexList_.WriteTo(ref output, _repeated_targetIndexList_codec); + dynamicValues_.WriteTo(ref output, _map_dynamicValues_codec); + if (_unknownFields != 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 (OwnerId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OwnerId); + } + if (WaveFlag != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WaveFlag); + } + size += targetIndexList_.CalculateSize(_repeated_targetIndexList_codec); + size += dynamicValues_.CalculateSize(_map_dynamicValues_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleBuff other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.OwnerId != 0) { + OwnerId = other.OwnerId; + } + if (other.WaveFlag != 0) { + WaveFlag = other.WaveFlag; + } + targetIndexList_.Add(other.targetIndexList_); + dynamicValues_.MergeFrom(other.dynamicValues_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + case 24: { + OwnerId = input.ReadUInt32(); + break; + } + case 32: { + WaveFlag = input.ReadUInt32(); + break; + } + case 42: + case 40: { + targetIndexList_.AddEntriesFrom(input, _repeated_targetIndexList_codec); + break; + } + case 50: { + dynamicValues_.AddEntriesFrom(input, _map_dynamicValues_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + case 24: { + OwnerId = input.ReadUInt32(); + break; + } + case 32: { + WaveFlag = input.ReadUInt32(); + break; + } + case 42: + case 40: { + targetIndexList_.AddEntriesFrom(ref input, _repeated_targetIndexList_codec); + break; + } + case 50: { + dynamicValues_.AddEntriesFrom(ref input, _map_dynamicValues_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleEndReason.cs b/Common/Proto/BattleEndReason.cs new file mode 100644 index 00000000..56b631d0 --- /dev/null +++ b/Common/Proto/BattleEndReason.cs @@ -0,0 +1,49 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleEndReason.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleEndReason.proto + public static partial class BattleEndReasonReflection { + + #region Descriptor + /// File descriptor for BattleEndReason.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleEndReasonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVCYXR0bGVFbmRSZWFzb24ucHJvdG8qbgoPQmF0dGxlRW5kUmVhc29uEhoK", + "FkJBVFRMRV9FTkRfUkVBU09OX05PTkUQABIdChlCQVRUTEVfRU5EX1JFQVNP", + "Tl9BTExfRElFEAESIAocQkFUVExFX0VORF9SRUFTT05fVFVSTl9MSU1JVBAC", + "Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.BattleEndReason), }, null, null)); + } + #endregion + + } + #region Enums + public enum BattleEndReason { + [pbr::OriginalName("BATTLE_END_REASON_NONE")] None = 0, + [pbr::OriginalName("BATTLE_END_REASON_ALL_DIE")] AllDie = 1, + [pbr::OriginalName("BATTLE_END_REASON_TURN_LIMIT")] TurnLimit = 2, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleEndStatus.cs b/Common/Proto/BattleEndStatus.cs new file mode 100644 index 00000000..50a50063 --- /dev/null +++ b/Common/Proto/BattleEndStatus.cs @@ -0,0 +1,50 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleEndStatus.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleEndStatus.proto + public static partial class BattleEndStatusReflection { + + #region Descriptor + /// File descriptor for BattleEndStatus.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleEndStatusReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVCYXR0bGVFbmRTdGF0dXMucHJvdG8qZAoPQmF0dGxlRW5kU3RhdHVzEhMK", + "D0JBVFRMRV9FTkRfTk9ORRAAEhIKDkJBVFRMRV9FTkRfV0lOEAESEwoPQkFU", + "VExFX0VORF9MT1NFEAISEwoPQkFUVExFX0VORF9RVUlUEANCHqoCG0VnZ0xp", + "bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.BattleEndStatus), }, null, null)); + } + #endregion + + } + #region Enums + public enum BattleEndStatus { + [pbr::OriginalName("BATTLE_END_NONE")] BattleEndNone = 0, + [pbr::OriginalName("BATTLE_END_WIN")] BattleEndWin = 1, + [pbr::OriginalName("BATTLE_END_LOSE")] BattleEndLose = 2, + [pbr::OriginalName("BATTLE_END_QUIT")] BattleEndQuit = 3, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleEquipment.cs b/Common/Proto/BattleEquipment.cs new file mode 100644 index 00000000..f486a897 --- /dev/null +++ b/Common/Proto/BattleEquipment.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleEquipment.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleEquipment.proto + public static partial class BattleEquipmentReflection { + + #region Descriptor + /// File descriptor for BattleEquipment.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleEquipmentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVCYXR0bGVFcXVpcG1lbnQucHJvdG8iTQoPQmF0dGxlRXF1aXBtZW50EgoK", + "AmlkGAEgASgNEg0KBWxldmVsGAIgASgNEhEKCXByb21vdGlvbhgDIAEoDRIM", + "CgRyYW5rGAQgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleEquipment), global::EggLink.DanhengServer.Proto.BattleEquipment.Parser, new[]{ "Id", "Level", "Promotion", "Rank" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleEquipment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleEquipment()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattleEquipmentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleEquipment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleEquipment(BattleEquipment other) : this() { + id_ = other.id_; + level_ = other.level_; + promotion_ = other.promotion_; + rank_ = other.rank_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleEquipment Clone() { + return new BattleEquipment(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 "promotion" field. + public const int PromotionFieldNumber = 3; + private uint promotion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Promotion { + get { return promotion_; } + set { + promotion_ = value; + } + } + + /// Field number for the "rank" field. + public const int RankFieldNumber = 4; + private uint rank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Rank { + get { return rank_; } + set { + rank_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleEquipment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleEquipment 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 (Promotion != other.Promotion) return false; + if (Rank != other.Rank) return false; + 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 (Promotion != 0) hash ^= Promotion.GetHashCode(); + if (Rank != 0) hash ^= Rank.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Promotion != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Promotion); + } + if (Rank != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Rank); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Promotion != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Promotion); + } + if (Rank != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Rank); + } + if (_unknownFields != 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 (Promotion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Promotion); + } + if (Rank != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rank); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleEquipment other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.Promotion != 0) { + Promotion = other.Promotion; + } + if (other.Rank != 0) { + Rank = other.Rank; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + case 24: { + Promotion = input.ReadUInt32(); + break; + } + case 32: { + Rank = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + case 24: { + Promotion = input.ReadUInt32(); + break; + } + case 32: { + Rank = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleEventBattleInfo.cs b/Common/Proto/BattleEventBattleInfo.cs new file mode 100644 index 00000000..6e162b96 --- /dev/null +++ b/Common/Proto/BattleEventBattleInfo.cs @@ -0,0 +1,282 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleEventBattleInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleEventBattleInfo.proto + public static partial class BattleEventBattleInfoReflection { + + #region Descriptor + /// File descriptor for BattleEventBattleInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleEventBattleInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtCYXR0bGVFdmVudEJhdHRsZUluZm8ucHJvdG8aG0JhdHRsZUV2ZW50SW5p", + "dGVkRGF0YS5wcm90byJYChVCYXR0bGVFdmVudEJhdHRsZUluZm8SFwoPYmF0", + "dGxlX2V2ZW50X2lkGAEgASgNEiYKBnN0YXR1cxgCIAEoCzIWLkJhdHRsZUV2", + "ZW50SW5pdGVkRGF0YUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BattleEventInitedDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleEventBattleInfo), global::EggLink.DanhengServer.Proto.BattleEventBattleInfo.Parser, new[]{ "BattleEventId", "Status" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleEventBattleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleEventBattleInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattleEventBattleInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleEventBattleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleEventBattleInfo(BattleEventBattleInfo other) : this() { + battleEventId_ = other.battleEventId_; + status_ = other.status_ != null ? other.status_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleEventBattleInfo Clone() { + return new BattleEventBattleInfo(this); + } + + /// Field number for the "battle_event_id" field. + public const int BattleEventIdFieldNumber = 1; + private uint battleEventId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BattleEventId { + get { return battleEventId_; } + set { + battleEventId_ = value; + } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.BattleEventInitedData status_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.BattleEventInitedData Status { + get { return status_; } + set { + status_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleEventBattleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleEventBattleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BattleEventId != other.BattleEventId) return false; + if (!object.Equals(Status, other.Status)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BattleEventId != 0) hash ^= BattleEventId.GetHashCode(); + if (status_ != null) hash ^= Status.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BattleEventId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(BattleEventId); + } + if (status_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Status); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BattleEventId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(BattleEventId); + } + if (status_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Status); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BattleEventId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BattleEventId); + } + if (status_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Status); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleEventBattleInfo other) { + if (other == null) { + return; + } + if (other.BattleEventId != 0) { + BattleEventId = other.BattleEventId; + } + if (other.status_ != null) { + if (status_ == null) { + Status = new global::EggLink.DanhengServer.Proto.BattleEventInitedData(); + } + Status.MergeFrom(other.Status); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BattleEventId = input.ReadUInt32(); + break; + } + case 18: { + if (status_ == null) { + Status = new global::EggLink.DanhengServer.Proto.BattleEventInitedData(); + } + input.ReadMessage(Status); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BattleEventId = input.ReadUInt32(); + break; + } + case 18: { + if (status_ == null) { + Status = new global::EggLink.DanhengServer.Proto.BattleEventInitedData(); + } + input.ReadMessage(Status); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleEventInitedData.cs b/Common/Proto/BattleEventInitedData.cs new file mode 100644 index 00000000..11287db3 --- /dev/null +++ b/Common/Proto/BattleEventInitedData.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleEventInitedData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleEventInitedData.proto + public static partial class BattleEventInitedDataReflection { + + #region Descriptor + /// File descriptor for BattleEventInitedData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleEventInitedDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtCYXR0bGVFdmVudEluaXRlZERhdGEucHJvdG8aD1NwQmFySW5mby5wcm90", + "byIzChVCYXR0bGVFdmVudEluaXRlZERhdGESGgoGc3BfYmFyGAIgASgLMgou", + "U3BCYXJJbmZvQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SpBarInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleEventInitedData), global::EggLink.DanhengServer.Proto.BattleEventInitedData.Parser, new[]{ "SpBar" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleEventInitedData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleEventInitedData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattleEventInitedDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleEventInitedData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleEventInitedData(BattleEventInitedData other) : this() { + spBar_ = other.spBar_ != null ? other.spBar_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleEventInitedData Clone() { + return new BattleEventInitedData(this); + } + + /// Field number for the "sp_bar" field. + public const int SpBarFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.SpBarInfo spBar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SpBarInfo SpBar { + get { return spBar_; } + set { + spBar_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleEventInitedData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleEventInitedData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SpBar, other.SpBar)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (spBar_ != null) hash ^= SpBar.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (spBar_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SpBar); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (spBar_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SpBar); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (spBar_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpBar); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleEventInitedData other) { + if (other == null) { + return; + } + if (other.spBar_ != null) { + if (spBar_ == null) { + SpBar = new global::EggLink.DanhengServer.Proto.SpBarInfo(); + } + SpBar.MergeFrom(other.SpBar); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (spBar_ == null) { + SpBar = new global::EggLink.DanhengServer.Proto.SpBarInfo(); + } + input.ReadMessage(SpBar); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (spBar_ == null) { + SpBar = new global::EggLink.DanhengServer.Proto.SpBarInfo(); + } + input.ReadMessage(SpBar); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleMechanismBar.cs b/Common/Proto/BattleMechanismBar.cs new file mode 100644 index 00000000..b86c8490 --- /dev/null +++ b/Common/Proto/BattleMechanismBar.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleMechanismBar.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleMechanismBar.proto + public static partial class BattleMechanismBarReflection { + + #region Descriptor + /// File descriptor for BattleMechanismBar.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleMechanismBarReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhCYXR0bGVNZWNoYW5pc21CYXIucHJvdG8iPgoSQmF0dGxlTWVjaGFuaXNt", + "QmFyEhMKC09NTUVMQkNNTk5NGAEgASgNEhMKC0FNTUFBS1BBS0FBGAIgASgN", + "Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleMechanismBar), global::EggLink.DanhengServer.Proto.BattleMechanismBar.Parser, new[]{ "OMMELBCMNNM", "AMMAAKPAKAA" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleMechanismBar : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleMechanismBar()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattleMechanismBarReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleMechanismBar() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleMechanismBar(BattleMechanismBar other) : this() { + oMMELBCMNNM_ = other.oMMELBCMNNM_; + aMMAAKPAKAA_ = other.aMMAAKPAKAA_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleMechanismBar Clone() { + return new BattleMechanismBar(this); + } + + /// Field number for the "OMMELBCMNNM" field. + public const int OMMELBCMNNMFieldNumber = 1; + private uint oMMELBCMNNM_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OMMELBCMNNM { + get { return oMMELBCMNNM_; } + set { + oMMELBCMNNM_ = value; + } + } + + /// Field number for the "AMMAAKPAKAA" field. + public const int AMMAAKPAKAAFieldNumber = 2; + private uint aMMAAKPAKAA_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AMMAAKPAKAA { + get { return aMMAAKPAKAA_; } + set { + aMMAAKPAKAA_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleMechanismBar); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleMechanismBar other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OMMELBCMNNM != other.OMMELBCMNNM) return false; + if (AMMAAKPAKAA != other.AMMAAKPAKAA) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (OMMELBCMNNM != 0) hash ^= OMMELBCMNNM.GetHashCode(); + if (AMMAAKPAKAA != 0) hash ^= AMMAAKPAKAA.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (OMMELBCMNNM != 0) { + output.WriteRawTag(8); + output.WriteUInt32(OMMELBCMNNM); + } + if (AMMAAKPAKAA != 0) { + output.WriteRawTag(16); + output.WriteUInt32(AMMAAKPAKAA); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (OMMELBCMNNM != 0) { + output.WriteRawTag(8); + output.WriteUInt32(OMMELBCMNNM); + } + if (AMMAAKPAKAA != 0) { + output.WriteRawTag(16); + output.WriteUInt32(AMMAAKPAKAA); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (OMMELBCMNNM != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OMMELBCMNNM); + } + if (AMMAAKPAKAA != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AMMAAKPAKAA); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleMechanismBar other) { + if (other == null) { + return; + } + if (other.OMMELBCMNNM != 0) { + OMMELBCMNNM = other.OMMELBCMNNM; + } + if (other.AMMAAKPAKAA != 0) { + AMMAAKPAKAA = other.AMMAAKPAKAA; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + OMMELBCMNNM = input.ReadUInt32(); + break; + } + case 16: { + AMMAAKPAKAA = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + OMMELBCMNNM = input.ReadUInt32(); + break; + } + case 16: { + AMMAAKPAKAA = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleOp.cs b/Common/Proto/BattleOp.cs new file mode 100644 index 00000000..7e735bde --- /dev/null +++ b/Common/Proto/BattleOp.cs @@ -0,0 +1,458 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleOp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleOp.proto + public static partial class BattleOpReflection { + + #region Descriptor + /// File descriptor for BattleOp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleOpReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5CYXR0bGVPcC5wcm90byKkAQoIQmF0dGxlT3ASFAoMdHVybl9jb3VudGVy", + "GAEgASgNEg0KBXN0YXRlGAIgASgNEhgKEGFjdGlvbl9lbnRpdHlfaWQYAyAB", + "KA0SGAoQdGFyZ2V0X2VudGl0eV9pZBgEIAEoDRIPCgdvcF90eXBlGAUgASgN", + "EhMKC3NraWxsX2luZGV4GAYgASgNEhkKEW9wZXJhdGlvbl9jb3VudGVyGAcg", + "ASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleOp), global::EggLink.DanhengServer.Proto.BattleOp.Parser, new[]{ "TurnCounter", "State", "ActionEntityId", "TargetEntityId", "OpType", "SkillIndex", "OperationCounter" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleOp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleOp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattleOpReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleOp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleOp(BattleOp other) : this() { + turnCounter_ = other.turnCounter_; + state_ = other.state_; + actionEntityId_ = other.actionEntityId_; + targetEntityId_ = other.targetEntityId_; + opType_ = other.opType_; + skillIndex_ = other.skillIndex_; + operationCounter_ = other.operationCounter_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleOp Clone() { + return new BattleOp(this); + } + + /// Field number for the "turn_counter" field. + public const int TurnCounterFieldNumber = 1; + private uint turnCounter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TurnCounter { + get { return turnCounter_; } + set { + turnCounter_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 2; + private uint state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "action_entity_id" field. + public const int ActionEntityIdFieldNumber = 3; + private uint actionEntityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ActionEntityId { + get { return actionEntityId_; } + set { + actionEntityId_ = value; + } + } + + /// Field number for the "target_entity_id" field. + public const int TargetEntityIdFieldNumber = 4; + private uint targetEntityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TargetEntityId { + get { return targetEntityId_; } + set { + targetEntityId_ = value; + } + } + + /// Field number for the "op_type" field. + public const int OpTypeFieldNumber = 5; + private uint opType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OpType { + get { return opType_; } + set { + opType_ = value; + } + } + + /// Field number for the "skill_index" field. + public const int SkillIndexFieldNumber = 6; + private uint skillIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SkillIndex { + get { return skillIndex_; } + set { + skillIndex_ = value; + } + } + + /// Field number for the "operation_counter" field. + public const int OperationCounterFieldNumber = 7; + private uint operationCounter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OperationCounter { + get { return operationCounter_; } + set { + operationCounter_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleOp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleOp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TurnCounter != other.TurnCounter) return false; + if (State != other.State) return false; + if (ActionEntityId != other.ActionEntityId) return false; + if (TargetEntityId != other.TargetEntityId) return false; + if (OpType != other.OpType) return false; + if (SkillIndex != other.SkillIndex) return false; + if (OperationCounter != other.OperationCounter) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TurnCounter != 0) hash ^= TurnCounter.GetHashCode(); + if (State != 0) hash ^= State.GetHashCode(); + if (ActionEntityId != 0) hash ^= ActionEntityId.GetHashCode(); + if (TargetEntityId != 0) hash ^= TargetEntityId.GetHashCode(); + if (OpType != 0) hash ^= OpType.GetHashCode(); + if (SkillIndex != 0) hash ^= SkillIndex.GetHashCode(); + if (OperationCounter != 0) hash ^= OperationCounter.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TurnCounter != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TurnCounter); + } + if (State != 0) { + output.WriteRawTag(16); + output.WriteUInt32(State); + } + if (ActionEntityId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(ActionEntityId); + } + if (TargetEntityId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(TargetEntityId); + } + if (OpType != 0) { + output.WriteRawTag(40); + output.WriteUInt32(OpType); + } + if (SkillIndex != 0) { + output.WriteRawTag(48); + output.WriteUInt32(SkillIndex); + } + if (OperationCounter != 0) { + output.WriteRawTag(56); + output.WriteUInt32(OperationCounter); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TurnCounter != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TurnCounter); + } + if (State != 0) { + output.WriteRawTag(16); + output.WriteUInt32(State); + } + if (ActionEntityId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(ActionEntityId); + } + if (TargetEntityId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(TargetEntityId); + } + if (OpType != 0) { + output.WriteRawTag(40); + output.WriteUInt32(OpType); + } + if (SkillIndex != 0) { + output.WriteRawTag(48); + output.WriteUInt32(SkillIndex); + } + if (OperationCounter != 0) { + output.WriteRawTag(56); + output.WriteUInt32(OperationCounter); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TurnCounter != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TurnCounter); + } + if (State != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(State); + } + if (ActionEntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ActionEntityId); + } + if (TargetEntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TargetEntityId); + } + if (OpType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OpType); + } + if (SkillIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SkillIndex); + } + if (OperationCounter != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OperationCounter); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleOp other) { + if (other == null) { + return; + } + if (other.TurnCounter != 0) { + TurnCounter = other.TurnCounter; + } + if (other.State != 0) { + State = other.State; + } + if (other.ActionEntityId != 0) { + ActionEntityId = other.ActionEntityId; + } + if (other.TargetEntityId != 0) { + TargetEntityId = other.TargetEntityId; + } + if (other.OpType != 0) { + OpType = other.OpType; + } + if (other.SkillIndex != 0) { + SkillIndex = other.SkillIndex; + } + if (other.OperationCounter != 0) { + OperationCounter = other.OperationCounter; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + TurnCounter = input.ReadUInt32(); + break; + } + case 16: { + State = input.ReadUInt32(); + break; + } + case 24: { + ActionEntityId = input.ReadUInt32(); + break; + } + case 32: { + TargetEntityId = input.ReadUInt32(); + break; + } + case 40: { + OpType = input.ReadUInt32(); + break; + } + case 48: { + SkillIndex = input.ReadUInt32(); + break; + } + case 56: { + OperationCounter = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + TurnCounter = input.ReadUInt32(); + break; + } + case 16: { + State = input.ReadUInt32(); + break; + } + case 24: { + ActionEntityId = input.ReadUInt32(); + break; + } + case 32: { + TargetEntityId = input.ReadUInt32(); + break; + } + case 40: { + OpType = input.ReadUInt32(); + break; + } + case 48: { + SkillIndex = input.ReadUInt32(); + break; + } + case 56: { + OperationCounter = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattlePassInfoNotify.cs b/Common/Proto/BattlePassInfoNotify.cs new file mode 100644 index 00000000..2f2112f8 --- /dev/null +++ b/Common/Proto/BattlePassInfoNotify.cs @@ -0,0 +1,666 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattlePassInfoNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattlePassInfoNotify.proto + public static partial class BattlePassInfoNotifyReflection { + + #region Descriptor + /// File descriptor for BattlePassInfoNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattlePassInfoNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpCYXR0bGVQYXNzSW5mb05vdGlmeS5wcm90byLsAwoUQmF0dGxlUGFzc0lu", + "Zm9Ob3RpZnkSNgoMYnBfdGllcl90eXBlGA8gASgOMiAuQmF0dGxlUGFzc0lu", + "Zm9Ob3RpZnkuQnBUaWVyVHlwZRIZChF0YWtlbl9mcmVlX3Jld2FyZBgJIAEo", + "BBIdChV0YWtlbl9wcmVtaXVtX3Jld2FyZDEYBCABKAQSHQoVdGFrZW5fcHJl", + "bWl1bV9yZXdhcmQyGAEgASgEEiUKHXRha2VuX3ByZW1pdW1fZXh0ZW5kZWRf", + "cmV3YXJkGAcgASgEEhAKCHVua2ZpZWxkGAIgASgEEiUKHXRha2VuX3ByZW1p", + "dW1fb3B0aW9uYWxfcmV3YXJkGAggASgEEiIKGnRha2VuX2ZyZWVfZXh0ZW5k", + "ZWRfcmV3YXJkGAwgASgEEhwKFGN1cl93ZWVrX2FkZF9leHBfc3VtGAMgASgN", + "EhEKCWN1cl9icF9pZBgFIAEoDRILCgNleHAYBiABKA0SDQoFbGV2ZWwYCiAB", + "KA0icgoKQnBUaWVyVHlwZRIVChFCUF9USUVSX1RZUEVfTk9ORRAAEhUKEUJQ", + "X1RJRVJfVFlQRV9GUkVFEAESGgoWQlBfVElFUl9UWVBFX1BSRU1JVU1fMRAC", + "EhoKFkJQX1RJRVJfVFlQRV9QUkVNSVVNXzIQA0IeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattlePassInfoNotify), global::EggLink.DanhengServer.Proto.BattlePassInfoNotify.Parser, new[]{ "BpTierType", "TakenFreeReward", "TakenPremiumReward1", "TakenPremiumReward2", "TakenPremiumExtendedReward", "Unkfield", "TakenPremiumOptionalReward", "TakenFreeExtendedReward", "CurWeekAddExpSum", "CurBpId", "Exp", "Level" }, null, new[]{ typeof(global::EggLink.DanhengServer.Proto.BattlePassInfoNotify.Types.BpTierType) }, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattlePassInfoNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattlePassInfoNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattlePassInfoNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePassInfoNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePassInfoNotify(BattlePassInfoNotify other) : this() { + bpTierType_ = other.bpTierType_; + takenFreeReward_ = other.takenFreeReward_; + takenPremiumReward1_ = other.takenPremiumReward1_; + takenPremiumReward2_ = other.takenPremiumReward2_; + takenPremiumExtendedReward_ = other.takenPremiumExtendedReward_; + unkfield_ = other.unkfield_; + takenPremiumOptionalReward_ = other.takenPremiumOptionalReward_; + takenFreeExtendedReward_ = other.takenFreeExtendedReward_; + curWeekAddExpSum_ = other.curWeekAddExpSum_; + curBpId_ = other.curBpId_; + exp_ = other.exp_; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattlePassInfoNotify Clone() { + return new BattlePassInfoNotify(this); + } + + /// Field number for the "bp_tier_type" field. + public const int BpTierTypeFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.BattlePassInfoNotify.Types.BpTierType bpTierType_ = global::EggLink.DanhengServer.Proto.BattlePassInfoNotify.Types.BpTierType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.BattlePassInfoNotify.Types.BpTierType BpTierType { + get { return bpTierType_; } + set { + bpTierType_ = value; + } + } + + /// Field number for the "taken_free_reward" field. + public const int TakenFreeRewardFieldNumber = 9; + private ulong takenFreeReward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TakenFreeReward { + get { return takenFreeReward_; } + set { + takenFreeReward_ = value; + } + } + + /// Field number for the "taken_premium_reward1" field. + public const int TakenPremiumReward1FieldNumber = 4; + private ulong takenPremiumReward1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TakenPremiumReward1 { + get { return takenPremiumReward1_; } + set { + takenPremiumReward1_ = value; + } + } + + /// Field number for the "taken_premium_reward2" field. + public const int TakenPremiumReward2FieldNumber = 1; + private ulong takenPremiumReward2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TakenPremiumReward2 { + get { return takenPremiumReward2_; } + set { + takenPremiumReward2_ = value; + } + } + + /// Field number for the "taken_premium_extended_reward" field. + public const int TakenPremiumExtendedRewardFieldNumber = 7; + private ulong takenPremiumExtendedReward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TakenPremiumExtendedReward { + get { return takenPremiumExtendedReward_; } + set { + takenPremiumExtendedReward_ = value; + } + } + + /// Field number for the "unkfield" field. + public const int UnkfieldFieldNumber = 2; + private ulong unkfield_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Unkfield { + get { return unkfield_; } + set { + unkfield_ = value; + } + } + + /// Field number for the "taken_premium_optional_reward" field. + public const int TakenPremiumOptionalRewardFieldNumber = 8; + private ulong takenPremiumOptionalReward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TakenPremiumOptionalReward { + get { return takenPremiumOptionalReward_; } + set { + takenPremiumOptionalReward_ = value; + } + } + + /// Field number for the "taken_free_extended_reward" field. + public const int TakenFreeExtendedRewardFieldNumber = 12; + private ulong takenFreeExtendedReward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TakenFreeExtendedReward { + get { return takenFreeExtendedReward_; } + set { + takenFreeExtendedReward_ = value; + } + } + + /// Field number for the "cur_week_add_exp_sum" field. + public const int CurWeekAddExpSumFieldNumber = 3; + private uint curWeekAddExpSum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurWeekAddExpSum { + get { return curWeekAddExpSum_; } + set { + curWeekAddExpSum_ = value; + } + } + + /// Field number for the "cur_bp_id" field. + public const int CurBpIdFieldNumber = 5; + private uint curBpId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurBpId { + get { return curBpId_; } + set { + curBpId_ = value; + } + } + + /// Field number for the "exp" field. + public const int ExpFieldNumber = 6; + private uint exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 10; + 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 BattlePassInfoNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattlePassInfoNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BpTierType != other.BpTierType) return false; + if (TakenFreeReward != other.TakenFreeReward) return false; + if (TakenPremiumReward1 != other.TakenPremiumReward1) return false; + if (TakenPremiumReward2 != other.TakenPremiumReward2) return false; + if (TakenPremiumExtendedReward != other.TakenPremiumExtendedReward) return false; + if (Unkfield != other.Unkfield) return false; + if (TakenPremiumOptionalReward != other.TakenPremiumOptionalReward) return false; + if (TakenFreeExtendedReward != other.TakenFreeExtendedReward) return false; + if (CurWeekAddExpSum != other.CurWeekAddExpSum) return false; + if (CurBpId != other.CurBpId) return false; + if (Exp != other.Exp) 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 (BpTierType != global::EggLink.DanhengServer.Proto.BattlePassInfoNotify.Types.BpTierType.None) hash ^= BpTierType.GetHashCode(); + if (TakenFreeReward != 0UL) hash ^= TakenFreeReward.GetHashCode(); + if (TakenPremiumReward1 != 0UL) hash ^= TakenPremiumReward1.GetHashCode(); + if (TakenPremiumReward2 != 0UL) hash ^= TakenPremiumReward2.GetHashCode(); + if (TakenPremiumExtendedReward != 0UL) hash ^= TakenPremiumExtendedReward.GetHashCode(); + if (Unkfield != 0UL) hash ^= Unkfield.GetHashCode(); + if (TakenPremiumOptionalReward != 0UL) hash ^= TakenPremiumOptionalReward.GetHashCode(); + if (TakenFreeExtendedReward != 0UL) hash ^= TakenFreeExtendedReward.GetHashCode(); + if (CurWeekAddExpSum != 0) hash ^= CurWeekAddExpSum.GetHashCode(); + if (CurBpId != 0) hash ^= CurBpId.GetHashCode(); + if (Exp != 0) hash ^= Exp.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 (TakenPremiumReward2 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TakenPremiumReward2); + } + if (Unkfield != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(Unkfield); + } + if (CurWeekAddExpSum != 0) { + output.WriteRawTag(24); + output.WriteUInt32(CurWeekAddExpSum); + } + if (TakenPremiumReward1 != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(TakenPremiumReward1); + } + if (CurBpId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(CurBpId); + } + if (Exp != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Exp); + } + if (TakenPremiumExtendedReward != 0UL) { + output.WriteRawTag(56); + output.WriteUInt64(TakenPremiumExtendedReward); + } + if (TakenPremiumOptionalReward != 0UL) { + output.WriteRawTag(64); + output.WriteUInt64(TakenPremiumOptionalReward); + } + if (TakenFreeReward != 0UL) { + output.WriteRawTag(72); + output.WriteUInt64(TakenFreeReward); + } + if (Level != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Level); + } + if (TakenFreeExtendedReward != 0UL) { + output.WriteRawTag(96); + output.WriteUInt64(TakenFreeExtendedReward); + } + if (BpTierType != global::EggLink.DanhengServer.Proto.BattlePassInfoNotify.Types.BpTierType.None) { + output.WriteRawTag(120); + output.WriteEnum((int) BpTierType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TakenPremiumReward2 != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TakenPremiumReward2); + } + if (Unkfield != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(Unkfield); + } + if (CurWeekAddExpSum != 0) { + output.WriteRawTag(24); + output.WriteUInt32(CurWeekAddExpSum); + } + if (TakenPremiumReward1 != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(TakenPremiumReward1); + } + if (CurBpId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(CurBpId); + } + if (Exp != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Exp); + } + if (TakenPremiumExtendedReward != 0UL) { + output.WriteRawTag(56); + output.WriteUInt64(TakenPremiumExtendedReward); + } + if (TakenPremiumOptionalReward != 0UL) { + output.WriteRawTag(64); + output.WriteUInt64(TakenPremiumOptionalReward); + } + if (TakenFreeReward != 0UL) { + output.WriteRawTag(72); + output.WriteUInt64(TakenFreeReward); + } + if (Level != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Level); + } + if (TakenFreeExtendedReward != 0UL) { + output.WriteRawTag(96); + output.WriteUInt64(TakenFreeExtendedReward); + } + if (BpTierType != global::EggLink.DanhengServer.Proto.BattlePassInfoNotify.Types.BpTierType.None) { + output.WriteRawTag(120); + output.WriteEnum((int) BpTierType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BpTierType != global::EggLink.DanhengServer.Proto.BattlePassInfoNotify.Types.BpTierType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BpTierType); + } + if (TakenFreeReward != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TakenFreeReward); + } + if (TakenPremiumReward1 != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TakenPremiumReward1); + } + if (TakenPremiumReward2 != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TakenPremiumReward2); + } + if (TakenPremiumExtendedReward != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TakenPremiumExtendedReward); + } + if (Unkfield != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unkfield); + } + if (TakenPremiumOptionalReward != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TakenPremiumOptionalReward); + } + if (TakenFreeExtendedReward != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TakenFreeExtendedReward); + } + if (CurWeekAddExpSum != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurWeekAddExpSum); + } + if (CurBpId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurBpId); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Exp); + } + 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(BattlePassInfoNotify other) { + if (other == null) { + return; + } + if (other.BpTierType != global::EggLink.DanhengServer.Proto.BattlePassInfoNotify.Types.BpTierType.None) { + BpTierType = other.BpTierType; + } + if (other.TakenFreeReward != 0UL) { + TakenFreeReward = other.TakenFreeReward; + } + if (other.TakenPremiumReward1 != 0UL) { + TakenPremiumReward1 = other.TakenPremiumReward1; + } + if (other.TakenPremiumReward2 != 0UL) { + TakenPremiumReward2 = other.TakenPremiumReward2; + } + if (other.TakenPremiumExtendedReward != 0UL) { + TakenPremiumExtendedReward = other.TakenPremiumExtendedReward; + } + if (other.Unkfield != 0UL) { + Unkfield = other.Unkfield; + } + if (other.TakenPremiumOptionalReward != 0UL) { + TakenPremiumOptionalReward = other.TakenPremiumOptionalReward; + } + if (other.TakenFreeExtendedReward != 0UL) { + TakenFreeExtendedReward = other.TakenFreeExtendedReward; + } + if (other.CurWeekAddExpSum != 0) { + CurWeekAddExpSum = other.CurWeekAddExpSum; + } + if (other.CurBpId != 0) { + CurBpId = other.CurBpId; + } + if (other.Exp != 0) { + Exp = other.Exp; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + TakenPremiumReward2 = input.ReadUInt64(); + break; + } + case 16: { + Unkfield = input.ReadUInt64(); + break; + } + case 24: { + CurWeekAddExpSum = input.ReadUInt32(); + break; + } + case 32: { + TakenPremiumReward1 = input.ReadUInt64(); + break; + } + case 40: { + CurBpId = input.ReadUInt32(); + break; + } + case 48: { + Exp = input.ReadUInt32(); + break; + } + case 56: { + TakenPremiumExtendedReward = input.ReadUInt64(); + break; + } + case 64: { + TakenPremiumOptionalReward = input.ReadUInt64(); + break; + } + case 72: { + TakenFreeReward = input.ReadUInt64(); + break; + } + case 80: { + Level = input.ReadUInt32(); + break; + } + case 96: { + TakenFreeExtendedReward = input.ReadUInt64(); + break; + } + case 120: { + BpTierType = (global::EggLink.DanhengServer.Proto.BattlePassInfoNotify.Types.BpTierType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + TakenPremiumReward2 = input.ReadUInt64(); + break; + } + case 16: { + Unkfield = input.ReadUInt64(); + break; + } + case 24: { + CurWeekAddExpSum = input.ReadUInt32(); + break; + } + case 32: { + TakenPremiumReward1 = input.ReadUInt64(); + break; + } + case 40: { + CurBpId = input.ReadUInt32(); + break; + } + case 48: { + Exp = input.ReadUInt32(); + break; + } + case 56: { + TakenPremiumExtendedReward = input.ReadUInt64(); + break; + } + case 64: { + TakenPremiumOptionalReward = input.ReadUInt64(); + break; + } + case 72: { + TakenFreeReward = input.ReadUInt64(); + break; + } + case 80: { + Level = input.ReadUInt32(); + break; + } + case 96: { + TakenFreeExtendedReward = input.ReadUInt64(); + break; + } + case 120: { + BpTierType = (global::EggLink.DanhengServer.Proto.BattlePassInfoNotify.Types.BpTierType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the BattlePassInfoNotify message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum BpTierType { + [pbr::OriginalName("BP_TIER_TYPE_NONE")] None = 0, + [pbr::OriginalName("BP_TIER_TYPE_FREE")] Free = 1, + [pbr::OriginalName("BP_TIER_TYPE_PREMIUM_1")] Premium1 = 2, + [pbr::OriginalName("BP_TIER_TYPE_PREMIUM_2")] Premium2 = 3, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleRelic.cs b/Common/Proto/BattleRelic.cs new file mode 100644 index 00000000..2f87aff6 --- /dev/null +++ b/Common/Proto/BattleRelic.cs @@ -0,0 +1,373 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleRelic.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleRelic.proto + public static partial class BattleRelicReflection { + + #region Descriptor + /// File descriptor for BattleRelic.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleRelicReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFCYXR0bGVSZWxpYy5wcm90bxoQUmVsaWNBZmZpeC5wcm90byJ3CgtCYXR0", + "bGVSZWxpYxIKCgJpZBgBIAEoDRINCgVsZXZlbBgCIAEoDRIVCg1tYWluX2Fm", + "Zml4X2lkGAMgASgNEiMKDnN1Yl9hZmZpeF9saXN0GAQgAygLMgsuUmVsaWNB", + "ZmZpeBIRCgl1bmlxdWVfaWQYBSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl", + "cnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RelicAffixReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleRelic), global::EggLink.DanhengServer.Proto.BattleRelic.Parser, new[]{ "Id", "Level", "MainAffixId", "SubAffixList", "UniqueId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleRelic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleRelic()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattleRelicReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleRelic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleRelic(BattleRelic other) : this() { + id_ = other.id_; + level_ = other.level_; + mainAffixId_ = other.mainAffixId_; + subAffixList_ = other.subAffixList_.Clone(); + uniqueId_ = other.uniqueId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleRelic Clone() { + return new BattleRelic(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 "main_affix_id" field. + public const int MainAffixIdFieldNumber = 3; + private uint mainAffixId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MainAffixId { + get { return mainAffixId_; } + set { + mainAffixId_ = value; + } + } + + /// Field number for the "sub_affix_list" field. + public const int SubAffixListFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_subAffixList_codec + = pb::FieldCodec.ForMessage(34, global::EggLink.DanhengServer.Proto.RelicAffix.Parser); + private readonly pbc::RepeatedField subAffixList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SubAffixList { + get { return subAffixList_; } + } + + /// Field number for the "unique_id" field. + public const int UniqueIdFieldNumber = 5; + private uint uniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UniqueId { + get { return uniqueId_; } + set { + uniqueId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleRelic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleRelic 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 (MainAffixId != other.MainAffixId) return false; + if(!subAffixList_.Equals(other.subAffixList_)) return false; + if (UniqueId != other.UniqueId) return false; + 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 (MainAffixId != 0) hash ^= MainAffixId.GetHashCode(); + hash ^= subAffixList_.GetHashCode(); + if (UniqueId != 0) hash ^= UniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (MainAffixId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(MainAffixId); + } + subAffixList_.WriteTo(output, _repeated_subAffixList_codec); + if (UniqueId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(UniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (MainAffixId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(MainAffixId); + } + subAffixList_.WriteTo(ref output, _repeated_subAffixList_codec); + if (UniqueId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(UniqueId); + } + if (_unknownFields != 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 (MainAffixId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MainAffixId); + } + size += subAffixList_.CalculateSize(_repeated_subAffixList_codec); + if (UniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UniqueId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleRelic other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.MainAffixId != 0) { + MainAffixId = other.MainAffixId; + } + subAffixList_.Add(other.subAffixList_); + if (other.UniqueId != 0) { + UniqueId = other.UniqueId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + case 24: { + MainAffixId = input.ReadUInt32(); + break; + } + case 34: { + subAffixList_.AddEntriesFrom(input, _repeated_subAffixList_codec); + break; + } + case 40: { + UniqueId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + case 24: { + MainAffixId = input.ReadUInt32(); + break; + } + case 34: { + subAffixList_.AddEntriesFrom(ref input, _repeated_subAffixList_codec); + break; + } + case 40: { + UniqueId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleSkillInfo.cs b/Common/Proto/BattleSkillInfo.cs new file mode 100644 index 00000000..19b355ce --- /dev/null +++ b/Common/Proto/BattleSkillInfo.cs @@ -0,0 +1,337 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleSkillInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleSkillInfo.proto + public static partial class BattleSkillInfoReflection { + + #region Descriptor + /// File descriptor for BattleSkillInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleSkillInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVCYXR0bGVTa2lsbEluZm8ucHJvdG8iXQoPQmF0dGxlU2tpbGxJbmZvEhAK", + "CHNraWxsX2lkGAEgASgNEhMKC0VDTEtOTVBGT09GGAIgASgBEhMKC0hFT0dN", + "SU9DRElDGAMgAygNEg4KBmRhbWFnZRgEIAEoAUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleSkillInfo), global::EggLink.DanhengServer.Proto.BattleSkillInfo.Parser, new[]{ "SkillId", "ECLKNMPFOOF", "HEOGMIOCDIC", "Damage" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleSkillInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleSkillInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattleSkillInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleSkillInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleSkillInfo(BattleSkillInfo other) : this() { + skillId_ = other.skillId_; + eCLKNMPFOOF_ = other.eCLKNMPFOOF_; + hEOGMIOCDIC_ = other.hEOGMIOCDIC_.Clone(); + damage_ = other.damage_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleSkillInfo Clone() { + return new BattleSkillInfo(this); + } + + /// Field number for the "skill_id" field. + public const int SkillIdFieldNumber = 1; + private uint skillId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SkillId { + get { return skillId_; } + set { + skillId_ = value; + } + } + + /// Field number for the "ECLKNMPFOOF" field. + public const int ECLKNMPFOOFFieldNumber = 2; + private double eCLKNMPFOOF_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double ECLKNMPFOOF { + get { return eCLKNMPFOOF_; } + set { + eCLKNMPFOOF_ = value; + } + } + + /// Field number for the "HEOGMIOCDIC" field. + public const int HEOGMIOCDICFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_hEOGMIOCDIC_codec + = pb::FieldCodec.ForUInt32(26); + private readonly pbc::RepeatedField hEOGMIOCDIC_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HEOGMIOCDIC { + get { return hEOGMIOCDIC_; } + } + + /// Field number for the "damage" field. + public const int DamageFieldNumber = 4; + private double damage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Damage { + get { return damage_; } + set { + damage_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleSkillInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleSkillInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SkillId != other.SkillId) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ECLKNMPFOOF, other.ECLKNMPFOOF)) return false; + if(!hEOGMIOCDIC_.Equals(other.hEOGMIOCDIC_)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Damage, other.Damage)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (SkillId != 0) hash ^= SkillId.GetHashCode(); + if (ECLKNMPFOOF != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ECLKNMPFOOF); + hash ^= hEOGMIOCDIC_.GetHashCode(); + if (Damage != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Damage); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SkillId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(SkillId); + } + if (ECLKNMPFOOF != 0D) { + output.WriteRawTag(17); + output.WriteDouble(ECLKNMPFOOF); + } + hEOGMIOCDIC_.WriteTo(output, _repeated_hEOGMIOCDIC_codec); + if (Damage != 0D) { + output.WriteRawTag(33); + output.WriteDouble(Damage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SkillId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(SkillId); + } + if (ECLKNMPFOOF != 0D) { + output.WriteRawTag(17); + output.WriteDouble(ECLKNMPFOOF); + } + hEOGMIOCDIC_.WriteTo(ref output, _repeated_hEOGMIOCDIC_codec); + if (Damage != 0D) { + output.WriteRawTag(33); + output.WriteDouble(Damage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SkillId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SkillId); + } + if (ECLKNMPFOOF != 0D) { + size += 1 + 8; + } + size += hEOGMIOCDIC_.CalculateSize(_repeated_hEOGMIOCDIC_codec); + if (Damage != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleSkillInfo other) { + if (other == null) { + return; + } + if (other.SkillId != 0) { + SkillId = other.SkillId; + } + if (other.ECLKNMPFOOF != 0D) { + ECLKNMPFOOF = other.ECLKNMPFOOF; + } + hEOGMIOCDIC_.Add(other.hEOGMIOCDIC_); + if (other.Damage != 0D) { + Damage = other.Damage; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SkillId = input.ReadUInt32(); + break; + } + case 17: { + ECLKNMPFOOF = input.ReadDouble(); + break; + } + case 26: + case 24: { + hEOGMIOCDIC_.AddEntriesFrom(input, _repeated_hEOGMIOCDIC_codec); + break; + } + case 33: { + Damage = input.ReadDouble(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SkillId = input.ReadUInt32(); + break; + } + case 17: { + ECLKNMPFOOF = input.ReadDouble(); + break; + } + case 26: + case 24: { + hEOGMIOCDIC_.AddEntriesFrom(ref input, _repeated_hEOGMIOCDIC_codec); + break; + } + case 33: { + Damage = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleStatistics.cs b/Common/Proto/BattleStatistics.cs new file mode 100644 index 00000000..7132bf92 --- /dev/null +++ b/Common/Proto/BattleStatistics.cs @@ -0,0 +1,698 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleStatistics.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleStatistics.proto + public static partial class BattleStatisticsReflection { + + #region Descriptor + /// File descriptor for BattleStatistics.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleStatisticsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZCYXR0bGVTdGF0aXN0aWNzLnByb3RvGhZBdmF0YXJCYXR0bGVJbmZvLnBy", + "b3RvGhVCYXR0bGVFbmRSZWFzb24ucHJvdG8i6wMKEEJhdHRsZVN0YXRpc3Rp", + "Y3MSGgoSdG90YWxfYmF0dGxlX3R1cm5zGAEgASgNEhgKEHRvdGFsX2F1dG9f", + "dHVybnMYAiABKA0SFgoOYXZhdGFyX2lkX2xpc3QYAyADKA0SEQoJdWx0cmFf", + "Y250GAQgASgNEhwKFHRvdGFsX2RlbGF5X2N1bXVsYXRlGAUgASgBEhEKCWNv", + "c3RfdGltZRgGIAEoARItChJiYXR0bGVfYXZhdGFyX2xpc3QYByADKAsyES5B", + "dmF0YXJCYXR0bGVJbmZvEhEKCXJvdW5kX2NudBgJIAEoDRIYChBjb2Nvb25f", + "ZGVhZF93YXZlGAogASgNEhsKE2F2YXRhcl9iYXR0bGVfdHVybnMYCyABKA0S", + "HAoUbW9uc3Rlcl9iYXR0bGVfdHVybnMYDCABKA0SOgoNY3VzdG9tX3ZhbHVl", + "cxgNIAMoCzIjLkJhdHRsZVN0YXRpc3RpY3MuQ3VzdG9tVmFsdWVzRW50cnkS", + "FwoPY2hhbGxlbmdlX3Njb3JlGA4gASgNEiQKCmVuZF9yZWFzb24YEyABKA4y", + "EC5CYXR0bGVFbmRSZWFzb24aMwoRQ3VzdG9tVmFsdWVzRW50cnkSCwoDa2V5", + "GAEgASgJEg0KBXZhbHVlGAIgASgCOgI4AUIeqgIbRWdnTGluay5EYW5oZW5n", + "U2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AvatarBattleInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleEndReasonReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleStatistics), global::EggLink.DanhengServer.Proto.BattleStatistics.Parser, new[]{ "TotalBattleTurns", "TotalAutoTurns", "AvatarIdList", "UltraCnt", "TotalDelayCumulate", "CostTime", "BattleAvatarList", "RoundCnt", "CocoonDeadWave", "AvatarBattleTurns", "MonsterBattleTurns", "CustomValues", "ChallengeScore", "EndReason" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleStatistics : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleStatistics()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattleStatisticsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleStatistics() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleStatistics(BattleStatistics other) : this() { + totalBattleTurns_ = other.totalBattleTurns_; + totalAutoTurns_ = other.totalAutoTurns_; + avatarIdList_ = other.avatarIdList_.Clone(); + ultraCnt_ = other.ultraCnt_; + totalDelayCumulate_ = other.totalDelayCumulate_; + costTime_ = other.costTime_; + battleAvatarList_ = other.battleAvatarList_.Clone(); + roundCnt_ = other.roundCnt_; + cocoonDeadWave_ = other.cocoonDeadWave_; + avatarBattleTurns_ = other.avatarBattleTurns_; + monsterBattleTurns_ = other.monsterBattleTurns_; + customValues_ = other.customValues_.Clone(); + challengeScore_ = other.challengeScore_; + endReason_ = other.endReason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleStatistics Clone() { + return new BattleStatistics(this); + } + + /// Field number for the "total_battle_turns" field. + public const int TotalBattleTurnsFieldNumber = 1; + private uint totalBattleTurns_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalBattleTurns { + get { return totalBattleTurns_; } + set { + totalBattleTurns_ = value; + } + } + + /// Field number for the "total_auto_turns" field. + public const int TotalAutoTurnsFieldNumber = 2; + private uint totalAutoTurns_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalAutoTurns { + get { return totalAutoTurns_; } + set { + totalAutoTurns_ = value; + } + } + + /// Field number for the "avatar_id_list" field. + public const int AvatarIdListFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_avatarIdList_codec + = pb::FieldCodec.ForUInt32(26); + private readonly pbc::RepeatedField avatarIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AvatarIdList { + get { return avatarIdList_; } + } + + /// Field number for the "ultra_cnt" field. + public const int UltraCntFieldNumber = 4; + private uint ultraCnt_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UltraCnt { + get { return ultraCnt_; } + set { + ultraCnt_ = value; + } + } + + /// Field number for the "total_delay_cumulate" field. + public const int TotalDelayCumulateFieldNumber = 5; + private double totalDelayCumulate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalDelayCumulate { + get { return totalDelayCumulate_; } + set { + totalDelayCumulate_ = value; + } + } + + /// Field number for the "cost_time" field. + public const int CostTimeFieldNumber = 6; + private double costTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double CostTime { + get { return costTime_; } + set { + costTime_ = value; + } + } + + /// Field number for the "battle_avatar_list" field. + public const int BattleAvatarListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_battleAvatarList_codec + = pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.AvatarBattleInfo.Parser); + private readonly pbc::RepeatedField battleAvatarList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BattleAvatarList { + get { return battleAvatarList_; } + } + + /// Field number for the "round_cnt" field. + public const int RoundCntFieldNumber = 9; + private uint roundCnt_; + /// + ///repeated MonsterBattleInfo monster_list = 8; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RoundCnt { + get { return roundCnt_; } + set { + roundCnt_ = value; + } + } + + /// Field number for the "cocoon_dead_wave" field. + public const int CocoonDeadWaveFieldNumber = 10; + private uint cocoonDeadWave_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CocoonDeadWave { + get { return cocoonDeadWave_; } + set { + cocoonDeadWave_ = value; + } + } + + /// Field number for the "avatar_battle_turns" field. + public const int AvatarBattleTurnsFieldNumber = 11; + private uint avatarBattleTurns_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AvatarBattleTurns { + get { return avatarBattleTurns_; } + set { + avatarBattleTurns_ = value; + } + } + + /// Field number for the "monster_battle_turns" field. + public const int MonsterBattleTurnsFieldNumber = 12; + private uint monsterBattleTurns_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MonsterBattleTurns { + get { return monsterBattleTurns_; } + set { + monsterBattleTurns_ = value; + } + } + + /// Field number for the "custom_values" field. + public const int CustomValuesFieldNumber = 13; + private static readonly pbc::MapField.Codec _map_customValues_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForFloat(21, 0F), 106); + private readonly pbc::MapField customValues_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField CustomValues { + get { return customValues_; } + } + + /// Field number for the "challenge_score" field. + public const int ChallengeScoreFieldNumber = 14; + private uint challengeScore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ChallengeScore { + get { return challengeScore_; } + set { + challengeScore_ = value; + } + } + + /// Field number for the "end_reason" field. + public const int EndReasonFieldNumber = 19; + private global::EggLink.DanhengServer.Proto.BattleEndReason endReason_ = global::EggLink.DanhengServer.Proto.BattleEndReason.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.BattleEndReason EndReason { + get { return endReason_; } + set { + endReason_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleStatistics); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleStatistics other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalBattleTurns != other.TotalBattleTurns) return false; + if (TotalAutoTurns != other.TotalAutoTurns) return false; + if(!avatarIdList_.Equals(other.avatarIdList_)) return false; + if (UltraCnt != other.UltraCnt) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalDelayCumulate, other.TotalDelayCumulate)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(CostTime, other.CostTime)) return false; + if(!battleAvatarList_.Equals(other.battleAvatarList_)) return false; + if (RoundCnt != other.RoundCnt) return false; + if (CocoonDeadWave != other.CocoonDeadWave) return false; + if (AvatarBattleTurns != other.AvatarBattleTurns) return false; + if (MonsterBattleTurns != other.MonsterBattleTurns) return false; + if (!CustomValues.Equals(other.CustomValues)) return false; + if (ChallengeScore != other.ChallengeScore) return false; + if (EndReason != other.EndReason) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TotalBattleTurns != 0) hash ^= TotalBattleTurns.GetHashCode(); + if (TotalAutoTurns != 0) hash ^= TotalAutoTurns.GetHashCode(); + hash ^= avatarIdList_.GetHashCode(); + if (UltraCnt != 0) hash ^= UltraCnt.GetHashCode(); + if (TotalDelayCumulate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalDelayCumulate); + if (CostTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(CostTime); + hash ^= battleAvatarList_.GetHashCode(); + if (RoundCnt != 0) hash ^= RoundCnt.GetHashCode(); + if (CocoonDeadWave != 0) hash ^= CocoonDeadWave.GetHashCode(); + if (AvatarBattleTurns != 0) hash ^= AvatarBattleTurns.GetHashCode(); + if (MonsterBattleTurns != 0) hash ^= MonsterBattleTurns.GetHashCode(); + hash ^= CustomValues.GetHashCode(); + if (ChallengeScore != 0) hash ^= ChallengeScore.GetHashCode(); + if (EndReason != global::EggLink.DanhengServer.Proto.BattleEndReason.None) hash ^= EndReason.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TotalBattleTurns != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalBattleTurns); + } + if (TotalAutoTurns != 0) { + output.WriteRawTag(16); + output.WriteUInt32(TotalAutoTurns); + } + avatarIdList_.WriteTo(output, _repeated_avatarIdList_codec); + if (UltraCnt != 0) { + output.WriteRawTag(32); + output.WriteUInt32(UltraCnt); + } + if (TotalDelayCumulate != 0D) { + output.WriteRawTag(41); + output.WriteDouble(TotalDelayCumulate); + } + if (CostTime != 0D) { + output.WriteRawTag(49); + output.WriteDouble(CostTime); + } + battleAvatarList_.WriteTo(output, _repeated_battleAvatarList_codec); + if (RoundCnt != 0) { + output.WriteRawTag(72); + output.WriteUInt32(RoundCnt); + } + if (CocoonDeadWave != 0) { + output.WriteRawTag(80); + output.WriteUInt32(CocoonDeadWave); + } + if (AvatarBattleTurns != 0) { + output.WriteRawTag(88); + output.WriteUInt32(AvatarBattleTurns); + } + if (MonsterBattleTurns != 0) { + output.WriteRawTag(96); + output.WriteUInt32(MonsterBattleTurns); + } + customValues_.WriteTo(output, _map_customValues_codec); + if (ChallengeScore != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ChallengeScore); + } + if (EndReason != global::EggLink.DanhengServer.Proto.BattleEndReason.None) { + output.WriteRawTag(152, 1); + output.WriteEnum((int) EndReason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TotalBattleTurns != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalBattleTurns); + } + if (TotalAutoTurns != 0) { + output.WriteRawTag(16); + output.WriteUInt32(TotalAutoTurns); + } + avatarIdList_.WriteTo(ref output, _repeated_avatarIdList_codec); + if (UltraCnt != 0) { + output.WriteRawTag(32); + output.WriteUInt32(UltraCnt); + } + if (TotalDelayCumulate != 0D) { + output.WriteRawTag(41); + output.WriteDouble(TotalDelayCumulate); + } + if (CostTime != 0D) { + output.WriteRawTag(49); + output.WriteDouble(CostTime); + } + battleAvatarList_.WriteTo(ref output, _repeated_battleAvatarList_codec); + if (RoundCnt != 0) { + output.WriteRawTag(72); + output.WriteUInt32(RoundCnt); + } + if (CocoonDeadWave != 0) { + output.WriteRawTag(80); + output.WriteUInt32(CocoonDeadWave); + } + if (AvatarBattleTurns != 0) { + output.WriteRawTag(88); + output.WriteUInt32(AvatarBattleTurns); + } + if (MonsterBattleTurns != 0) { + output.WriteRawTag(96); + output.WriteUInt32(MonsterBattleTurns); + } + customValues_.WriteTo(ref output, _map_customValues_codec); + if (ChallengeScore != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ChallengeScore); + } + if (EndReason != global::EggLink.DanhengServer.Proto.BattleEndReason.None) { + output.WriteRawTag(152, 1); + output.WriteEnum((int) EndReason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TotalBattleTurns != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalBattleTurns); + } + if (TotalAutoTurns != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalAutoTurns); + } + size += avatarIdList_.CalculateSize(_repeated_avatarIdList_codec); + if (UltraCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UltraCnt); + } + if (TotalDelayCumulate != 0D) { + size += 1 + 8; + } + if (CostTime != 0D) { + size += 1 + 8; + } + size += battleAvatarList_.CalculateSize(_repeated_battleAvatarList_codec); + if (RoundCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoundCnt); + } + if (CocoonDeadWave != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CocoonDeadWave); + } + if (AvatarBattleTurns != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AvatarBattleTurns); + } + if (MonsterBattleTurns != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MonsterBattleTurns); + } + size += customValues_.CalculateSize(_map_customValues_codec); + if (ChallengeScore != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChallengeScore); + } + if (EndReason != global::EggLink.DanhengServer.Proto.BattleEndReason.None) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EndReason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleStatistics other) { + if (other == null) { + return; + } + if (other.TotalBattleTurns != 0) { + TotalBattleTurns = other.TotalBattleTurns; + } + if (other.TotalAutoTurns != 0) { + TotalAutoTurns = other.TotalAutoTurns; + } + avatarIdList_.Add(other.avatarIdList_); + if (other.UltraCnt != 0) { + UltraCnt = other.UltraCnt; + } + if (other.TotalDelayCumulate != 0D) { + TotalDelayCumulate = other.TotalDelayCumulate; + } + if (other.CostTime != 0D) { + CostTime = other.CostTime; + } + battleAvatarList_.Add(other.battleAvatarList_); + if (other.RoundCnt != 0) { + RoundCnt = other.RoundCnt; + } + if (other.CocoonDeadWave != 0) { + CocoonDeadWave = other.CocoonDeadWave; + } + if (other.AvatarBattleTurns != 0) { + AvatarBattleTurns = other.AvatarBattleTurns; + } + if (other.MonsterBattleTurns != 0) { + MonsterBattleTurns = other.MonsterBattleTurns; + } + customValues_.MergeFrom(other.customValues_); + if (other.ChallengeScore != 0) { + ChallengeScore = other.ChallengeScore; + } + if (other.EndReason != global::EggLink.DanhengServer.Proto.BattleEndReason.None) { + EndReason = other.EndReason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + TotalBattleTurns = input.ReadUInt32(); + break; + } + case 16: { + TotalAutoTurns = input.ReadUInt32(); + break; + } + case 26: + case 24: { + avatarIdList_.AddEntriesFrom(input, _repeated_avatarIdList_codec); + break; + } + case 32: { + UltraCnt = input.ReadUInt32(); + break; + } + case 41: { + TotalDelayCumulate = input.ReadDouble(); + break; + } + case 49: { + CostTime = input.ReadDouble(); + break; + } + case 58: { + battleAvatarList_.AddEntriesFrom(input, _repeated_battleAvatarList_codec); + break; + } + case 72: { + RoundCnt = input.ReadUInt32(); + break; + } + case 80: { + CocoonDeadWave = input.ReadUInt32(); + break; + } + case 88: { + AvatarBattleTurns = input.ReadUInt32(); + break; + } + case 96: { + MonsterBattleTurns = input.ReadUInt32(); + break; + } + case 106: { + customValues_.AddEntriesFrom(input, _map_customValues_codec); + break; + } + case 112: { + ChallengeScore = input.ReadUInt32(); + break; + } + case 152: { + EndReason = (global::EggLink.DanhengServer.Proto.BattleEndReason) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + TotalBattleTurns = input.ReadUInt32(); + break; + } + case 16: { + TotalAutoTurns = input.ReadUInt32(); + break; + } + case 26: + case 24: { + avatarIdList_.AddEntriesFrom(ref input, _repeated_avatarIdList_codec); + break; + } + case 32: { + UltraCnt = input.ReadUInt32(); + break; + } + case 41: { + TotalDelayCumulate = input.ReadDouble(); + break; + } + case 49: { + CostTime = input.ReadDouble(); + break; + } + case 58: { + battleAvatarList_.AddEntriesFrom(ref input, _repeated_battleAvatarList_codec); + break; + } + case 72: { + RoundCnt = input.ReadUInt32(); + break; + } + case 80: { + CocoonDeadWave = input.ReadUInt32(); + break; + } + case 88: { + AvatarBattleTurns = input.ReadUInt32(); + break; + } + case 96: { + MonsterBattleTurns = input.ReadUInt32(); + break; + } + case 106: { + customValues_.AddEntriesFrom(ref input, _map_customValues_codec); + break; + } + case 112: { + ChallengeScore = input.ReadUInt32(); + break; + } + case 152: { + EndReason = (global::EggLink.DanhengServer.Proto.BattleEndReason) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleTarget.cs b/Common/Proto/BattleTarget.cs new file mode 100644 index 00000000..48e473aa --- /dev/null +++ b/Common/Proto/BattleTarget.cs @@ -0,0 +1,308 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleTarget.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleTarget.proto + public static partial class BattleTargetReflection { + + #region Descriptor + /// File descriptor for BattleTarget.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleTargetReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJCYXR0bGVUYXJnZXQucHJvdG8iQQoMQmF0dGxlVGFyZ2V0EgoKAmlkGAEg", + "ASgNEhAKCHByb2dyZXNzGAIgASgNEhMKC0NETEtNS0tPR0xMGAMgASgNQh6q", + "AhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleTarget), global::EggLink.DanhengServer.Proto.BattleTarget.Parser, new[]{ "Id", "Progress", "CDLKMKKOGLL" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleTarget()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattleTargetReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleTarget(BattleTarget other) : this() { + id_ = other.id_; + progress_ = other.progress_; + cDLKMKKOGLL_ = other.cDLKMKKOGLL_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleTarget Clone() { + return new BattleTarget(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 "progress" field. + public const int ProgressFieldNumber = 2; + private uint progress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Progress { + get { return progress_; } + set { + progress_ = value; + } + } + + /// Field number for the "CDLKMKKOGLL" field. + public const int CDLKMKKOGLLFieldNumber = 3; + private uint cDLKMKKOGLL_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CDLKMKKOGLL { + get { return cDLKMKKOGLL_; } + set { + cDLKMKKOGLL_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Progress != other.Progress) return false; + if (CDLKMKKOGLL != other.CDLKMKKOGLL) return false; + 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 (Progress != 0) hash ^= Progress.GetHashCode(); + if (CDLKMKKOGLL != 0) hash ^= CDLKMKKOGLL.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Progress != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Progress); + } + if (CDLKMKKOGLL != 0) { + output.WriteRawTag(24); + output.WriteUInt32(CDLKMKKOGLL); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Progress != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Progress); + } + if (CDLKMKKOGLL != 0) { + output.WriteRawTag(24); + output.WriteUInt32(CDLKMKKOGLL); + } + if (_unknownFields != 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 (Progress != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Progress); + } + if (CDLKMKKOGLL != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CDLKMKKOGLL); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleTarget other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Progress != 0) { + Progress = other.Progress; + } + if (other.CDLKMKKOGLL != 0) { + CDLKMKKOGLL = other.CDLKMKKOGLL; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Progress = input.ReadUInt32(); + break; + } + case 24: { + CDLKMKKOGLL = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Progress = input.ReadUInt32(); + break; + } + case 24: { + CDLKMKKOGLL = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BattleTargetList.cs b/Common/Proto/BattleTargetList.cs new file mode 100644 index 00000000..4aeb00af --- /dev/null +++ b/Common/Proto/BattleTargetList.cs @@ -0,0 +1,224 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BattleTargetList.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BattleTargetList.proto + public static partial class BattleTargetListReflection { + + #region Descriptor + /// File descriptor for BattleTargetList.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BattleTargetListReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZCYXR0bGVUYXJnZXRMaXN0LnByb3RvGhJCYXR0bGVUYXJnZXQucHJvdG8i", + "PQoQQmF0dGxlVGFyZ2V0TGlzdBIpChJiYXR0bGVfdGFyZ2V0X2xpc3QYASAD", + "KAsyDS5CYXR0bGVUYXJnZXRCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BattleTargetReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleTargetList), global::EggLink.DanhengServer.Proto.BattleTargetList.Parser, new[]{ "BattleTargetList_" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BattleTargetList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleTargetList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BattleTargetListReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleTargetList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleTargetList(BattleTargetList other) : this() { + battleTargetList_ = other.battleTargetList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BattleTargetList Clone() { + return new BattleTargetList(this); + } + + /// Field number for the "battle_target_list" field. + public const int BattleTargetList_FieldNumber = 1; + private static readonly pb::FieldCodec _repeated_battleTargetList_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.BattleTarget.Parser); + private readonly pbc::RepeatedField battleTargetList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BattleTargetList_ { + get { return battleTargetList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BattleTargetList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BattleTargetList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!battleTargetList_.Equals(other.battleTargetList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= battleTargetList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + battleTargetList_.WriteTo(output, _repeated_battleTargetList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + battleTargetList_.WriteTo(ref output, _repeated_battleTargetList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += battleTargetList_.CalculateSize(_repeated_battleTargetList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BattleTargetList other) { + if (other == null) { + return; + } + battleTargetList_.Add(other.battleTargetList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + battleTargetList_.AddEntriesFrom(input, _repeated_battleTargetList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + battleTargetList_.AddEntriesFrom(ref input, _repeated_battleTargetList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BlackInfo.cs b/Common/Proto/BlackInfo.cs new file mode 100644 index 00000000..430264c9 --- /dev/null +++ b/Common/Proto/BlackInfo.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BlackInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BlackInfo.proto + public static partial class BlackInfoReflection { + + #region Descriptor + /// File descriptor for BlackInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BlackInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9CbGFja0luZm8ucHJvdG8iWAoJQmxhY2tJbmZvEhIKCmJlZ2luX3RpbWUY", + "ASABKAMSEAoIZW5kX3RpbWUYAiABKAMSEwoLbGltaXRfbGV2ZWwYAyABKA0S", + "EAoIYmFuX3R5cGUYBCABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BlackInfo), global::EggLink.DanhengServer.Proto.BlackInfo.Parser, new[]{ "BeginTime", "EndTime", "LimitLevel", "BanType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BlackInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlackInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BlackInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlackInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlackInfo(BlackInfo other) : this() { + beginTime_ = other.beginTime_; + endTime_ = other.endTime_; + limitLevel_ = other.limitLevel_; + banType_ = other.banType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlackInfo Clone() { + return new BlackInfo(this); + } + + /// Field number for the "begin_time" field. + public const int BeginTimeFieldNumber = 1; + private long beginTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BeginTime { + get { return beginTime_; } + set { + beginTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private long endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "limit_level" field. + public const int LimitLevelFieldNumber = 3; + private uint limitLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint LimitLevel { + get { return limitLevel_; } + set { + limitLevel_ = value; + } + } + + /// Field number for the "ban_type" field. + public const int BanTypeFieldNumber = 4; + private uint banType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BanType { + get { return banType_; } + set { + banType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlackInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlackInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BeginTime != other.BeginTime) return false; + if (EndTime != other.EndTime) return false; + if (LimitLevel != other.LimitLevel) return false; + if (BanType != other.BanType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BeginTime != 0L) hash ^= BeginTime.GetHashCode(); + if (EndTime != 0L) hash ^= EndTime.GetHashCode(); + if (LimitLevel != 0) hash ^= LimitLevel.GetHashCode(); + if (BanType != 0) hash ^= BanType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BeginTime != 0L) { + output.WriteRawTag(8); + output.WriteInt64(BeginTime); + } + if (EndTime != 0L) { + output.WriteRawTag(16); + output.WriteInt64(EndTime); + } + if (LimitLevel != 0) { + output.WriteRawTag(24); + output.WriteUInt32(LimitLevel); + } + if (BanType != 0) { + output.WriteRawTag(32); + output.WriteUInt32(BanType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BeginTime != 0L) { + output.WriteRawTag(8); + output.WriteInt64(BeginTime); + } + if (EndTime != 0L) { + output.WriteRawTag(16); + output.WriteInt64(EndTime); + } + if (LimitLevel != 0) { + output.WriteRawTag(24); + output.WriteUInt32(LimitLevel); + } + if (BanType != 0) { + output.WriteRawTag(32); + output.WriteUInt32(BanType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BeginTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime); + } + if (EndTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime); + } + if (LimitLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LimitLevel); + } + if (BanType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BanType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlackInfo other) { + if (other == null) { + return; + } + if (other.BeginTime != 0L) { + BeginTime = other.BeginTime; + } + if (other.EndTime != 0L) { + EndTime = other.EndTime; + } + if (other.LimitLevel != 0) { + LimitLevel = other.LimitLevel; + } + if (other.BanType != 0) { + BanType = other.BanType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BeginTime = input.ReadInt64(); + break; + } + case 16: { + EndTime = input.ReadInt64(); + break; + } + case 24: { + LimitLevel = input.ReadUInt32(); + break; + } + case 32: { + BanType = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BeginTime = input.ReadInt64(); + break; + } + case 16: { + EndTime = input.ReadInt64(); + break; + } + case 24: { + LimitLevel = input.ReadUInt32(); + break; + } + case 32: { + BanType = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BoardDataSync.cs b/Common/Proto/BoardDataSync.cs new file mode 100644 index 00000000..e1a7b7a9 --- /dev/null +++ b/Common/Proto/BoardDataSync.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BoardDataSync.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BoardDataSync.proto + public static partial class BoardDataSyncReflection { + + #region Descriptor + /// File descriptor for BoardDataSync.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BoardDataSyncReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNCb2FyZERhdGFTeW5jLnByb3RvGg5IZWFkSWNvbi5wcm90byJOCg1Cb2Fy", + "ZERhdGFTeW5jEioKF3VubG9ja2VkX2hlYWRfaWNvbl9saXN0GAUgAygLMgku", + "SGVhZEljb24SEQoJc2lnbmF0dXJlGAogASgJQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.HeadIconReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BoardDataSync), global::EggLink.DanhengServer.Proto.BoardDataSync.Parser, new[]{ "UnlockedHeadIconList", "Signature" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BoardDataSync : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BoardDataSync()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BoardDataSyncReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BoardDataSync() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BoardDataSync(BoardDataSync other) : this() { + unlockedHeadIconList_ = other.unlockedHeadIconList_.Clone(); + signature_ = other.signature_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BoardDataSync Clone() { + return new BoardDataSync(this); + } + + /// Field number for the "unlocked_head_icon_list" field. + public const int UnlockedHeadIconListFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_unlockedHeadIconList_codec + = pb::FieldCodec.ForMessage(42, global::EggLink.DanhengServer.Proto.HeadIcon.Parser); + private readonly pbc::RepeatedField unlockedHeadIconList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnlockedHeadIconList { + get { return unlockedHeadIconList_; } + } + + /// Field number for the "signature" field. + public const int SignatureFieldNumber = 10; + private string signature_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Signature { + get { return signature_; } + set { + signature_ = 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 BoardDataSync); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BoardDataSync other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!unlockedHeadIconList_.Equals(other.unlockedHeadIconList_)) return false; + if (Signature != other.Signature) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= unlockedHeadIconList_.GetHashCode(); + if (Signature.Length != 0) hash ^= Signature.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + unlockedHeadIconList_.WriteTo(output, _repeated_unlockedHeadIconList_codec); + if (Signature.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Signature); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + unlockedHeadIconList_.WriteTo(ref output, _repeated_unlockedHeadIconList_codec); + if (Signature.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Signature); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += unlockedHeadIconList_.CalculateSize(_repeated_unlockedHeadIconList_codec); + if (Signature.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Signature); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BoardDataSync other) { + if (other == null) { + return; + } + unlockedHeadIconList_.Add(other.unlockedHeadIconList_); + if (other.Signature.Length != 0) { + Signature = other.Signature; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + unlockedHeadIconList_.AddEntriesFrom(input, _repeated_unlockedHeadIconList_codec); + break; + } + case 82: { + Signature = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + unlockedHeadIconList_.AddEntriesFrom(ref input, _repeated_unlockedHeadIconList_codec); + break; + } + case 82: { + Signature = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BuffInfo.cs b/Common/Proto/BuffInfo.cs new file mode 100644 index 00000000..5b6bf54f --- /dev/null +++ b/Common/Proto/BuffInfo.cs @@ -0,0 +1,449 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BuffInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BuffInfo.proto + public static partial class BuffInfoReflection { + + #region Descriptor + /// File descriptor for BuffInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BuffInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5CdWZmSW5mby5wcm90byLlAQoIQnVmZkluZm8SDQoFY291bnQYDiABKA0S", + "EwoLYWRkX3RpbWVfbXMYCiABKAQSNAoOZHluYW1pY192YWx1ZXMYBCADKAsy", + "HC5CdWZmSW5mby5EeW5hbWljVmFsdWVzRW50cnkSEQoJbGlmZV90aW1lGAsg", + "ASgCEg0KBWxldmVsGAIgASgNEhYKDmJhc2VfYXZhdGFyX2lkGAMgASgNEg8K", + "B2J1ZmZfaWQYBSABKA0aNAoSRHluYW1pY1ZhbHVlc0VudHJ5EgsKA2tleRgB", + "IAEoCRINCgV2YWx1ZRgCIAEoAjoCOAFCHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl", + "cnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BuffInfo), global::EggLink.DanhengServer.Proto.BuffInfo.Parser, new[]{ "Count", "AddTimeMs", "DynamicValues", "LifeTime", "Level", "BaseAvatarId", "BuffId" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BuffInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuffInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BuffInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuffInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuffInfo(BuffInfo other) : this() { + count_ = other.count_; + addTimeMs_ = other.addTimeMs_; + dynamicValues_ = other.dynamicValues_.Clone(); + lifeTime_ = other.lifeTime_; + level_ = other.level_; + baseAvatarId_ = other.baseAvatarId_; + buffId_ = other.buffId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuffInfo Clone() { + return new BuffInfo(this); + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 14; + private uint count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Count { + get { return count_; } + set { + count_ = value; + } + } + + /// Field number for the "add_time_ms" field. + public const int AddTimeMsFieldNumber = 10; + private ulong addTimeMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong AddTimeMs { + get { return addTimeMs_; } + set { + addTimeMs_ = value; + } + } + + /// Field number for the "dynamic_values" field. + public const int DynamicValuesFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_dynamicValues_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForFloat(21, 0F), 34); + private readonly pbc::MapField dynamicValues_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField DynamicValues { + get { return dynamicValues_; } + } + + /// Field number for the "life_time" field. + public const int LifeTimeFieldNumber = 11; + private float lifeTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float LifeTime { + get { return lifeTime_; } + set { + lifeTime_ = 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 "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 3; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + /// Field number for the "buff_id" field. + public const int BuffIdFieldNumber = 5; + private uint buffId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 BuffInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BuffInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Count != other.Count) return false; + if (AddTimeMs != other.AddTimeMs) return false; + if (!DynamicValues.Equals(other.DynamicValues)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LifeTime, other.LifeTime)) return false; + if (Level != other.Level) return false; + if (BaseAvatarId != other.BaseAvatarId) 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 (Count != 0) hash ^= Count.GetHashCode(); + if (AddTimeMs != 0UL) hash ^= AddTimeMs.GetHashCode(); + hash ^= DynamicValues.GetHashCode(); + if (LifeTime != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LifeTime); + if (Level != 0) hash ^= Level.GetHashCode(); + if (BaseAvatarId != 0) hash ^= BaseAvatarId.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 (Level != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Level); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(BaseAvatarId); + } + dynamicValues_.WriteTo(output, _map_dynamicValues_codec); + if (BuffId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BuffId); + } + if (AddTimeMs != 0UL) { + output.WriteRawTag(80); + output.WriteUInt64(AddTimeMs); + } + if (LifeTime != 0F) { + output.WriteRawTag(93); + output.WriteFloat(LifeTime); + } + if (Count != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Level != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Level); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(BaseAvatarId); + } + dynamicValues_.WriteTo(ref output, _map_dynamicValues_codec); + if (BuffId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BuffId); + } + if (AddTimeMs != 0UL) { + output.WriteRawTag(80); + output.WriteUInt64(AddTimeMs); + } + if (LifeTime != 0F) { + output.WriteRawTag(93); + output.WriteFloat(LifeTime); + } + if (Count != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Count != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Count); + } + if (AddTimeMs != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AddTimeMs); + } + size += dynamicValues_.CalculateSize(_map_dynamicValues_codec); + if (LifeTime != 0F) { + size += 1 + 4; + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (BuffId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BuffInfo other) { + if (other == null) { + return; + } + if (other.Count != 0) { + Count = other.Count; + } + if (other.AddTimeMs != 0UL) { + AddTimeMs = other.AddTimeMs; + } + dynamicValues_.MergeFrom(other.dynamicValues_); + if (other.LifeTime != 0F) { + LifeTime = other.LifeTime; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + Level = input.ReadUInt32(); + break; + } + case 24: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 34: { + dynamicValues_.AddEntriesFrom(input, _map_dynamicValues_codec); + break; + } + case 40: { + BuffId = input.ReadUInt32(); + break; + } + case 80: { + AddTimeMs = input.ReadUInt64(); + break; + } + case 93: { + LifeTime = input.ReadFloat(); + break; + } + case 112: { + Count = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + Level = input.ReadUInt32(); + break; + } + case 24: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 34: { + dynamicValues_.AddEntriesFrom(ref input, _map_dynamicValues_codec); + break; + } + case 40: { + BuffId = input.ReadUInt32(); + break; + } + case 80: { + AddTimeMs = input.ReadUInt64(); + break; + } + case 93: { + LifeTime = input.ReadFloat(); + break; + } + case 112: { + Count = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BuyGoodsCsReq.cs b/Common/Proto/BuyGoodsCsReq.cs new file mode 100644 index 00000000..c1a37fd9 --- /dev/null +++ b/Common/Proto/BuyGoodsCsReq.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BuyGoodsCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BuyGoodsCsReq.proto + public static partial class BuyGoodsCsReqReflection { + + #region Descriptor + /// File descriptor for BuyGoodsCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BuyGoodsCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNCdXlHb29kc0NzUmVxLnByb3RvIlYKDUJ1eUdvb2RzQ3NSZXESDwoHc2hv", + "cF9pZBgFIAEoDRIRCglnb29kc19udW0YCiABKA0SEAoIZ29vZHNfaWQYByAB", + "KA0SDwoHaXRlbV9pZBgPIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy", + "LlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BuyGoodsCsReq), global::EggLink.DanhengServer.Proto.BuyGoodsCsReq.Parser, new[]{ "ShopId", "GoodsNum", "GoodsId", "ItemId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BuyGoodsCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuyGoodsCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BuyGoodsCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuyGoodsCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuyGoodsCsReq(BuyGoodsCsReq other) : this() { + shopId_ = other.shopId_; + goodsNum_ = other.goodsNum_; + goodsId_ = other.goodsId_; + itemId_ = other.itemId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuyGoodsCsReq Clone() { + return new BuyGoodsCsReq(this); + } + + /// Field number for the "shop_id" field. + public const int ShopIdFieldNumber = 5; + private uint shopId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ShopId { + get { return shopId_; } + set { + shopId_ = value; + } + } + + /// Field number for the "goods_num" field. + public const int GoodsNumFieldNumber = 10; + private uint goodsNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GoodsNum { + get { return goodsNum_; } + set { + goodsNum_ = value; + } + } + + /// Field number for the "goods_id" field. + public const int GoodsIdFieldNumber = 7; + private uint goodsId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GoodsId { + get { return goodsId_; } + set { + goodsId_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 15; + private uint itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 BuyGoodsCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BuyGoodsCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ShopId != other.ShopId) return false; + if (GoodsNum != other.GoodsNum) return false; + if (GoodsId != other.GoodsId) 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 (ShopId != 0) hash ^= ShopId.GetHashCode(); + if (GoodsNum != 0) hash ^= GoodsNum.GetHashCode(); + if (GoodsId != 0) hash ^= GoodsId.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 (ShopId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(ShopId); + } + if (GoodsId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(GoodsId); + } + if (GoodsNum != 0) { + output.WriteRawTag(80); + output.WriteUInt32(GoodsNum); + } + if (ItemId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(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 (ShopId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(ShopId); + } + if (GoodsId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(GoodsId); + } + if (GoodsNum != 0) { + output.WriteRawTag(80); + output.WriteUInt32(GoodsNum); + } + if (ItemId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(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 (ShopId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ShopId); + } + if (GoodsNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GoodsNum); + } + if (GoodsId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GoodsId); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ItemId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BuyGoodsCsReq other) { + if (other == null) { + return; + } + if (other.ShopId != 0) { + ShopId = other.ShopId; + } + if (other.GoodsNum != 0) { + GoodsNum = other.GoodsNum; + } + if (other.GoodsId != 0) { + GoodsId = other.GoodsId; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + ShopId = input.ReadUInt32(); + break; + } + case 56: { + GoodsId = input.ReadUInt32(); + break; + } + case 80: { + GoodsNum = input.ReadUInt32(); + break; + } + case 120: { + ItemId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + ShopId = input.ReadUInt32(); + break; + } + case 56: { + GoodsId = input.ReadUInt32(); + break; + } + case 80: { + GoodsNum = input.ReadUInt32(); + break; + } + case 120: { + ItemId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/BuyGoodsScRsp.cs b/Common/Proto/BuyGoodsScRsp.cs new file mode 100644 index 00000000..5bd518ca --- /dev/null +++ b/Common/Proto/BuyGoodsScRsp.cs @@ -0,0 +1,393 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: BuyGoodsScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from BuyGoodsScRsp.proto + public static partial class BuyGoodsScRspReflection { + + #region Descriptor + /// File descriptor for BuyGoodsScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BuyGoodsScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNCdXlHb29kc1NjUnNwLnByb3RvGg5JdGVtTGlzdC5wcm90byKBAQoNQnV5", + "R29vZHNTY1JzcBIjChByZXR1cm5faXRlbV9saXN0GAQgASgLMgkuSXRlbUxp", + "c3QSDwoHcmV0Y29kZRgDIAEoDRIPCgdzaG9wX2lkGA8gASgNEhAKCGdvb2Rz", + "X2lkGA4gASgNEhcKD2dvb2RzX2J1eV90aW1lcxgIIAEoDUIeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BuyGoodsScRsp), global::EggLink.DanhengServer.Proto.BuyGoodsScRsp.Parser, new[]{ "ReturnItemList", "Retcode", "ShopId", "GoodsId", "GoodsBuyTimes" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BuyGoodsScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuyGoodsScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.BuyGoodsScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuyGoodsScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuyGoodsScRsp(BuyGoodsScRsp other) : this() { + returnItemList_ = other.returnItemList_ != null ? other.returnItemList_.Clone() : null; + retcode_ = other.retcode_; + shopId_ = other.shopId_; + goodsId_ = other.goodsId_; + goodsBuyTimes_ = other.goodsBuyTimes_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BuyGoodsScRsp Clone() { + return new BuyGoodsScRsp(this); + } + + /// Field number for the "return_item_list" field. + public const int ReturnItemListFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.ItemList returnItemList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList ReturnItemList { + get { return returnItemList_; } + set { + returnItemList_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "shop_id" field. + public const int ShopIdFieldNumber = 15; + private uint shopId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ShopId { + get { return shopId_; } + set { + shopId_ = value; + } + } + + /// Field number for the "goods_id" field. + public const int GoodsIdFieldNumber = 14; + private uint goodsId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GoodsId { + get { return goodsId_; } + set { + goodsId_ = value; + } + } + + /// Field number for the "goods_buy_times" field. + public const int GoodsBuyTimesFieldNumber = 8; + private uint goodsBuyTimes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GoodsBuyTimes { + get { return goodsBuyTimes_; } + set { + goodsBuyTimes_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BuyGoodsScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BuyGoodsScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ReturnItemList, other.ReturnItemList)) return false; + if (Retcode != other.Retcode) return false; + if (ShopId != other.ShopId) return false; + if (GoodsId != other.GoodsId) return false; + if (GoodsBuyTimes != other.GoodsBuyTimes) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (returnItemList_ != null) hash ^= ReturnItemList.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (ShopId != 0) hash ^= ShopId.GetHashCode(); + if (GoodsId != 0) hash ^= GoodsId.GetHashCode(); + if (GoodsBuyTimes != 0) hash ^= GoodsBuyTimes.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (returnItemList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ReturnItemList); + } + if (GoodsBuyTimes != 0) { + output.WriteRawTag(64); + output.WriteUInt32(GoodsBuyTimes); + } + if (GoodsId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(GoodsId); + } + if (ShopId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(ShopId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (returnItemList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ReturnItemList); + } + if (GoodsBuyTimes != 0) { + output.WriteRawTag(64); + output.WriteUInt32(GoodsBuyTimes); + } + if (GoodsId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(GoodsId); + } + if (ShopId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(ShopId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (returnItemList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnItemList); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (ShopId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ShopId); + } + if (GoodsId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GoodsId); + } + if (GoodsBuyTimes != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GoodsBuyTimes); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BuyGoodsScRsp other) { + if (other == null) { + return; + } + if (other.returnItemList_ != null) { + if (returnItemList_ == null) { + ReturnItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + ReturnItemList.MergeFrom(other.ReturnItemList); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.ShopId != 0) { + ShopId = other.ShopId; + } + if (other.GoodsId != 0) { + GoodsId = other.GoodsId; + } + if (other.GoodsBuyTimes != 0) { + GoodsBuyTimes = other.GoodsBuyTimes; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 34: { + if (returnItemList_ == null) { + ReturnItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ReturnItemList); + break; + } + case 64: { + GoodsBuyTimes = input.ReadUInt32(); + break; + } + case 112: { + GoodsId = input.ReadUInt32(); + break; + } + case 120: { + ShopId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 34: { + if (returnItemList_ == null) { + ReturnItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ReturnItemList); + break; + } + case 64: { + GoodsBuyTimes = input.ReadUInt32(); + break; + } + case 112: { + GoodsId = input.ReadUInt32(); + break; + } + case 120: { + ShopId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Challenge.cs b/Common/Proto/Challenge.cs new file mode 100644 index 00000000..d1fa5259 --- /dev/null +++ b/Common/Proto/Challenge.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Challenge.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from Challenge.proto + public static partial class ChallengeReflection { + + #region Descriptor + /// File descriptor for Challenge.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChallengeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9DaGFsbGVuZ2UucHJvdG8iVQoJQ2hhbGxlbmdlEg0KBXN0YXJzGAsgASgN", + "EhQKDHRha2VuX3Jld2FyZBgKIAEoDRIUCgxjaGFsbGVuZ2VfaWQYCCABKA0S", + "DQoFc2NvcmUYAiABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90", + "b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Challenge), global::EggLink.DanhengServer.Proto.Challenge.Parser, new[]{ "Stars", "TakenReward", "ChallengeId", "Score" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Challenge : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Challenge()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChallengeReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Challenge() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Challenge(Challenge other) : this() { + stars_ = other.stars_; + takenReward_ = other.takenReward_; + challengeId_ = other.challengeId_; + score_ = other.score_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Challenge Clone() { + return new Challenge(this); + } + + /// Field number for the "stars" field. + public const int StarsFieldNumber = 11; + private uint stars_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Stars { + get { return stars_; } + set { + stars_ = value; + } + } + + /// Field number for the "taken_reward" field. + public const int TakenRewardFieldNumber = 10; + private uint takenReward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TakenReward { + get { return takenReward_; } + set { + takenReward_ = value; + } + } + + /// Field number for the "challenge_id" field. + public const int ChallengeIdFieldNumber = 8; + private uint challengeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ChallengeId { + get { return challengeId_; } + set { + challengeId_ = value; + } + } + + /// Field number for the "score" field. + public const int ScoreFieldNumber = 2; + private uint score_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Score { + get { return score_; } + set { + score_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Challenge); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Challenge other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Stars != other.Stars) return false; + if (TakenReward != other.TakenReward) return false; + if (ChallengeId != other.ChallengeId) return false; + if (Score != other.Score) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Stars != 0) hash ^= Stars.GetHashCode(); + if (TakenReward != 0) hash ^= TakenReward.GetHashCode(); + if (ChallengeId != 0) hash ^= ChallengeId.GetHashCode(); + if (Score != 0) hash ^= Score.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Score != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Score); + } + if (ChallengeId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ChallengeId); + } + if (TakenReward != 0) { + output.WriteRawTag(80); + output.WriteUInt32(TakenReward); + } + if (Stars != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Stars); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Score != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Score); + } + if (ChallengeId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ChallengeId); + } + if (TakenReward != 0) { + output.WriteRawTag(80); + output.WriteUInt32(TakenReward); + } + if (Stars != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Stars); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Stars != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Stars); + } + if (TakenReward != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TakenReward); + } + if (ChallengeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChallengeId); + } + if (Score != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Score); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Challenge other) { + if (other == null) { + return; + } + if (other.Stars != 0) { + Stars = other.Stars; + } + if (other.TakenReward != 0) { + TakenReward = other.TakenReward; + } + if (other.ChallengeId != 0) { + ChallengeId = other.ChallengeId; + } + if (other.Score != 0) { + Score = other.Score; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + Score = input.ReadUInt32(); + break; + } + case 64: { + ChallengeId = input.ReadUInt32(); + break; + } + case 80: { + TakenReward = input.ReadUInt32(); + break; + } + case 88: { + Stars = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + Score = input.ReadUInt32(); + break; + } + case 64: { + ChallengeId = input.ReadUInt32(); + break; + } + case 80: { + TakenReward = input.ReadUInt32(); + break; + } + case 88: { + Stars = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChallengeInfo.cs b/Common/Proto/ChallengeInfo.cs new file mode 100644 index 00000000..5d35d038 --- /dev/null +++ b/Common/Proto/ChallengeInfo.cs @@ -0,0 +1,470 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChallengeInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChallengeInfo.proto + public static partial class ChallengeInfoReflection { + + #region Descriptor + /// File descriptor for ChallengeInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChallengeInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNDaGFsbGVuZ2VJbmZvLnByb3RvGhVFeHRyYUxpbmV1cFR5cGUucHJvdG8a", + "FUNoYWxsZW5nZVN0YXR1cy5wcm90bxoYQ2hhbGxlbmdlU3RvcnlJbmZvLnBy", + "b3RvItQBCg1DaGFsbGVuZ2VJbmZvEhQKDGNoYWxsZW5nZV9pZBgOIAEoDRIR", + "CglzY29yZV90d28YAiABKA0SIAoGc3RhdHVzGAogASgOMhAuQ2hhbGxlbmdl", + "U3RhdHVzEisKEWV4dHJhX2xpbmV1cF90eXBlGAQgASgOMhAuRXh0cmFMaW5l", + "dXBUeXBlEicKCnN0b3J5X2luZm8YBiABKAsyEy5DaGFsbGVuZ2VTdG9yeUlu", + "Zm8SEwoLcm91bmRfY291bnQYBSABKA0SDQoFc2NvcmUYCSABKA1CHqoCG0Vn", + "Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ExtraLineupTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChallengeStatusReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChallengeStoryInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChallengeInfo), global::EggLink.DanhengServer.Proto.ChallengeInfo.Parser, new[]{ "ChallengeId", "ScoreTwo", "Status", "ExtraLineupType", "StoryInfo", "RoundCount", "Score" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChallengeInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChallengeInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeInfo(ChallengeInfo other) : this() { + challengeId_ = other.challengeId_; + scoreTwo_ = other.scoreTwo_; + status_ = other.status_; + extraLineupType_ = other.extraLineupType_; + storyInfo_ = other.storyInfo_ != null ? other.storyInfo_.Clone() : null; + roundCount_ = other.roundCount_; + score_ = other.score_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeInfo Clone() { + return new ChallengeInfo(this); + } + + /// Field number for the "challenge_id" field. + public const int ChallengeIdFieldNumber = 14; + private uint challengeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ChallengeId { + get { return challengeId_; } + set { + challengeId_ = value; + } + } + + /// Field number for the "score_two" field. + public const int ScoreTwoFieldNumber = 2; + private uint scoreTwo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ScoreTwo { + get { return scoreTwo_; } + set { + scoreTwo_ = value; + } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.ChallengeStatus status_ = global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChallengeStatus Status { + get { return status_; } + set { + status_ = value; + } + } + + /// Field number for the "extra_lineup_type" field. + public const int ExtraLineupTypeFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.ExtraLineupType extraLineupType_ = global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ExtraLineupType ExtraLineupType { + get { return extraLineupType_; } + set { + extraLineupType_ = value; + } + } + + /// Field number for the "story_info" field. + public const int StoryInfoFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.ChallengeStoryInfo storyInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChallengeStoryInfo StoryInfo { + get { return storyInfo_; } + set { + storyInfo_ = value; + } + } + + /// Field number for the "round_count" field. + public const int RoundCountFieldNumber = 5; + private uint roundCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RoundCount { + get { return roundCount_; } + set { + roundCount_ = value; + } + } + + /// Field number for the "score" field. + public const int ScoreFieldNumber = 9; + private uint score_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Score { + get { return score_; } + set { + score_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChallengeInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChallengeInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ChallengeId != other.ChallengeId) return false; + if (ScoreTwo != other.ScoreTwo) return false; + if (Status != other.Status) return false; + if (ExtraLineupType != other.ExtraLineupType) return false; + if (!object.Equals(StoryInfo, other.StoryInfo)) return false; + if (RoundCount != other.RoundCount) return false; + if (Score != other.Score) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ChallengeId != 0) hash ^= ChallengeId.GetHashCode(); + if (ScoreTwo != 0) hash ^= ScoreTwo.GetHashCode(); + if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) hash ^= Status.GetHashCode(); + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) hash ^= ExtraLineupType.GetHashCode(); + if (storyInfo_ != null) hash ^= StoryInfo.GetHashCode(); + if (RoundCount != 0) hash ^= RoundCount.GetHashCode(); + if (Score != 0) hash ^= Score.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ScoreTwo != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ScoreTwo); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(32); + output.WriteEnum((int) ExtraLineupType); + } + if (RoundCount != 0) { + output.WriteRawTag(40); + output.WriteUInt32(RoundCount); + } + if (storyInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(StoryInfo); + } + if (Score != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Score); + } + if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) { + output.WriteRawTag(80); + output.WriteEnum((int) Status); + } + if (ChallengeId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ChallengeId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ScoreTwo != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ScoreTwo); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(32); + output.WriteEnum((int) ExtraLineupType); + } + if (RoundCount != 0) { + output.WriteRawTag(40); + output.WriteUInt32(RoundCount); + } + if (storyInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(StoryInfo); + } + if (Score != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Score); + } + if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) { + output.WriteRawTag(80); + output.WriteEnum((int) Status); + } + if (ChallengeId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ChallengeId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ChallengeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChallengeId); + } + if (ScoreTwo != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScoreTwo); + } + if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtraLineupType); + } + if (storyInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StoryInfo); + } + if (RoundCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoundCount); + } + if (Score != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Score); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChallengeInfo other) { + if (other == null) { + return; + } + if (other.ChallengeId != 0) { + ChallengeId = other.ChallengeId; + } + if (other.ScoreTwo != 0) { + ScoreTwo = other.ScoreTwo; + } + if (other.Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) { + Status = other.Status; + } + if (other.ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + ExtraLineupType = other.ExtraLineupType; + } + if (other.storyInfo_ != null) { + if (storyInfo_ == null) { + StoryInfo = new global::EggLink.DanhengServer.Proto.ChallengeStoryInfo(); + } + StoryInfo.MergeFrom(other.StoryInfo); + } + if (other.RoundCount != 0) { + RoundCount = other.RoundCount; + } + if (other.Score != 0) { + Score = other.Score; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + ScoreTwo = input.ReadUInt32(); + break; + } + case 32: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + case 40: { + RoundCount = input.ReadUInt32(); + break; + } + case 50: { + if (storyInfo_ == null) { + StoryInfo = new global::EggLink.DanhengServer.Proto.ChallengeStoryInfo(); + } + input.ReadMessage(StoryInfo); + break; + } + case 72: { + Score = input.ReadUInt32(); + break; + } + case 80: { + Status = (global::EggLink.DanhengServer.Proto.ChallengeStatus) input.ReadEnum(); + break; + } + case 112: { + ChallengeId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + ScoreTwo = input.ReadUInt32(); + break; + } + case 32: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + case 40: { + RoundCount = input.ReadUInt32(); + break; + } + case 50: { + if (storyInfo_ == null) { + StoryInfo = new global::EggLink.DanhengServer.Proto.ChallengeStoryInfo(); + } + input.ReadMessage(StoryInfo); + break; + } + case 72: { + Score = input.ReadUInt32(); + break; + } + case 80: { + Status = (global::EggLink.DanhengServer.Proto.ChallengeStatus) input.ReadEnum(); + break; + } + case 112: { + ChallengeId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChallengeLineupNotify.cs b/Common/Proto/ChallengeLineupNotify.cs new file mode 100644 index 00000000..29ad7420 --- /dev/null +++ b/Common/Proto/ChallengeLineupNotify.cs @@ -0,0 +1,235 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChallengeLineupNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChallengeLineupNotify.proto + public static partial class ChallengeLineupNotifyReflection { + + #region Descriptor + /// File descriptor for ChallengeLineupNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChallengeLineupNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtDaGFsbGVuZ2VMaW5ldXBOb3RpZnkucHJvdG8aFUV4dHJhTGluZXVwVHlw", + "ZS5wcm90byJEChVDaGFsbGVuZ2VMaW5ldXBOb3RpZnkSKwoRZXh0cmFfbGlu", + "ZXVwX3R5cGUYDiABKA4yEC5FeHRyYUxpbmV1cFR5cGVCHqoCG0VnZ0xpbmsu", + "RGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ExtraLineupTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChallengeLineupNotify), global::EggLink.DanhengServer.Proto.ChallengeLineupNotify.Parser, new[]{ "ExtraLineupType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChallengeLineupNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeLineupNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChallengeLineupNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeLineupNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeLineupNotify(ChallengeLineupNotify other) : this() { + extraLineupType_ = other.extraLineupType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeLineupNotify Clone() { + return new ChallengeLineupNotify(this); + } + + /// Field number for the "extra_lineup_type" field. + public const int ExtraLineupTypeFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.ExtraLineupType extraLineupType_ = global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ExtraLineupType ExtraLineupType { + get { return extraLineupType_; } + set { + extraLineupType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChallengeLineupNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChallengeLineupNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ExtraLineupType != other.ExtraLineupType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) hash ^= ExtraLineupType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(112); + output.WriteEnum((int) ExtraLineupType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(112); + output.WriteEnum((int) ExtraLineupType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtraLineupType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChallengeLineupNotify other) { + if (other == null) { + return; + } + if (other.ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + ExtraLineupType = other.ExtraLineupType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 112: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 112: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChallengeReward.cs b/Common/Proto/ChallengeReward.cs new file mode 100644 index 00000000..a2c69118 --- /dev/null +++ b/Common/Proto/ChallengeReward.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChallengeReward.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChallengeReward.proto + public static partial class ChallengeRewardReflection { + + #region Descriptor + /// File descriptor for ChallengeReward.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChallengeRewardReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVDaGFsbGVuZ2VSZXdhcmQucHJvdG8iQwoPQ2hhbGxlbmdlUmV3YXJkEh4K", + "FnRha2VuX2NoYWxsZW5nZV9yZXdhcmQYAyABKAQSEAoIZ3JvdXBfaWQYDiAB", + "KA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChallengeReward), global::EggLink.DanhengServer.Proto.ChallengeReward.Parser, new[]{ "TakenChallengeReward", "GroupId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChallengeReward : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeReward()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChallengeRewardReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeReward() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeReward(ChallengeReward other) : this() { + takenChallengeReward_ = other.takenChallengeReward_; + groupId_ = other.groupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeReward Clone() { + return new ChallengeReward(this); + } + + /// Field number for the "taken_challenge_reward" field. + public const int TakenChallengeRewardFieldNumber = 3; + private ulong takenChallengeReward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TakenChallengeReward { + get { return takenChallengeReward_; } + set { + takenChallengeReward_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 14; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChallengeReward); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChallengeReward other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TakenChallengeReward != other.TakenChallengeReward) return false; + if (GroupId != other.GroupId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TakenChallengeReward != 0UL) hash ^= TakenChallengeReward.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TakenChallengeReward != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(TakenChallengeReward); + } + if (GroupId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TakenChallengeReward != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(TakenChallengeReward); + } + if (GroupId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TakenChallengeReward != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TakenChallengeReward); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChallengeReward other) { + if (other == null) { + return; + } + if (other.TakenChallengeReward != 0UL) { + TakenChallengeReward = other.TakenChallengeReward; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + TakenChallengeReward = input.ReadUInt64(); + break; + } + case 112: { + GroupId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + TakenChallengeReward = input.ReadUInt64(); + break; + } + case 112: { + GroupId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChallengeSettleNotify.cs b/Common/Proto/ChallengeSettleNotify.cs new file mode 100644 index 00000000..eeb10f16 --- /dev/null +++ b/Common/Proto/ChallengeSettleNotify.cs @@ -0,0 +1,431 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChallengeSettleNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChallengeSettleNotify.proto + public static partial class ChallengeSettleNotifyReflection { + + #region Descriptor + /// File descriptor for ChallengeSettleNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChallengeSettleNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtDaGFsbGVuZ2VTZXR0bGVOb3RpZnkucHJvdG8aDkl0ZW1MaXN0LnByb3Rv", + "IpMBChVDaGFsbGVuZ2VTZXR0bGVOb3RpZnkSDQoFc3RhcnMYDSABKA0SGQoG", + "cmV3YXJkGAwgASgLMgkuSXRlbUxpc3QSFAoMY2hhbGxlbmdlX2lkGA4gASgN", + "Eg4KBmlzX3dpbhgPIAEoCBIRCglzY29yZV90d28YCiABKA0SFwoPY2hhbGxl", + "bmdlX3Njb3JlGAkgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJv", + "dG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChallengeSettleNotify), global::EggLink.DanhengServer.Proto.ChallengeSettleNotify.Parser, new[]{ "Stars", "Reward", "ChallengeId", "IsWin", "ScoreTwo", "ChallengeScore" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChallengeSettleNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeSettleNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChallengeSettleNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeSettleNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeSettleNotify(ChallengeSettleNotify other) : this() { + stars_ = other.stars_; + reward_ = other.reward_ != null ? other.reward_.Clone() : null; + challengeId_ = other.challengeId_; + isWin_ = other.isWin_; + scoreTwo_ = other.scoreTwo_; + challengeScore_ = other.challengeScore_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeSettleNotify Clone() { + return new ChallengeSettleNotify(this); + } + + /// Field number for the "stars" field. + public const int StarsFieldNumber = 13; + private uint stars_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Stars { + get { return stars_; } + set { + stars_ = value; + } + } + + /// Field number for the "reward" field. + public const int RewardFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.ItemList reward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList Reward { + get { return reward_; } + set { + reward_ = value; + } + } + + /// Field number for the "challenge_id" field. + public const int ChallengeIdFieldNumber = 14; + private uint challengeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ChallengeId { + get { return challengeId_; } + set { + challengeId_ = value; + } + } + + /// Field number for the "is_win" field. + public const int IsWinFieldNumber = 15; + private bool isWin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsWin { + get { return isWin_; } + set { + isWin_ = value; + } + } + + /// Field number for the "score_two" field. + public const int ScoreTwoFieldNumber = 10; + private uint scoreTwo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ScoreTwo { + get { return scoreTwo_; } + set { + scoreTwo_ = value; + } + } + + /// Field number for the "challenge_score" field. + public const int ChallengeScoreFieldNumber = 9; + private uint challengeScore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ChallengeScore { + get { return challengeScore_; } + set { + challengeScore_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChallengeSettleNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChallengeSettleNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Stars != other.Stars) return false; + if (!object.Equals(Reward, other.Reward)) return false; + if (ChallengeId != other.ChallengeId) return false; + if (IsWin != other.IsWin) return false; + if (ScoreTwo != other.ScoreTwo) return false; + if (ChallengeScore != other.ChallengeScore) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Stars != 0) hash ^= Stars.GetHashCode(); + if (reward_ != null) hash ^= Reward.GetHashCode(); + if (ChallengeId != 0) hash ^= ChallengeId.GetHashCode(); + if (IsWin != false) hash ^= IsWin.GetHashCode(); + if (ScoreTwo != 0) hash ^= ScoreTwo.GetHashCode(); + if (ChallengeScore != 0) hash ^= ChallengeScore.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ChallengeScore != 0) { + output.WriteRawTag(72); + output.WriteUInt32(ChallengeScore); + } + if (ScoreTwo != 0) { + output.WriteRawTag(80); + output.WriteUInt32(ScoreTwo); + } + if (reward_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Reward); + } + if (Stars != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Stars); + } + if (ChallengeId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ChallengeId); + } + if (IsWin != false) { + output.WriteRawTag(120); + output.WriteBool(IsWin); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ChallengeScore != 0) { + output.WriteRawTag(72); + output.WriteUInt32(ChallengeScore); + } + if (ScoreTwo != 0) { + output.WriteRawTag(80); + output.WriteUInt32(ScoreTwo); + } + if (reward_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Reward); + } + if (Stars != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Stars); + } + if (ChallengeId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ChallengeId); + } + if (IsWin != false) { + output.WriteRawTag(120); + output.WriteBool(IsWin); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Stars != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Stars); + } + if (reward_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Reward); + } + if (ChallengeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChallengeId); + } + if (IsWin != false) { + size += 1 + 1; + } + if (ScoreTwo != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScoreTwo); + } + if (ChallengeScore != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChallengeScore); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChallengeSettleNotify other) { + if (other == null) { + return; + } + if (other.Stars != 0) { + Stars = other.Stars; + } + if (other.reward_ != null) { + if (reward_ == null) { + Reward = new global::EggLink.DanhengServer.Proto.ItemList(); + } + Reward.MergeFrom(other.Reward); + } + if (other.ChallengeId != 0) { + ChallengeId = other.ChallengeId; + } + if (other.IsWin != false) { + IsWin = other.IsWin; + } + if (other.ScoreTwo != 0) { + ScoreTwo = other.ScoreTwo; + } + if (other.ChallengeScore != 0) { + ChallengeScore = other.ChallengeScore; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 72: { + ChallengeScore = input.ReadUInt32(); + break; + } + case 80: { + ScoreTwo = input.ReadUInt32(); + break; + } + case 98: { + if (reward_ == null) { + Reward = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Reward); + break; + } + case 104: { + Stars = input.ReadUInt32(); + break; + } + case 112: { + ChallengeId = input.ReadUInt32(); + break; + } + case 120: { + IsWin = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 72: { + ChallengeScore = input.ReadUInt32(); + break; + } + case 80: { + ScoreTwo = input.ReadUInt32(); + break; + } + case 98: { + if (reward_ == null) { + Reward = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Reward); + break; + } + case 104: { + Stars = input.ReadUInt32(); + break; + } + case 112: { + ChallengeId = input.ReadUInt32(); + break; + } + case 120: { + IsWin = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChallengeStatus.cs b/Common/Proto/ChallengeStatus.cs new file mode 100644 index 00000000..4b669c32 --- /dev/null +++ b/Common/Proto/ChallengeStatus.cs @@ -0,0 +1,50 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChallengeStatus.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChallengeStatus.proto + public static partial class ChallengeStatusReflection { + + #region Descriptor + /// File descriptor for ChallengeStatus.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChallengeStatusReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVDaGFsbGVuZ2VTdGF0dXMucHJvdG8qaQoPQ2hhbGxlbmdlU3RhdHVzEhUK", + "EUNIQUxMRU5HRV9VTktOT1dOEAASEwoPQ0hBTExFTkdFX0RPSU5HEAESFAoQ", + "Q0hBTExFTkdFX0ZJTklTSBACEhQKEENIQUxMRU5HRV9GQUlMRUQQA0IeqgIb", + "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.ChallengeStatus), }, null, null)); + } + #endregion + + } + #region Enums + public enum ChallengeStatus { + [pbr::OriginalName("CHALLENGE_UNKNOWN")] ChallengeUnknown = 0, + [pbr::OriginalName("CHALLENGE_DOING")] ChallengeDoing = 1, + [pbr::OriginalName("CHALLENGE_FINISH")] ChallengeFinish = 2, + [pbr::OriginalName("CHALLENGE_FAILED")] ChallengeFailed = 3, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChallengeStoryBuffInfo.cs b/Common/Proto/ChallengeStoryBuffInfo.cs new file mode 100644 index 00000000..246b4606 --- /dev/null +++ b/Common/Proto/ChallengeStoryBuffInfo.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChallengeStoryBuffInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChallengeStoryBuffInfo.proto + public static partial class ChallengeStoryBuffInfoReflection { + + #region Descriptor + /// File descriptor for ChallengeStoryBuffInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChallengeStoryBuffInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxDaGFsbGVuZ2VTdG9yeUJ1ZmZJbmZvLnByb3RvIisKFkNoYWxsZW5nZVN0", + "b3J5QnVmZkluZm8SEQoJYnVmZl9saXN0GAIgAygNQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChallengeStoryBuffInfo), global::EggLink.DanhengServer.Proto.ChallengeStoryBuffInfo.Parser, new[]{ "BuffList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChallengeStoryBuffInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeStoryBuffInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChallengeStoryBuffInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeStoryBuffInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeStoryBuffInfo(ChallengeStoryBuffInfo other) : this() { + buffList_ = other.buffList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeStoryBuffInfo Clone() { + return new ChallengeStoryBuffInfo(this); + } + + /// Field number for the "buff_list" field. + public const int BuffListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_buffList_codec + = pb::FieldCodec.ForUInt32(18); + private readonly pbc::RepeatedField buffList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffList { + get { return buffList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChallengeStoryBuffInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChallengeStoryBuffInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!buffList_.Equals(other.buffList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= buffList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + buffList_.WriteTo(output, _repeated_buffList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + buffList_.WriteTo(ref output, _repeated_buffList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += buffList_.CalculateSize(_repeated_buffList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChallengeStoryBuffInfo other) { + if (other == null) { + return; + } + buffList_.Add(other.buffList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: + case 16: { + buffList_.AddEntriesFrom(input, _repeated_buffList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: + case 16: { + buffList_.AddEntriesFrom(ref input, _repeated_buffList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChallengeStoryInfo.cs b/Common/Proto/ChallengeStoryInfo.cs new file mode 100644 index 00000000..10bfbe2b --- /dev/null +++ b/Common/Proto/ChallengeStoryInfo.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChallengeStoryInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChallengeStoryInfo.proto + public static partial class ChallengeStoryInfoReflection { + + #region Descriptor + /// File descriptor for ChallengeStoryInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChallengeStoryInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhDaGFsbGVuZ2VTdG9yeUluZm8ucHJvdG8aHENoYWxsZW5nZVN0b3J5QnVm", + "ZkluZm8ucHJvdG8iRgoSQ2hhbGxlbmdlU3RvcnlJbmZvEjAKD2N1cl9zdG9y", + "eV9idWZmcxgBIAEoCzIXLkNoYWxsZW5nZVN0b3J5QnVmZkluZm9CHqoCG0Vn", + "Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChallengeStoryBuffInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChallengeStoryInfo), global::EggLink.DanhengServer.Proto.ChallengeStoryInfo.Parser, new[]{ "CurStoryBuffs" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChallengeStoryInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeStoryInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChallengeStoryInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeStoryInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeStoryInfo(ChallengeStoryInfo other) : this() { + curStoryBuffs_ = other.curStoryBuffs_ != null ? other.curStoryBuffs_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeStoryInfo Clone() { + return new ChallengeStoryInfo(this); + } + + /// Field number for the "cur_story_buffs" field. + public const int CurStoryBuffsFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.ChallengeStoryBuffInfo curStoryBuffs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChallengeStoryBuffInfo CurStoryBuffs { + get { return curStoryBuffs_; } + set { + curStoryBuffs_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChallengeStoryInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChallengeStoryInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CurStoryBuffs, other.CurStoryBuffs)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (curStoryBuffs_ != null) hash ^= CurStoryBuffs.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (curStoryBuffs_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CurStoryBuffs); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (curStoryBuffs_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CurStoryBuffs); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (curStoryBuffs_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurStoryBuffs); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChallengeStoryInfo other) { + if (other == null) { + return; + } + if (other.curStoryBuffs_ != null) { + if (curStoryBuffs_ == null) { + CurStoryBuffs = new global::EggLink.DanhengServer.Proto.ChallengeStoryBuffInfo(); + } + CurStoryBuffs.MergeFrom(other.CurStoryBuffs); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (curStoryBuffs_ == null) { + CurStoryBuffs = new global::EggLink.DanhengServer.Proto.ChallengeStoryBuffInfo(); + } + input.ReadMessage(CurStoryBuffs); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (curStoryBuffs_ == null) { + CurStoryBuffs = new global::EggLink.DanhengServer.Proto.ChallengeStoryBuffInfo(); + } + input.ReadMessage(CurStoryBuffs); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChangeLineupLeaderCsReq.cs b/Common/Proto/ChangeLineupLeaderCsReq.cs new file mode 100644 index 00000000..ce07ebb6 --- /dev/null +++ b/Common/Proto/ChangeLineupLeaderCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChangeLineupLeaderCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChangeLineupLeaderCsReq.proto + public static partial class ChangeLineupLeaderCsReqReflection { + + #region Descriptor + /// File descriptor for ChangeLineupLeaderCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChangeLineupLeaderCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1DaGFuZ2VMaW5ldXBMZWFkZXJDc1JlcS5wcm90byInChdDaGFuZ2VMaW5l", + "dXBMZWFkZXJDc1JlcRIMCgRzbG90GAkgASgNQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChangeLineupLeaderCsReq), global::EggLink.DanhengServer.Proto.ChangeLineupLeaderCsReq.Parser, new[]{ "Slot" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChangeLineupLeaderCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeLineupLeaderCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChangeLineupLeaderCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeLineupLeaderCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeLineupLeaderCsReq(ChangeLineupLeaderCsReq other) : this() { + slot_ = other.slot_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeLineupLeaderCsReq Clone() { + return new ChangeLineupLeaderCsReq(this); + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 9; + private uint slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Slot { + get { return slot_; } + set { + slot_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChangeLineupLeaderCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChangeLineupLeaderCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Slot != other.Slot) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Slot != 0) hash ^= Slot.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Slot != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Slot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Slot != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Slot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Slot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChangeLineupLeaderCsReq other) { + if (other == null) { + return; + } + if (other.Slot != 0) { + Slot = other.Slot; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 72: { + Slot = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 72: { + Slot = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChangeLineupLeaderScRsp.cs b/Common/Proto/ChangeLineupLeaderScRsp.cs new file mode 100644 index 00000000..05013969 --- /dev/null +++ b/Common/Proto/ChangeLineupLeaderScRsp.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChangeLineupLeaderScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChangeLineupLeaderScRsp.proto + public static partial class ChangeLineupLeaderScRspReflection { + + #region Descriptor + /// File descriptor for ChangeLineupLeaderScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChangeLineupLeaderScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1DaGFuZ2VMaW5ldXBMZWFkZXJTY1JzcC5wcm90byI4ChdDaGFuZ2VMaW5l", + "dXBMZWFkZXJTY1JzcBIPCgdyZXRjb2RlGAggASgNEgwKBHNsb3QYCiABKA1C", + "HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChangeLineupLeaderScRsp), global::EggLink.DanhengServer.Proto.ChangeLineupLeaderScRsp.Parser, new[]{ "Retcode", "Slot" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChangeLineupLeaderScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeLineupLeaderScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChangeLineupLeaderScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeLineupLeaderScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeLineupLeaderScRsp(ChangeLineupLeaderScRsp other) : this() { + retcode_ = other.retcode_; + slot_ = other.slot_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeLineupLeaderScRsp Clone() { + return new ChangeLineupLeaderScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 8; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 10; + private uint slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Slot { + get { return slot_; } + set { + slot_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChangeLineupLeaderScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChangeLineupLeaderScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (Slot != other.Slot) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (Slot != 0) hash ^= Slot.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + if (Slot != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Slot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + if (Slot != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Slot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (Slot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChangeLineupLeaderScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.Slot != 0) { + Slot = other.Slot; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + Retcode = input.ReadUInt32(); + break; + } + case 80: { + Slot = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + Retcode = input.ReadUInt32(); + break; + } + case 80: { + Slot = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChargerInfo.cs b/Common/Proto/ChargerInfo.cs new file mode 100644 index 00000000..21a8d935 --- /dev/null +++ b/Common/Proto/ChargerInfo.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChargerInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChargerInfo.proto + public static partial class ChargerInfoReflection { + + #region Descriptor + /// File descriptor for ChargerInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChargerInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFDaGFyZ2VySW5mby5wcm90byIwCgtDaGFyZ2VySW5mbxIQCghncm91cF9p", + "ZBgOIAEoDRIPCgd1bmtfaW50GAEgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChargerInfo), global::EggLink.DanhengServer.Proto.ChargerInfo.Parser, new[]{ "GroupId", "UnkInt" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChargerInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChargerInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChargerInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChargerInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChargerInfo(ChargerInfo other) : this() { + groupId_ = other.groupId_; + unkInt_ = other.unkInt_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChargerInfo Clone() { + return new ChargerInfo(this); + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 14; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "unk_int" field. + public const int UnkIntFieldNumber = 1; + private uint unkInt_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UnkInt { + get { return unkInt_; } + set { + unkInt_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChargerInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChargerInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupId != other.GroupId) return false; + if (UnkInt != other.UnkInt) return false; + 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 (UnkInt != 0) hash ^= UnkInt.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (UnkInt != 0) { + output.WriteRawTag(8); + output.WriteUInt32(UnkInt); + } + if (GroupId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (UnkInt != 0) { + output.WriteRawTag(8); + output.WriteUInt32(UnkInt); + } + if (GroupId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(GroupId); + } + if (_unknownFields != 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.ComputeUInt32Size(GroupId); + } + if (UnkInt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UnkInt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChargerInfo other) { + if (other == null) { + return; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.UnkInt != 0) { + UnkInt = other.UnkInt; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UnkInt = input.ReadUInt32(); + break; + } + case 112: { + GroupId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UnkInt = input.ReadUInt32(); + break; + } + case 112: { + GroupId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Chat.cs b/Common/Proto/Chat.cs new file mode 100644 index 00000000..32aaf44b --- /dev/null +++ b/Common/Proto/Chat.cs @@ -0,0 +1,383 @@ +// +// 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 EggLink.DanhengServer.Proto { + + /// 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( + "CgpDaGF0LnByb3RvGg1Nc2dUeXBlLnByb3RvImYKBENoYXQSDAoEdGV4dBgF", + "IAEoCRIaCghtc2dfdHlwZRgCIAEoDjIILk1zZ1R5cGUSDQoFZW1vdGUYBiAB", + "KA0SEQoJc2VudF90aW1lGAkgASgEEhIKCnNlbmRlcl91aWQYBCABKA1CHqoC", + "G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MsgTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Chat), global::EggLink.DanhengServer.Proto.Chat.Parser, new[]{ "Text", "MsgType", "Emote", "SentTime", "SenderUid" }, 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::EggLink.DanhengServer.Proto.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() { + text_ = other.text_; + msgType_ = other.msgType_; + emote_ = other.emote_; + sentTime_ = other.sentTime_; + senderUid_ = other.senderUid_; + _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 "text" field. + public const int TextFieldNumber = 5; + 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"); + } + } + + /// Field number for the "msg_type" field. + public const int MsgTypeFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.MsgType msgType_ = global::EggLink.DanhengServer.Proto.MsgType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MsgType MsgType { + get { return msgType_; } + set { + msgType_ = value; + } + } + + /// Field number for the "emote" field. + public const int EmoteFieldNumber = 6; + private uint emote_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Emote { + get { return emote_; } + set { + emote_ = value; + } + } + + /// Field number for the "sent_time" field. + public const int SentTimeFieldNumber = 9; + private ulong sentTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong SentTime { + get { return sentTime_; } + set { + sentTime_ = value; + } + } + + /// Field number for the "sender_uid" field. + public const int SenderUidFieldNumber = 4; + private uint senderUid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SenderUid { + get { return senderUid_; } + set { + senderUid_ = 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 (Text != other.Text) return false; + if (MsgType != other.MsgType) return false; + if (Emote != other.Emote) return false; + if (SentTime != other.SentTime) return false; + if (SenderUid != other.SenderUid) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Text.Length != 0) hash ^= Text.GetHashCode(); + if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) hash ^= MsgType.GetHashCode(); + if (Emote != 0) hash ^= Emote.GetHashCode(); + if (SentTime != 0UL) hash ^= SentTime.GetHashCode(); + if (SenderUid != 0) hash ^= SenderUid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) { + output.WriteRawTag(16); + output.WriteEnum((int) MsgType); + } + if (SenderUid != 0) { + output.WriteRawTag(32); + output.WriteUInt32(SenderUid); + } + if (Text.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Text); + } + if (Emote != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Emote); + } + if (SentTime != 0UL) { + output.WriteRawTag(72); + output.WriteUInt64(SentTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) { + output.WriteRawTag(16); + output.WriteEnum((int) MsgType); + } + if (SenderUid != 0) { + output.WriteRawTag(32); + output.WriteUInt32(SenderUid); + } + if (Text.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Text); + } + if (Emote != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Emote); + } + if (SentTime != 0UL) { + output.WriteRawTag(72); + output.WriteUInt64(SentTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Text.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MsgType); + } + if (Emote != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Emote); + } + if (SentTime != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SentTime); + } + if (SenderUid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SenderUid); + } + 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.Text.Length != 0) { + Text = other.Text; + } + if (other.MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) { + MsgType = other.MsgType; + } + if (other.Emote != 0) { + Emote = other.Emote; + } + if (other.SentTime != 0UL) { + SentTime = other.SentTime; + } + if (other.SenderUid != 0) { + SenderUid = other.SenderUid; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + MsgType = (global::EggLink.DanhengServer.Proto.MsgType) input.ReadEnum(); + break; + } + case 32: { + SenderUid = input.ReadUInt32(); + break; + } + case 42: { + Text = input.ReadString(); + break; + } + case 48: { + Emote = input.ReadUInt32(); + break; + } + case 72: { + SentTime = input.ReadUInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + MsgType = (global::EggLink.DanhengServer.Proto.MsgType) input.ReadEnum(); + break; + } + case 32: { + SenderUid = input.ReadUInt32(); + break; + } + case 42: { + Text = input.ReadString(); + break; + } + case 48: { + Emote = input.ReadUInt32(); + break; + } + case 72: { + SentTime = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChatType.cs b/Common/Proto/ChatType.cs new file mode 100644 index 00000000..f7140c2f --- /dev/null +++ b/Common/Proto/ChatType.cs @@ -0,0 +1,48 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChatType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChatType.proto + public static partial class ChatTypeReflection { + + #region Descriptor + /// File descriptor for ChatType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChatTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5DaGF0VHlwZS5wcm90bypKCghDaGF0VHlwZRISCg5DSEFUX1RZUEVfTk9O", + "RRAAEhUKEUNIQVRfVFlQRV9QUklWQVRFEAESEwoPQ0hBVF9UWVBFX0dST1VQ", + "EAJCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.ChatType), }, null, null)); + } + #endregion + + } + #region Enums + public enum ChatType { + [pbr::OriginalName("CHAT_TYPE_NONE")] None = 0, + [pbr::OriginalName("CHAT_TYPE_PRIVATE")] Private = 1, + [pbr::OriginalName("CHAT_TYPE_GROUP")] Group = 2, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueAvatar.cs b/Common/Proto/ChessRogueAvatar.cs new file mode 100644 index 00000000..d7f91c3c --- /dev/null +++ b/Common/Proto/ChessRogueAvatar.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueAvatar.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueAvatar.proto + public static partial class ChessRogueAvatarReflection { + + #region Descriptor + /// File descriptor for ChessRogueAvatar.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueAvatarReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZDaGVzc1JvZ3VlQXZhdGFyLnByb3RvIjoKEENoZXNzUm9ndWVBdmF0YXIS", + "EwoLUEdQTEpFTkRPTkEYCSABKA0SEQoJYXZhdGFyX2lkGA4gASgNQh6qAhtF", + "Z2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueAvatar), global::EggLink.DanhengServer.Proto.ChessRogueAvatar.Parser, new[]{ "PGPLJENDONA", "AvatarId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueAvatar : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueAvatar()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueAvatarReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueAvatar() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueAvatar(ChessRogueAvatar other) : this() { + pGPLJENDONA_ = other.pGPLJENDONA_; + avatarId_ = other.avatarId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueAvatar Clone() { + return new ChessRogueAvatar(this); + } + + /// Field number for the "PGPLJENDONA" field. + public const int PGPLJENDONAFieldNumber = 9; + private uint pGPLJENDONA_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PGPLJENDONA { + get { return pGPLJENDONA_; } + set { + pGPLJENDONA_ = value; + } + } + + /// Field number for the "avatar_id" field. + public const int AvatarIdFieldNumber = 14; + private uint avatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AvatarId { + get { return avatarId_; } + set { + avatarId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueAvatar); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueAvatar other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PGPLJENDONA != other.PGPLJENDONA) return false; + if (AvatarId != other.AvatarId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PGPLJENDONA != 0) hash ^= PGPLJENDONA.GetHashCode(); + if (AvatarId != 0) hash ^= AvatarId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PGPLJENDONA != 0) { + output.WriteRawTag(72); + output.WriteUInt32(PGPLJENDONA); + } + if (AvatarId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(AvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PGPLJENDONA != 0) { + output.WriteRawTag(72); + output.WriteUInt32(PGPLJENDONA); + } + if (AvatarId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(AvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PGPLJENDONA != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PGPLJENDONA); + } + if (AvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AvatarId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueAvatar other) { + if (other == null) { + return; + } + if (other.PGPLJENDONA != 0) { + PGPLJENDONA = other.PGPLJENDONA; + } + if (other.AvatarId != 0) { + AvatarId = other.AvatarId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 72: { + PGPLJENDONA = input.ReadUInt32(); + break; + } + case 112: { + AvatarId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 72: { + PGPLJENDONA = input.ReadUInt32(); + break; + } + case 112: { + AvatarId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueAvatarInfo.cs b/Common/Proto/ChessRogueAvatarInfo.cs new file mode 100644 index 00000000..4a76adc8 --- /dev/null +++ b/Common/Proto/ChessRogueAvatarInfo.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueAvatarInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueAvatarInfo.proto + public static partial class ChessRogueAvatarInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueAvatarInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueAvatarInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpDaGVzc1JvZ3VlQXZhdGFySW5mby5wcm90bxoWQ2hlc3NSb2d1ZUF2YXRh", + "ci5wcm90bxobUm9ndWVBdmF0YXJSZXZpdmVDb3N0LnByb3RvInIKFENoZXNz", + "Um9ndWVBdmF0YXJJbmZvEisKC3Jldml2ZV9jb3N0GA8gASgLMhYuUm9ndWVB", + "dmF0YXJSZXZpdmVDb3N0Ei0KEmNoZXNzX3JvZ3VlX2F2YXRhchgDIAMoCzIR", + "LkNoZXNzUm9ndWVBdmF0YXJCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueAvatarReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueAvatarReviveCostReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueAvatarInfo), global::EggLink.DanhengServer.Proto.ChessRogueAvatarInfo.Parser, new[]{ "ReviveCost", "ChessRogueAvatar" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueAvatarInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueAvatarInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueAvatarInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueAvatarInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueAvatarInfo(ChessRogueAvatarInfo other) : this() { + reviveCost_ = other.reviveCost_ != null ? other.reviveCost_.Clone() : null; + chessRogueAvatar_ = other.chessRogueAvatar_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueAvatarInfo Clone() { + return new ChessRogueAvatarInfo(this); + } + + /// Field number for the "revive_cost" field. + public const int ReviveCostFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.RogueAvatarReviveCost reviveCost_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueAvatarReviveCost ReviveCost { + get { return reviveCost_; } + set { + reviveCost_ = value; + } + } + + /// Field number for the "chess_rogue_avatar" field. + public const int ChessRogueAvatarFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_chessRogueAvatar_codec + = pb::FieldCodec.ForMessage(26, global::EggLink.DanhengServer.Proto.ChessRogueAvatar.Parser); + private readonly pbc::RepeatedField chessRogueAvatar_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ChessRogueAvatar { + get { return chessRogueAvatar_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueAvatarInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueAvatarInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ReviveCost, other.ReviveCost)) return false; + if(!chessRogueAvatar_.Equals(other.chessRogueAvatar_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (reviveCost_ != null) hash ^= ReviveCost.GetHashCode(); + hash ^= chessRogueAvatar_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + chessRogueAvatar_.WriteTo(output, _repeated_chessRogueAvatar_codec); + if (reviveCost_ != null) { + output.WriteRawTag(122); + output.WriteMessage(ReviveCost); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + chessRogueAvatar_.WriteTo(ref output, _repeated_chessRogueAvatar_codec); + if (reviveCost_ != null) { + output.WriteRawTag(122); + output.WriteMessage(ReviveCost); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (reviveCost_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReviveCost); + } + size += chessRogueAvatar_.CalculateSize(_repeated_chessRogueAvatar_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueAvatarInfo other) { + if (other == null) { + return; + } + if (other.reviveCost_ != null) { + if (reviveCost_ == null) { + ReviveCost = new global::EggLink.DanhengServer.Proto.RogueAvatarReviveCost(); + } + ReviveCost.MergeFrom(other.ReviveCost); + } + chessRogueAvatar_.Add(other.chessRogueAvatar_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + chessRogueAvatar_.AddEntriesFrom(input, _repeated_chessRogueAvatar_codec); + break; + } + case 122: { + if (reviveCost_ == null) { + ReviveCost = new global::EggLink.DanhengServer.Proto.RogueAvatarReviveCost(); + } + input.ReadMessage(ReviveCost); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + chessRogueAvatar_.AddEntriesFrom(ref input, _repeated_chessRogueAvatar_codec); + break; + } + case 122: { + if (reviveCost_ == null) { + ReviveCost = new global::EggLink.DanhengServer.Proto.RogueAvatarReviveCost(); + } + input.ReadMessage(ReviveCost); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueBuffData.cs b/Common/Proto/ChessRogueBuffData.cs new file mode 100644 index 00000000..25636831 --- /dev/null +++ b/Common/Proto/ChessRogueBuffData.cs @@ -0,0 +1,224 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueBuffData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueBuffData.proto + public static partial class ChessRogueBuffDataReflection { + + #region Descriptor + /// File descriptor for ChessRogueBuffData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueBuffDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhDaGVzc1JvZ3VlQnVmZkRhdGEucHJvdG8aE1JvZ3VlQnVmZkRhdGEucHJv", + "dG8iNwoSQ2hlc3NSb2d1ZUJ1ZmZEYXRhEiEKCWJ1ZmZfbGlzdBgNIAMoCzIO", + "LlJvZ3VlQnVmZkRhdGFCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90", + "b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueBuffDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueBuffData), global::EggLink.DanhengServer.Proto.ChessRogueBuffData.Parser, new[]{ "BuffList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueBuffData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueBuffData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueBuffDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueBuffData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueBuffData(ChessRogueBuffData other) : this() { + buffList_ = other.buffList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueBuffData Clone() { + return new ChessRogueBuffData(this); + } + + /// Field number for the "buff_list" field. + public const int BuffListFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_buffList_codec + = pb::FieldCodec.ForMessage(106, global::EggLink.DanhengServer.Proto.RogueBuffData.Parser); + private readonly pbc::RepeatedField buffList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffList { + get { return buffList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueBuffData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueBuffData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!buffList_.Equals(other.buffList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= buffList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + buffList_.WriteTo(output, _repeated_buffList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + buffList_.WriteTo(ref output, _repeated_buffList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += buffList_.CalculateSize(_repeated_buffList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueBuffData other) { + if (other == null) { + return; + } + buffList_.Add(other.buffList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 106: { + buffList_.AddEntriesFrom(input, _repeated_buffList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 106: { + buffList_.AddEntriesFrom(ref input, _repeated_buffList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueBuffInfo.cs b/Common/Proto/ChessRogueBuffInfo.cs new file mode 100644 index 00000000..088743c6 --- /dev/null +++ b/Common/Proto/ChessRogueBuffInfo.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueBuffInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueBuffInfo.proto + public static partial class ChessRogueBuffInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueBuffInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueBuffInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhDaGVzc1JvZ3VlQnVmZkluZm8ucHJvdG8aGENoZXNzUm9ndWVCdWZmRGF0", + "YS5wcm90byI8ChJDaGVzc1JvZ3VlQnVmZkluZm8SJgoJYnVmZl9kYXRhGAEg", + "ASgLMhMuQ2hlc3NSb2d1ZUJ1ZmZEYXRhQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueBuffDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueBuffInfo), global::EggLink.DanhengServer.Proto.ChessRogueBuffInfo.Parser, new[]{ "BuffData" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueBuffInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueBuffInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueBuffInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueBuffInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueBuffInfo(ChessRogueBuffInfo other) : this() { + buffData_ = other.buffData_ != null ? other.buffData_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueBuffInfo Clone() { + return new ChessRogueBuffInfo(this); + } + + /// Field number for the "buff_data" field. + public const int BuffDataFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.ChessRogueBuffData buffData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueBuffData BuffData { + get { return buffData_; } + set { + buffData_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueBuffInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueBuffInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BuffData, other.BuffData)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (buffData_ != null) hash ^= BuffData.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (buffData_ != null) { + output.WriteRawTag(10); + output.WriteMessage(BuffData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (buffData_ != null) { + output.WriteRawTag(10); + output.WriteMessage(BuffData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (buffData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BuffData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueBuffInfo other) { + if (other == null) { + return; + } + if (other.buffData_ != null) { + if (buffData_ == null) { + BuffData = new global::EggLink.DanhengServer.Proto.ChessRogueBuffData(); + } + BuffData.MergeFrom(other.BuffData); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (buffData_ == null) { + BuffData = new global::EggLink.DanhengServer.Proto.ChessRogueBuffData(); + } + input.ReadMessage(BuffData); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (buffData_ == null) { + BuffData = new global::EggLink.DanhengServer.Proto.ChessRogueBuffData(); + } + input.ReadMessage(BuffData); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueCell.cs b/Common/Proto/ChessRogueCell.cs new file mode 100644 index 00000000..859cd328 --- /dev/null +++ b/Common/Proto/ChessRogueCell.cs @@ -0,0 +1,611 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueCell.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueCell.proto + public static partial class ChessRogueCellReflection { + + #region Descriptor + /// File descriptor for ChessRogueCell.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueCellReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRDaGVzc1JvZ3VlQ2VsbC5wcm90byLzAQoOQ2hlc3NSb2d1ZUNlbGwSEwoL", + "SkxPQkdES05KTE4YCiABKA0SEwoLTk5NTkhIUEpCREIYAiABKA0SEwoLaXNf", + "dW5sb2NrZWQYCCABKAgSEwoLUE5LRkFJTktLQ0UYByABKA0SEwoLRk9LS0pK", + "QURQRUEYBSABKA0SEwoLTkxCR0ROTElPTkkYAyABKA0SEwoLSUlKT0NPTkhL", + "TkQYBCADKA0SEwoLZW50cmFuY2VfaWQYASABKA0SEwoLbmV3X3Jvb21faWQY", + "CyABKA0SDwoHY2VsbF9pZBgJIAEoDRITCgtQTUJMTUdERkdBThgGIAEoCEIe", + "qgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueCell), global::EggLink.DanhengServer.Proto.ChessRogueCell.Parser, new[]{ "JLOBGDKNJLN", "NNMNHHPJBDB", "IsUnlocked", "PNKFAINKKCE", "FOKKJJADPEA", "NLBGDNLIONI", "IIJOCONHKND", "EntranceId", "NewRoomId", "CellId", "PMBLMGDFGAN" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueCell : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueCell()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueCellReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueCell() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueCell(ChessRogueCell other) : this() { + jLOBGDKNJLN_ = other.jLOBGDKNJLN_; + nNMNHHPJBDB_ = other.nNMNHHPJBDB_; + isUnlocked_ = other.isUnlocked_; + pNKFAINKKCE_ = other.pNKFAINKKCE_; + fOKKJJADPEA_ = other.fOKKJJADPEA_; + nLBGDNLIONI_ = other.nLBGDNLIONI_; + iIJOCONHKND_ = other.iIJOCONHKND_.Clone(); + entranceId_ = other.entranceId_; + newRoomId_ = other.newRoomId_; + cellId_ = other.cellId_; + pMBLMGDFGAN_ = other.pMBLMGDFGAN_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueCell Clone() { + return new ChessRogueCell(this); + } + + /// Field number for the "JLOBGDKNJLN" field. + public const int JLOBGDKNJLNFieldNumber = 10; + private uint jLOBGDKNJLN_; + /// + /// 7, 4 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint JLOBGDKNJLN { + get { return jLOBGDKNJLN_; } + set { + jLOBGDKNJLN_ = value; + } + } + + /// Field number for the "NNMNHHPJBDB" field. + public const int NNMNHHPJBDBFieldNumber = 2; + private uint nNMNHHPJBDB_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NNMNHHPJBDB { + get { return nNMNHHPJBDB_; } + set { + nNMNHHPJBDB_ = value; + } + } + + /// Field number for the "is_unlocked" field. + public const int IsUnlockedFieldNumber = 8; + private bool isUnlocked_; + /// + /// true + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnlocked { + get { return isUnlocked_; } + set { + isUnlocked_ = value; + } + } + + /// Field number for the "PNKFAINKKCE" field. + public const int PNKFAINKKCEFieldNumber = 7; + private uint pNKFAINKKCE_; + /// + /// 5, 3 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PNKFAINKKCE { + get { return pNKFAINKKCE_; } + set { + pNKFAINKKCE_ = value; + } + } + + /// Field number for the "FOKKJJADPEA" field. + public const int FOKKJJADPEAFieldNumber = 5; + private uint fOKKJJADPEA_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FOKKJJADPEA { + get { return fOKKJJADPEA_; } + set { + fOKKJJADPEA_ = value; + } + } + + /// Field number for the "NLBGDNLIONI" field. + public const int NLBGDNLIONIFieldNumber = 3; + private uint nLBGDNLIONI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NLBGDNLIONI { + get { return nLBGDNLIONI_; } + set { + nLBGDNLIONI_ = value; + } + } + + /// Field number for the "IIJOCONHKND" field. + public const int IIJOCONHKNDFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_iIJOCONHKND_codec + = pb::FieldCodec.ForUInt32(34); + private readonly pbc::RepeatedField iIJOCONHKND_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField IIJOCONHKND { + get { return iIJOCONHKND_; } + } + + /// Field number for the "entrance_id" field. + public const int EntranceIdFieldNumber = 1; + private uint entranceId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntranceId { + get { return entranceId_; } + set { + entranceId_ = value; + } + } + + /// Field number for the "new_room_id" field. + public const int NewRoomIdFieldNumber = 11; + private uint newRoomId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NewRoomId { + get { return newRoomId_; } + set { + newRoomId_ = value; + } + } + + /// Field number for the "cell_id" field. + public const int CellIdFieldNumber = 9; + private uint cellId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CellId { + get { return cellId_; } + set { + cellId_ = value; + } + } + + /// Field number for the "PMBLMGDFGAN" field. + public const int PMBLMGDFGANFieldNumber = 6; + private bool pMBLMGDFGAN_; + /// + ///AKNBDONHPPM chess_rogue_info = 14; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PMBLMGDFGAN { + get { return pMBLMGDFGAN_; } + set { + pMBLMGDFGAN_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueCell); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueCell other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (JLOBGDKNJLN != other.JLOBGDKNJLN) return false; + if (NNMNHHPJBDB != other.NNMNHHPJBDB) return false; + if (IsUnlocked != other.IsUnlocked) return false; + if (PNKFAINKKCE != other.PNKFAINKKCE) return false; + if (FOKKJJADPEA != other.FOKKJJADPEA) return false; + if (NLBGDNLIONI != other.NLBGDNLIONI) return false; + if(!iIJOCONHKND_.Equals(other.iIJOCONHKND_)) return false; + if (EntranceId != other.EntranceId) return false; + if (NewRoomId != other.NewRoomId) return false; + if (CellId != other.CellId) return false; + if (PMBLMGDFGAN != other.PMBLMGDFGAN) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (JLOBGDKNJLN != 0) hash ^= JLOBGDKNJLN.GetHashCode(); + if (NNMNHHPJBDB != 0) hash ^= NNMNHHPJBDB.GetHashCode(); + if (IsUnlocked != false) hash ^= IsUnlocked.GetHashCode(); + if (PNKFAINKKCE != 0) hash ^= PNKFAINKKCE.GetHashCode(); + if (FOKKJJADPEA != 0) hash ^= FOKKJJADPEA.GetHashCode(); + if (NLBGDNLIONI != 0) hash ^= NLBGDNLIONI.GetHashCode(); + hash ^= iIJOCONHKND_.GetHashCode(); + if (EntranceId != 0) hash ^= EntranceId.GetHashCode(); + if (NewRoomId != 0) hash ^= NewRoomId.GetHashCode(); + if (CellId != 0) hash ^= CellId.GetHashCode(); + if (PMBLMGDFGAN != false) hash ^= PMBLMGDFGAN.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntranceId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(EntranceId); + } + if (NNMNHHPJBDB != 0) { + output.WriteRawTag(16); + output.WriteUInt32(NNMNHHPJBDB); + } + if (NLBGDNLIONI != 0) { + output.WriteRawTag(24); + output.WriteUInt32(NLBGDNLIONI); + } + iIJOCONHKND_.WriteTo(output, _repeated_iIJOCONHKND_codec); + if (FOKKJJADPEA != 0) { + output.WriteRawTag(40); + output.WriteUInt32(FOKKJJADPEA); + } + if (PMBLMGDFGAN != false) { + output.WriteRawTag(48); + output.WriteBool(PMBLMGDFGAN); + } + if (PNKFAINKKCE != 0) { + output.WriteRawTag(56); + output.WriteUInt32(PNKFAINKKCE); + } + if (IsUnlocked != false) { + output.WriteRawTag(64); + output.WriteBool(IsUnlocked); + } + if (CellId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(CellId); + } + if (JLOBGDKNJLN != 0) { + output.WriteRawTag(80); + output.WriteUInt32(JLOBGDKNJLN); + } + if (NewRoomId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(NewRoomId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EntranceId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(EntranceId); + } + if (NNMNHHPJBDB != 0) { + output.WriteRawTag(16); + output.WriteUInt32(NNMNHHPJBDB); + } + if (NLBGDNLIONI != 0) { + output.WriteRawTag(24); + output.WriteUInt32(NLBGDNLIONI); + } + iIJOCONHKND_.WriteTo(ref output, _repeated_iIJOCONHKND_codec); + if (FOKKJJADPEA != 0) { + output.WriteRawTag(40); + output.WriteUInt32(FOKKJJADPEA); + } + if (PMBLMGDFGAN != false) { + output.WriteRawTag(48); + output.WriteBool(PMBLMGDFGAN); + } + if (PNKFAINKKCE != 0) { + output.WriteRawTag(56); + output.WriteUInt32(PNKFAINKKCE); + } + if (IsUnlocked != false) { + output.WriteRawTag(64); + output.WriteBool(IsUnlocked); + } + if (CellId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(CellId); + } + if (JLOBGDKNJLN != 0) { + output.WriteRawTag(80); + output.WriteUInt32(JLOBGDKNJLN); + } + if (NewRoomId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(NewRoomId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (JLOBGDKNJLN != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(JLOBGDKNJLN); + } + if (NNMNHHPJBDB != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NNMNHHPJBDB); + } + if (IsUnlocked != false) { + size += 1 + 1; + } + if (PNKFAINKKCE != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PNKFAINKKCE); + } + if (FOKKJJADPEA != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FOKKJJADPEA); + } + if (NLBGDNLIONI != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NLBGDNLIONI); + } + size += iIJOCONHKND_.CalculateSize(_repeated_iIJOCONHKND_codec); + if (EntranceId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntranceId); + } + if (NewRoomId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NewRoomId); + } + if (CellId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CellId); + } + if (PMBLMGDFGAN != 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(ChessRogueCell other) { + if (other == null) { + return; + } + if (other.JLOBGDKNJLN != 0) { + JLOBGDKNJLN = other.JLOBGDKNJLN; + } + if (other.NNMNHHPJBDB != 0) { + NNMNHHPJBDB = other.NNMNHHPJBDB; + } + if (other.IsUnlocked != false) { + IsUnlocked = other.IsUnlocked; + } + if (other.PNKFAINKKCE != 0) { + PNKFAINKKCE = other.PNKFAINKKCE; + } + if (other.FOKKJJADPEA != 0) { + FOKKJJADPEA = other.FOKKJJADPEA; + } + if (other.NLBGDNLIONI != 0) { + NLBGDNLIONI = other.NLBGDNLIONI; + } + iIJOCONHKND_.Add(other.iIJOCONHKND_); + if (other.EntranceId != 0) { + EntranceId = other.EntranceId; + } + if (other.NewRoomId != 0) { + NewRoomId = other.NewRoomId; + } + if (other.CellId != 0) { + CellId = other.CellId; + } + if (other.PMBLMGDFGAN != false) { + PMBLMGDFGAN = other.PMBLMGDFGAN; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + EntranceId = input.ReadUInt32(); + break; + } + case 16: { + NNMNHHPJBDB = input.ReadUInt32(); + break; + } + case 24: { + NLBGDNLIONI = input.ReadUInt32(); + break; + } + case 34: + case 32: { + iIJOCONHKND_.AddEntriesFrom(input, _repeated_iIJOCONHKND_codec); + break; + } + case 40: { + FOKKJJADPEA = input.ReadUInt32(); + break; + } + case 48: { + PMBLMGDFGAN = input.ReadBool(); + break; + } + case 56: { + PNKFAINKKCE = input.ReadUInt32(); + break; + } + case 64: { + IsUnlocked = input.ReadBool(); + break; + } + case 72: { + CellId = input.ReadUInt32(); + break; + } + case 80: { + JLOBGDKNJLN = input.ReadUInt32(); + break; + } + case 88: { + NewRoomId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + EntranceId = input.ReadUInt32(); + break; + } + case 16: { + NNMNHHPJBDB = input.ReadUInt32(); + break; + } + case 24: { + NLBGDNLIONI = input.ReadUInt32(); + break; + } + case 34: + case 32: { + iIJOCONHKND_.AddEntriesFrom(ref input, _repeated_iIJOCONHKND_codec); + break; + } + case 40: { + FOKKJJADPEA = input.ReadUInt32(); + break; + } + case 48: { + PMBLMGDFGAN = input.ReadBool(); + break; + } + case 56: { + PNKFAINKKCE = input.ReadUInt32(); + break; + } + case 64: { + IsUnlocked = input.ReadBool(); + break; + } + case 72: { + CellId = input.ReadUInt32(); + break; + } + case 80: { + JLOBGDKNJLN = input.ReadUInt32(); + break; + } + case 88: { + NewRoomId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueCellInfo.cs b/Common/Proto/ChessRogueCellInfo.cs new file mode 100644 index 00000000..46a0a063 --- /dev/null +++ b/Common/Proto/ChessRogueCellInfo.cs @@ -0,0 +1,264 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueCellInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueCellInfo.proto + public static partial class ChessRogueCellInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueCellInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueCellInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhDaGVzc1JvZ3VlQ2VsbEluZm8ucHJvdG8aFENoZXNzUm9ndWVDZWxsLnBy", + "b3RvIkkKEkNoZXNzUm9ndWVDZWxsSW5mbxIeCgVxdWVyeRgHIAMoCzIPLkNo", + "ZXNzUm9ndWVDZWxsEhMKC0JJRUpHREdBT0JMGAEgASgNQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueCellReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueCellInfo), global::EggLink.DanhengServer.Proto.ChessRogueCellInfo.Parser, new[]{ "Query", "BIEJGDGAOBL" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueCellInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueCellInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueCellInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueCellInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueCellInfo(ChessRogueCellInfo other) : this() { + query_ = other.query_.Clone(); + bIEJGDGAOBL_ = other.bIEJGDGAOBL_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueCellInfo Clone() { + return new ChessRogueCellInfo(this); + } + + /// Field number for the "query" field. + public const int QueryFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_query_codec + = pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.ChessRogueCell.Parser); + private readonly pbc::RepeatedField query_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Query { + get { return query_; } + } + + /// Field number for the "BIEJGDGAOBL" field. + public const int BIEJGDGAOBLFieldNumber = 1; + private uint bIEJGDGAOBL_; + /// + /// 61 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BIEJGDGAOBL { + get { return bIEJGDGAOBL_; } + set { + bIEJGDGAOBL_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueCellInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueCellInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!query_.Equals(other.query_)) return false; + if (BIEJGDGAOBL != other.BIEJGDGAOBL) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= query_.GetHashCode(); + if (BIEJGDGAOBL != 0) hash ^= BIEJGDGAOBL.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BIEJGDGAOBL != 0) { + output.WriteRawTag(8); + output.WriteUInt32(BIEJGDGAOBL); + } + query_.WriteTo(output, _repeated_query_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BIEJGDGAOBL != 0) { + output.WriteRawTag(8); + output.WriteUInt32(BIEJGDGAOBL); + } + query_.WriteTo(ref output, _repeated_query_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += query_.CalculateSize(_repeated_query_codec); + if (BIEJGDGAOBL != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BIEJGDGAOBL); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueCellInfo other) { + if (other == null) { + return; + } + query_.Add(other.query_); + if (other.BIEJGDGAOBL != 0) { + BIEJGDGAOBL = other.BIEJGDGAOBL; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BIEJGDGAOBL = input.ReadUInt32(); + break; + } + case 58: { + query_.AddEntriesFrom(input, _repeated_query_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BIEJGDGAOBL = input.ReadUInt32(); + break; + } + case 58: { + query_.AddEntriesFrom(ref input, _repeated_query_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueCellUpdateNotify.cs b/Common/Proto/ChessRogueCellUpdateNotify.cs new file mode 100644 index 00000000..e6a5f9d3 --- /dev/null +++ b/Common/Proto/ChessRogueCellUpdateNotify.cs @@ -0,0 +1,268 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueCellUpdateNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueCellUpdateNotify.proto + public static partial class ChessRogueCellUpdateNotifyReflection { + + #region Descriptor + /// File descriptor for ChessRogueCellUpdateNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueCellUpdateNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBDaGVzc1JvZ3VlQ2VsbFVwZGF0ZU5vdGlmeS5wcm90bxoUQ2hlc3NSb2d1", + "ZUNlbGwucHJvdG8iVgoaQ2hlc3NSb2d1ZUNlbGxVcGRhdGVOb3RpZnkSFAoM", + "Y2VsbF9yb29tX2lkGAQgASgNEiIKCWNlbGxfaW5mbxgGIAMoCzIPLkNoZXNz", + "Um9ndWVDZWxsQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueCellReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateNotify), global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateNotify.Parser, new[]{ "CellRoomId", "CellInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueCellUpdateNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueCellUpdateNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueCellUpdateNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueCellUpdateNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueCellUpdateNotify(ChessRogueCellUpdateNotify other) : this() { + cellRoomId_ = other.cellRoomId_; + cellInfo_ = other.cellInfo_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueCellUpdateNotify Clone() { + return new ChessRogueCellUpdateNotify(this); + } + + /// Field number for the "cell_room_id" field. + public const int CellRoomIdFieldNumber = 4; + private uint cellRoomId_; + /// + ///EOKIACEIBBD IFMNJMMMJCM = 8; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CellRoomId { + get { return cellRoomId_; } + set { + cellRoomId_ = value; + } + } + + /// Field number for the "cell_info" field. + public const int CellInfoFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_cellInfo_codec + = pb::FieldCodec.ForMessage(50, global::EggLink.DanhengServer.Proto.ChessRogueCell.Parser); + private readonly pbc::RepeatedField cellInfo_ = new pbc::RepeatedField(); + /// + ///MMKEKJCAHGP reason = 1; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CellInfo { + get { return cellInfo_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueCellUpdateNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueCellUpdateNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CellRoomId != other.CellRoomId) return false; + if(!cellInfo_.Equals(other.cellInfo_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CellRoomId != 0) hash ^= CellRoomId.GetHashCode(); + hash ^= cellInfo_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CellRoomId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(CellRoomId); + } + cellInfo_.WriteTo(output, _repeated_cellInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CellRoomId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(CellRoomId); + } + cellInfo_.WriteTo(ref output, _repeated_cellInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CellRoomId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CellRoomId); + } + size += cellInfo_.CalculateSize(_repeated_cellInfo_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueCellUpdateNotify other) { + if (other == null) { + return; + } + if (other.CellRoomId != 0) { + CellRoomId = other.CellRoomId; + } + cellInfo_.Add(other.cellInfo_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + CellRoomId = input.ReadUInt32(); + break; + } + case 50: { + cellInfo_.AddEntriesFrom(input, _repeated_cellInfo_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + CellRoomId = input.ReadUInt32(); + break; + } + case 50: { + cellInfo_.AddEntriesFrom(ref input, _repeated_cellInfo_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueConfirmRollScRsp.cs b/Common/Proto/ChessRogueConfirmRollScRsp.cs new file mode 100644 index 00000000..0150dfd5 --- /dev/null +++ b/Common/Proto/ChessRogueConfirmRollScRsp.cs @@ -0,0 +1,282 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueConfirmRollScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueConfirmRollScRsp.proto + public static partial class ChessRogueConfirmRollScRspReflection { + + #region Descriptor + /// File descriptor for ChessRogueConfirmRollScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueConfirmRollScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBDaGVzc1JvZ3VlQ29uZmlybVJvbGxTY1JzcC5wcm90bxoYQ2hlc3NSb2d1", + "ZU5vdXNEaWNlLnByb3RvIlUKGkNoZXNzUm9ndWVDb25maXJtUm9sbFNjUnNw", + "Eg8KB3JldGNvZGUYDSABKA0SJgoJbm91c19kaWNlGAUgASgLMhMuQ2hlc3NS", + "b2d1ZU5vdXNEaWNlQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueNousDiceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueConfirmRollScRsp), global::EggLink.DanhengServer.Proto.ChessRogueConfirmRollScRsp.Parser, new[]{ "Retcode", "NousDice" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueConfirmRollScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueConfirmRollScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueConfirmRollScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueConfirmRollScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueConfirmRollScRsp(ChessRogueConfirmRollScRsp other) : this() { + retcode_ = other.retcode_; + nousDice_ = other.nousDice_ != null ? other.nousDice_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueConfirmRollScRsp Clone() { + return new ChessRogueConfirmRollScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 13; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "nous_dice" field. + public const int NousDiceFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.ChessRogueNousDice nousDice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueNousDice NousDice { + get { return nousDice_; } + set { + nousDice_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueConfirmRollScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueConfirmRollScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(NousDice, other.NousDice)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (nousDice_ != null) hash ^= NousDice.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (nousDice_ != null) { + output.WriteRawTag(42); + output.WriteMessage(NousDice); + } + if (Retcode != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (nousDice_ != null) { + output.WriteRawTag(42); + output.WriteMessage(NousDice); + } + if (Retcode != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (nousDice_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NousDice); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueConfirmRollScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.nousDice_ != null) { + if (nousDice_ == null) { + NousDice = new global::EggLink.DanhengServer.Proto.ChessRogueNousDice(); + } + NousDice.MergeFrom(other.NousDice); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + if (nousDice_ == null) { + NousDice = new global::EggLink.DanhengServer.Proto.ChessRogueNousDice(); + } + input.ReadMessage(NousDice); + break; + } + case 104: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + if (nousDice_ == null) { + NousDice = new global::EggLink.DanhengServer.Proto.ChessRogueNousDice(); + } + input.ReadMessage(NousDice); + break; + } + case 104: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueCurrentInfo.cs b/Common/Proto/ChessRogueCurrentInfo.cs new file mode 100644 index 00000000..7962ae77 --- /dev/null +++ b/Common/Proto/ChessRogueCurrentInfo.cs @@ -0,0 +1,610 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueCurrentInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueCurrentInfo.proto + public static partial class ChessRogueCurrentInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueCurrentInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueCurrentInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtDaGVzc1JvZ3VlQ3VycmVudEluZm8ucHJvdG8aHUNoZXNzUm9ndWVOb3Vz", + "U3RvcnlJbmZvLnByb3RvGhpDaGVzc1JvZ3VlQXZhdGFySW5mby5wcm90bxof", + "Q2hlc3NSb2d1ZVZpcnR1YWxJdGVtSW5mby5wcm90bxoeUm9ndWVDb21tb25Q", + "ZW5kaW5nQWN0aW9uLnByb3RvGhhDaGVzc1JvZ3VlQnVmZkluZm8ucHJvdG8a", + "G0NoZXNzUm9ndWVNaXJhY2xlSW5mby5wcm90bxoYQ2hlc3NSb2d1ZU5vdXNE", + "aWNlLnByb3RvGhlDaGVzc1JvZ3VlTm91c1ZhbHVlLnByb3RvIqMDChVDaGVz", + "c1JvZ3VlQ3VycmVudEluZm8SLAoKc3RvcnlfaW5mbxgFIAEoCzIYLkNoZXNz", + "Um9ndWVOb3VzU3RvcnlJbmZvEjAKEXJvZ3VlX2F2YXRhcl9pbmZvGAogASgL", + "MhUuQ2hlc3NSb2d1ZUF2YXRhckluZm8SGAoQcm9ndWVfdmVyc2lvbl9pZBgM", + "IAEoDRI1ChF2aXJ0dWFsX2l0ZW1faW5mbxgNIAMoCzIaLkNoZXNzUm9ndWVW", + "aXJ0dWFsSXRlbUluZm8SJgoJYnVmZl9pbmZvGAEgASgLMhMuQ2hlc3NSb2d1", + "ZUJ1ZmZJbmZvEjEKDnBlbmRpbmdfYWN0aW9uGAQgASgLMhkuUm9ndWVDb21t", + "b25QZW5kaW5nQWN0aW9uEigKCm5vdXNfdmFsdWUYDiABKAsyFC5DaGVzc1Jv", + "Z3VlTm91c1ZhbHVlEiwKDG1pcmFjbGVfaW5mbxgDIAEoCzIWLkNoZXNzUm9n", + "dWVNaXJhY2xlSW5mbxImCglkaWNlX2luZm8YCyABKAsyEy5DaGVzc1JvZ3Vl", + "Tm91c0RpY2VCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueNousStoryInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueAvatarInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueVirtualItemInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueCommonPendingActionReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueBuffInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueNousDiceReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueNousValueReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfo), global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfo.Parser, new[]{ "StoryInfo", "RogueAvatarInfo", "RogueVersionId", "VirtualItemInfo", "BuffInfo", "PendingAction", "NousValue", "MiracleInfo", "DiceInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueCurrentInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueCurrentInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueCurrentInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueCurrentInfo(ChessRogueCurrentInfo other) : this() { + storyInfo_ = other.storyInfo_ != null ? other.storyInfo_.Clone() : null; + rogueAvatarInfo_ = other.rogueAvatarInfo_ != null ? other.rogueAvatarInfo_.Clone() : null; + rogueVersionId_ = other.rogueVersionId_; + virtualItemInfo_ = other.virtualItemInfo_.Clone(); + buffInfo_ = other.buffInfo_ != null ? other.buffInfo_.Clone() : null; + pendingAction_ = other.pendingAction_ != null ? other.pendingAction_.Clone() : null; + nousValue_ = other.nousValue_ != null ? other.nousValue_.Clone() : null; + miracleInfo_ = other.miracleInfo_ != null ? other.miracleInfo_.Clone() : null; + diceInfo_ = other.diceInfo_ != null ? other.diceInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueCurrentInfo Clone() { + return new ChessRogueCurrentInfo(this); + } + + /// Field number for the "story_info" field. + public const int StoryInfoFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.ChessRogueNousStoryInfo storyInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueNousStoryInfo StoryInfo { + get { return storyInfo_; } + set { + storyInfo_ = value; + } + } + + /// Field number for the "rogue_avatar_info" field. + public const int RogueAvatarInfoFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.ChessRogueAvatarInfo rogueAvatarInfo_; + /// + ///BELMNIPGEDN LIJCHOCOPEK = 15; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueAvatarInfo RogueAvatarInfo { + get { return rogueAvatarInfo_; } + set { + rogueAvatarInfo_ = value; + } + } + + /// Field number for the "rogue_version_id" field. + public const int RogueVersionIdFieldNumber = 12; + private uint rogueVersionId_; + /// + ///DKMCDMJGOIB CKJPPDKJIOH = 2; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RogueVersionId { + get { return rogueVersionId_; } + set { + rogueVersionId_ = value; + } + } + + /// Field number for the "virtual_item_info" field. + public const int VirtualItemInfoFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_virtualItemInfo_codec + = pb::FieldCodec.ForMessage(106, global::EggLink.DanhengServer.Proto.ChessRogueVirtualItemInfo.Parser); + private readonly pbc::RepeatedField virtualItemInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField VirtualItemInfo { + get { return virtualItemInfo_; } + } + + /// Field number for the "buff_info" field. + public const int BuffInfoFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.ChessRogueBuffInfo buffInfo_; + /// + ///NGKOOLFOHEM JNAGMIALOII = 522; + ///LNJJGEAFJPH NMJAHFBMGDO = 7; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueBuffInfo BuffInfo { + get { return buffInfo_; } + set { + buffInfo_ = value; + } + } + + /// Field number for the "pending_action" field. + public const int PendingActionFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.RogueCommonPendingAction pendingAction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueCommonPendingAction PendingAction { + get { return pendingAction_; } + set { + pendingAction_ = value; + } + } + + /// Field number for the "nous_value" field. + public const int NousValueFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.ChessRogueNousValue nousValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueNousValue NousValue { + get { return nousValue_; } + set { + nousValue_ = value; + } + } + + /// Field number for the "miracle_info" field. + public const int MiracleInfoFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfo miracleInfo_; + /// + ///JFGFEBLFGMG KJHGNMBOGHA = 9; + ///CGAPFPHEJIA EEFGNNFCDNJ = 8; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfo MiracleInfo { + get { return miracleInfo_; } + set { + miracleInfo_ = value; + } + } + + /// Field number for the "dice_info" field. + public const int DiceInfoFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.ChessRogueNousDice diceInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueNousDice DiceInfo { + get { return diceInfo_; } + set { + diceInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueCurrentInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueCurrentInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StoryInfo, other.StoryInfo)) return false; + if (!object.Equals(RogueAvatarInfo, other.RogueAvatarInfo)) return false; + if (RogueVersionId != other.RogueVersionId) return false; + if(!virtualItemInfo_.Equals(other.virtualItemInfo_)) return false; + if (!object.Equals(BuffInfo, other.BuffInfo)) return false; + if (!object.Equals(PendingAction, other.PendingAction)) return false; + if (!object.Equals(NousValue, other.NousValue)) return false; + if (!object.Equals(MiracleInfo, other.MiracleInfo)) return false; + if (!object.Equals(DiceInfo, other.DiceInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (storyInfo_ != null) hash ^= StoryInfo.GetHashCode(); + if (rogueAvatarInfo_ != null) hash ^= RogueAvatarInfo.GetHashCode(); + if (RogueVersionId != 0) hash ^= RogueVersionId.GetHashCode(); + hash ^= virtualItemInfo_.GetHashCode(); + if (buffInfo_ != null) hash ^= BuffInfo.GetHashCode(); + if (pendingAction_ != null) hash ^= PendingAction.GetHashCode(); + if (nousValue_ != null) hash ^= NousValue.GetHashCode(); + if (miracleInfo_ != null) hash ^= MiracleInfo.GetHashCode(); + if (diceInfo_ != null) hash ^= DiceInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (buffInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(BuffInfo); + } + if (miracleInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(MiracleInfo); + } + if (pendingAction_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PendingAction); + } + if (storyInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(StoryInfo); + } + if (rogueAvatarInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(RogueAvatarInfo); + } + if (diceInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(DiceInfo); + } + if (RogueVersionId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RogueVersionId); + } + virtualItemInfo_.WriteTo(output, _repeated_virtualItemInfo_codec); + if (nousValue_ != null) { + output.WriteRawTag(114); + output.WriteMessage(NousValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (buffInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(BuffInfo); + } + if (miracleInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(MiracleInfo); + } + if (pendingAction_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PendingAction); + } + if (storyInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(StoryInfo); + } + if (rogueAvatarInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(RogueAvatarInfo); + } + if (diceInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(DiceInfo); + } + if (RogueVersionId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RogueVersionId); + } + virtualItemInfo_.WriteTo(ref output, _repeated_virtualItemInfo_codec); + if (nousValue_ != null) { + output.WriteRawTag(114); + output.WriteMessage(NousValue); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (storyInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StoryInfo); + } + if (rogueAvatarInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueAvatarInfo); + } + if (RogueVersionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RogueVersionId); + } + size += virtualItemInfo_.CalculateSize(_repeated_virtualItemInfo_codec); + if (buffInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BuffInfo); + } + if (pendingAction_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PendingAction); + } + if (nousValue_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NousValue); + } + if (miracleInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MiracleInfo); + } + if (diceInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DiceInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueCurrentInfo other) { + if (other == null) { + return; + } + if (other.storyInfo_ != null) { + if (storyInfo_ == null) { + StoryInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousStoryInfo(); + } + StoryInfo.MergeFrom(other.StoryInfo); + } + if (other.rogueAvatarInfo_ != null) { + if (rogueAvatarInfo_ == null) { + RogueAvatarInfo = new global::EggLink.DanhengServer.Proto.ChessRogueAvatarInfo(); + } + RogueAvatarInfo.MergeFrom(other.RogueAvatarInfo); + } + if (other.RogueVersionId != 0) { + RogueVersionId = other.RogueVersionId; + } + virtualItemInfo_.Add(other.virtualItemInfo_); + if (other.buffInfo_ != null) { + if (buffInfo_ == null) { + BuffInfo = new global::EggLink.DanhengServer.Proto.ChessRogueBuffInfo(); + } + BuffInfo.MergeFrom(other.BuffInfo); + } + if (other.pendingAction_ != null) { + if (pendingAction_ == null) { + PendingAction = new global::EggLink.DanhengServer.Proto.RogueCommonPendingAction(); + } + PendingAction.MergeFrom(other.PendingAction); + } + if (other.nousValue_ != null) { + if (nousValue_ == null) { + NousValue = new global::EggLink.DanhengServer.Proto.ChessRogueNousValue(); + } + NousValue.MergeFrom(other.NousValue); + } + if (other.miracleInfo_ != null) { + if (miracleInfo_ == null) { + MiracleInfo = new global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfo(); + } + MiracleInfo.MergeFrom(other.MiracleInfo); + } + if (other.diceInfo_ != null) { + if (diceInfo_ == null) { + DiceInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousDice(); + } + DiceInfo.MergeFrom(other.DiceInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (buffInfo_ == null) { + BuffInfo = new global::EggLink.DanhengServer.Proto.ChessRogueBuffInfo(); + } + input.ReadMessage(BuffInfo); + break; + } + case 26: { + if (miracleInfo_ == null) { + MiracleInfo = new global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfo(); + } + input.ReadMessage(MiracleInfo); + break; + } + case 34: { + if (pendingAction_ == null) { + PendingAction = new global::EggLink.DanhengServer.Proto.RogueCommonPendingAction(); + } + input.ReadMessage(PendingAction); + break; + } + case 42: { + if (storyInfo_ == null) { + StoryInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousStoryInfo(); + } + input.ReadMessage(StoryInfo); + break; + } + case 82: { + if (rogueAvatarInfo_ == null) { + RogueAvatarInfo = new global::EggLink.DanhengServer.Proto.ChessRogueAvatarInfo(); + } + input.ReadMessage(RogueAvatarInfo); + break; + } + case 90: { + if (diceInfo_ == null) { + DiceInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousDice(); + } + input.ReadMessage(DiceInfo); + break; + } + case 96: { + RogueVersionId = input.ReadUInt32(); + break; + } + case 106: { + virtualItemInfo_.AddEntriesFrom(input, _repeated_virtualItemInfo_codec); + break; + } + case 114: { + if (nousValue_ == null) { + NousValue = new global::EggLink.DanhengServer.Proto.ChessRogueNousValue(); + } + input.ReadMessage(NousValue); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (buffInfo_ == null) { + BuffInfo = new global::EggLink.DanhengServer.Proto.ChessRogueBuffInfo(); + } + input.ReadMessage(BuffInfo); + break; + } + case 26: { + if (miracleInfo_ == null) { + MiracleInfo = new global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfo(); + } + input.ReadMessage(MiracleInfo); + break; + } + case 34: { + if (pendingAction_ == null) { + PendingAction = new global::EggLink.DanhengServer.Proto.RogueCommonPendingAction(); + } + input.ReadMessage(PendingAction); + break; + } + case 42: { + if (storyInfo_ == null) { + StoryInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousStoryInfo(); + } + input.ReadMessage(StoryInfo); + break; + } + case 82: { + if (rogueAvatarInfo_ == null) { + RogueAvatarInfo = new global::EggLink.DanhengServer.Proto.ChessRogueAvatarInfo(); + } + input.ReadMessage(RogueAvatarInfo); + break; + } + case 90: { + if (diceInfo_ == null) { + DiceInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousDice(); + } + input.ReadMessage(DiceInfo); + break; + } + case 96: { + RogueVersionId = input.ReadUInt32(); + break; + } + case 106: { + virtualItemInfo_.AddEntriesFrom(ref input, _repeated_virtualItemInfo_codec); + break; + } + case 114: { + if (nousValue_ == null) { + NousValue = new global::EggLink.DanhengServer.Proto.ChessRogueNousValue(); + } + input.ReadMessage(NousValue); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueInfo.cs b/Common/Proto/ChessRogueInfo.cs new file mode 100644 index 00000000..a8cd906e --- /dev/null +++ b/Common/Proto/ChessRogueInfo.cs @@ -0,0 +1,290 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueInfo.proto + public static partial class ChessRogueInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRDaGVzc1JvZ3VlSW5mby5wcm90bxoQTGluZXVwSW5mby5wcm90bxoPU2Nl", + "bmVJbmZvLnByb3RvIkgKDkNoZXNzUm9ndWVJbmZvEhsKBmxpbmV1cBgEIAEo", + "CzILLkxpbmV1cEluZm8SGQoFc2NlbmUYBiABKAsyCi5TY2VuZUluZm9CHqoC", + "G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.LineupInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueInfo), global::EggLink.DanhengServer.Proto.ChessRogueInfo.Parser, new[]{ "Lineup", "Scene" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueInfo(ChessRogueInfo other) : this() { + lineup_ = other.lineup_ != null ? other.lineup_.Clone() : null; + scene_ = other.scene_ != null ? other.scene_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueInfo Clone() { + return new ChessRogueInfo(this); + } + + /// Field number for the "lineup" field. + public const int LineupFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.LineupInfo lineup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.LineupInfo Lineup { + get { return lineup_; } + set { + lineup_ = value; + } + } + + /// Field number for the "scene" field. + public const int SceneFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.SceneInfo scene_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneInfo Scene { + get { return scene_; } + set { + scene_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Lineup, other.Lineup)) return false; + if (!object.Equals(Scene, other.Scene)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (lineup_ != null) hash ^= Lineup.GetHashCode(); + if (scene_ != null) hash ^= Scene.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (lineup_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Lineup); + } + if (scene_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Scene); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (lineup_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Lineup); + } + if (scene_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Scene); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (lineup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lineup); + } + if (scene_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scene); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueInfo other) { + if (other == null) { + return; + } + if (other.lineup_ != null) { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + Lineup.MergeFrom(other.Lineup); + } + if (other.scene_ != null) { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + Scene.MergeFrom(other.Scene); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 50: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 50: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueItemInfo.cs b/Common/Proto/ChessRogueItemInfo.cs new file mode 100644 index 00000000..3fe6d99a --- /dev/null +++ b/Common/Proto/ChessRogueItemInfo.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueItemInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueItemInfo.proto + public static partial class ChessRogueItemInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueItemInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueItemInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhDaGVzc1JvZ3VlSXRlbUluZm8ucHJvdG8icQoSQ2hlc3NSb2d1ZUl0ZW1J", + "bmZvEi0KBWl0ZW1zGAQgAygLMh4uQ2hlc3NSb2d1ZUl0ZW1JbmZvLkl0ZW1z", + "RW50cnkaLAoKSXRlbXNFbnRyeRILCgNrZXkYASABKA0SDQoFdmFsdWUYAiAB", + "KA06AjgBQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueItemInfo), global::EggLink.DanhengServer.Proto.ChessRogueItemInfo.Parser, new[]{ "Items" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueItemInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueItemInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueItemInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueItemInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueItemInfo(ChessRogueItemInfo other) : this() { + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueItemInfo Clone() { + return new ChessRogueItemInfo(this); + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_items_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 34); + private readonly pbc::MapField items_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueItemInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueItemInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Items.Equals(other.Items)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= Items.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + items_.WriteTo(output, _map_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + items_.WriteTo(ref output, _map_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += items_.CalculateSize(_map_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueItemInfo other) { + if (other == null) { + return; + } + items_.MergeFrom(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + items_.AddEntriesFrom(input, _map_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + items_.AddEntriesFrom(ref input, _map_items_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueMiracleData.cs b/Common/Proto/ChessRogueMiracleData.cs new file mode 100644 index 00000000..963adf78 --- /dev/null +++ b/Common/Proto/ChessRogueMiracleData.cs @@ -0,0 +1,224 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueMiracleData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueMiracleData.proto + public static partial class ChessRogueMiracleDataReflection { + + #region Descriptor + /// File descriptor for ChessRogueMiracleData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueMiracleDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtDaGVzc1JvZ3VlTWlyYWNsZURhdGEucHJvdG8aElJvZ3VlTWlyYWNsZS5w", + "cm90byI8ChVDaGVzc1JvZ3VlTWlyYWNsZURhdGESIwoMbWlyYWNsZV9saXN0", + "GA8gAygLMg0uUm9ndWVNaXJhY2xlQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2", + "ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueMiracleReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueMiracleData), global::EggLink.DanhengServer.Proto.ChessRogueMiracleData.Parser, new[]{ "MiracleList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueMiracleData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueMiracleData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueMiracleDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueMiracleData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueMiracleData(ChessRogueMiracleData other) : this() { + miracleList_ = other.miracleList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueMiracleData Clone() { + return new ChessRogueMiracleData(this); + } + + /// Field number for the "miracle_list" field. + public const int MiracleListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_miracleList_codec + = pb::FieldCodec.ForMessage(122, global::EggLink.DanhengServer.Proto.RogueMiracle.Parser); + private readonly pbc::RepeatedField miracleList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MiracleList { + get { return miracleList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueMiracleData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueMiracleData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!miracleList_.Equals(other.miracleList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= miracleList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + miracleList_.WriteTo(output, _repeated_miracleList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + miracleList_.WriteTo(ref output, _repeated_miracleList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += miracleList_.CalculateSize(_repeated_miracleList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueMiracleData other) { + if (other == null) { + return; + } + miracleList_.Add(other.miracleList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 122: { + miracleList_.AddEntriesFrom(input, _repeated_miracleList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 122: { + miracleList_.AddEntriesFrom(ref input, _repeated_miracleList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueMiracleInfo.cs b/Common/Proto/ChessRogueMiracleInfo.cs new file mode 100644 index 00000000..d29ae74e --- /dev/null +++ b/Common/Proto/ChessRogueMiracleInfo.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueMiracleInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueMiracleInfo.proto + public static partial class ChessRogueMiracleInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueMiracleInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueMiracleInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtDaGVzc1JvZ3VlTWlyYWNsZUluZm8ucHJvdG8aG0NoZXNzUm9ndWVNaXJh", + "Y2xlRGF0YS5wcm90byJFChVDaGVzc1JvZ3VlTWlyYWNsZUluZm8SLAoMbWly", + "YWNsZV9kYXRhGAsgASgLMhYuQ2hlc3NSb2d1ZU1pcmFjbGVEYXRhQh6qAhtF", + "Z2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueMiracleDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfo), global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfo.Parser, new[]{ "MiracleData" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueMiracleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueMiracleInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueMiracleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueMiracleInfo(ChessRogueMiracleInfo other) : this() { + miracleData_ = other.miracleData_ != null ? other.miracleData_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueMiracleInfo Clone() { + return new ChessRogueMiracleInfo(this); + } + + /// Field number for the "miracle_data" field. + public const int MiracleDataFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.ChessRogueMiracleData miracleData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueMiracleData MiracleData { + get { return miracleData_; } + set { + miracleData_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueMiracleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueMiracleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MiracleData, other.MiracleData)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (miracleData_ != null) hash ^= MiracleData.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (miracleData_ != null) { + output.WriteRawTag(90); + output.WriteMessage(MiracleData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (miracleData_ != null) { + output.WriteRawTag(90); + output.WriteMessage(MiracleData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (miracleData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MiracleData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueMiracleInfo other) { + if (other == null) { + return; + } + if (other.miracleData_ != null) { + if (miracleData_ == null) { + MiracleData = new global::EggLink.DanhengServer.Proto.ChessRogueMiracleData(); + } + MiracleData.MergeFrom(other.MiracleData); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 90: { + if (miracleData_ == null) { + MiracleData = new global::EggLink.DanhengServer.Proto.ChessRogueMiracleData(); + } + input.ReadMessage(MiracleData); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 90: { + if (miracleData_ == null) { + MiracleData = new global::EggLink.DanhengServer.Proto.ChessRogueMiracleData(); + } + input.ReadMessage(MiracleData); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueMoneyInfo.cs b/Common/Proto/ChessRogueMoneyInfo.cs new file mode 100644 index 00000000..d5a7dfe4 --- /dev/null +++ b/Common/Proto/ChessRogueMoneyInfo.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueMoneyInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueMoneyInfo.proto + public static partial class ChessRogueMoneyInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueMoneyInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueMoneyInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlDaGVzc1JvZ3VlTW9uZXlJbmZvLnByb3RvIiQKE0NoZXNzUm9ndWVNb25l", + "eUluZm8SDQoFbW9uZXkYDyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl", + "ci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueMoneyInfo), global::EggLink.DanhengServer.Proto.ChessRogueMoneyInfo.Parser, new[]{ "Money" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueMoneyInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueMoneyInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueMoneyInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueMoneyInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueMoneyInfo(ChessRogueMoneyInfo other) : this() { + money_ = other.money_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueMoneyInfo Clone() { + return new ChessRogueMoneyInfo(this); + } + + /// Field number for the "money" field. + public const int MoneyFieldNumber = 15; + private uint money_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Money { + get { return money_; } + set { + money_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueMoneyInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueMoneyInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Money != other.Money) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Money != 0) hash ^= Money.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Money != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Money); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Money != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Money); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Money != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Money); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueMoneyInfo other) { + if (other == null) { + return; + } + if (other.Money != 0) { + Money = other.Money; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 120: { + Money = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 120: { + Money = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueNousDice.cs b/Common/Proto/ChessRogueNousDice.cs new file mode 100644 index 00000000..bf94cde0 --- /dev/null +++ b/Common/Proto/ChessRogueNousDice.cs @@ -0,0 +1,672 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueNousDice.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueNousDice.proto + public static partial class ChessRogueNousDiceReflection { + + #region Descriptor + /// File descriptor for ChessRogueNousDice.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueNousDiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhDaGVzc1JvZ3VlTm91c0RpY2UucHJvdG8aHENoZXNzUm9ndWVOb3VzRGlj", + "ZUluZm8ucHJvdG8iwQIKEkNoZXNzUm9ndWVOb3VzRGljZRITCgtHRkdDUEpP", + "SE1FTBgJIAEoDRIZChFjdXJfc3VyZmFjZV9pbmRleBgNIAEoDRIUCgtOT0dK", + "TU1FREdMTBjBBiADKA0SFAoMcmVyb2xsX3RpbWVzGAIgASgNEisKCWRpY2Vf", + "aW5mbxjQASABKAsyFy5DaGVzc1JvZ3VlTm91c0RpY2VJbmZvEh0KFWRpY2Vf", + "YnJhbmNoX2lkX3JlbW90ZRgOIAEoDRIWCg5kaWNlX2JyYW5jaF9pZBgBIAEo", + "DRIUCgtDSEdMTUxEQU1KSBihCSABKAgSEwoLY2hlYXRfdGltZXMYBCABKA0S", + "EwoLSElKQk9QTUdCQVAYBSABKA0SEwoLQkRFTkFERE9DQUMYCiABKAgSFgoO", + "Y3VyX3N1cmZhY2VfaWQYAyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl", + "ci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueNousDice), global::EggLink.DanhengServer.Proto.ChessRogueNousDice.Parser, new[]{ "GFGCPJOHMEL", "CurSurfaceIndex", "NOGJMMEDGLL", "RerollTimes", "DiceInfo", "DiceBranchIdRemote", "DiceBranchId", "CHGLMLDAMJH", "CheatTimes", "HIJBOPMGBAP", "BDENADDOCAC", "CurSurfaceId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueNousDice : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueNousDice()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueNousDiceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousDice() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousDice(ChessRogueNousDice other) : this() { + gFGCPJOHMEL_ = other.gFGCPJOHMEL_; + curSurfaceIndex_ = other.curSurfaceIndex_; + nOGJMMEDGLL_ = other.nOGJMMEDGLL_.Clone(); + rerollTimes_ = other.rerollTimes_; + diceInfo_ = other.diceInfo_ != null ? other.diceInfo_.Clone() : null; + diceBranchIdRemote_ = other.diceBranchIdRemote_; + diceBranchId_ = other.diceBranchId_; + cHGLMLDAMJH_ = other.cHGLMLDAMJH_; + cheatTimes_ = other.cheatTimes_; + hIJBOPMGBAP_ = other.hIJBOPMGBAP_; + bDENADDOCAC_ = other.bDENADDOCAC_; + curSurfaceId_ = other.curSurfaceId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousDice Clone() { + return new ChessRogueNousDice(this); + } + + /// Field number for the "GFGCPJOHMEL" field. + public const int GFGCPJOHMELFieldNumber = 9; + private uint gFGCPJOHMEL_; + /// + /// 1 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GFGCPJOHMEL { + get { return gFGCPJOHMEL_; } + set { + gFGCPJOHMEL_ = value; + } + } + + /// Field number for the "cur_surface_index" field. + public const int CurSurfaceIndexFieldNumber = 13; + private uint curSurfaceIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurSurfaceIndex { + get { return curSurfaceIndex_; } + set { + curSurfaceIndex_ = value; + } + } + + /// Field number for the "NOGJMMEDGLL" field. + public const int NOGJMMEDGLLFieldNumber = 833; + private static readonly pb::FieldCodec _repeated_nOGJMMEDGLL_codec + = pb::FieldCodec.ForUInt32(6666); + private readonly pbc::RepeatedField nOGJMMEDGLL_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NOGJMMEDGLL { + get { return nOGJMMEDGLL_; } + } + + /// Field number for the "reroll_times" field. + public const int RerollTimesFieldNumber = 2; + private uint rerollTimes_; + /// + ///FEDEMDEEJML JLCEDGIHAFF = 12; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RerollTimes { + get { return rerollTimes_; } + set { + rerollTimes_ = value; + } + } + + /// Field number for the "dice_info" field. + public const int DiceInfoFieldNumber = 208; + private global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo diceInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo DiceInfo { + get { return diceInfo_; } + set { + diceInfo_ = value; + } + } + + /// Field number for the "dice_branch_id_remote" field. + public const int DiceBranchIdRemoteFieldNumber = 14; + private uint diceBranchIdRemote_; + /// + /// idk + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DiceBranchIdRemote { + get { return diceBranchIdRemote_; } + set { + diceBranchIdRemote_ = value; + } + } + + /// Field number for the "dice_branch_id" field. + public const int DiceBranchIdFieldNumber = 1; + private uint diceBranchId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DiceBranchId { + get { return diceBranchId_; } + set { + diceBranchId_ = value; + } + } + + /// Field number for the "CHGLMLDAMJH" field. + public const int CHGLMLDAMJHFieldNumber = 1185; + private bool cHGLMLDAMJH_; + /// + ///NMNBNLMAJGC POHKHEGDOHO = 343; // guess its about modifier + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CHGLMLDAMJH { + get { return cHGLMLDAMJH_; } + set { + cHGLMLDAMJH_ = value; + } + } + + /// Field number for the "cheat_times" field. + public const int CheatTimesFieldNumber = 4; + private uint cheatTimes_; + /// + /// 1 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CheatTimes { + get { return cheatTimes_; } + set { + cheatTimes_ = value; + } + } + + /// Field number for the "HIJBOPMGBAP" field. + public const int HIJBOPMGBAPFieldNumber = 5; + private uint hIJBOPMGBAP_; + /// + /// 10 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint HIJBOPMGBAP { + get { return hIJBOPMGBAP_; } + set { + hIJBOPMGBAP_ = value; + } + } + + /// Field number for the "BDENADDOCAC" field. + public const int BDENADDOCACFieldNumber = 10; + private bool bDENADDOCAC_; + /// + ///sint32 PAOHKKNCNCD = 625; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool BDENADDOCAC { + get { return bDENADDOCAC_; } + set { + bDENADDOCAC_ = value; + } + } + + /// Field number for the "cur_surface_id" field. + public const int CurSurfaceIdFieldNumber = 3; + private uint curSurfaceId_; + /// + ///NMNBNLMAJGC cur_surface_effect = 6; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurSurfaceId { + get { return curSurfaceId_; } + set { + curSurfaceId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueNousDice); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueNousDice other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GFGCPJOHMEL != other.GFGCPJOHMEL) return false; + if (CurSurfaceIndex != other.CurSurfaceIndex) return false; + if(!nOGJMMEDGLL_.Equals(other.nOGJMMEDGLL_)) return false; + if (RerollTimes != other.RerollTimes) return false; + if (!object.Equals(DiceInfo, other.DiceInfo)) return false; + if (DiceBranchIdRemote != other.DiceBranchIdRemote) return false; + if (DiceBranchId != other.DiceBranchId) return false; + if (CHGLMLDAMJH != other.CHGLMLDAMJH) return false; + if (CheatTimes != other.CheatTimes) return false; + if (HIJBOPMGBAP != other.HIJBOPMGBAP) return false; + if (BDENADDOCAC != other.BDENADDOCAC) return false; + if (CurSurfaceId != other.CurSurfaceId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GFGCPJOHMEL != 0) hash ^= GFGCPJOHMEL.GetHashCode(); + if (CurSurfaceIndex != 0) hash ^= CurSurfaceIndex.GetHashCode(); + hash ^= nOGJMMEDGLL_.GetHashCode(); + if (RerollTimes != 0) hash ^= RerollTimes.GetHashCode(); + if (diceInfo_ != null) hash ^= DiceInfo.GetHashCode(); + if (DiceBranchIdRemote != 0) hash ^= DiceBranchIdRemote.GetHashCode(); + if (DiceBranchId != 0) hash ^= DiceBranchId.GetHashCode(); + if (CHGLMLDAMJH != false) hash ^= CHGLMLDAMJH.GetHashCode(); + if (CheatTimes != 0) hash ^= CheatTimes.GetHashCode(); + if (HIJBOPMGBAP != 0) hash ^= HIJBOPMGBAP.GetHashCode(); + if (BDENADDOCAC != false) hash ^= BDENADDOCAC.GetHashCode(); + if (CurSurfaceId != 0) hash ^= CurSurfaceId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (DiceBranchId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(DiceBranchId); + } + if (RerollTimes != 0) { + output.WriteRawTag(16); + output.WriteUInt32(RerollTimes); + } + if (CurSurfaceId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(CurSurfaceId); + } + if (CheatTimes != 0) { + output.WriteRawTag(32); + output.WriteUInt32(CheatTimes); + } + if (HIJBOPMGBAP != 0) { + output.WriteRawTag(40); + output.WriteUInt32(HIJBOPMGBAP); + } + if (GFGCPJOHMEL != 0) { + output.WriteRawTag(72); + output.WriteUInt32(GFGCPJOHMEL); + } + if (BDENADDOCAC != false) { + output.WriteRawTag(80); + output.WriteBool(BDENADDOCAC); + } + if (CurSurfaceIndex != 0) { + output.WriteRawTag(104); + output.WriteUInt32(CurSurfaceIndex); + } + if (DiceBranchIdRemote != 0) { + output.WriteRawTag(112); + output.WriteUInt32(DiceBranchIdRemote); + } + if (diceInfo_ != null) { + output.WriteRawTag(130, 13); + output.WriteMessage(DiceInfo); + } + nOGJMMEDGLL_.WriteTo(output, _repeated_nOGJMMEDGLL_codec); + if (CHGLMLDAMJH != false) { + output.WriteRawTag(136, 74); + output.WriteBool(CHGLMLDAMJH); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (DiceBranchId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(DiceBranchId); + } + if (RerollTimes != 0) { + output.WriteRawTag(16); + output.WriteUInt32(RerollTimes); + } + if (CurSurfaceId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(CurSurfaceId); + } + if (CheatTimes != 0) { + output.WriteRawTag(32); + output.WriteUInt32(CheatTimes); + } + if (HIJBOPMGBAP != 0) { + output.WriteRawTag(40); + output.WriteUInt32(HIJBOPMGBAP); + } + if (GFGCPJOHMEL != 0) { + output.WriteRawTag(72); + output.WriteUInt32(GFGCPJOHMEL); + } + if (BDENADDOCAC != false) { + output.WriteRawTag(80); + output.WriteBool(BDENADDOCAC); + } + if (CurSurfaceIndex != 0) { + output.WriteRawTag(104); + output.WriteUInt32(CurSurfaceIndex); + } + if (DiceBranchIdRemote != 0) { + output.WriteRawTag(112); + output.WriteUInt32(DiceBranchIdRemote); + } + if (diceInfo_ != null) { + output.WriteRawTag(130, 13); + output.WriteMessage(DiceInfo); + } + nOGJMMEDGLL_.WriteTo(ref output, _repeated_nOGJMMEDGLL_codec); + if (CHGLMLDAMJH != false) { + output.WriteRawTag(136, 74); + output.WriteBool(CHGLMLDAMJH); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GFGCPJOHMEL != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GFGCPJOHMEL); + } + if (CurSurfaceIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurSurfaceIndex); + } + size += nOGJMMEDGLL_.CalculateSize(_repeated_nOGJMMEDGLL_codec); + if (RerollTimes != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RerollTimes); + } + if (diceInfo_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DiceInfo); + } + if (DiceBranchIdRemote != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DiceBranchIdRemote); + } + if (DiceBranchId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DiceBranchId); + } + if (CHGLMLDAMJH != false) { + size += 2 + 1; + } + if (CheatTimes != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CheatTimes); + } + if (HIJBOPMGBAP != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(HIJBOPMGBAP); + } + if (BDENADDOCAC != false) { + size += 1 + 1; + } + if (CurSurfaceId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurSurfaceId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueNousDice other) { + if (other == null) { + return; + } + if (other.GFGCPJOHMEL != 0) { + GFGCPJOHMEL = other.GFGCPJOHMEL; + } + if (other.CurSurfaceIndex != 0) { + CurSurfaceIndex = other.CurSurfaceIndex; + } + nOGJMMEDGLL_.Add(other.nOGJMMEDGLL_); + if (other.RerollTimes != 0) { + RerollTimes = other.RerollTimes; + } + if (other.diceInfo_ != null) { + if (diceInfo_ == null) { + DiceInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo(); + } + DiceInfo.MergeFrom(other.DiceInfo); + } + if (other.DiceBranchIdRemote != 0) { + DiceBranchIdRemote = other.DiceBranchIdRemote; + } + if (other.DiceBranchId != 0) { + DiceBranchId = other.DiceBranchId; + } + if (other.CHGLMLDAMJH != false) { + CHGLMLDAMJH = other.CHGLMLDAMJH; + } + if (other.CheatTimes != 0) { + CheatTimes = other.CheatTimes; + } + if (other.HIJBOPMGBAP != 0) { + HIJBOPMGBAP = other.HIJBOPMGBAP; + } + if (other.BDENADDOCAC != false) { + BDENADDOCAC = other.BDENADDOCAC; + } + if (other.CurSurfaceId != 0) { + CurSurfaceId = other.CurSurfaceId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + DiceBranchId = input.ReadUInt32(); + break; + } + case 16: { + RerollTimes = input.ReadUInt32(); + break; + } + case 24: { + CurSurfaceId = input.ReadUInt32(); + break; + } + case 32: { + CheatTimes = input.ReadUInt32(); + break; + } + case 40: { + HIJBOPMGBAP = input.ReadUInt32(); + break; + } + case 72: { + GFGCPJOHMEL = input.ReadUInt32(); + break; + } + case 80: { + BDENADDOCAC = input.ReadBool(); + break; + } + case 104: { + CurSurfaceIndex = input.ReadUInt32(); + break; + } + case 112: { + DiceBranchIdRemote = input.ReadUInt32(); + break; + } + case 1666: { + if (diceInfo_ == null) { + DiceInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo(); + } + input.ReadMessage(DiceInfo); + break; + } + case 6666: + case 6664: { + nOGJMMEDGLL_.AddEntriesFrom(input, _repeated_nOGJMMEDGLL_codec); + break; + } + case 9480: { + CHGLMLDAMJH = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + DiceBranchId = input.ReadUInt32(); + break; + } + case 16: { + RerollTimes = input.ReadUInt32(); + break; + } + case 24: { + CurSurfaceId = input.ReadUInt32(); + break; + } + case 32: { + CheatTimes = input.ReadUInt32(); + break; + } + case 40: { + HIJBOPMGBAP = input.ReadUInt32(); + break; + } + case 72: { + GFGCPJOHMEL = input.ReadUInt32(); + break; + } + case 80: { + BDENADDOCAC = input.ReadBool(); + break; + } + case 104: { + CurSurfaceIndex = input.ReadUInt32(); + break; + } + case 112: { + DiceBranchIdRemote = input.ReadUInt32(); + break; + } + case 1666: { + if (diceInfo_ == null) { + DiceInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo(); + } + input.ReadMessage(DiceInfo); + break; + } + case 6666: + case 6664: { + nOGJMMEDGLL_.AddEntriesFrom(ref input, _repeated_nOGJMMEDGLL_codec); + break; + } + case 9480: { + CHGLMLDAMJH = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueNousDiceInfo.cs b/Common/Proto/ChessRogueNousDiceInfo.cs new file mode 100644 index 00000000..bb327efa --- /dev/null +++ b/Common/Proto/ChessRogueNousDiceInfo.cs @@ -0,0 +1,337 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueNousDiceInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueNousDiceInfo.proto + public static partial class ChessRogueNousDiceInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueNousDiceInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueNousDiceInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxDaGVzc1JvZ3VlTm91c0RpY2VJbmZvLnByb3RvGiNDaGVzc1JvZ3VlTm91", + "c0RpY2VTdXJmYWNlSW5mby5wcm90byKbAQoWQ2hlc3NSb2d1ZU5vdXNEaWNl", + "SW5mbxIWCg5tYXhfZGlmZmljdWx0eRgOIAEoDRI0CgxkaWNlX3N1cmZhY2UY", + "AiADKAsyHi5DaGVzc1JvZ3VlTm91c0RpY2VTdXJmYWNlSW5mbxIWCg5kaWNl", + "X2JyYW5jaF9pZBgFIAEoDRIbChNxdWVzdGlvbl9kaWZmaWN1bHR5GAogASgN", + "Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueNousDiceSurfaceInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo), global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo.Parser, new[]{ "MaxDifficulty", "DiceSurface", "DiceBranchId", "QuestionDifficulty" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueNousDiceInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueNousDiceInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousDiceInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousDiceInfo(ChessRogueNousDiceInfo other) : this() { + maxDifficulty_ = other.maxDifficulty_; + diceSurface_ = other.diceSurface_.Clone(); + diceBranchId_ = other.diceBranchId_; + questionDifficulty_ = other.questionDifficulty_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousDiceInfo Clone() { + return new ChessRogueNousDiceInfo(this); + } + + /// Field number for the "max_difficulty" field. + public const int MaxDifficultyFieldNumber = 14; + private uint maxDifficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxDifficulty { + get { return maxDifficulty_; } + set { + maxDifficulty_ = value; + } + } + + /// Field number for the "dice_surface" field. + public const int DiceSurfaceFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_diceSurface_codec + = pb::FieldCodec.ForMessage(18, global::EggLink.DanhengServer.Proto.ChessRogueNousDiceSurfaceInfo.Parser); + private readonly pbc::RepeatedField diceSurface_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DiceSurface { + get { return diceSurface_; } + } + + /// Field number for the "dice_branch_id" field. + public const int DiceBranchIdFieldNumber = 5; + private uint diceBranchId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DiceBranchId { + get { return diceBranchId_; } + set { + diceBranchId_ = value; + } + } + + /// Field number for the "question_difficulty" field. + public const int QuestionDifficultyFieldNumber = 10; + private uint questionDifficulty_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint QuestionDifficulty { + get { return questionDifficulty_; } + set { + questionDifficulty_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueNousDiceInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueNousDiceInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MaxDifficulty != other.MaxDifficulty) return false; + if(!diceSurface_.Equals(other.diceSurface_)) return false; + if (DiceBranchId != other.DiceBranchId) return false; + if (QuestionDifficulty != other.QuestionDifficulty) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MaxDifficulty != 0) hash ^= MaxDifficulty.GetHashCode(); + hash ^= diceSurface_.GetHashCode(); + if (DiceBranchId != 0) hash ^= DiceBranchId.GetHashCode(); + if (QuestionDifficulty != 0) hash ^= QuestionDifficulty.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + diceSurface_.WriteTo(output, _repeated_diceSurface_codec); + if (DiceBranchId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(DiceBranchId); + } + if (QuestionDifficulty != 0) { + output.WriteRawTag(80); + output.WriteUInt32(QuestionDifficulty); + } + if (MaxDifficulty != 0) { + output.WriteRawTag(112); + output.WriteUInt32(MaxDifficulty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + diceSurface_.WriteTo(ref output, _repeated_diceSurface_codec); + if (DiceBranchId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(DiceBranchId); + } + if (QuestionDifficulty != 0) { + output.WriteRawTag(80); + output.WriteUInt32(QuestionDifficulty); + } + if (MaxDifficulty != 0) { + output.WriteRawTag(112); + output.WriteUInt32(MaxDifficulty); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MaxDifficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxDifficulty); + } + size += diceSurface_.CalculateSize(_repeated_diceSurface_codec); + if (DiceBranchId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DiceBranchId); + } + if (QuestionDifficulty != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(QuestionDifficulty); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueNousDiceInfo other) { + if (other == null) { + return; + } + if (other.MaxDifficulty != 0) { + MaxDifficulty = other.MaxDifficulty; + } + diceSurface_.Add(other.diceSurface_); + if (other.DiceBranchId != 0) { + DiceBranchId = other.DiceBranchId; + } + if (other.QuestionDifficulty != 0) { + QuestionDifficulty = other.QuestionDifficulty; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + diceSurface_.AddEntriesFrom(input, _repeated_diceSurface_codec); + break; + } + case 40: { + DiceBranchId = input.ReadUInt32(); + break; + } + case 80: { + QuestionDifficulty = input.ReadUInt32(); + break; + } + case 112: { + MaxDifficulty = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + diceSurface_.AddEntriesFrom(ref input, _repeated_diceSurface_codec); + break; + } + case 40: { + DiceBranchId = input.ReadUInt32(); + break; + } + case 80: { + QuestionDifficulty = input.ReadUInt32(); + break; + } + case 112: { + MaxDifficulty = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueNousDiceSurfaceInfo.cs b/Common/Proto/ChessRogueNousDiceSurfaceInfo.cs new file mode 100644 index 00000000..d09e3f16 --- /dev/null +++ b/Common/Proto/ChessRogueNousDiceSurfaceInfo.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueNousDiceSurfaceInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueNousDiceSurfaceInfo.proto + public static partial class ChessRogueNousDiceSurfaceInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueNousDiceSurfaceInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueNousDiceSurfaceInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiNDaGVzc1JvZ3VlTm91c0RpY2VTdXJmYWNlSW5mby5wcm90byI/Ch1DaGVz", + "c1JvZ3VlTm91c0RpY2VTdXJmYWNlSW5mbxIPCgdkaWNlX2lkGAkgASgNEg0K", + "BWluZGV4GAUgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueNousDiceSurfaceInfo), global::EggLink.DanhengServer.Proto.ChessRogueNousDiceSurfaceInfo.Parser, new[]{ "DiceId", "Index" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueNousDiceSurfaceInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueNousDiceSurfaceInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueNousDiceSurfaceInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousDiceSurfaceInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousDiceSurfaceInfo(ChessRogueNousDiceSurfaceInfo other) : this() { + diceId_ = other.diceId_; + index_ = other.index_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousDiceSurfaceInfo Clone() { + return new ChessRogueNousDiceSurfaceInfo(this); + } + + /// Field number for the "dice_id" field. + public const int DiceIdFieldNumber = 9; + private uint diceId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DiceId { + get { return diceId_; } + set { + diceId_ = value; + } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 5; + private uint index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Index { + get { return index_; } + set { + index_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueNousDiceSurfaceInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueNousDiceSurfaceInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DiceId != other.DiceId) return false; + if (Index != other.Index) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (DiceId != 0) hash ^= DiceId.GetHashCode(); + if (Index != 0) hash ^= Index.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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(40); + output.WriteUInt32(Index); + } + if (DiceId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(DiceId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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(40); + output.WriteUInt32(Index); + } + if (DiceId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(DiceId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (DiceId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DiceId); + } + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Index); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueNousDiceSurfaceInfo other) { + if (other == null) { + return; + } + if (other.DiceId != 0) { + DiceId = other.DiceId; + } + if (other.Index != 0) { + Index = other.Index; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + Index = input.ReadUInt32(); + break; + } + case 72: { + DiceId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + Index = input.ReadUInt32(); + break; + } + case 72: { + DiceId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueNousEditDiceCsReq.cs b/Common/Proto/ChessRogueNousEditDiceCsReq.cs new file mode 100644 index 00000000..a433574f --- /dev/null +++ b/Common/Proto/ChessRogueNousEditDiceCsReq.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueNousEditDiceCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueNousEditDiceCsReq.proto + public static partial class ChessRogueNousEditDiceCsReqReflection { + + #region Descriptor + /// File descriptor for ChessRogueNousEditDiceCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueNousEditDiceCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFDaGVzc1JvZ3VlTm91c0VkaXREaWNlQ3NSZXEucHJvdG8aHENoZXNzUm9n", + "dWVOb3VzRGljZUluZm8ucHJvdG8iSQobQ2hlc3NSb2d1ZU5vdXNFZGl0RGlj", + "ZUNzUmVxEioKCWRpY2VfaW5mbxgMIAEoCzIXLkNoZXNzUm9ndWVOb3VzRGlj", + "ZUluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueNousEditDiceCsReq), global::EggLink.DanhengServer.Proto.ChessRogueNousEditDiceCsReq.Parser, new[]{ "DiceInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueNousEditDiceCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueNousEditDiceCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueNousEditDiceCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousEditDiceCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousEditDiceCsReq(ChessRogueNousEditDiceCsReq other) : this() { + diceInfo_ = other.diceInfo_ != null ? other.diceInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousEditDiceCsReq Clone() { + return new ChessRogueNousEditDiceCsReq(this); + } + + /// Field number for the "dice_info" field. + public const int DiceInfoFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo diceInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo DiceInfo { + get { return diceInfo_; } + set { + diceInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueNousEditDiceCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueNousEditDiceCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DiceInfo, other.DiceInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (diceInfo_ != null) hash ^= DiceInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (diceInfo_ != null) { + output.WriteRawTag(98); + output.WriteMessage(DiceInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (diceInfo_ != null) { + output.WriteRawTag(98); + output.WriteMessage(DiceInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (diceInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DiceInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueNousEditDiceCsReq other) { + if (other == null) { + return; + } + if (other.diceInfo_ != null) { + if (diceInfo_ == null) { + DiceInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo(); + } + DiceInfo.MergeFrom(other.DiceInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 98: { + if (diceInfo_ == null) { + DiceInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo(); + } + input.ReadMessage(DiceInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 98: { + if (diceInfo_ == null) { + DiceInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo(); + } + input.ReadMessage(DiceInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueNousEditDiceScRsp.cs b/Common/Proto/ChessRogueNousEditDiceScRsp.cs new file mode 100644 index 00000000..cb291fea --- /dev/null +++ b/Common/Proto/ChessRogueNousEditDiceScRsp.cs @@ -0,0 +1,282 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueNousEditDiceScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueNousEditDiceScRsp.proto + public static partial class ChessRogueNousEditDiceScRspReflection { + + #region Descriptor + /// File descriptor for ChessRogueNousEditDiceScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueNousEditDiceScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFDaGVzc1JvZ3VlTm91c0VkaXREaWNlU2NSc3AucHJvdG8aHENoZXNzUm9n", + "dWVOb3VzRGljZUluZm8ucHJvdG8iWgobQ2hlc3NSb2d1ZU5vdXNFZGl0RGlj", + "ZVNjUnNwEg8KB3JldGNvZGUYCyABKA0SKgoJZGljZV9pbmZvGA0gASgLMhcu", + "Q2hlc3NSb2d1ZU5vdXNEaWNlSW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2Vy", + "dmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueNousEditDiceScRsp), global::EggLink.DanhengServer.Proto.ChessRogueNousEditDiceScRsp.Parser, new[]{ "Retcode", "DiceInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueNousEditDiceScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueNousEditDiceScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueNousEditDiceScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousEditDiceScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousEditDiceScRsp(ChessRogueNousEditDiceScRsp other) : this() { + retcode_ = other.retcode_; + diceInfo_ = other.diceInfo_ != null ? other.diceInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousEditDiceScRsp Clone() { + return new ChessRogueNousEditDiceScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 11; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "dice_info" field. + public const int DiceInfoFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo diceInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo DiceInfo { + get { return diceInfo_; } + set { + diceInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueNousEditDiceScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueNousEditDiceScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(DiceInfo, other.DiceInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (diceInfo_ != null) hash ^= DiceInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Retcode); + } + if (diceInfo_ != null) { + output.WriteRawTag(106); + output.WriteMessage(DiceInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Retcode); + } + if (diceInfo_ != null) { + output.WriteRawTag(106); + output.WriteMessage(DiceInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (diceInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DiceInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueNousEditDiceScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.diceInfo_ != null) { + if (diceInfo_ == null) { + DiceInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo(); + } + DiceInfo.MergeFrom(other.DiceInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 88: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + if (diceInfo_ == null) { + DiceInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo(); + } + input.ReadMessage(DiceInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 88: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + if (diceInfo_ == null) { + DiceInfo = new global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo(); + } + input.ReadMessage(DiceInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueNousMainStoryInfo.cs b/Common/Proto/ChessRogueNousMainStoryInfo.cs new file mode 100644 index 00000000..c09bd0a0 --- /dev/null +++ b/Common/Proto/ChessRogueNousMainStoryInfo.cs @@ -0,0 +1,275 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueNousMainStoryInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueNousMainStoryInfo.proto + public static partial class ChessRogueNousMainStoryInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueNousMainStoryInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueNousMainStoryInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFDaGVzc1JvZ3VlTm91c01haW5TdG9yeUluZm8ucHJvdG8iPwobQ2hlc3NS", + "b2d1ZU5vdXNNYWluU3RvcnlJbmZvEg4KBnN0YXR1cxgLIAEoDRIQCghzdG9y", + "eV9pZBgKIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueNousMainStoryInfo), global::EggLink.DanhengServer.Proto.ChessRogueNousMainStoryInfo.Parser, new[]{ "Status", "StoryId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueNousMainStoryInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueNousMainStoryInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueNousMainStoryInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousMainStoryInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousMainStoryInfo(ChessRogueNousMainStoryInfo other) : this() { + status_ = other.status_; + storyId_ = other.storyId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousMainStoryInfo Clone() { + return new ChessRogueNousMainStoryInfo(this); + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 11; + private uint status_; + /// + /// 2 finished + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Status { + get { return status_; } + set { + status_ = value; + } + } + + /// Field number for the "story_id" field. + public const int StoryIdFieldNumber = 10; + private uint storyId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StoryId { + get { return storyId_; } + set { + storyId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueNousMainStoryInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueNousMainStoryInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Status != other.Status) return false; + if (StoryId != other.StoryId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Status != 0) hash ^= Status.GetHashCode(); + if (StoryId != 0) hash ^= StoryId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StoryId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(StoryId); + } + if (Status != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Status); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (StoryId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(StoryId); + } + if (Status != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Status); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Status != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Status); + } + if (StoryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StoryId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueNousMainStoryInfo other) { + if (other == null) { + return; + } + if (other.Status != 0) { + Status = other.Status; + } + if (other.StoryId != 0) { + StoryId = other.StoryId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 80: { + StoryId = input.ReadUInt32(); + break; + } + case 88: { + Status = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 80: { + StoryId = input.ReadUInt32(); + break; + } + case 88: { + Status = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueNousQueryInfo.cs b/Common/Proto/ChessRogueNousQueryInfo.cs new file mode 100644 index 00000000..3c5e5290 --- /dev/null +++ b/Common/Proto/ChessRogueNousQueryInfo.cs @@ -0,0 +1,205 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueNousQueryInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueNousQueryInfo.proto + public static partial class ChessRogueNousQueryInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueNousQueryInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueNousQueryInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1DaGVzc1JvZ3VlTm91c1F1ZXJ5SW5mby5wcm90byIZChdDaGVzc1JvZ3Vl", + "Tm91c1F1ZXJ5SW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueNousQueryInfo), global::EggLink.DanhengServer.Proto.ChessRogueNousQueryInfo.Parser, null, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + ///MAKPHMAOCHI talent_info = 1; + ///OFHBFINPHAG JNAGMIALOII = 6; + ///CLIDPGPDFGK IKGPADCBBPN = 4; + ///ChessRogueQuery query_info = 13; + ///repeated uint32 PHJAFGJHOCO = 7; + ///repeated uint32 CMNHLKGFKOP = 8; + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueNousQueryInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueNousQueryInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueNousQueryInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousQueryInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousQueryInfo(ChessRogueNousQueryInfo other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousQueryInfo Clone() { + return new ChessRogueNousQueryInfo(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueNousQueryInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueNousQueryInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueNousQueryInfo other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueNousStoryInfo.cs b/Common/Proto/ChessRogueNousStoryInfo.cs new file mode 100644 index 00000000..2d88c004 --- /dev/null +++ b/Common/Proto/ChessRogueNousStoryInfo.cs @@ -0,0 +1,469 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueNousStoryInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueNousStoryInfo.proto + public static partial class ChessRogueNousStoryInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueNousStoryInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueNousStoryInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1DaGVzc1JvZ3VlTm91c1N0b3J5SW5mby5wcm90byK/AQoXQ2hlc3NSb2d1", + "ZU5vdXNTdG9yeUluZm8SEwoLSENQQ0pCREJCR0MYASADKA0SEwoLSU5QRExJ", + "TEZPQ08YCSADKA0SFAoMc3ViX3N0b3J5X2lkGAcgASgNEhMKC0NLRUtLTUdJ", + "SEtKGAggASgIEhMKC0FIT0pJRE1MRlBFGAwgASgIEhMKC0NNSExFRUtORktI", + "GAQgAygNEhAKCHN0b3J5X2lkGAMgASgNEhMKC0FDTEdMSEVGRk9OGA4gASgN", + "Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueNousStoryInfo), global::EggLink.DanhengServer.Proto.ChessRogueNousStoryInfo.Parser, new[]{ "HCPCJBDBBGC", "INPDLILFOCO", "SubStoryId", "CKEKKMGIHKJ", "AHOJIDMLFPE", "CMHLEEKNFKH", "StoryId", "ACLGLHEFFON" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueNousStoryInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueNousStoryInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueNousStoryInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousStoryInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousStoryInfo(ChessRogueNousStoryInfo other) : this() { + hCPCJBDBBGC_ = other.hCPCJBDBBGC_.Clone(); + iNPDLILFOCO_ = other.iNPDLILFOCO_.Clone(); + subStoryId_ = other.subStoryId_; + cKEKKMGIHKJ_ = other.cKEKKMGIHKJ_; + aHOJIDMLFPE_ = other.aHOJIDMLFPE_; + cMHLEEKNFKH_ = other.cMHLEEKNFKH_.Clone(); + storyId_ = other.storyId_; + aCLGLHEFFON_ = other.aCLGLHEFFON_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousStoryInfo Clone() { + return new ChessRogueNousStoryInfo(this); + } + + /// Field number for the "HCPCJBDBBGC" field. + public const int HCPCJBDBBGCFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_hCPCJBDBBGC_codec + = pb::FieldCodec.ForUInt32(10); + private readonly pbc::RepeatedField hCPCJBDBBGC_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HCPCJBDBBGC { + get { return hCPCJBDBBGC_; } + } + + /// Field number for the "INPDLILFOCO" field. + public const int INPDLILFOCOFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_iNPDLILFOCO_codec + = pb::FieldCodec.ForUInt32(74); + private readonly pbc::RepeatedField iNPDLILFOCO_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField INPDLILFOCO { + get { return iNPDLILFOCO_; } + } + + /// Field number for the "sub_story_id" field. + public const int SubStoryIdFieldNumber = 7; + private uint subStoryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SubStoryId { + get { return subStoryId_; } + set { + subStoryId_ = value; + } + } + + /// Field number for the "CKEKKMGIHKJ" field. + public const int CKEKKMGIHKJFieldNumber = 8; + private bool cKEKKMGIHKJ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CKEKKMGIHKJ { + get { return cKEKKMGIHKJ_; } + set { + cKEKKMGIHKJ_ = value; + } + } + + /// Field number for the "AHOJIDMLFPE" field. + public const int AHOJIDMLFPEFieldNumber = 12; + private bool aHOJIDMLFPE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AHOJIDMLFPE { + get { return aHOJIDMLFPE_; } + set { + aHOJIDMLFPE_ = value; + } + } + + /// Field number for the "CMHLEEKNFKH" field. + public const int CMHLEEKNFKHFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_cMHLEEKNFKH_codec + = pb::FieldCodec.ForUInt32(34); + private readonly pbc::RepeatedField cMHLEEKNFKH_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CMHLEEKNFKH { + get { return cMHLEEKNFKH_; } + } + + /// Field number for the "story_id" field. + public const int StoryIdFieldNumber = 3; + private uint storyId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StoryId { + get { return storyId_; } + set { + storyId_ = value; + } + } + + /// Field number for the "ACLGLHEFFON" field. + public const int ACLGLHEFFONFieldNumber = 14; + private uint aCLGLHEFFON_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ACLGLHEFFON { + get { return aCLGLHEFFON_; } + set { + aCLGLHEFFON_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueNousStoryInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueNousStoryInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!hCPCJBDBBGC_.Equals(other.hCPCJBDBBGC_)) return false; + if(!iNPDLILFOCO_.Equals(other.iNPDLILFOCO_)) return false; + if (SubStoryId != other.SubStoryId) return false; + if (CKEKKMGIHKJ != other.CKEKKMGIHKJ) return false; + if (AHOJIDMLFPE != other.AHOJIDMLFPE) return false; + if(!cMHLEEKNFKH_.Equals(other.cMHLEEKNFKH_)) return false; + if (StoryId != other.StoryId) return false; + if (ACLGLHEFFON != other.ACLGLHEFFON) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= hCPCJBDBBGC_.GetHashCode(); + hash ^= iNPDLILFOCO_.GetHashCode(); + if (SubStoryId != 0) hash ^= SubStoryId.GetHashCode(); + if (CKEKKMGIHKJ != false) hash ^= CKEKKMGIHKJ.GetHashCode(); + if (AHOJIDMLFPE != false) hash ^= AHOJIDMLFPE.GetHashCode(); + hash ^= cMHLEEKNFKH_.GetHashCode(); + if (StoryId != 0) hash ^= StoryId.GetHashCode(); + if (ACLGLHEFFON != 0) hash ^= ACLGLHEFFON.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + hCPCJBDBBGC_.WriteTo(output, _repeated_hCPCJBDBBGC_codec); + if (StoryId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(StoryId); + } + cMHLEEKNFKH_.WriteTo(output, _repeated_cMHLEEKNFKH_codec); + if (SubStoryId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(SubStoryId); + } + if (CKEKKMGIHKJ != false) { + output.WriteRawTag(64); + output.WriteBool(CKEKKMGIHKJ); + } + iNPDLILFOCO_.WriteTo(output, _repeated_iNPDLILFOCO_codec); + if (AHOJIDMLFPE != false) { + output.WriteRawTag(96); + output.WriteBool(AHOJIDMLFPE); + } + if (ACLGLHEFFON != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ACLGLHEFFON); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + hCPCJBDBBGC_.WriteTo(ref output, _repeated_hCPCJBDBBGC_codec); + if (StoryId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(StoryId); + } + cMHLEEKNFKH_.WriteTo(ref output, _repeated_cMHLEEKNFKH_codec); + if (SubStoryId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(SubStoryId); + } + if (CKEKKMGIHKJ != false) { + output.WriteRawTag(64); + output.WriteBool(CKEKKMGIHKJ); + } + iNPDLILFOCO_.WriteTo(ref output, _repeated_iNPDLILFOCO_codec); + if (AHOJIDMLFPE != false) { + output.WriteRawTag(96); + output.WriteBool(AHOJIDMLFPE); + } + if (ACLGLHEFFON != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ACLGLHEFFON); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += hCPCJBDBBGC_.CalculateSize(_repeated_hCPCJBDBBGC_codec); + size += iNPDLILFOCO_.CalculateSize(_repeated_iNPDLILFOCO_codec); + if (SubStoryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SubStoryId); + } + if (CKEKKMGIHKJ != false) { + size += 1 + 1; + } + if (AHOJIDMLFPE != false) { + size += 1 + 1; + } + size += cMHLEEKNFKH_.CalculateSize(_repeated_cMHLEEKNFKH_codec); + if (StoryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StoryId); + } + if (ACLGLHEFFON != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ACLGLHEFFON); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueNousStoryInfo other) { + if (other == null) { + return; + } + hCPCJBDBBGC_.Add(other.hCPCJBDBBGC_); + iNPDLILFOCO_.Add(other.iNPDLILFOCO_); + if (other.SubStoryId != 0) { + SubStoryId = other.SubStoryId; + } + if (other.CKEKKMGIHKJ != false) { + CKEKKMGIHKJ = other.CKEKKMGIHKJ; + } + if (other.AHOJIDMLFPE != false) { + AHOJIDMLFPE = other.AHOJIDMLFPE; + } + cMHLEEKNFKH_.Add(other.cMHLEEKNFKH_); + if (other.StoryId != 0) { + StoryId = other.StoryId; + } + if (other.ACLGLHEFFON != 0) { + ACLGLHEFFON = other.ACLGLHEFFON; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + hCPCJBDBBGC_.AddEntriesFrom(input, _repeated_hCPCJBDBBGC_codec); + break; + } + case 24: { + StoryId = input.ReadUInt32(); + break; + } + case 34: + case 32: { + cMHLEEKNFKH_.AddEntriesFrom(input, _repeated_cMHLEEKNFKH_codec); + break; + } + case 56: { + SubStoryId = input.ReadUInt32(); + break; + } + case 64: { + CKEKKMGIHKJ = input.ReadBool(); + break; + } + case 74: + case 72: { + iNPDLILFOCO_.AddEntriesFrom(input, _repeated_iNPDLILFOCO_codec); + break; + } + case 96: { + AHOJIDMLFPE = input.ReadBool(); + break; + } + case 112: { + ACLGLHEFFON = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + hCPCJBDBBGC_.AddEntriesFrom(ref input, _repeated_hCPCJBDBBGC_codec); + break; + } + case 24: { + StoryId = input.ReadUInt32(); + break; + } + case 34: + case 32: { + cMHLEEKNFKH_.AddEntriesFrom(ref input, _repeated_cMHLEEKNFKH_codec); + break; + } + case 56: { + SubStoryId = input.ReadUInt32(); + break; + } + case 64: { + CKEKKMGIHKJ = input.ReadBool(); + break; + } + case 74: + case 72: { + iNPDLILFOCO_.AddEntriesFrom(ref input, _repeated_iNPDLILFOCO_codec); + break; + } + case 96: { + AHOJIDMLFPE = input.ReadBool(); + break; + } + case 112: { + ACLGLHEFFON = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueNousSubStoryInfo.cs b/Common/Proto/ChessRogueNousSubStoryInfo.cs new file mode 100644 index 00000000..a4cb6c24 --- /dev/null +++ b/Common/Proto/ChessRogueNousSubStoryInfo.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueNousSubStoryInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueNousSubStoryInfo.proto + public static partial class ChessRogueNousSubStoryInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueNousSubStoryInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueNousSubStoryInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBDaGVzc1JvZ3VlTm91c1N1YlN0b3J5SW5mby5wcm90byIyChpDaGVzc1Jv", + "Z3VlTm91c1N1YlN0b3J5SW5mbxIUCgxzdWJfc3RvcnlfaWQYBCABKA1CHqoC", + "G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueNousSubStoryInfo), global::EggLink.DanhengServer.Proto.ChessRogueNousSubStoryInfo.Parser, new[]{ "SubStoryId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueNousSubStoryInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueNousSubStoryInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueNousSubStoryInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousSubStoryInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousSubStoryInfo(ChessRogueNousSubStoryInfo other) : this() { + subStoryId_ = other.subStoryId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousSubStoryInfo Clone() { + return new ChessRogueNousSubStoryInfo(this); + } + + /// Field number for the "sub_story_id" field. + public const int SubStoryIdFieldNumber = 4; + private uint subStoryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SubStoryId { + get { return subStoryId_; } + set { + subStoryId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueNousSubStoryInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueNousSubStoryInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SubStoryId != other.SubStoryId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (SubStoryId != 0) hash ^= SubStoryId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SubStoryId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(SubStoryId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SubStoryId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(SubStoryId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SubStoryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SubStoryId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueNousSubStoryInfo other) { + if (other == null) { + return; + } + if (other.SubStoryId != 0) { + SubStoryId = other.SubStoryId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + SubStoryId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + SubStoryId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueNousValue.cs b/Common/Proto/ChessRogueNousValue.cs new file mode 100644 index 00000000..1d87c010 --- /dev/null +++ b/Common/Proto/ChessRogueNousValue.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueNousValue.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueNousValue.proto + public static partial class ChessRogueNousValueReflection { + + #region Descriptor + /// File descriptor for ChessRogueNousValue.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueNousValueReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlDaGVzc1JvZ3VlTm91c1ZhbHVlLnByb3RvIiQKE0NoZXNzUm9ndWVOb3Vz", + "VmFsdWUSDQoFdmFsdWUYDSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl", + "ci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueNousValue), global::EggLink.DanhengServer.Proto.ChessRogueNousValue.Parser, new[]{ "Value" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueNousValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueNousValue()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueNousValueReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousValue(ChessRogueNousValue other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueNousValue Clone() { + return new ChessRogueNousValue(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 13; + private uint value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Value { + get { return value_; } + set { + value_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueNousValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueNousValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (Value != 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 (Value != 0) { + output.WriteRawTag(104); + output.WriteUInt32(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 (Value != 0) { + output.WriteRawTag(104); + output.WriteUInt32(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 (Value != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueNousValue other) { + if (other == null) { + return; + } + if (other.Value != 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 104: { + Value = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 104: { + Value = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRoguePhase.cs b/Common/Proto/ChessRoguePhase.cs new file mode 100644 index 00000000..5bde3ba8 --- /dev/null +++ b/Common/Proto/ChessRoguePhase.cs @@ -0,0 +1,48 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRoguePhase.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRoguePhase.proto + public static partial class ChessRoguePhaseReflection { + + #region Descriptor + /// File descriptor for ChessRoguePhase.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRoguePhaseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVDaGVzc1JvZ3VlUGhhc2UucHJvdG8qOQoPQ2hlc3NSb2d1ZVBoYXNlEggK", + "BE5PTkUQABINCglQSEFTRV9PTkUQARINCglQSEFTRV9UV08QAkIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.ChessRoguePhase), }, null, null)); + } + #endregion + + } + #region Enums + public enum ChessRoguePhase { + [pbr::OriginalName("NONE")] None = 0, + [pbr::OriginalName("PHASE_ONE")] PhaseOne = 1, + [pbr::OriginalName("PHASE_TWO")] PhaseTwo = 2, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueQuery.cs b/Common/Proto/ChessRogueQuery.cs new file mode 100644 index 00000000..dac7d894 --- /dev/null +++ b/Common/Proto/ChessRogueQuery.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueQuery.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueQuery.proto + public static partial class ChessRogueQueryReflection { + + #region Descriptor + /// File descriptor for ChessRogueQuery.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueQueryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVDaGVzc1JvZ3VlUXVlcnkucHJvdG8aHENoZXNzUm9ndWVOb3VzRGljZUlu", + "Zm8ucHJvdG8aFUNoZXNzUm9ndWVQaGFzZS5wcm90byLhAQoPQ2hlc3NSb2d1", + "ZVF1ZXJ5EioKCWRpY2VfaW5mbxgMIAMoCzIXLkNoZXNzUm9ndWVOb3VzRGlj", + "ZUluZm8SHwoFcGhhc2UYCiABKA4yEC5DaGVzc1JvZ3VlUGhhc2USNgoLRUtM", + "QUZNQkhOSVAYBiADKAsyIS5DaGVzc1JvZ3VlUXVlcnkuRUtMQUZNQkhOSVBF", + "bnRyeRIVCg1tYWluX3N0b3J5X2lkGAggAygNGjIKEEVLTEFGTUJITklQRW50", + "cnkSCwoDa2V5GAEgASgNEg0KBXZhbHVlGAIgASgIOgI4AUIeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRoguePhaseReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueQuery), global::EggLink.DanhengServer.Proto.ChessRogueQuery.Parser, new[]{ "DiceInfo", "Phase", "EKLAFMBHNIP", "MainStoryId" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueQuery : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueQuery()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueQueryReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueQuery() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueQuery(ChessRogueQuery other) : this() { + diceInfo_ = other.diceInfo_.Clone(); + phase_ = other.phase_; + eKLAFMBHNIP_ = other.eKLAFMBHNIP_.Clone(); + mainStoryId_ = other.mainStoryId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueQuery Clone() { + return new ChessRogueQuery(this); + } + + /// Field number for the "dice_info" field. + public const int DiceInfoFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_diceInfo_codec + = pb::FieldCodec.ForMessage(98, global::EggLink.DanhengServer.Proto.ChessRogueNousDiceInfo.Parser); + private readonly pbc::RepeatedField diceInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DiceInfo { + get { return diceInfo_; } + } + + /// Field number for the "phase" field. + public const int PhaseFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.ChessRoguePhase phase_ = global::EggLink.DanhengServer.Proto.ChessRoguePhase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRoguePhase Phase { + get { return phase_; } + set { + phase_ = value; + } + } + + /// Field number for the "EKLAFMBHNIP" field. + public const int EKLAFMBHNIPFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_eKLAFMBHNIP_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForBool(16, false), 50); + private readonly pbc::MapField eKLAFMBHNIP_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField EKLAFMBHNIP { + get { return eKLAFMBHNIP_; } + } + + /// Field number for the "main_story_id" field. + public const int MainStoryIdFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_mainStoryId_codec + = pb::FieldCodec.ForUInt32(66); + private readonly pbc::RepeatedField mainStoryId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MainStoryId { + get { return mainStoryId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueQuery); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueQuery other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!diceInfo_.Equals(other.diceInfo_)) return false; + if (Phase != other.Phase) return false; + if (!EKLAFMBHNIP.Equals(other.EKLAFMBHNIP)) return false; + if(!mainStoryId_.Equals(other.mainStoryId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= diceInfo_.GetHashCode(); + if (Phase != global::EggLink.DanhengServer.Proto.ChessRoguePhase.None) hash ^= Phase.GetHashCode(); + hash ^= EKLAFMBHNIP.GetHashCode(); + hash ^= mainStoryId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + eKLAFMBHNIP_.WriteTo(output, _map_eKLAFMBHNIP_codec); + mainStoryId_.WriteTo(output, _repeated_mainStoryId_codec); + if (Phase != global::EggLink.DanhengServer.Proto.ChessRoguePhase.None) { + output.WriteRawTag(80); + output.WriteEnum((int) Phase); + } + diceInfo_.WriteTo(output, _repeated_diceInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + eKLAFMBHNIP_.WriteTo(ref output, _map_eKLAFMBHNIP_codec); + mainStoryId_.WriteTo(ref output, _repeated_mainStoryId_codec); + if (Phase != global::EggLink.DanhengServer.Proto.ChessRoguePhase.None) { + output.WriteRawTag(80); + output.WriteEnum((int) Phase); + } + diceInfo_.WriteTo(ref output, _repeated_diceInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += diceInfo_.CalculateSize(_repeated_diceInfo_codec); + if (Phase != global::EggLink.DanhengServer.Proto.ChessRoguePhase.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Phase); + } + size += eKLAFMBHNIP_.CalculateSize(_map_eKLAFMBHNIP_codec); + size += mainStoryId_.CalculateSize(_repeated_mainStoryId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueQuery other) { + if (other == null) { + return; + } + diceInfo_.Add(other.diceInfo_); + if (other.Phase != global::EggLink.DanhengServer.Proto.ChessRoguePhase.None) { + Phase = other.Phase; + } + eKLAFMBHNIP_.MergeFrom(other.eKLAFMBHNIP_); + mainStoryId_.Add(other.mainStoryId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: { + eKLAFMBHNIP_.AddEntriesFrom(input, _map_eKLAFMBHNIP_codec); + break; + } + case 66: + case 64: { + mainStoryId_.AddEntriesFrom(input, _repeated_mainStoryId_codec); + break; + } + case 80: { + Phase = (global::EggLink.DanhengServer.Proto.ChessRoguePhase) input.ReadEnum(); + break; + } + case 98: { + diceInfo_.AddEntriesFrom(input, _repeated_diceInfo_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: { + eKLAFMBHNIP_.AddEntriesFrom(ref input, _map_eKLAFMBHNIP_codec); + break; + } + case 66: + case 64: { + mainStoryId_.AddEntriesFrom(ref input, _repeated_mainStoryId_codec); + break; + } + case 80: { + Phase = (global::EggLink.DanhengServer.Proto.ChessRoguePhase) input.ReadEnum(); + break; + } + case 98: { + diceInfo_.AddEntriesFrom(ref input, _repeated_diceInfo_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueQueryInfo.cs b/Common/Proto/ChessRogueQueryInfo.cs new file mode 100644 index 00000000..91c13df0 --- /dev/null +++ b/Common/Proto/ChessRogueQueryInfo.cs @@ -0,0 +1,355 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueQueryInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueQueryInfo.proto + public static partial class ChessRogueQueryInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueQueryInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueQueryInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlDaGVzc1JvZ3VlUXVlcnlJbmZvLnByb3RvGhVDaGVzc1JvZ3VlUXVlcnku", + "cHJvdG8aEU9GSEJGSU5QSEFHLnByb3RvIogBChNDaGVzc1JvZ3VlUXVlcnlJ", + "bmZvEiEKC0pOQUdNSUFMT0lJGAMgASgLMgwuT0ZIQkZJTlBIQUcSEwoLQ01O", + "SExLR0ZLT1AYBCADKA0SJAoKcXVlcnlfaW5mbxgOIAEoCzIQLkNoZXNzUm9n", + "dWVRdWVyeRITCgtQSEpBRkdKSE9DTxgIIAMoDUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueQueryReflection.Descriptor, global::EggLink.DanhengServer.Proto.OFHBFINPHAGReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueQueryInfo), global::EggLink.DanhengServer.Proto.ChessRogueQueryInfo.Parser, new[]{ "JNAGMIALOII", "CMNHLKGFKOP", "QueryInfo", "PHJAFGJHOCO" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueQueryInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueQueryInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueQueryInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueQueryInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueQueryInfo(ChessRogueQueryInfo other) : this() { + jNAGMIALOII_ = other.jNAGMIALOII_ != null ? other.jNAGMIALOII_.Clone() : null; + cMNHLKGFKOP_ = other.cMNHLKGFKOP_.Clone(); + queryInfo_ = other.queryInfo_ != null ? other.queryInfo_.Clone() : null; + pHJAFGJHOCO_ = other.pHJAFGJHOCO_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueQueryInfo Clone() { + return new ChessRogueQueryInfo(this); + } + + /// Field number for the "JNAGMIALOII" field. + public const int JNAGMIALOIIFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.OFHBFINPHAG jNAGMIALOII_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.OFHBFINPHAG JNAGMIALOII { + get { return jNAGMIALOII_; } + set { + jNAGMIALOII_ = value; + } + } + + /// Field number for the "CMNHLKGFKOP" field. + public const int CMNHLKGFKOPFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_cMNHLKGFKOP_codec + = pb::FieldCodec.ForUInt32(34); + private readonly pbc::RepeatedField cMNHLKGFKOP_ = new pbc::RepeatedField(); + /// + ///MAKPHMAOCHI talent_info = 11; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CMNHLKGFKOP { + get { return cMNHLKGFKOP_; } + } + + /// Field number for the "query_info" field. + public const int QueryInfoFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.ChessRogueQuery queryInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueQuery QueryInfo { + get { return queryInfo_; } + set { + queryInfo_ = value; + } + } + + /// Field number for the "PHJAFGJHOCO" field. + public const int PHJAFGJHOCOFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_pHJAFGJHOCO_codec + = pb::FieldCodec.ForUInt32(66); + private readonly pbc::RepeatedField pHJAFGJHOCO_ = new pbc::RepeatedField(); + /// + ///CGAPFPHEJIA EEFGNNFCDNJ = 6; + ///CLIDPGPDFGK IKGPADCBBPN = 9; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PHJAFGJHOCO { + get { return pHJAFGJHOCO_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueQueryInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueQueryInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(JNAGMIALOII, other.JNAGMIALOII)) return false; + if(!cMNHLKGFKOP_.Equals(other.cMNHLKGFKOP_)) return false; + if (!object.Equals(QueryInfo, other.QueryInfo)) return false; + if(!pHJAFGJHOCO_.Equals(other.pHJAFGJHOCO_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (jNAGMIALOII_ != null) hash ^= JNAGMIALOII.GetHashCode(); + hash ^= cMNHLKGFKOP_.GetHashCode(); + if (queryInfo_ != null) hash ^= QueryInfo.GetHashCode(); + hash ^= pHJAFGJHOCO_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (jNAGMIALOII_ != null) { + output.WriteRawTag(26); + output.WriteMessage(JNAGMIALOII); + } + cMNHLKGFKOP_.WriteTo(output, _repeated_cMNHLKGFKOP_codec); + pHJAFGJHOCO_.WriteTo(output, _repeated_pHJAFGJHOCO_codec); + if (queryInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(QueryInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (jNAGMIALOII_ != null) { + output.WriteRawTag(26); + output.WriteMessage(JNAGMIALOII); + } + cMNHLKGFKOP_.WriteTo(ref output, _repeated_cMNHLKGFKOP_codec); + pHJAFGJHOCO_.WriteTo(ref output, _repeated_pHJAFGJHOCO_codec); + if (queryInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(QueryInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (jNAGMIALOII_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(JNAGMIALOII); + } + size += cMNHLKGFKOP_.CalculateSize(_repeated_cMNHLKGFKOP_codec); + if (queryInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryInfo); + } + size += pHJAFGJHOCO_.CalculateSize(_repeated_pHJAFGJHOCO_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueQueryInfo other) { + if (other == null) { + return; + } + if (other.jNAGMIALOII_ != null) { + if (jNAGMIALOII_ == null) { + JNAGMIALOII = new global::EggLink.DanhengServer.Proto.OFHBFINPHAG(); + } + JNAGMIALOII.MergeFrom(other.JNAGMIALOII); + } + cMNHLKGFKOP_.Add(other.cMNHLKGFKOP_); + if (other.queryInfo_ != null) { + if (queryInfo_ == null) { + QueryInfo = new global::EggLink.DanhengServer.Proto.ChessRogueQuery(); + } + QueryInfo.MergeFrom(other.QueryInfo); + } + pHJAFGJHOCO_.Add(other.pHJAFGJHOCO_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + if (jNAGMIALOII_ == null) { + JNAGMIALOII = new global::EggLink.DanhengServer.Proto.OFHBFINPHAG(); + } + input.ReadMessage(JNAGMIALOII); + break; + } + case 34: + case 32: { + cMNHLKGFKOP_.AddEntriesFrom(input, _repeated_cMNHLKGFKOP_codec); + break; + } + case 66: + case 64: { + pHJAFGJHOCO_.AddEntriesFrom(input, _repeated_pHJAFGJHOCO_codec); + break; + } + case 114: { + if (queryInfo_ == null) { + QueryInfo = new global::EggLink.DanhengServer.Proto.ChessRogueQuery(); + } + input.ReadMessage(QueryInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + if (jNAGMIALOII_ == null) { + JNAGMIALOII = new global::EggLink.DanhengServer.Proto.OFHBFINPHAG(); + } + input.ReadMessage(JNAGMIALOII); + break; + } + case 34: + case 32: { + cMNHLKGFKOP_.AddEntriesFrom(ref input, _repeated_cMNHLKGFKOP_codec); + break; + } + case 66: + case 64: { + pHJAFGJHOCO_.AddEntriesFrom(ref input, _repeated_pHJAFGJHOCO_codec); + break; + } + case 114: { + if (queryInfo_ == null) { + QueryInfo = new global::EggLink.DanhengServer.Proto.ChessRogueQuery(); + } + input.ReadMessage(QueryInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueQueryScRsp.cs b/Common/Proto/ChessRogueQueryScRsp.cs new file mode 100644 index 00000000..3aa8d228 --- /dev/null +++ b/Common/Proto/ChessRogueQueryScRsp.cs @@ -0,0 +1,381 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueQueryScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueQueryScRsp.proto + public static partial class ChessRogueQueryScRspReflection { + + #region Descriptor + /// File descriptor for ChessRogueQueryScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueQueryScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpDaGVzc1JvZ3VlUXVlcnlTY1JzcC5wcm90bxodQ2hlc3NSb2d1ZU5vdXNR", + "dWVyeUluZm8ucHJvdG8aG0NoZXNzUm9ndWVDdXJyZW50SW5mby5wcm90bxoZ", + "Q2hlc3NSb2d1ZVF1ZXJ5SW5mby5wcm90byKuAQoUQ2hlc3NSb2d1ZVF1ZXJ5", + "U2NSc3ASLAoKcm9ndWVfbm91cxgKIAEoCzIYLkNoZXNzUm9ndWVOb3VzUXVl", + "cnlJbmZvEg8KB3JldGNvZGUYAyABKA0SKQoLTk9HRE5MTkxNSkgYCSABKAsy", + "FC5DaGVzc1JvZ3VlUXVlcnlJbmZvEiwKDGN1cnJlbnRfaW5mbxgMIAEoCzIW", + "LkNoZXNzUm9ndWVDdXJyZW50SW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2Vy", + "dmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueNousQueryInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueQueryInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueQueryScRsp), global::EggLink.DanhengServer.Proto.ChessRogueQueryScRsp.Parser, new[]{ "RogueNous", "Retcode", "NOGDNLNLMJH", "CurrentInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueQueryScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueQueryScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueQueryScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueQueryScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueQueryScRsp(ChessRogueQueryScRsp other) : this() { + rogueNous_ = other.rogueNous_ != null ? other.rogueNous_.Clone() : null; + retcode_ = other.retcode_; + nOGDNLNLMJH_ = other.nOGDNLNLMJH_ != null ? other.nOGDNLNLMJH_.Clone() : null; + currentInfo_ = other.currentInfo_ != null ? other.currentInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueQueryScRsp Clone() { + return new ChessRogueQueryScRsp(this); + } + + /// Field number for the "rogue_nous" field. + public const int RogueNousFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.ChessRogueNousQueryInfo rogueNous_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueNousQueryInfo RogueNous { + get { return rogueNous_; } + set { + rogueNous_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "NOGDNLNLMJH" field. + public const int NOGDNLNLMJHFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.ChessRogueQueryInfo nOGDNLNLMJH_; + /// + ///HLODEEONDBF OBGFEMEOJCE = 15; + ///HFKELKECMJE MKCLHOMEICF = 4; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueQueryInfo NOGDNLNLMJH { + get { return nOGDNLNLMJH_; } + set { + nOGDNLNLMJH_ = value; + } + } + + /// Field number for the "current_info" field. + public const int CurrentInfoFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfo currentInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfo CurrentInfo { + get { return currentInfo_; } + set { + currentInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueQueryScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueQueryScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueNous, other.RogueNous)) return false; + if (Retcode != other.Retcode) return false; + if (!object.Equals(NOGDNLNLMJH, other.NOGDNLNLMJH)) return false; + if (!object.Equals(CurrentInfo, other.CurrentInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueNous_ != null) hash ^= RogueNous.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (nOGDNLNLMJH_ != null) hash ^= NOGDNLNLMJH.GetHashCode(); + if (currentInfo_ != null) hash ^= CurrentInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (nOGDNLNLMJH_ != null) { + output.WriteRawTag(74); + output.WriteMessage(NOGDNLNLMJH); + } + if (rogueNous_ != null) { + output.WriteRawTag(82); + output.WriteMessage(RogueNous); + } + if (currentInfo_ != null) { + output.WriteRawTag(98); + output.WriteMessage(CurrentInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (nOGDNLNLMJH_ != null) { + output.WriteRawTag(74); + output.WriteMessage(NOGDNLNLMJH); + } + if (rogueNous_ != null) { + output.WriteRawTag(82); + output.WriteMessage(RogueNous); + } + if (currentInfo_ != null) { + output.WriteRawTag(98); + output.WriteMessage(CurrentInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueNous_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueNous); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (nOGDNLNLMJH_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NOGDNLNLMJH); + } + if (currentInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueQueryScRsp other) { + if (other == null) { + return; + } + if (other.rogueNous_ != null) { + if (rogueNous_ == null) { + RogueNous = new global::EggLink.DanhengServer.Proto.ChessRogueNousQueryInfo(); + } + RogueNous.MergeFrom(other.RogueNous); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.nOGDNLNLMJH_ != null) { + if (nOGDNLNLMJH_ == null) { + NOGDNLNLMJH = new global::EggLink.DanhengServer.Proto.ChessRogueQueryInfo(); + } + NOGDNLNLMJH.MergeFrom(other.NOGDNLNLMJH); + } + if (other.currentInfo_ != null) { + if (currentInfo_ == null) { + CurrentInfo = new global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfo(); + } + CurrentInfo.MergeFrom(other.CurrentInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 74: { + if (nOGDNLNLMJH_ == null) { + NOGDNLNLMJH = new global::EggLink.DanhengServer.Proto.ChessRogueQueryInfo(); + } + input.ReadMessage(NOGDNLNLMJH); + break; + } + case 82: { + if (rogueNous_ == null) { + RogueNous = new global::EggLink.DanhengServer.Proto.ChessRogueNousQueryInfo(); + } + input.ReadMessage(RogueNous); + break; + } + case 98: { + if (currentInfo_ == null) { + CurrentInfo = new global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfo(); + } + input.ReadMessage(CurrentInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 74: { + if (nOGDNLNLMJH_ == null) { + NOGDNLNLMJH = new global::EggLink.DanhengServer.Proto.ChessRogueQueryInfo(); + } + input.ReadMessage(NOGDNLNLMJH); + break; + } + case 82: { + if (rogueNous_ == null) { + RogueNous = new global::EggLink.DanhengServer.Proto.ChessRogueNousQueryInfo(); + } + input.ReadMessage(RogueNous); + break; + } + case 98: { + if (currentInfo_ == null) { + CurrentInfo = new global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfo(); + } + input.ReadMessage(CurrentInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueReRollDiceCsReq.cs b/Common/Proto/ChessRogueReRollDiceCsReq.cs new file mode 100644 index 00000000..0e2d03a5 --- /dev/null +++ b/Common/Proto/ChessRogueReRollDiceCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueReRollDiceCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueReRollDiceCsReq.proto + public static partial class ChessRogueReRollDiceCsReqReflection { + + #region Descriptor + /// File descriptor for ChessRogueReRollDiceCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueReRollDiceCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9DaGVzc1JvZ3VlUmVSb2xsRGljZUNzUmVxLnByb3RvIi4KGUNoZXNzUm9n", + "dWVSZVJvbGxEaWNlQ3NSZXESEQoJZW50aXR5X2lkGA4gASgNQh6qAhtFZ2dM", + "aW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueReRollDiceCsReq), global::EggLink.DanhengServer.Proto.ChessRogueReRollDiceCsReq.Parser, new[]{ "EntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueReRollDiceCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueReRollDiceCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueReRollDiceCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueReRollDiceCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueReRollDiceCsReq(ChessRogueReRollDiceCsReq other) : this() { + entityId_ = other.entityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueReRollDiceCsReq Clone() { + return new ChessRogueReRollDiceCsReq(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 14; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueReRollDiceCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueReRollDiceCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntityId != other.EntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntityId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EntityId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueReRollDiceCsReq other) { + if (other == null) { + return; + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 112: { + EntityId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 112: { + EntityId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueRollDiceCsReq.cs b/Common/Proto/ChessRogueRollDiceCsReq.cs new file mode 100644 index 00000000..c9efc56f --- /dev/null +++ b/Common/Proto/ChessRogueRollDiceCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueRollDiceCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueRollDiceCsReq.proto + public static partial class ChessRogueRollDiceCsReqReflection { + + #region Descriptor + /// File descriptor for ChessRogueRollDiceCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueRollDiceCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1DaGVzc1JvZ3VlUm9sbERpY2VDc1JlcS5wcm90byIsChdDaGVzc1JvZ3Vl", + "Um9sbERpY2VDc1JlcRIRCgllbnRpdHlfaWQYBCABKA1CHqoCG0VnZ0xpbmsu", + "RGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueRollDiceCsReq), global::EggLink.DanhengServer.Proto.ChessRogueRollDiceCsReq.Parser, new[]{ "EntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueRollDiceCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueRollDiceCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueRollDiceCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueRollDiceCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueRollDiceCsReq(ChessRogueRollDiceCsReq other) : this() { + entityId_ = other.entityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueRollDiceCsReq Clone() { + return new ChessRogueRollDiceCsReq(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 4; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueRollDiceCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueRollDiceCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntityId != other.EntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntityId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EntityId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueRollDiceCsReq other) { + if (other == null) { + return; + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + EntityId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + EntityId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueRollDiceScRsp.cs b/Common/Proto/ChessRogueRollDiceScRsp.cs new file mode 100644 index 00000000..ef7c0fd2 --- /dev/null +++ b/Common/Proto/ChessRogueRollDiceScRsp.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueRollDiceScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueRollDiceScRsp.proto + public static partial class ChessRogueRollDiceScRspReflection { + + #region Descriptor + /// File descriptor for ChessRogueRollDiceScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueRollDiceScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1DaGVzc1JvZ3VlUm9sbERpY2VTY1JzcC5wcm90bxoYQ2hlc3NSb2d1ZU5v", + "dXNEaWNlLnByb3RvImcKF0NoZXNzUm9ndWVSb2xsRGljZVNjUnNwEg8KB3Jl", + "dGNvZGUYCiABKA0SEwoLT0hORE5EREtBRUcYCyABKA0SJgoJbm91c19kaWNl", + "GAYgASgLMhMuQ2hlc3NSb2d1ZU5vdXNEaWNlQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueNousDiceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueRollDiceScRsp), global::EggLink.DanhengServer.Proto.ChessRogueRollDiceScRsp.Parser, new[]{ "Retcode", "OHNDNDDKAEG", "NousDice" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueRollDiceScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueRollDiceScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueRollDiceScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueRollDiceScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueRollDiceScRsp(ChessRogueRollDiceScRsp other) : this() { + retcode_ = other.retcode_; + oHNDNDDKAEG_ = other.oHNDNDDKAEG_; + nousDice_ = other.nousDice_ != null ? other.nousDice_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueRollDiceScRsp Clone() { + return new ChessRogueRollDiceScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 10; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "OHNDNDDKAEG" field. + public const int OHNDNDDKAEGFieldNumber = 11; + private uint oHNDNDDKAEG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OHNDNDDKAEG { + get { return oHNDNDDKAEG_; } + set { + oHNDNDDKAEG_ = value; + } + } + + /// Field number for the "nous_dice" field. + public const int NousDiceFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.ChessRogueNousDice nousDice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueNousDice NousDice { + get { return nousDice_; } + set { + nousDice_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueRollDiceScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueRollDiceScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (OHNDNDDKAEG != other.OHNDNDDKAEG) return false; + if (!object.Equals(NousDice, other.NousDice)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (OHNDNDDKAEG != 0) hash ^= OHNDNDDKAEG.GetHashCode(); + if (nousDice_ != null) hash ^= NousDice.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (nousDice_ != null) { + output.WriteRawTag(50); + output.WriteMessage(NousDice); + } + if (Retcode != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Retcode); + } + if (OHNDNDDKAEG != 0) { + output.WriteRawTag(88); + output.WriteUInt32(OHNDNDDKAEG); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (nousDice_ != null) { + output.WriteRawTag(50); + output.WriteMessage(NousDice); + } + if (Retcode != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Retcode); + } + if (OHNDNDDKAEG != 0) { + output.WriteRawTag(88); + output.WriteUInt32(OHNDNDDKAEG); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (OHNDNDDKAEG != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OHNDNDDKAEG); + } + if (nousDice_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NousDice); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueRollDiceScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.OHNDNDDKAEG != 0) { + OHNDNDDKAEG = other.OHNDNDDKAEG; + } + if (other.nousDice_ != null) { + if (nousDice_ == null) { + NousDice = new global::EggLink.DanhengServer.Proto.ChessRogueNousDice(); + } + NousDice.MergeFrom(other.NousDice); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: { + if (nousDice_ == null) { + NousDice = new global::EggLink.DanhengServer.Proto.ChessRogueNousDice(); + } + input.ReadMessage(NousDice); + break; + } + case 80: { + Retcode = input.ReadUInt32(); + break; + } + case 88: { + OHNDNDDKAEG = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: { + if (nousDice_ == null) { + NousDice = new global::EggLink.DanhengServer.Proto.ChessRogueNousDice(); + } + input.ReadMessage(NousDice); + break; + } + case 80: { + Retcode = input.ReadUInt32(); + break; + } + case 88: { + OHNDNDDKAEG = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueSelectCellCsReq.cs b/Common/Proto/ChessRogueSelectCellCsReq.cs new file mode 100644 index 00000000..742cc201 --- /dev/null +++ b/Common/Proto/ChessRogueSelectCellCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueSelectCellCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueSelectCellCsReq.proto + public static partial class ChessRogueSelectCellCsReqReflection { + + #region Descriptor + /// File descriptor for ChessRogueSelectCellCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueSelectCellCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9DaGVzc1JvZ3VlU2VsZWN0Q2VsbENzUmVxLnByb3RvIiwKGUNoZXNzUm9n", + "dWVTZWxlY3RDZWxsQ3NSZXESDwoHY2VsbF9pZBgLIAEoDUIeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueSelectCellCsReq), global::EggLink.DanhengServer.Proto.ChessRogueSelectCellCsReq.Parser, new[]{ "CellId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueSelectCellCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueSelectCellCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueSelectCellCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueSelectCellCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueSelectCellCsReq(ChessRogueSelectCellCsReq other) : this() { + cellId_ = other.cellId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueSelectCellCsReq Clone() { + return new ChessRogueSelectCellCsReq(this); + } + + /// Field number for the "cell_id" field. + public const int CellIdFieldNumber = 11; + private uint cellId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CellId { + get { return cellId_; } + set { + cellId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueSelectCellCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueSelectCellCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CellId != other.CellId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CellId != 0) hash ^= CellId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CellId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(CellId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CellId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(CellId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CellId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CellId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueSelectCellCsReq other) { + if (other == null) { + return; + } + if (other.CellId != 0) { + CellId = other.CellId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 88: { + CellId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 88: { + CellId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueSelectCellScRsp.cs b/Common/Proto/ChessRogueSelectCellScRsp.cs new file mode 100644 index 00000000..e92e27af --- /dev/null +++ b/Common/Proto/ChessRogueSelectCellScRsp.cs @@ -0,0 +1,356 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueSelectCellScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueSelectCellScRsp.proto + public static partial class ChessRogueSelectCellScRspReflection { + + #region Descriptor + /// File descriptor for ChessRogueSelectCellScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueSelectCellScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9DaGVzc1JvZ3VlU2VsZWN0Q2VsbFNjUnNwLnByb3RvGhFMTEpGUEtLTEdB", + "Sy5wcm90byJ1ChlDaGVzc1JvZ3VlU2VsZWN0Q2VsbFNjUnNwEhMKC0pOQkhM", + "SEZCQkJKGAUgASgNEg8KB2NlbGxfaWQYDSABKA0SIQoLTkRHT0hEUERLQUQY", + "CiABKAsyDC5MTEpGUEtLTEdBSxIPCgdyZXRjb2RlGAcgASgNQh6qAhtFZ2dM", + "aW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.LLJFPKKLGAKReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueSelectCellScRsp), global::EggLink.DanhengServer.Proto.ChessRogueSelectCellScRsp.Parser, new[]{ "JNBHLHFBBBJ", "CellId", "NDGOHDPDKAD", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueSelectCellScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueSelectCellScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueSelectCellScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueSelectCellScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueSelectCellScRsp(ChessRogueSelectCellScRsp other) : this() { + jNBHLHFBBBJ_ = other.jNBHLHFBBBJ_; + cellId_ = other.cellId_; + nDGOHDPDKAD_ = other.nDGOHDPDKAD_ != null ? other.nDGOHDPDKAD_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueSelectCellScRsp Clone() { + return new ChessRogueSelectCellScRsp(this); + } + + /// Field number for the "JNBHLHFBBBJ" field. + public const int JNBHLHFBBBJFieldNumber = 5; + private uint jNBHLHFBBBJ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint JNBHLHFBBBJ { + get { return jNBHLHFBBBJ_; } + set { + jNBHLHFBBBJ_ = value; + } + } + + /// Field number for the "cell_id" field. + public const int CellIdFieldNumber = 13; + private uint cellId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CellId { + get { return cellId_; } + set { + cellId_ = value; + } + } + + /// Field number for the "NDGOHDPDKAD" field. + public const int NDGOHDPDKADFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.LLJFPKKLGAK nDGOHDPDKAD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.LLJFPKKLGAK NDGOHDPDKAD { + get { return nDGOHDPDKAD_; } + set { + nDGOHDPDKAD_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 7; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueSelectCellScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueSelectCellScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (JNBHLHFBBBJ != other.JNBHLHFBBBJ) return false; + if (CellId != other.CellId) return false; + if (!object.Equals(NDGOHDPDKAD, other.NDGOHDPDKAD)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (JNBHLHFBBBJ != 0) hash ^= JNBHLHFBBBJ.GetHashCode(); + if (CellId != 0) hash ^= CellId.GetHashCode(); + if (nDGOHDPDKAD_ != null) hash ^= NDGOHDPDKAD.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (JNBHLHFBBBJ != 0) { + output.WriteRawTag(40); + output.WriteUInt32(JNBHLHFBBBJ); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (nDGOHDPDKAD_ != null) { + output.WriteRawTag(82); + output.WriteMessage(NDGOHDPDKAD); + } + if (CellId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(CellId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (JNBHLHFBBBJ != 0) { + output.WriteRawTag(40); + output.WriteUInt32(JNBHLHFBBBJ); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (nDGOHDPDKAD_ != null) { + output.WriteRawTag(82); + output.WriteMessage(NDGOHDPDKAD); + } + if (CellId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(CellId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (JNBHLHFBBBJ != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(JNBHLHFBBBJ); + } + if (CellId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CellId); + } + if (nDGOHDPDKAD_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NDGOHDPDKAD); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueSelectCellScRsp other) { + if (other == null) { + return; + } + if (other.JNBHLHFBBBJ != 0) { + JNBHLHFBBBJ = other.JNBHLHFBBBJ; + } + if (other.CellId != 0) { + CellId = other.CellId; + } + if (other.nDGOHDPDKAD_ != null) { + if (nDGOHDPDKAD_ == null) { + NDGOHDPDKAD = new global::EggLink.DanhengServer.Proto.LLJFPKKLGAK(); + } + NDGOHDPDKAD.MergeFrom(other.NDGOHDPDKAD); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + JNBHLHFBBBJ = input.ReadUInt32(); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 82: { + if (nDGOHDPDKAD_ == null) { + NDGOHDPDKAD = new global::EggLink.DanhengServer.Proto.LLJFPKKLGAK(); + } + input.ReadMessage(NDGOHDPDKAD); + break; + } + case 104: { + CellId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + JNBHLHFBBBJ = input.ReadUInt32(); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 82: { + if (nDGOHDPDKAD_ == null) { + NDGOHDPDKAD = new global::EggLink.DanhengServer.Proto.LLJFPKKLGAK(); + } + input.ReadMessage(NDGOHDPDKAD); + break; + } + case 104: { + CellId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueStartCsReq.cs b/Common/Proto/ChessRogueStartCsReq.cs new file mode 100644 index 00000000..bdca8c54 --- /dev/null +++ b/Common/Proto/ChessRogueStartCsReq.cs @@ -0,0 +1,426 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueStartCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueStartCsReq.proto + public static partial class ChessRogueStartCsReqReflection { + + #region Descriptor + /// File descriptor for ChessRogueStartCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueStartCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpDaGVzc1JvZ3VlU3RhcnRDc1JlcS5wcm90byK0AQoUQ2hlc3NSb2d1ZVN0", + "YXJ0Q3NSZXESEwoLSkRDTUdQSkhHTEcYCCADKA0SEwoLS09MRUZKS01GTEYY", + "ASABKA0SEwoLRERESUNPRUZIUE0YBiADKA0SDwoHYXJlYV9pZBgFIAEoDRIb", + "ChNiYXNlX2F2YXRhcl9pZF9saXN0GA8gAygNEhcKD2Rpc2FibGVfYWVvbl9p", + "ZBgNIAMoDRIWCg5kaWNlX2JyYW5jaF9pZBgJIAEoDUIeqgIbRWdnTGluay5E", + "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueStartCsReq), global::EggLink.DanhengServer.Proto.ChessRogueStartCsReq.Parser, new[]{ "JDCMGPJHGLG", "KOLEFJKMFLF", "DDDICOEFHPM", "AreaId", "BaseAvatarIdList", "DisableAeonId", "DiceBranchId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueStartCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueStartCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueStartCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueStartCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueStartCsReq(ChessRogueStartCsReq other) : this() { + jDCMGPJHGLG_ = other.jDCMGPJHGLG_.Clone(); + kOLEFJKMFLF_ = other.kOLEFJKMFLF_; + dDDICOEFHPM_ = other.dDDICOEFHPM_.Clone(); + areaId_ = other.areaId_; + baseAvatarIdList_ = other.baseAvatarIdList_.Clone(); + disableAeonId_ = other.disableAeonId_.Clone(); + diceBranchId_ = other.diceBranchId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueStartCsReq Clone() { + return new ChessRogueStartCsReq(this); + } + + /// Field number for the "JDCMGPJHGLG" field. + public const int JDCMGPJHGLGFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_jDCMGPJHGLG_codec + = pb::FieldCodec.ForUInt32(66); + private readonly pbc::RepeatedField jDCMGPJHGLG_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField JDCMGPJHGLG { + get { return jDCMGPJHGLG_; } + } + + /// Field number for the "KOLEFJKMFLF" field. + public const int KOLEFJKMFLFFieldNumber = 1; + private uint kOLEFJKMFLF_; + /// + /// guess this is the difficulty level + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint KOLEFJKMFLF { + get { return kOLEFJKMFLF_; } + set { + kOLEFJKMFLF_ = value; + } + } + + /// Field number for the "DDDICOEFHPM" field. + public const int DDDICOEFHPMFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_dDDICOEFHPM_codec + = pb::FieldCodec.ForUInt32(50); + private readonly pbc::RepeatedField dDDICOEFHPM_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DDDICOEFHPM { + get { return dDDICOEFHPM_; } + } + + /// Field number for the "area_id" field. + public const int AreaIdFieldNumber = 5; + private uint areaId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AreaId { + get { return areaId_; } + set { + areaId_ = value; + } + } + + /// Field number for the "base_avatar_id_list" field. + public const int BaseAvatarIdListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_baseAvatarIdList_codec + = pb::FieldCodec.ForUInt32(122); + private readonly pbc::RepeatedField baseAvatarIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BaseAvatarIdList { + get { return baseAvatarIdList_; } + } + + /// Field number for the "disable_aeon_id" field. + public const int DisableAeonIdFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_disableAeonId_codec + = pb::FieldCodec.ForUInt32(106); + private readonly pbc::RepeatedField disableAeonId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DisableAeonId { + get { return disableAeonId_; } + } + + /// Field number for the "dice_branch_id" field. + public const int DiceBranchIdFieldNumber = 9; + private uint diceBranchId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DiceBranchId { + get { return diceBranchId_; } + set { + diceBranchId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueStartCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueStartCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!jDCMGPJHGLG_.Equals(other.jDCMGPJHGLG_)) return false; + if (KOLEFJKMFLF != other.KOLEFJKMFLF) return false; + if(!dDDICOEFHPM_.Equals(other.dDDICOEFHPM_)) return false; + if (AreaId != other.AreaId) return false; + if(!baseAvatarIdList_.Equals(other.baseAvatarIdList_)) return false; + if(!disableAeonId_.Equals(other.disableAeonId_)) return false; + if (DiceBranchId != other.DiceBranchId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= jDCMGPJHGLG_.GetHashCode(); + if (KOLEFJKMFLF != 0) hash ^= KOLEFJKMFLF.GetHashCode(); + hash ^= dDDICOEFHPM_.GetHashCode(); + if (AreaId != 0) hash ^= AreaId.GetHashCode(); + hash ^= baseAvatarIdList_.GetHashCode(); + hash ^= disableAeonId_.GetHashCode(); + if (DiceBranchId != 0) hash ^= DiceBranchId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (KOLEFJKMFLF != 0) { + output.WriteRawTag(8); + output.WriteUInt32(KOLEFJKMFLF); + } + if (AreaId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(AreaId); + } + dDDICOEFHPM_.WriteTo(output, _repeated_dDDICOEFHPM_codec); + jDCMGPJHGLG_.WriteTo(output, _repeated_jDCMGPJHGLG_codec); + if (DiceBranchId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(DiceBranchId); + } + disableAeonId_.WriteTo(output, _repeated_disableAeonId_codec); + baseAvatarIdList_.WriteTo(output, _repeated_baseAvatarIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (KOLEFJKMFLF != 0) { + output.WriteRawTag(8); + output.WriteUInt32(KOLEFJKMFLF); + } + if (AreaId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(AreaId); + } + dDDICOEFHPM_.WriteTo(ref output, _repeated_dDDICOEFHPM_codec); + jDCMGPJHGLG_.WriteTo(ref output, _repeated_jDCMGPJHGLG_codec); + if (DiceBranchId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(DiceBranchId); + } + disableAeonId_.WriteTo(ref output, _repeated_disableAeonId_codec); + baseAvatarIdList_.WriteTo(ref output, _repeated_baseAvatarIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += jDCMGPJHGLG_.CalculateSize(_repeated_jDCMGPJHGLG_codec); + if (KOLEFJKMFLF != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(KOLEFJKMFLF); + } + size += dDDICOEFHPM_.CalculateSize(_repeated_dDDICOEFHPM_codec); + if (AreaId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AreaId); + } + size += baseAvatarIdList_.CalculateSize(_repeated_baseAvatarIdList_codec); + size += disableAeonId_.CalculateSize(_repeated_disableAeonId_codec); + if (DiceBranchId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DiceBranchId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueStartCsReq other) { + if (other == null) { + return; + } + jDCMGPJHGLG_.Add(other.jDCMGPJHGLG_); + if (other.KOLEFJKMFLF != 0) { + KOLEFJKMFLF = other.KOLEFJKMFLF; + } + dDDICOEFHPM_.Add(other.dDDICOEFHPM_); + if (other.AreaId != 0) { + AreaId = other.AreaId; + } + baseAvatarIdList_.Add(other.baseAvatarIdList_); + disableAeonId_.Add(other.disableAeonId_); + if (other.DiceBranchId != 0) { + DiceBranchId = other.DiceBranchId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + KOLEFJKMFLF = input.ReadUInt32(); + break; + } + case 40: { + AreaId = input.ReadUInt32(); + break; + } + case 50: + case 48: { + dDDICOEFHPM_.AddEntriesFrom(input, _repeated_dDDICOEFHPM_codec); + break; + } + case 66: + case 64: { + jDCMGPJHGLG_.AddEntriesFrom(input, _repeated_jDCMGPJHGLG_codec); + break; + } + case 72: { + DiceBranchId = input.ReadUInt32(); + break; + } + case 106: + case 104: { + disableAeonId_.AddEntriesFrom(input, _repeated_disableAeonId_codec); + break; + } + case 122: + case 120: { + baseAvatarIdList_.AddEntriesFrom(input, _repeated_baseAvatarIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + KOLEFJKMFLF = input.ReadUInt32(); + break; + } + case 40: { + AreaId = input.ReadUInt32(); + break; + } + case 50: + case 48: { + dDDICOEFHPM_.AddEntriesFrom(ref input, _repeated_dDDICOEFHPM_codec); + break; + } + case 66: + case 64: { + jDCMGPJHGLG_.AddEntriesFrom(ref input, _repeated_jDCMGPJHGLG_codec); + break; + } + case 72: { + DiceBranchId = input.ReadUInt32(); + break; + } + case 106: + case 104: { + disableAeonId_.AddEntriesFrom(ref input, _repeated_disableAeonId_codec); + break; + } + case 122: + case 120: { + baseAvatarIdList_.AddEntriesFrom(ref input, _repeated_baseAvatarIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueStartScRsp.cs b/Common/Proto/ChessRogueStartScRsp.cs new file mode 100644 index 00000000..9485e71c --- /dev/null +++ b/Common/Proto/ChessRogueStartScRsp.cs @@ -0,0 +1,474 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueStartScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueStartScRsp.proto + public static partial class ChessRogueStartScRspReflection { + + #region Descriptor + /// File descriptor for ChessRogueStartScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueStartScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpDaGVzc1JvZ3VlU3RhcnRTY1JzcC5wcm90bxobQ2hlc3NSb2d1ZUN1cnJl", + "bnRJbmZvLnByb3RvGhBMaW5ldXBJbmZvLnByb3RvGhhDaGVzc1JvZ3VlQ2Vs", + "bEluZm8ucHJvdG8aD1NjZW5lSW5mby5wcm90bxoUQ2hlc3NSb2d1ZUluZm8u", + "cHJvdG8i4AEKFENoZXNzUm9ndWVTdGFydFNjUnNwEg8KB3JldGNvZGUYAiAB", + "KA0SLAoMY3VycmVudF9pbmZvGAogASgLMhYuQ2hlc3NSb2d1ZUN1cnJlbnRJ", + "bmZvEhsKBmxpbmV1cBgBIAEoCzILLkxpbmV1cEluZm8SJgoJY2VsbF9pbmZv", + "GAcgASgLMhMuQ2hlc3NSb2d1ZUNlbGxJbmZvEhkKBXNjZW5lGAQgASgLMgou", + "U2NlbmVJbmZvEikKEGNoZXNzX3JvZ3VlX2luZm8YCyABKAsyDy5DaGVzc1Jv", + "Z3VlSW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.LineupInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueCellInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueStartScRsp), global::EggLink.DanhengServer.Proto.ChessRogueStartScRsp.Parser, new[]{ "Retcode", "CurrentInfo", "Lineup", "CellInfo", "Scene", "ChessRogueInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueStartScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueStartScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueStartScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueStartScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueStartScRsp(ChessRogueStartScRsp other) : this() { + retcode_ = other.retcode_; + currentInfo_ = other.currentInfo_ != null ? other.currentInfo_.Clone() : null; + lineup_ = other.lineup_ != null ? other.lineup_.Clone() : null; + cellInfo_ = other.cellInfo_ != null ? other.cellInfo_.Clone() : null; + scene_ = other.scene_ != null ? other.scene_.Clone() : null; + chessRogueInfo_ = other.chessRogueInfo_ != null ? other.chessRogueInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueStartScRsp Clone() { + return new ChessRogueStartScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 2; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "current_info" field. + public const int CurrentInfoFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfo currentInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfo CurrentInfo { + get { return currentInfo_; } + set { + currentInfo_ = value; + } + } + + /// Field number for the "lineup" field. + public const int LineupFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.LineupInfo lineup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.LineupInfo Lineup { + get { return lineup_; } + set { + lineup_ = value; + } + } + + /// Field number for the "cell_info" field. + public const int CellInfoFieldNumber = 7; + private global::EggLink.DanhengServer.Proto.ChessRogueCellInfo cellInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueCellInfo CellInfo { + get { return cellInfo_; } + set { + cellInfo_ = value; + } + } + + /// Field number for the "scene" field. + public const int SceneFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.SceneInfo scene_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneInfo Scene { + get { return scene_; } + set { + scene_ = value; + } + } + + /// Field number for the "chess_rogue_info" field. + public const int ChessRogueInfoFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.ChessRogueInfo chessRogueInfo_; + /// + ///HLODEEONDBF OBGFEMEOJCE = 13; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueInfo ChessRogueInfo { + get { return chessRogueInfo_; } + set { + chessRogueInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueStartScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueStartScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(CurrentInfo, other.CurrentInfo)) return false; + if (!object.Equals(Lineup, other.Lineup)) return false; + if (!object.Equals(CellInfo, other.CellInfo)) return false; + if (!object.Equals(Scene, other.Scene)) return false; + if (!object.Equals(ChessRogueInfo, other.ChessRogueInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (currentInfo_ != null) hash ^= CurrentInfo.GetHashCode(); + if (lineup_ != null) hash ^= Lineup.GetHashCode(); + if (cellInfo_ != null) hash ^= CellInfo.GetHashCode(); + if (scene_ != null) hash ^= Scene.GetHashCode(); + if (chessRogueInfo_ != null) hash ^= ChessRogueInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (lineup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Lineup); + } + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + if (scene_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Scene); + } + if (cellInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CellInfo); + } + if (currentInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CurrentInfo); + } + if (chessRogueInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(ChessRogueInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (lineup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Lineup); + } + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + if (scene_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Scene); + } + if (cellInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CellInfo); + } + if (currentInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CurrentInfo); + } + if (chessRogueInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(ChessRogueInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (currentInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentInfo); + } + if (lineup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lineup); + } + if (cellInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CellInfo); + } + if (scene_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scene); + } + if (chessRogueInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChessRogueInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueStartScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.currentInfo_ != null) { + if (currentInfo_ == null) { + CurrentInfo = new global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfo(); + } + CurrentInfo.MergeFrom(other.CurrentInfo); + } + if (other.lineup_ != null) { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + Lineup.MergeFrom(other.Lineup); + } + if (other.cellInfo_ != null) { + if (cellInfo_ == null) { + CellInfo = new global::EggLink.DanhengServer.Proto.ChessRogueCellInfo(); + } + CellInfo.MergeFrom(other.CellInfo); + } + if (other.scene_ != null) { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + Scene.MergeFrom(other.Scene); + } + if (other.chessRogueInfo_ != null) { + if (chessRogueInfo_ == null) { + ChessRogueInfo = new global::EggLink.DanhengServer.Proto.ChessRogueInfo(); + } + ChessRogueInfo.MergeFrom(other.ChessRogueInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 34: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + case 58: { + if (cellInfo_ == null) { + CellInfo = new global::EggLink.DanhengServer.Proto.ChessRogueCellInfo(); + } + input.ReadMessage(CellInfo); + break; + } + case 82: { + if (currentInfo_ == null) { + CurrentInfo = new global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfo(); + } + input.ReadMessage(CurrentInfo); + break; + } + case 90: { + if (chessRogueInfo_ == null) { + ChessRogueInfo = new global::EggLink.DanhengServer.Proto.ChessRogueInfo(); + } + input.ReadMessage(ChessRogueInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 34: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + case 58: { + if (cellInfo_ == null) { + CellInfo = new global::EggLink.DanhengServer.Proto.ChessRogueCellInfo(); + } + input.ReadMessage(CellInfo); + break; + } + case 82: { + if (currentInfo_ == null) { + CurrentInfo = new global::EggLink.DanhengServer.Proto.ChessRogueCurrentInfo(); + } + input.ReadMessage(CurrentInfo); + break; + } + case 90: { + if (chessRogueInfo_ == null) { + ChessRogueInfo = new global::EggLink.DanhengServer.Proto.ChessRogueInfo(); + } + input.ReadMessage(ChessRogueInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueUpdateActionPointScNotify.cs b/Common/Proto/ChessRogueUpdateActionPointScNotify.cs new file mode 100644 index 00000000..cd481feb --- /dev/null +++ b/Common/Proto/ChessRogueUpdateActionPointScNotify.cs @@ -0,0 +1,235 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueUpdateActionPointScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueUpdateActionPointScNotify.proto + public static partial class ChessRogueUpdateActionPointScNotifyReflection { + + #region Descriptor + /// File descriptor for ChessRogueUpdateActionPointScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueUpdateActionPointScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CilDaGVzc1JvZ3VlVXBkYXRlQWN0aW9uUG9pbnRTY05vdGlmeS5wcm90byI7", + "CiNDaGVzc1JvZ3VlVXBkYXRlQWN0aW9uUG9pbnRTY05vdGlmeRIUCgxhY3Rp", + "b25fcG9pbnQYCSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90", + "b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueUpdateActionPointScNotify), global::EggLink.DanhengServer.Proto.ChessRogueUpdateActionPointScNotify.Parser, new[]{ "ActionPoint" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueUpdateActionPointScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueUpdateActionPointScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueUpdateActionPointScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateActionPointScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateActionPointScNotify(ChessRogueUpdateActionPointScNotify other) : this() { + actionPoint_ = other.actionPoint_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateActionPointScNotify Clone() { + return new ChessRogueUpdateActionPointScNotify(this); + } + + /// Field number for the "action_point" field. + public const int ActionPointFieldNumber = 9; + private uint actionPoint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ActionPoint { + get { return actionPoint_; } + set { + actionPoint_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueUpdateActionPointScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueUpdateActionPointScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ActionPoint != other.ActionPoint) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ActionPoint != 0) hash ^= ActionPoint.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ActionPoint != 0) { + output.WriteRawTag(72); + output.WriteUInt32(ActionPoint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ActionPoint != 0) { + output.WriteRawTag(72); + output.WriteUInt32(ActionPoint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ActionPoint != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ActionPoint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueUpdateActionPointScNotify other) { + if (other == null) { + return; + } + if (other.ActionPoint != 0) { + ActionPoint = other.ActionPoint; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 72: { + ActionPoint = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 72: { + ActionPoint = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueUpdateAllowedSelectCellScNotify.cs b/Common/Proto/ChessRogueUpdateAllowedSelectCellScNotify.cs new file mode 100644 index 00000000..aaf5143f --- /dev/null +++ b/Common/Proto/ChessRogueUpdateAllowedSelectCellScNotify.cs @@ -0,0 +1,263 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueUpdateAllowedSelectCellScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueUpdateAllowedSelectCellScNotify.proto + public static partial class ChessRogueUpdateAllowedSelectCellScNotifyReflection { + + #region Descriptor + /// File descriptor for ChessRogueUpdateAllowedSelectCellScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueUpdateAllowedSelectCellScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci9DaGVzc1JvZ3VlVXBkYXRlQWxsb3dlZFNlbGVjdENlbGxTY05vdGlmeS5w", + "cm90byJSCilDaGVzc1JvZ3VlVXBkYXRlQWxsb3dlZFNlbGVjdENlbGxTY05v", + "dGlmeRIUCgxjZWxsX2lkX2xpc3QYCyADKA0SDwoHcm9vbV9pZBgMIAEoDUIe", + "qgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueUpdateAllowedSelectCellScNotify), global::EggLink.DanhengServer.Proto.ChessRogueUpdateAllowedSelectCellScNotify.Parser, new[]{ "CellIdList", "RoomId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueUpdateAllowedSelectCellScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueUpdateAllowedSelectCellScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueUpdateAllowedSelectCellScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateAllowedSelectCellScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateAllowedSelectCellScNotify(ChessRogueUpdateAllowedSelectCellScNotify other) : this() { + cellIdList_ = other.cellIdList_.Clone(); + roomId_ = other.roomId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateAllowedSelectCellScNotify Clone() { + return new ChessRogueUpdateAllowedSelectCellScNotify(this); + } + + /// Field number for the "cell_id_list" field. + public const int CellIdListFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_cellIdList_codec + = pb::FieldCodec.ForUInt32(90); + private readonly pbc::RepeatedField cellIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CellIdList { + get { return cellIdList_; } + } + + /// Field number for the "room_id" field. + public const int RoomIdFieldNumber = 12; + private uint roomId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RoomId { + get { return roomId_; } + set { + roomId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueUpdateAllowedSelectCellScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueUpdateAllowedSelectCellScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!cellIdList_.Equals(other.cellIdList_)) return false; + if (RoomId != other.RoomId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= cellIdList_.GetHashCode(); + if (RoomId != 0) hash ^= RoomId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + cellIdList_.WriteTo(output, _repeated_cellIdList_codec); + if (RoomId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RoomId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + cellIdList_.WriteTo(ref output, _repeated_cellIdList_codec); + if (RoomId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RoomId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += cellIdList_.CalculateSize(_repeated_cellIdList_codec); + if (RoomId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoomId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueUpdateAllowedSelectCellScNotify other) { + if (other == null) { + return; + } + cellIdList_.Add(other.cellIdList_); + if (other.RoomId != 0) { + RoomId = other.RoomId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 90: + case 88: { + cellIdList_.AddEntriesFrom(input, _repeated_cellIdList_codec); + break; + } + case 96: { + RoomId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 90: + case 88: { + cellIdList_.AddEntriesFrom(ref input, _repeated_cellIdList_codec); + break; + } + case 96: { + RoomId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueUpdateDiceInfoScNotify.cs b/Common/Proto/ChessRogueUpdateDiceInfoScNotify.cs new file mode 100644 index 00000000..a41f5ffc --- /dev/null +++ b/Common/Proto/ChessRogueUpdateDiceInfoScNotify.cs @@ -0,0 +1,245 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueUpdateDiceInfoScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueUpdateDiceInfoScNotify.proto + public static partial class ChessRogueUpdateDiceInfoScNotifyReflection { + + #region Descriptor + /// File descriptor for ChessRogueUpdateDiceInfoScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueUpdateDiceInfoScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZDaGVzc1JvZ3VlVXBkYXRlRGljZUluZm9TY05vdGlmeS5wcm90bxoYQ2hl", + "c3NSb2d1ZU5vdXNEaWNlLnByb3RvIkoKIENoZXNzUm9ndWVVcGRhdGVEaWNl", + "SW5mb1NjTm90aWZ5EiYKCW5vdXNfZGljZRgFIAEoCzITLkNoZXNzUm9ndWVO", + "b3VzRGljZUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueNousDiceReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueUpdateDiceInfoScNotify), global::EggLink.DanhengServer.Proto.ChessRogueUpdateDiceInfoScNotify.Parser, new[]{ "NousDice" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueUpdateDiceInfoScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueUpdateDiceInfoScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueUpdateDiceInfoScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateDiceInfoScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateDiceInfoScNotify(ChessRogueUpdateDiceInfoScNotify other) : this() { + nousDice_ = other.nousDice_ != null ? other.nousDice_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateDiceInfoScNotify Clone() { + return new ChessRogueUpdateDiceInfoScNotify(this); + } + + /// Field number for the "nous_dice" field. + public const int NousDiceFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.ChessRogueNousDice nousDice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueNousDice NousDice { + get { return nousDice_; } + set { + nousDice_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueUpdateDiceInfoScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueUpdateDiceInfoScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(NousDice, other.NousDice)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (nousDice_ != null) hash ^= NousDice.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (nousDice_ != null) { + output.WriteRawTag(42); + output.WriteMessage(NousDice); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (nousDice_ != null) { + output.WriteRawTag(42); + output.WriteMessage(NousDice); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (nousDice_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NousDice); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueUpdateDiceInfoScNotify other) { + if (other == null) { + return; + } + if (other.nousDice_ != null) { + if (nousDice_ == null) { + NousDice = new global::EggLink.DanhengServer.Proto.ChessRogueNousDice(); + } + NousDice.MergeFrom(other.NousDice); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + if (nousDice_ == null) { + NousDice = new global::EggLink.DanhengServer.Proto.ChessRogueNousDice(); + } + input.ReadMessage(NousDice); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + if (nousDice_ == null) { + NousDice = new global::EggLink.DanhengServer.Proto.ChessRogueNousDice(); + } + input.ReadMessage(NousDice); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueUpdateDicePassiveAccumulateValueScNotify.cs b/Common/Proto/ChessRogueUpdateDicePassiveAccumulateValueScNotify.cs new file mode 100644 index 00000000..59a603c9 --- /dev/null +++ b/Common/Proto/ChessRogueUpdateDicePassiveAccumulateValueScNotify.cs @@ -0,0 +1,235 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueUpdateDicePassiveAccumulateValueScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueUpdateDicePassiveAccumulateValueScNotify.proto + public static partial class ChessRogueUpdateDicePassiveAccumulateValueScNotifyReflection { + + #region Descriptor + /// File descriptor for ChessRogueUpdateDicePassiveAccumulateValueScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueUpdateDicePassiveAccumulateValueScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjhDaGVzc1JvZ3VlVXBkYXRlRGljZVBhc3NpdmVBY2N1bXVsYXRlVmFsdWVT", + "Y05vdGlmeS5wcm90byJDCjJDaGVzc1JvZ3VlVXBkYXRlRGljZVBhc3NpdmVB", + "Y2N1bXVsYXRlVmFsdWVTY05vdGlmeRINCgV2YWx1ZRgNIAEoDUIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueUpdateDicePassiveAccumulateValueScNotify), global::EggLink.DanhengServer.Proto.ChessRogueUpdateDicePassiveAccumulateValueScNotify.Parser, new[]{ "Value" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueUpdateDicePassiveAccumulateValueScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueUpdateDicePassiveAccumulateValueScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueUpdateDicePassiveAccumulateValueScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateDicePassiveAccumulateValueScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateDicePassiveAccumulateValueScNotify(ChessRogueUpdateDicePassiveAccumulateValueScNotify other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateDicePassiveAccumulateValueScNotify Clone() { + return new ChessRogueUpdateDicePassiveAccumulateValueScNotify(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 13; + private uint value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Value { + get { return value_; } + set { + value_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueUpdateDicePassiveAccumulateValueScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueUpdateDicePassiveAccumulateValueScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (Value != 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 (Value != 0) { + output.WriteRawTag(104); + output.WriteUInt32(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 (Value != 0) { + output.WriteRawTag(104); + output.WriteUInt32(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 (Value != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueUpdateDicePassiveAccumulateValueScNotify other) { + if (other == null) { + return; + } + if (other.Value != 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 104: { + Value = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 104: { + Value = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueUpdateMoneyInfoScNotify.cs b/Common/Proto/ChessRogueUpdateMoneyInfoScNotify.cs new file mode 100644 index 00000000..b7ddccd9 --- /dev/null +++ b/Common/Proto/ChessRogueUpdateMoneyInfoScNotify.cs @@ -0,0 +1,245 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueUpdateMoneyInfoScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueUpdateMoneyInfoScNotify.proto + public static partial class ChessRogueUpdateMoneyInfoScNotifyReflection { + + #region Descriptor + /// File descriptor for ChessRogueUpdateMoneyInfoScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueUpdateMoneyInfoScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CidDaGVzc1JvZ3VlVXBkYXRlTW9uZXlJbmZvU2NOb3RpZnkucHJvdG8aGUNo", + "ZXNzUm9ndWVNb25leUluZm8ucHJvdG8iTQohQ2hlc3NSb2d1ZVVwZGF0ZU1v", + "bmV5SW5mb1NjTm90aWZ5EigKCm1vbmV5X2luZm8YDCABKAsyFC5DaGVzc1Jv", + "Z3VlTW9uZXlJbmZvQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueMoneyInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueUpdateMoneyInfoScNotify), global::EggLink.DanhengServer.Proto.ChessRogueUpdateMoneyInfoScNotify.Parser, new[]{ "MoneyInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueUpdateMoneyInfoScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueUpdateMoneyInfoScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueUpdateMoneyInfoScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateMoneyInfoScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateMoneyInfoScNotify(ChessRogueUpdateMoneyInfoScNotify other) : this() { + moneyInfo_ = other.moneyInfo_ != null ? other.moneyInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueUpdateMoneyInfoScNotify Clone() { + return new ChessRogueUpdateMoneyInfoScNotify(this); + } + + /// Field number for the "money_info" field. + public const int MoneyInfoFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.ChessRogueMoneyInfo moneyInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueMoneyInfo MoneyInfo { + get { return moneyInfo_; } + set { + moneyInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueUpdateMoneyInfoScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueUpdateMoneyInfoScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MoneyInfo, other.MoneyInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (moneyInfo_ != null) hash ^= MoneyInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (moneyInfo_ != null) { + output.WriteRawTag(98); + output.WriteMessage(MoneyInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (moneyInfo_ != null) { + output.WriteRawTag(98); + output.WriteMessage(MoneyInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (moneyInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MoneyInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueUpdateMoneyInfoScNotify other) { + if (other == null) { + return; + } + if (other.moneyInfo_ != null) { + if (moneyInfo_ == null) { + MoneyInfo = new global::EggLink.DanhengServer.Proto.ChessRogueMoneyInfo(); + } + MoneyInfo.MergeFrom(other.MoneyInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 98: { + if (moneyInfo_ == null) { + MoneyInfo = new global::EggLink.DanhengServer.Proto.ChessRogueMoneyInfo(); + } + input.ReadMessage(MoneyInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 98: { + if (moneyInfo_ == null) { + MoneyInfo = new global::EggLink.DanhengServer.Proto.ChessRogueMoneyInfo(); + } + input.ReadMessage(MoneyInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ChessRogueVirtualItemInfo.cs b/Common/Proto/ChessRogueVirtualItemInfo.cs new file mode 100644 index 00000000..b4c0e80f --- /dev/null +++ b/Common/Proto/ChessRogueVirtualItemInfo.cs @@ -0,0 +1,343 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ChessRogueVirtualItemInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ChessRogueVirtualItemInfo.proto + public static partial class ChessRogueVirtualItemInfoReflection { + + #region Descriptor + /// File descriptor for ChessRogueVirtualItemInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ChessRogueVirtualItemInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9DaGVzc1JvZ3VlVmlydHVhbEl0ZW1JbmZvLnByb3RvGhhDaGVzc1JvZ3Vl", + "QnVmZkluZm8ucHJvdG8aG0NoZXNzUm9ndWVNaXJhY2xlSW5mby5wcm90bxoY", + "Q2hlc3NSb2d1ZUl0ZW1JbmZvLnByb3RvIpkBChlDaGVzc1JvZ3VlVmlydHVh", + "bEl0ZW1JbmZvEiYKCWJ1ZmZfaW5mbxgJIAEoCzITLkNoZXNzUm9ndWVCdWZm", + "SW5mbxIsCgxtaXJhY2xlX2luZm8YDSABKAsyFi5DaGVzc1JvZ3VlTWlyYWNs", + "ZUluZm8SJgoJaXRlbV9pbmZvGAYgASgLMhMuQ2hlc3NSb2d1ZUl0ZW1JbmZv", + "Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueBuffInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueItemInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueVirtualItemInfo), global::EggLink.DanhengServer.Proto.ChessRogueVirtualItemInfo.Parser, new[]{ "BuffInfo", "MiracleInfo", "ItemInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChessRogueVirtualItemInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChessRogueVirtualItemInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ChessRogueVirtualItemInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueVirtualItemInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueVirtualItemInfo(ChessRogueVirtualItemInfo other) : this() { + buffInfo_ = other.buffInfo_ != null ? other.buffInfo_.Clone() : null; + miracleInfo_ = other.miracleInfo_ != null ? other.miracleInfo_.Clone() : null; + itemInfo_ = other.itemInfo_ != null ? other.itemInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChessRogueVirtualItemInfo Clone() { + return new ChessRogueVirtualItemInfo(this); + } + + /// Field number for the "buff_info" field. + public const int BuffInfoFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.ChessRogueBuffInfo buffInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueBuffInfo BuffInfo { + get { return buffInfo_; } + set { + buffInfo_ = value; + } + } + + /// Field number for the "miracle_info" field. + public const int MiracleInfoFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfo miracleInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfo MiracleInfo { + get { return miracleInfo_; } + set { + miracleInfo_ = value; + } + } + + /// Field number for the "item_info" field. + public const int ItemInfoFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.ChessRogueItemInfo itemInfo_; + /// + ///LNGAAJMILOC CKJPPDKJIOH = 8; + ///NNGLIKCIBCA JNAGMIALOII = 14; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueItemInfo ItemInfo { + get { return itemInfo_; } + set { + itemInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChessRogueVirtualItemInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChessRogueVirtualItemInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BuffInfo, other.BuffInfo)) return false; + if (!object.Equals(MiracleInfo, other.MiracleInfo)) return false; + if (!object.Equals(ItemInfo, other.ItemInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (buffInfo_ != null) hash ^= BuffInfo.GetHashCode(); + if (miracleInfo_ != null) hash ^= MiracleInfo.GetHashCode(); + if (itemInfo_ != null) hash ^= ItemInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (itemInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ItemInfo); + } + if (buffInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(BuffInfo); + } + if (miracleInfo_ != null) { + output.WriteRawTag(106); + output.WriteMessage(MiracleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (itemInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ItemInfo); + } + if (buffInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(BuffInfo); + } + if (miracleInfo_ != null) { + output.WriteRawTag(106); + output.WriteMessage(MiracleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (buffInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BuffInfo); + } + if (miracleInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MiracleInfo); + } + if (itemInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChessRogueVirtualItemInfo other) { + if (other == null) { + return; + } + if (other.buffInfo_ != null) { + if (buffInfo_ == null) { + BuffInfo = new global::EggLink.DanhengServer.Proto.ChessRogueBuffInfo(); + } + BuffInfo.MergeFrom(other.BuffInfo); + } + if (other.miracleInfo_ != null) { + if (miracleInfo_ == null) { + MiracleInfo = new global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfo(); + } + MiracleInfo.MergeFrom(other.MiracleInfo); + } + if (other.itemInfo_ != null) { + if (itemInfo_ == null) { + ItemInfo = new global::EggLink.DanhengServer.Proto.ChessRogueItemInfo(); + } + ItemInfo.MergeFrom(other.ItemInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: { + if (itemInfo_ == null) { + ItemInfo = new global::EggLink.DanhengServer.Proto.ChessRogueItemInfo(); + } + input.ReadMessage(ItemInfo); + break; + } + case 74: { + if (buffInfo_ == null) { + BuffInfo = new global::EggLink.DanhengServer.Proto.ChessRogueBuffInfo(); + } + input.ReadMessage(BuffInfo); + break; + } + case 106: { + if (miracleInfo_ == null) { + MiracleInfo = new global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfo(); + } + input.ReadMessage(MiracleInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: { + if (itemInfo_ == null) { + ItemInfo = new global::EggLink.DanhengServer.Proto.ChessRogueItemInfo(); + } + input.ReadMessage(ItemInfo); + break; + } + case 74: { + if (buffInfo_ == null) { + BuffInfo = new global::EggLink.DanhengServer.Proto.ChessRogueBuffInfo(); + } + input.ReadMessage(BuffInfo); + break; + } + case 106: { + if (miracleInfo_ == null) { + MiracleInfo = new global::EggLink.DanhengServer.Proto.ChessRogueMiracleInfo(); + } + input.ReadMessage(MiracleInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ClientMail.cs b/Common/Proto/ClientMail.cs new file mode 100644 index 00000000..c8cbb23c --- /dev/null +++ b/Common/Proto/ClientMail.cs @@ -0,0 +1,569 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClientMail.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ClientMail.proto + public static partial class ClientMailReflection { + + #region Descriptor + /// File descriptor for ClientMail.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClientMailReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBDbGllbnRNYWlsLnByb3RvGg5JdGVtTGlzdC5wcm90byLDAQoKQ2xpZW50", + "TWFpbBIPCgdpc19yZWFkGAIgASgIEhMKC2V4cGlyZV90aW1lGA4gASgDEhMK", + "C3RlbXBsYXRlX2lkGAkgASgNEh0KCmF0dGFjaG1lbnQYCyABKAsyCS5JdGVt", + "TGlzdBINCgV0aXRsZRgHIAEoCRIOCgZzZW5kZXIYBSABKAkSEQoJcGFyYV9s", + "aXN0GAQgAygJEgoKAmlkGAEgASgNEg8KB2NvbnRlbnQYBiABKAkSDAoEdGlt", + "ZRgPIAEoA0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ClientMail), global::EggLink.DanhengServer.Proto.ClientMail.Parser, new[]{ "IsRead", "ExpireTime", "TemplateId", "Attachment", "Title", "Sender", "ParaList", "Id", "Content", "Time" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ClientMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClientMail()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ClientMailReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClientMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClientMail(ClientMail other) : this() { + isRead_ = other.isRead_; + expireTime_ = other.expireTime_; + templateId_ = other.templateId_; + attachment_ = other.attachment_ != null ? other.attachment_.Clone() : null; + title_ = other.title_; + sender_ = other.sender_; + paraList_ = other.paraList_.Clone(); + id_ = other.id_; + content_ = other.content_; + time_ = other.time_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClientMail Clone() { + return new ClientMail(this); + } + + /// Field number for the "is_read" field. + public const int IsReadFieldNumber = 2; + private bool isRead_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsRead { + get { return isRead_; } + set { + isRead_ = value; + } + } + + /// Field number for the "expire_time" field. + public const int ExpireTimeFieldNumber = 14; + private long expireTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ExpireTime { + get { return expireTime_; } + set { + expireTime_ = value; + } + } + + /// Field number for the "template_id" field. + public const int TemplateIdFieldNumber = 9; + private uint templateId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TemplateId { + get { return templateId_; } + set { + templateId_ = value; + } + } + + /// Field number for the "attachment" field. + public const int AttachmentFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.ItemList attachment_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList Attachment { + get { return attachment_; } + set { + attachment_ = value; + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 7; + 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 "sender" field. + public const int SenderFieldNumber = 5; + private string sender_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sender { + get { return sender_; } + set { + sender_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "para_list" field. + public const int ParaListFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_paraList_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField paraList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ParaList { + get { return paraList_; } + } + + /// 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 "content" field. + public const int ContentFieldNumber = 6; + 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 "time" field. + public const int TimeFieldNumber = 15; + private long time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Time { + get { return time_; } + set { + time_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClientMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClientMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsRead != other.IsRead) return false; + if (ExpireTime != other.ExpireTime) return false; + if (TemplateId != other.TemplateId) return false; + if (!object.Equals(Attachment, other.Attachment)) return false; + if (Title != other.Title) return false; + if (Sender != other.Sender) return false; + if(!paraList_.Equals(other.paraList_)) return false; + if (Id != other.Id) return false; + if (Content != other.Content) return false; + if (Time != other.Time) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (IsRead != false) hash ^= IsRead.GetHashCode(); + if (ExpireTime != 0L) hash ^= ExpireTime.GetHashCode(); + if (TemplateId != 0) hash ^= TemplateId.GetHashCode(); + if (attachment_ != null) hash ^= Attachment.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (Sender.Length != 0) hash ^= Sender.GetHashCode(); + hash ^= paraList_.GetHashCode(); + if (Id != 0) hash ^= Id.GetHashCode(); + if (Content.Length != 0) hash ^= Content.GetHashCode(); + if (Time != 0L) hash ^= Time.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (IsRead != false) { + output.WriteRawTag(16); + output.WriteBool(IsRead); + } + paraList_.WriteTo(output, _repeated_paraList_codec); + if (Sender.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Sender); + } + if (Content.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Content); + } + if (Title.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Title); + } + if (TemplateId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(TemplateId); + } + if (attachment_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Attachment); + } + if (ExpireTime != 0L) { + output.WriteRawTag(112); + output.WriteInt64(ExpireTime); + } + if (Time != 0L) { + output.WriteRawTag(120); + output.WriteInt64(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (IsRead != false) { + output.WriteRawTag(16); + output.WriteBool(IsRead); + } + paraList_.WriteTo(ref output, _repeated_paraList_codec); + if (Sender.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Sender); + } + if (Content.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Content); + } + if (Title.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Title); + } + if (TemplateId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(TemplateId); + } + if (attachment_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Attachment); + } + if (ExpireTime != 0L) { + output.WriteRawTag(112); + output.WriteInt64(ExpireTime); + } + if (Time != 0L) { + output.WriteRawTag(120); + output.WriteInt64(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (IsRead != false) { + size += 1 + 1; + } + if (ExpireTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExpireTime); + } + if (TemplateId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TemplateId); + } + if (attachment_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Attachment); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (Sender.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sender); + } + size += paraList_.CalculateSize(_repeated_paraList_codec); + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (Content.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + if (Time != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Time); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClientMail other) { + if (other == null) { + return; + } + if (other.IsRead != false) { + IsRead = other.IsRead; + } + if (other.ExpireTime != 0L) { + ExpireTime = other.ExpireTime; + } + if (other.TemplateId != 0) { + TemplateId = other.TemplateId; + } + if (other.attachment_ != null) { + if (attachment_ == null) { + Attachment = new global::EggLink.DanhengServer.Proto.ItemList(); + } + Attachment.MergeFrom(other.Attachment); + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.Sender.Length != 0) { + Sender = other.Sender; + } + paraList_.Add(other.paraList_); + if (other.Id != 0) { + Id = other.Id; + } + if (other.Content.Length != 0) { + Content = other.Content; + } + if (other.Time != 0L) { + Time = other.Time; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + IsRead = input.ReadBool(); + break; + } + case 34: { + paraList_.AddEntriesFrom(input, _repeated_paraList_codec); + break; + } + case 42: { + Sender = input.ReadString(); + break; + } + case 50: { + Content = input.ReadString(); + break; + } + case 58: { + Title = input.ReadString(); + break; + } + case 72: { + TemplateId = input.ReadUInt32(); + break; + } + case 90: { + if (attachment_ == null) { + Attachment = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Attachment); + break; + } + case 112: { + ExpireTime = input.ReadInt64(); + break; + } + case 120: { + Time = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + IsRead = input.ReadBool(); + break; + } + case 34: { + paraList_.AddEntriesFrom(ref input, _repeated_paraList_codec); + break; + } + case 42: { + Sender = input.ReadString(); + break; + } + case 50: { + Content = input.ReadString(); + break; + } + case 58: { + Title = input.ReadString(); + break; + } + case 72: { + TemplateId = input.ReadUInt32(); + break; + } + case 90: { + if (attachment_ == null) { + Attachment = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Attachment); + break; + } + case 112: { + ExpireTime = input.ReadInt64(); + break; + } + case 120: { + Time = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ClientMailAttachmentItem.cs b/Common/Proto/ClientMailAttachmentItem.cs new file mode 100644 index 00000000..3c898432 --- /dev/null +++ b/Common/Proto/ClientMailAttachmentItem.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClientMailAttachmentItem.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ClientMailAttachmentItem.proto + public static partial class ClientMailAttachmentItemReflection { + + #region Descriptor + /// File descriptor for ClientMailAttachmentItem.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ClientMailAttachmentItemReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5DbGllbnRNYWlsQXR0YWNobWVudEl0ZW0ucHJvdG8iPAoYQ2xpZW50TWFp", + "bEF0dGFjaG1lbnRJdGVtEg8KB2l0ZW1faWQYCCABKA0SDwoHbWFpbF9pZBgB", + "IAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ClientMailAttachmentItem), global::EggLink.DanhengServer.Proto.ClientMailAttachmentItem.Parser, new[]{ "ItemId", "MailId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ClientMailAttachmentItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClientMailAttachmentItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ClientMailAttachmentItemReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClientMailAttachmentItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClientMailAttachmentItem(ClientMailAttachmentItem other) : this() { + itemId_ = other.itemId_; + mailId_ = other.mailId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClientMailAttachmentItem Clone() { + return new ClientMailAttachmentItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 8; + private uint itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "mail_id" field. + public const int MailIdFieldNumber = 1; + private uint mailId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MailId { + get { return mailId_; } + set { + mailId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClientMailAttachmentItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClientMailAttachmentItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (MailId != other.MailId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (MailId != 0) hash ^= MailId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MailId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(MailId); + } + if (ItemId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(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 (MailId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(MailId); + } + if (ItemId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(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 (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ItemId); + } + if (MailId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MailId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClientMailAttachmentItem other) { + if (other == null) { + return; + } + if (other.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.MailId != 0) { + MailId = other.MailId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MailId = input.ReadUInt32(); + break; + } + case 64: { + ItemId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MailId = input.ReadUInt32(); + break; + } + case 64: { + ItemId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/CommonRogueQuery.cs b/Common/Proto/CommonRogueQuery.cs new file mode 100644 index 00000000..9203e09d --- /dev/null +++ b/Common/Proto/CommonRogueQuery.cs @@ -0,0 +1,291 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CommonRogueQuery.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from CommonRogueQuery.proto + public static partial class CommonRogueQueryReflection { + + #region Descriptor + /// File descriptor for CommonRogueQuery.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CommonRogueQueryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZDb21tb25Sb2d1ZVF1ZXJ5LnByb3RvGhFSb2d1ZVVwZGF0ZS5wcm90bxoQ", + "Um9ndWVRdWVyeS5wcm90byJYChBDb21tb25Sb2d1ZVF1ZXJ5EiIKDHJvZ3Vl", + "X3VwZGF0ZRgGIAEoCzIMLlJvZ3VlVXBkYXRlEiAKC3JvZ3VlX3F1ZXJ5GAIg", + "ASgLMgsuUm9ndWVRdWVyeUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlBy", + "b3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueUpdateReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueQueryReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.CommonRogueQuery), global::EggLink.DanhengServer.Proto.CommonRogueQuery.Parser, new[]{ "RogueUpdate", "RogueQuery" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CommonRogueQuery : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonRogueQuery()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.CommonRogueQueryReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonRogueQuery() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonRogueQuery(CommonRogueQuery other) : this() { + rogueUpdate_ = other.rogueUpdate_ != null ? other.rogueUpdate_.Clone() : null; + rogueQuery_ = other.rogueQuery_ != null ? other.rogueQuery_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonRogueQuery Clone() { + return new CommonRogueQuery(this); + } + + /// Field number for the "rogue_update" field. + public const int RogueUpdateFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.RogueUpdate rogueUpdate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueUpdate RogueUpdate { + get { return rogueUpdate_; } + set { + rogueUpdate_ = value; + } + } + + /// Field number for the "rogue_query" field. + public const int RogueQueryFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.RogueQuery rogueQuery_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueQuery RogueQuery { + get { return rogueQuery_; } + set { + rogueQuery_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonRogueQuery); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonRogueQuery other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueUpdate, other.RogueUpdate)) return false; + if (!object.Equals(RogueQuery, other.RogueQuery)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueUpdate_ != null) hash ^= RogueUpdate.GetHashCode(); + if (rogueQuery_ != null) hash ^= RogueQuery.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rogueQuery_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RogueQuery); + } + if (rogueUpdate_ != null) { + output.WriteRawTag(50); + output.WriteMessage(RogueUpdate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rogueQuery_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RogueQuery); + } + if (rogueUpdate_ != null) { + output.WriteRawTag(50); + output.WriteMessage(RogueUpdate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueUpdate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueUpdate); + } + if (rogueQuery_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueQuery); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonRogueQuery other) { + if (other == null) { + return; + } + if (other.rogueUpdate_ != null) { + if (rogueUpdate_ == null) { + RogueUpdate = new global::EggLink.DanhengServer.Proto.RogueUpdate(); + } + RogueUpdate.MergeFrom(other.RogueUpdate); + } + if (other.rogueQuery_ != null) { + if (rogueQuery_ == null) { + RogueQuery = new global::EggLink.DanhengServer.Proto.RogueQuery(); + } + RogueQuery.MergeFrom(other.RogueQuery); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (rogueQuery_ == null) { + RogueQuery = new global::EggLink.DanhengServer.Proto.RogueQuery(); + } + input.ReadMessage(RogueQuery); + break; + } + case 50: { + if (rogueUpdate_ == null) { + RogueUpdate = new global::EggLink.DanhengServer.Proto.RogueUpdate(); + } + input.ReadMessage(RogueUpdate); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (rogueQuery_ == null) { + RogueQuery = new global::EggLink.DanhengServer.Proto.RogueQuery(); + } + input.ReadMessage(RogueQuery); + break; + } + case 50: { + if (rogueUpdate_ == null) { + RogueUpdate = new global::EggLink.DanhengServer.Proto.RogueUpdate(); + } + input.ReadMessage(RogueUpdate); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/CommonRogueQueryScRsp.cs b/Common/Proto/CommonRogueQueryScRsp.cs new file mode 100644 index 00000000..30f8c805 --- /dev/null +++ b/Common/Proto/CommonRogueQueryScRsp.cs @@ -0,0 +1,282 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CommonRogueQueryScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from CommonRogueQueryScRsp.proto + public static partial class CommonRogueQueryScRspReflection { + + #region Descriptor + /// File descriptor for CommonRogueQueryScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CommonRogueQueryScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtDb21tb25Sb2d1ZVF1ZXJ5U2NSc3AucHJvdG8aFkNvbW1vblJvZ3VlUXVl", + "cnkucHJvdG8iVwoVQ29tbW9uUm9ndWVRdWVyeVNjUnNwEg8KB3JldGNvZGUY", + "AyABKA0SLQoSY29tbW9uX3JvZ3VlX3F1ZXJ5GAQgASgLMhEuQ29tbW9uUm9n", + "dWVRdWVyeUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.CommonRogueQueryReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.CommonRogueQueryScRsp), global::EggLink.DanhengServer.Proto.CommonRogueQueryScRsp.Parser, new[]{ "Retcode", "CommonRogueQuery" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CommonRogueQueryScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonRogueQueryScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.CommonRogueQueryScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonRogueQueryScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonRogueQueryScRsp(CommonRogueQueryScRsp other) : this() { + retcode_ = other.retcode_; + commonRogueQuery_ = other.commonRogueQuery_ != null ? other.commonRogueQuery_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonRogueQueryScRsp Clone() { + return new CommonRogueQueryScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "common_rogue_query" field. + public const int CommonRogueQueryFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.CommonRogueQuery commonRogueQuery_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.CommonRogueQuery CommonRogueQuery { + get { return commonRogueQuery_; } + set { + commonRogueQuery_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonRogueQueryScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonRogueQueryScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(CommonRogueQuery, other.CommonRogueQuery)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (commonRogueQuery_ != null) hash ^= CommonRogueQuery.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (commonRogueQuery_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CommonRogueQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (commonRogueQuery_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CommonRogueQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (commonRogueQuery_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CommonRogueQuery); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonRogueQueryScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.commonRogueQuery_ != null) { + if (commonRogueQuery_ == null) { + CommonRogueQuery = new global::EggLink.DanhengServer.Proto.CommonRogueQuery(); + } + CommonRogueQuery.MergeFrom(other.CommonRogueQuery); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 34: { + if (commonRogueQuery_ == null) { + CommonRogueQuery = new global::EggLink.DanhengServer.Proto.CommonRogueQuery(); + } + input.ReadMessage(CommonRogueQuery); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 34: { + if (commonRogueQuery_ == null) { + CommonRogueQuery = new global::EggLink.DanhengServer.Proto.CommonRogueQuery(); + } + input.ReadMessage(CommonRogueQuery); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/CommonRogueUpdateScNotify.cs b/Common/Proto/CommonRogueUpdateScNotify.cs new file mode 100644 index 00000000..1bf682b7 --- /dev/null +++ b/Common/Proto/CommonRogueUpdateScNotify.cs @@ -0,0 +1,247 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CommonRogueUpdateScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from CommonRogueUpdateScNotify.proto + public static partial class CommonRogueUpdateScNotifyReflection { + + #region Descriptor + /// File descriptor for CommonRogueUpdateScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CommonRogueUpdateScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9Db21tb25Sb2d1ZVVwZGF0ZVNjTm90aWZ5LnByb3RvGhFSb2d1ZVVwZGF0", + "ZS5wcm90byI/ChlDb21tb25Sb2d1ZVVwZGF0ZVNjTm90aWZ5EiIKDHJvZ3Vl", + "X3VwZGF0ZRgPIAEoCzIMLlJvZ3VlVXBkYXRlQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueUpdateReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.CommonRogueUpdateScNotify), global::EggLink.DanhengServer.Proto.CommonRogueUpdateScNotify.Parser, new[]{ "RogueUpdate" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CommonRogueUpdateScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonRogueUpdateScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.CommonRogueUpdateScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonRogueUpdateScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonRogueUpdateScNotify(CommonRogueUpdateScNotify other) : this() { + rogueUpdate_ = other.rogueUpdate_ != null ? other.rogueUpdate_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonRogueUpdateScNotify Clone() { + return new CommonRogueUpdateScNotify(this); + } + + /// Field number for the "rogue_update" field. + public const int RogueUpdateFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.RogueUpdate rogueUpdate_; + /// + ///CJFJFKJICGK NALLCHLAJPN = 10; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueUpdate RogueUpdate { + get { return rogueUpdate_; } + set { + rogueUpdate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonRogueUpdateScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonRogueUpdateScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueUpdate, other.RogueUpdate)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueUpdate_ != null) hash ^= RogueUpdate.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rogueUpdate_ != null) { + output.WriteRawTag(122); + output.WriteMessage(RogueUpdate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rogueUpdate_ != null) { + output.WriteRawTag(122); + output.WriteMessage(RogueUpdate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueUpdate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueUpdate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonRogueUpdateScNotify other) { + if (other == null) { + return; + } + if (other.rogueUpdate_ != null) { + if (rogueUpdate_ == null) { + RogueUpdate = new global::EggLink.DanhengServer.Proto.RogueUpdate(); + } + RogueUpdate.MergeFrom(other.RogueUpdate); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 122: { + if (rogueUpdate_ == null) { + RogueUpdate = new global::EggLink.DanhengServer.Proto.RogueUpdate(); + } + input.ReadMessage(RogueUpdate); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 122: { + if (rogueUpdate_ == null) { + RogueUpdate = new global::EggLink.DanhengServer.Proto.RogueUpdate(); + } + input.ReadMessage(RogueUpdate); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ComposeItemCsReq.cs b/Common/Proto/ComposeItemCsReq.cs new file mode 100644 index 00000000..1210331d --- /dev/null +++ b/Common/Proto/ComposeItemCsReq.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ComposeItemCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ComposeItemCsReq.proto + public static partial class ComposeItemCsReqReflection { + + #region Descriptor + /// File descriptor for ComposeItemCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ComposeItemCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZDb21wb3NlSXRlbUNzUmVxLnByb3RvGhJJdGVtQ29zdExpc3QucHJvdG8i", + "XwoQQ29tcG9zZUl0ZW1Dc1JlcRINCgVjb3VudBgJIAEoDRIoChFjb21wb3Nl", + "X2l0ZW1fbGlzdBgDIAEoCzINLkl0ZW1Db3N0TGlzdBISCgpjb21wb3NlX2lk", + "GAggASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ComposeItemCsReq), global::EggLink.DanhengServer.Proto.ComposeItemCsReq.Parser, new[]{ "Count", "ComposeItemList", "ComposeId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ComposeItemCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComposeItemCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ComposeItemCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComposeItemCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComposeItemCsReq(ComposeItemCsReq other) : this() { + count_ = other.count_; + composeItemList_ = other.composeItemList_ != null ? other.composeItemList_.Clone() : null; + composeId_ = other.composeId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComposeItemCsReq Clone() { + return new ComposeItemCsReq(this); + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 9; + private uint count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Count { + get { return count_; } + set { + count_ = value; + } + } + + /// Field number for the "compose_item_list" field. + public const int ComposeItemListFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.ItemCostList composeItemList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList ComposeItemList { + get { return composeItemList_; } + set { + composeItemList_ = value; + } + } + + /// Field number for the "compose_id" field. + public const int ComposeIdFieldNumber = 8; + private uint composeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ComposeId { + get { return composeId_; } + set { + composeId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ComposeItemCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComposeItemCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Count != other.Count) return false; + if (!object.Equals(ComposeItemList, other.ComposeItemList)) return false; + if (ComposeId != other.ComposeId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Count != 0) hash ^= Count.GetHashCode(); + if (composeItemList_ != null) hash ^= ComposeItemList.GetHashCode(); + if (ComposeId != 0) hash ^= ComposeId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (composeItemList_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ComposeItemList); + } + if (ComposeId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ComposeId); + } + if (Count != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (composeItemList_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ComposeItemList); + } + if (ComposeId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ComposeId); + } + if (Count != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Count != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Count); + } + if (composeItemList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ComposeItemList); + } + if (ComposeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ComposeId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComposeItemCsReq other) { + if (other == null) { + return; + } + if (other.Count != 0) { + Count = other.Count; + } + if (other.composeItemList_ != null) { + if (composeItemList_ == null) { + ComposeItemList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + ComposeItemList.MergeFrom(other.ComposeItemList); + } + if (other.ComposeId != 0) { + ComposeId = other.ComposeId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + if (composeItemList_ == null) { + ComposeItemList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ComposeItemList); + break; + } + case 64: { + ComposeId = input.ReadUInt32(); + break; + } + case 72: { + Count = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + if (composeItemList_ == null) { + ComposeItemList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ComposeItemList); + break; + } + case 64: { + ComposeId = input.ReadUInt32(); + break; + } + case 72: { + Count = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ComposeItemScRsp.cs b/Common/Proto/ComposeItemScRsp.cs new file mode 100644 index 00000000..8e122d93 --- /dev/null +++ b/Common/Proto/ComposeItemScRsp.cs @@ -0,0 +1,356 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ComposeItemScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ComposeItemScRsp.proto + public static partial class ComposeItemScRspReflection { + + #region Descriptor + /// File descriptor for ComposeItemScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ComposeItemScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZDb21wb3NlSXRlbVNjUnNwLnByb3RvGg5JdGVtTGlzdC5wcm90byJrChBD", + "b21wb3NlSXRlbVNjUnNwEg0KBWNvdW50GA4gASgNEg8KB3JldGNvZGUYAiAB", + "KA0SIwoQcmV0dXJuX2l0ZW1fbGlzdBgJIAEoCzIJLkl0ZW1MaXN0EhIKCmNv", + "bXBvc2VfaWQYByABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90", + "b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ComposeItemScRsp), global::EggLink.DanhengServer.Proto.ComposeItemScRsp.Parser, new[]{ "Count", "Retcode", "ReturnItemList", "ComposeId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ComposeItemScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComposeItemScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ComposeItemScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComposeItemScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComposeItemScRsp(ComposeItemScRsp other) : this() { + count_ = other.count_; + retcode_ = other.retcode_; + returnItemList_ = other.returnItemList_ != null ? other.returnItemList_.Clone() : null; + composeId_ = other.composeId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComposeItemScRsp Clone() { + return new ComposeItemScRsp(this); + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 14; + private uint count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Count { + get { return count_; } + set { + count_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 2; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "return_item_list" field. + public const int ReturnItemListFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.ItemList returnItemList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList ReturnItemList { + get { return returnItemList_; } + set { + returnItemList_ = value; + } + } + + /// Field number for the "compose_id" field. + public const int ComposeIdFieldNumber = 7; + private uint composeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ComposeId { + get { return composeId_; } + set { + composeId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ComposeItemScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComposeItemScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Count != other.Count) return false; + if (Retcode != other.Retcode) return false; + if (!object.Equals(ReturnItemList, other.ReturnItemList)) return false; + if (ComposeId != other.ComposeId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Count != 0) hash ^= Count.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (returnItemList_ != null) hash ^= ReturnItemList.GetHashCode(); + if (ComposeId != 0) hash ^= ComposeId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + if (ComposeId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ComposeId); + } + if (returnItemList_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ReturnItemList); + } + if (Count != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + if (ComposeId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ComposeId); + } + if (returnItemList_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ReturnItemList); + } + if (Count != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Count != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Count); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (returnItemList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnItemList); + } + if (ComposeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ComposeId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComposeItemScRsp other) { + if (other == null) { + return; + } + if (other.Count != 0) { + Count = other.Count; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.returnItemList_ != null) { + if (returnItemList_ == null) { + ReturnItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + ReturnItemList.MergeFrom(other.ReturnItemList); + } + if (other.ComposeId != 0) { + ComposeId = other.ComposeId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 56: { + ComposeId = input.ReadUInt32(); + break; + } + case 74: { + if (returnItemList_ == null) { + ReturnItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ReturnItemList); + break; + } + case 112: { + Count = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 56: { + ComposeId = input.ReadUInt32(); + break; + } + case 74: { + if (returnItemList_ == null) { + ReturnItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ReturnItemList); + break; + } + case 112: { + Count = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ComposeSelectedRelicCsReq.cs b/Common/Proto/ComposeSelectedRelicCsReq.cs new file mode 100644 index 00000000..bbebe9b9 --- /dev/null +++ b/Common/Proto/ComposeSelectedRelicCsReq.cs @@ -0,0 +1,394 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ComposeSelectedRelicCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ComposeSelectedRelicCsReq.proto + public static partial class ComposeSelectedRelicCsReqReflection { + + #region Descriptor + /// File descriptor for ComposeSelectedRelicCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ComposeSelectedRelicCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9Db21wb3NlU2VsZWN0ZWRSZWxpY0NzUmVxLnByb3RvGhJJdGVtQ29zdExp", + "c3QucHJvdG8imQEKGUNvbXBvc2VTZWxlY3RlZFJlbGljQ3NSZXESEgoKY29t", + "cG9zZV9pZBgKIAEoDRIoChFjb21wb3NlX2l0ZW1fbGlzdBgGIAEoCzINLkl0", + "ZW1Db3N0TGlzdBIVCg1tYWluX2FmZml4X2lkGA0gASgNEhgKEGNvbXBvc2Vf", + "cmVsaWNfaWQYDiABKA0SDQoFY291bnQYCSABKA1CHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ComposeSelectedRelicCsReq), global::EggLink.DanhengServer.Proto.ComposeSelectedRelicCsReq.Parser, new[]{ "ComposeId", "ComposeItemList", "MainAffixId", "ComposeRelicId", "Count" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ComposeSelectedRelicCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComposeSelectedRelicCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ComposeSelectedRelicCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComposeSelectedRelicCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComposeSelectedRelicCsReq(ComposeSelectedRelicCsReq other) : this() { + composeId_ = other.composeId_; + composeItemList_ = other.composeItemList_ != null ? other.composeItemList_.Clone() : null; + mainAffixId_ = other.mainAffixId_; + composeRelicId_ = other.composeRelicId_; + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComposeSelectedRelicCsReq Clone() { + return new ComposeSelectedRelicCsReq(this); + } + + /// Field number for the "compose_id" field. + public const int ComposeIdFieldNumber = 10; + private uint composeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ComposeId { + get { return composeId_; } + set { + composeId_ = value; + } + } + + /// Field number for the "compose_item_list" field. + public const int ComposeItemListFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.ItemCostList composeItemList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList ComposeItemList { + get { return composeItemList_; } + set { + composeItemList_ = value; + } + } + + /// Field number for the "main_affix_id" field. + public const int MainAffixIdFieldNumber = 13; + private uint mainAffixId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MainAffixId { + get { return mainAffixId_; } + set { + mainAffixId_ = value; + } + } + + /// Field number for the "compose_relic_id" field. + public const int ComposeRelicIdFieldNumber = 14; + private uint composeRelicId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ComposeRelicId { + get { return composeRelicId_; } + set { + composeRelicId_ = value; + } + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 9; + private uint count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Count { + get { return count_; } + set { + count_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ComposeSelectedRelicCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComposeSelectedRelicCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ComposeId != other.ComposeId) return false; + if (!object.Equals(ComposeItemList, other.ComposeItemList)) return false; + if (MainAffixId != other.MainAffixId) return false; + if (ComposeRelicId != other.ComposeRelicId) return false; + if (Count != other.Count) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ComposeId != 0) hash ^= ComposeId.GetHashCode(); + if (composeItemList_ != null) hash ^= ComposeItemList.GetHashCode(); + if (MainAffixId != 0) hash ^= MainAffixId.GetHashCode(); + if (ComposeRelicId != 0) hash ^= ComposeRelicId.GetHashCode(); + if (Count != 0) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (composeItemList_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ComposeItemList); + } + if (Count != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Count); + } + if (ComposeId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(ComposeId); + } + if (MainAffixId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(MainAffixId); + } + if (ComposeRelicId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ComposeRelicId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (composeItemList_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ComposeItemList); + } + if (Count != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Count); + } + if (ComposeId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(ComposeId); + } + if (MainAffixId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(MainAffixId); + } + if (ComposeRelicId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ComposeRelicId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ComposeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ComposeId); + } + if (composeItemList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ComposeItemList); + } + if (MainAffixId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MainAffixId); + } + if (ComposeRelicId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ComposeRelicId); + } + if (Count != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComposeSelectedRelicCsReq other) { + if (other == null) { + return; + } + if (other.ComposeId != 0) { + ComposeId = other.ComposeId; + } + if (other.composeItemList_ != null) { + if (composeItemList_ == null) { + ComposeItemList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + ComposeItemList.MergeFrom(other.ComposeItemList); + } + if (other.MainAffixId != 0) { + MainAffixId = other.MainAffixId; + } + if (other.ComposeRelicId != 0) { + ComposeRelicId = other.ComposeRelicId; + } + if (other.Count != 0) { + Count = other.Count; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: { + if (composeItemList_ == null) { + ComposeItemList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ComposeItemList); + break; + } + case 72: { + Count = input.ReadUInt32(); + break; + } + case 80: { + ComposeId = input.ReadUInt32(); + break; + } + case 104: { + MainAffixId = input.ReadUInt32(); + break; + } + case 112: { + ComposeRelicId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: { + if (composeItemList_ == null) { + ComposeItemList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ComposeItemList); + break; + } + case 72: { + Count = input.ReadUInt32(); + break; + } + case 80: { + ComposeId = input.ReadUInt32(); + break; + } + case 104: { + MainAffixId = input.ReadUInt32(); + break; + } + case 112: { + ComposeRelicId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ComposeSelectedRelicScRsp.cs b/Common/Proto/ComposeSelectedRelicScRsp.cs new file mode 100644 index 00000000..f8559a27 --- /dev/null +++ b/Common/Proto/ComposeSelectedRelicScRsp.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ComposeSelectedRelicScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ComposeSelectedRelicScRsp.proto + public static partial class ComposeSelectedRelicScRspReflection { + + #region Descriptor + /// File descriptor for ComposeSelectedRelicScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ComposeSelectedRelicScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9Db21wb3NlU2VsZWN0ZWRSZWxpY1NjUnNwLnByb3RvGg5JdGVtTGlzdC5w", + "cm90byJlChlDb21wb3NlU2VsZWN0ZWRSZWxpY1NjUnNwEiMKEHJldHVybl9p", + "dGVtX2xpc3QYDiABKAsyCS5JdGVtTGlzdBISCgpjb21wb3NlX2lkGAUgASgN", + "Eg8KB3JldGNvZGUYByABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ComposeSelectedRelicScRsp), global::EggLink.DanhengServer.Proto.ComposeSelectedRelicScRsp.Parser, new[]{ "ReturnItemList", "ComposeId", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ComposeSelectedRelicScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComposeSelectedRelicScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ComposeSelectedRelicScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComposeSelectedRelicScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComposeSelectedRelicScRsp(ComposeSelectedRelicScRsp other) : this() { + returnItemList_ = other.returnItemList_ != null ? other.returnItemList_.Clone() : null; + composeId_ = other.composeId_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComposeSelectedRelicScRsp Clone() { + return new ComposeSelectedRelicScRsp(this); + } + + /// Field number for the "return_item_list" field. + public const int ReturnItemListFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.ItemList returnItemList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList ReturnItemList { + get { return returnItemList_; } + set { + returnItemList_ = value; + } + } + + /// Field number for the "compose_id" field. + public const int ComposeIdFieldNumber = 5; + private uint composeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ComposeId { + get { return composeId_; } + set { + composeId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 7; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ComposeSelectedRelicScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComposeSelectedRelicScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ReturnItemList, other.ReturnItemList)) return false; + if (ComposeId != other.ComposeId) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (returnItemList_ != null) hash ^= ReturnItemList.GetHashCode(); + if (ComposeId != 0) hash ^= ComposeId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ComposeId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(ComposeId); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (returnItemList_ != null) { + output.WriteRawTag(114); + output.WriteMessage(ReturnItemList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ComposeId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(ComposeId); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (returnItemList_ != null) { + output.WriteRawTag(114); + output.WriteMessage(ReturnItemList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (returnItemList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnItemList); + } + if (ComposeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ComposeId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComposeSelectedRelicScRsp other) { + if (other == null) { + return; + } + if (other.returnItemList_ != null) { + if (returnItemList_ == null) { + ReturnItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + ReturnItemList.MergeFrom(other.ReturnItemList); + } + if (other.ComposeId != 0) { + ComposeId = other.ComposeId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + ComposeId = input.ReadUInt32(); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 114: { + if (returnItemList_ == null) { + ReturnItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ReturnItemList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + ComposeId = input.ReadUInt32(); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 114: { + if (returnItemList_ == null) { + ReturnItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ReturnItemList); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DMBBFODODOF.cs b/Common/Proto/DMBBFODODOF.cs new file mode 100644 index 00000000..53a3a5ad --- /dev/null +++ b/Common/Proto/DMBBFODODOF.cs @@ -0,0 +1,274 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DMBBFODODOF.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DMBBFODODOF.proto + public static partial class DMBBFODODOFReflection { + + #region Descriptor + /// File descriptor for DMBBFODODOF.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DMBBFODODOFReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFETUJCRk9ET0RPRi5wcm90byI3CgtETUJCRk9ET0RPRhITCgtCQ0tQSEJP", + "UENDThgGIAEoDRITCgtCTFBJQ0NCQ0tQSxgCIAEoDUIeqgIbRWdnTGluay5E", + "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DMBBFODODOF), global::EggLink.DanhengServer.Proto.DMBBFODODOF.Parser, new[]{ "BCKPHBOPCCN", "BLPICCBCKPK" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DMBBFODODOF : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DMBBFODODOF()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DMBBFODODOFReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DMBBFODODOF() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DMBBFODODOF(DMBBFODODOF other) : this() { + bCKPHBOPCCN_ = other.bCKPHBOPCCN_; + bLPICCBCKPK_ = other.bLPICCBCKPK_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DMBBFODODOF Clone() { + return new DMBBFODODOF(this); + } + + /// Field number for the "BCKPHBOPCCN" field. + public const int BCKPHBOPCCNFieldNumber = 6; + private uint bCKPHBOPCCN_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BCKPHBOPCCN { + get { return bCKPHBOPCCN_; } + set { + bCKPHBOPCCN_ = value; + } + } + + /// Field number for the "BLPICCBCKPK" field. + public const int BLPICCBCKPKFieldNumber = 2; + private uint bLPICCBCKPK_; + /// + /// 4 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BLPICCBCKPK { + get { return bLPICCBCKPK_; } + set { + bLPICCBCKPK_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DMBBFODODOF); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DMBBFODODOF other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BCKPHBOPCCN != other.BCKPHBOPCCN) return false; + if (BLPICCBCKPK != other.BLPICCBCKPK) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BCKPHBOPCCN != 0) hash ^= BCKPHBOPCCN.GetHashCode(); + if (BLPICCBCKPK != 0) hash ^= BLPICCBCKPK.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BLPICCBCKPK != 0) { + output.WriteRawTag(16); + output.WriteUInt32(BLPICCBCKPK); + } + if (BCKPHBOPCCN != 0) { + output.WriteRawTag(48); + output.WriteUInt32(BCKPHBOPCCN); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BLPICCBCKPK != 0) { + output.WriteRawTag(16); + output.WriteUInt32(BLPICCBCKPK); + } + if (BCKPHBOPCCN != 0) { + output.WriteRawTag(48); + output.WriteUInt32(BCKPHBOPCCN); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BCKPHBOPCCN != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BCKPHBOPCCN); + } + if (BLPICCBCKPK != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BLPICCBCKPK); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DMBBFODODOF other) { + if (other == null) { + return; + } + if (other.BCKPHBOPCCN != 0) { + BCKPHBOPCCN = other.BCKPHBOPCCN; + } + if (other.BLPICCBCKPK != 0) { + BLPICCBCKPK = other.BLPICCBCKPK; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + BLPICCBCKPK = input.ReadUInt32(); + break; + } + case 48: { + BCKPHBOPCCN = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + BLPICCBCKPK = input.ReadUInt32(); + break; + } + case 48: { + BCKPHBOPCCN = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DailyActiveInfoNotify.cs b/Common/Proto/DailyActiveInfoNotify.cs new file mode 100644 index 00000000..68f25b86 --- /dev/null +++ b/Common/Proto/DailyActiveInfoNotify.cs @@ -0,0 +1,291 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DailyActiveInfoNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DailyActiveInfoNotify.proto + public static partial class DailyActiveInfoNotifyReflection { + + #region Descriptor + /// File descriptor for DailyActiveInfoNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DailyActiveInfoNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtEYWlseUFjdGl2ZUluZm9Ob3RpZnkucHJvdG8aF0RhaWx5QWN0aXZpdHlJ", + "bmZvLnByb3RvIowBChVEYWlseUFjdGl2ZUluZm9Ob3RpZnkSGgoSZGFpbHlf", + "YWN0aXZlX3BvaW50GA4gASgNEiIKGmRhaWx5X2FjdGl2ZV9xdWVzdF9pZF9s", + "aXN0GAwgAygNEjMKF2RhaWx5X2FjdGl2ZV9sZXZlbF9saXN0GA8gAygLMhIu", + "RGFpbHlBY3Rpdml0eUluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.DailyActivityInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DailyActiveInfoNotify), global::EggLink.DanhengServer.Proto.DailyActiveInfoNotify.Parser, new[]{ "DailyActivePoint", "DailyActiveQuestIdList", "DailyActiveLevelList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyActiveInfoNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyActiveInfoNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DailyActiveInfoNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyActiveInfoNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyActiveInfoNotify(DailyActiveInfoNotify other) : this() { + dailyActivePoint_ = other.dailyActivePoint_; + dailyActiveQuestIdList_ = other.dailyActiveQuestIdList_.Clone(); + dailyActiveLevelList_ = other.dailyActiveLevelList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyActiveInfoNotify Clone() { + return new DailyActiveInfoNotify(this); + } + + /// Field number for the "daily_active_point" field. + public const int DailyActivePointFieldNumber = 14; + private uint dailyActivePoint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DailyActivePoint { + get { return dailyActivePoint_; } + set { + dailyActivePoint_ = value; + } + } + + /// Field number for the "daily_active_quest_id_list" field. + public const int DailyActiveQuestIdListFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_dailyActiveQuestIdList_codec + = pb::FieldCodec.ForUInt32(98); + private readonly pbc::RepeatedField dailyActiveQuestIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DailyActiveQuestIdList { + get { return dailyActiveQuestIdList_; } + } + + /// Field number for the "daily_active_level_list" field. + public const int DailyActiveLevelListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_dailyActiveLevelList_codec + = pb::FieldCodec.ForMessage(122, global::EggLink.DanhengServer.Proto.DailyActivityInfo.Parser); + private readonly pbc::RepeatedField dailyActiveLevelList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DailyActiveLevelList { + get { return dailyActiveLevelList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyActiveInfoNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyActiveInfoNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DailyActivePoint != other.DailyActivePoint) return false; + if(!dailyActiveQuestIdList_.Equals(other.dailyActiveQuestIdList_)) return false; + if(!dailyActiveLevelList_.Equals(other.dailyActiveLevelList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (DailyActivePoint != 0) hash ^= DailyActivePoint.GetHashCode(); + hash ^= dailyActiveQuestIdList_.GetHashCode(); + hash ^= dailyActiveLevelList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dailyActiveQuestIdList_.WriteTo(output, _repeated_dailyActiveQuestIdList_codec); + if (DailyActivePoint != 0) { + output.WriteRawTag(112); + output.WriteUInt32(DailyActivePoint); + } + dailyActiveLevelList_.WriteTo(output, _repeated_dailyActiveLevelList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dailyActiveQuestIdList_.WriteTo(ref output, _repeated_dailyActiveQuestIdList_codec); + if (DailyActivePoint != 0) { + output.WriteRawTag(112); + output.WriteUInt32(DailyActivePoint); + } + dailyActiveLevelList_.WriteTo(ref output, _repeated_dailyActiveLevelList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (DailyActivePoint != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DailyActivePoint); + } + size += dailyActiveQuestIdList_.CalculateSize(_repeated_dailyActiveQuestIdList_codec); + size += dailyActiveLevelList_.CalculateSize(_repeated_dailyActiveLevelList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyActiveInfoNotify other) { + if (other == null) { + return; + } + if (other.DailyActivePoint != 0) { + DailyActivePoint = other.DailyActivePoint; + } + dailyActiveQuestIdList_.Add(other.dailyActiveQuestIdList_); + dailyActiveLevelList_.Add(other.dailyActiveLevelList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 98: + case 96: { + dailyActiveQuestIdList_.AddEntriesFrom(input, _repeated_dailyActiveQuestIdList_codec); + break; + } + case 112: { + DailyActivePoint = input.ReadUInt32(); + break; + } + case 122: { + dailyActiveLevelList_.AddEntriesFrom(input, _repeated_dailyActiveLevelList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 98: + case 96: { + dailyActiveQuestIdList_.AddEntriesFrom(ref input, _repeated_dailyActiveQuestIdList_codec); + break; + } + case 112: { + DailyActivePoint = input.ReadUInt32(); + break; + } + case 122: { + dailyActiveLevelList_.AddEntriesFrom(ref input, _repeated_dailyActiveLevelList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DailyActivityInfo.cs b/Common/Proto/DailyActivityInfo.cs new file mode 100644 index 00000000..f02bee74 --- /dev/null +++ b/Common/Proto/DailyActivityInfo.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DailyActivityInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DailyActivityInfo.proto + public static partial class DailyActivityInfoReflection { + + #region Descriptor + /// File descriptor for DailyActivityInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DailyActivityInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdEYWlseUFjdGl2aXR5SW5mby5wcm90byJpChFEYWlseUFjdGl2aXR5SW5m", + "bxIUCgxpc19oYXNfdGFrZW4YCyABKAgSEwoLd29ybGRfbGV2ZWwYDyABKA0S", + "DQoFbGV2ZWwYCCABKA0SGgoSZGFpbHlfYWN0aXZlX3BvaW50GAYgASgNQh6q", + "AhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DailyActivityInfo), global::EggLink.DanhengServer.Proto.DailyActivityInfo.Parser, new[]{ "IsHasTaken", "WorldLevel", "Level", "DailyActivePoint" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DailyActivityInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DailyActivityInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DailyActivityInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyActivityInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyActivityInfo(DailyActivityInfo other) : this() { + isHasTaken_ = other.isHasTaken_; + worldLevel_ = other.worldLevel_; + level_ = other.level_; + dailyActivePoint_ = other.dailyActivePoint_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DailyActivityInfo Clone() { + return new DailyActivityInfo(this); + } + + /// Field number for the "is_has_taken" field. + public const int IsHasTakenFieldNumber = 11; + private bool isHasTaken_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsHasTaken { + get { return isHasTaken_; } + set { + isHasTaken_ = value; + } + } + + /// Field number for the "world_level" field. + public const int WorldLevelFieldNumber = 15; + private uint worldLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WorldLevel { + get { return worldLevel_; } + set { + worldLevel_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 8; + 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 "daily_active_point" field. + public const int DailyActivePointFieldNumber = 6; + private uint dailyActivePoint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DailyActivePoint { + get { return dailyActivePoint_; } + set { + dailyActivePoint_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DailyActivityInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DailyActivityInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsHasTaken != other.IsHasTaken) return false; + if (WorldLevel != other.WorldLevel) return false; + if (Level != other.Level) return false; + if (DailyActivePoint != other.DailyActivePoint) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (IsHasTaken != false) hash ^= IsHasTaken.GetHashCode(); + if (WorldLevel != 0) hash ^= WorldLevel.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (DailyActivePoint != 0) hash ^= DailyActivePoint.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (DailyActivePoint != 0) { + output.WriteRawTag(48); + output.WriteUInt32(DailyActivePoint); + } + if (Level != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Level); + } + if (IsHasTaken != false) { + output.WriteRawTag(88); + output.WriteBool(IsHasTaken); + } + if (WorldLevel != 0) { + output.WriteRawTag(120); + output.WriteUInt32(WorldLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (DailyActivePoint != 0) { + output.WriteRawTag(48); + output.WriteUInt32(DailyActivePoint); + } + if (Level != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Level); + } + if (IsHasTaken != false) { + output.WriteRawTag(88); + output.WriteBool(IsHasTaken); + } + if (WorldLevel != 0) { + output.WriteRawTag(120); + output.WriteUInt32(WorldLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (IsHasTaken != false) { + size += 1 + 1; + } + if (WorldLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldLevel); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (DailyActivePoint != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DailyActivePoint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DailyActivityInfo other) { + if (other == null) { + return; + } + if (other.IsHasTaken != false) { + IsHasTaken = other.IsHasTaken; + } + if (other.WorldLevel != 0) { + WorldLevel = other.WorldLevel; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.DailyActivePoint != 0) { + DailyActivePoint = other.DailyActivePoint; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 48: { + DailyActivePoint = input.ReadUInt32(); + break; + } + case 64: { + Level = input.ReadUInt32(); + break; + } + case 88: { + IsHasTaken = input.ReadBool(); + break; + } + case 120: { + WorldLevel = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 48: { + DailyActivePoint = input.ReadUInt32(); + break; + } + case 64: { + Level = input.ReadUInt32(); + break; + } + case 88: { + IsHasTaken = input.ReadBool(); + break; + } + case 120: { + WorldLevel = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DeactivateFarmElementCsReq.cs b/Common/Proto/DeactivateFarmElementCsReq.cs new file mode 100644 index 00000000..f7b25e3b --- /dev/null +++ b/Common/Proto/DeactivateFarmElementCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DeactivateFarmElementCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DeactivateFarmElementCsReq.proto + public static partial class DeactivateFarmElementCsReqReflection { + + #region Descriptor + /// File descriptor for DeactivateFarmElementCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DeactivateFarmElementCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBEZWFjdGl2YXRlRmFybUVsZW1lbnRDc1JlcS5wcm90byIvChpEZWFjdGl2", + "YXRlRmFybUVsZW1lbnRDc1JlcRIRCgllbnRpdHlfaWQYCSABKA1CHqoCG0Vn", + "Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DeactivateFarmElementCsReq), global::EggLink.DanhengServer.Proto.DeactivateFarmElementCsReq.Parser, new[]{ "EntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeactivateFarmElementCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeactivateFarmElementCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DeactivateFarmElementCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeactivateFarmElementCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeactivateFarmElementCsReq(DeactivateFarmElementCsReq other) : this() { + entityId_ = other.entityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeactivateFarmElementCsReq Clone() { + return new DeactivateFarmElementCsReq(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 9; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeactivateFarmElementCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeactivateFarmElementCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntityId != other.EntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntityId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EntityId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeactivateFarmElementCsReq other) { + if (other == null) { + return; + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 72: { + EntityId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 72: { + EntityId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DeactivateFarmElementScRsp.cs b/Common/Proto/DeactivateFarmElementScRsp.cs new file mode 100644 index 00000000..019334cc --- /dev/null +++ b/Common/Proto/DeactivateFarmElementScRsp.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DeactivateFarmElementScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DeactivateFarmElementScRsp.proto + public static partial class DeactivateFarmElementScRspReflection { + + #region Descriptor + /// File descriptor for DeactivateFarmElementScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DeactivateFarmElementScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBEZWFjdGl2YXRlRmFybUVsZW1lbnRTY1JzcC5wcm90byJAChpEZWFjdGl2", + "YXRlRmFybUVsZW1lbnRTY1JzcBIPCgdyZXRjb2RlGA8gASgNEhEKCWVudGl0", + "eV9pZBgFIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DeactivateFarmElementScRsp), global::EggLink.DanhengServer.Proto.DeactivateFarmElementScRsp.Parser, new[]{ "Retcode", "EntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeactivateFarmElementScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeactivateFarmElementScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DeactivateFarmElementScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeactivateFarmElementScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeactivateFarmElementScRsp(DeactivateFarmElementScRsp other) : this() { + retcode_ = other.retcode_; + entityId_ = other.entityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeactivateFarmElementScRsp Clone() { + return new DeactivateFarmElementScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 15; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 5; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeactivateFarmElementScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeactivateFarmElementScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (EntityId != other.EntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntityId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(EntityId); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EntityId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(EntityId); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeactivateFarmElementScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + EntityId = input.ReadUInt32(); + break; + } + case 120: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + EntityId = input.ReadUInt32(); + break; + } + case 120: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DelMailCsReq.cs b/Common/Proto/DelMailCsReq.cs new file mode 100644 index 00000000..1390f43b --- /dev/null +++ b/Common/Proto/DelMailCsReq.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DelMailCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DelMailCsReq.proto + public static partial class DelMailCsReqReflection { + + #region Descriptor + /// File descriptor for DelMailCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DelMailCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJEZWxNYWlsQ3NSZXEucHJvdG8iHwoMRGVsTWFpbENzUmVxEg8KB2lkX2xp", + "c3QYCCADKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DelMailCsReq), global::EggLink.DanhengServer.Proto.DelMailCsReq.Parser, new[]{ "IdList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DelMailCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DelMailCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DelMailCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelMailCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelMailCsReq(DelMailCsReq other) : this() { + idList_ = other.idList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelMailCsReq Clone() { + return new DelMailCsReq(this); + } + + /// Field number for the "id_list" field. + public const int IdListFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_idList_codec + = pb::FieldCodec.ForUInt32(66); + private readonly pbc::RepeatedField idList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField IdList { + get { return idList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DelMailCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DelMailCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!idList_.Equals(other.idList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= idList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + idList_.WriteTo(output, _repeated_idList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + idList_.WriteTo(ref output, _repeated_idList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += idList_.CalculateSize(_repeated_idList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DelMailCsReq other) { + if (other == null) { + return; + } + idList_.Add(other.idList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: + case 64: { + idList_.AddEntriesFrom(input, _repeated_idList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: + case 64: { + idList_.AddEntriesFrom(ref input, _repeated_idList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DelMailScRsp.cs b/Common/Proto/DelMailScRsp.cs new file mode 100644 index 00000000..3e943cb5 --- /dev/null +++ b/Common/Proto/DelMailScRsp.cs @@ -0,0 +1,262 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DelMailScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DelMailScRsp.proto + public static partial class DelMailScRspReflection { + + #region Descriptor + /// File descriptor for DelMailScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DelMailScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJEZWxNYWlsU2NSc3AucHJvdG8iMAoMRGVsTWFpbFNjUnNwEg8KB2lkX2xp", + "c3QYByADKA0SDwoHcmV0Y29kZRgEIAEoDUIeqgIbRWdnTGluay5EYW5oZW5n", + "U2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DelMailScRsp), global::EggLink.DanhengServer.Proto.DelMailScRsp.Parser, new[]{ "IdList", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DelMailScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DelMailScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DelMailScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelMailScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelMailScRsp(DelMailScRsp other) : this() { + idList_ = other.idList_.Clone(); + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelMailScRsp Clone() { + return new DelMailScRsp(this); + } + + /// Field number for the "id_list" field. + public const int IdListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_idList_codec + = pb::FieldCodec.ForUInt32(58); + private readonly pbc::RepeatedField idList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField IdList { + get { return idList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 4; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DelMailScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DelMailScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!idList_.Equals(other.idList_)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= idList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + idList_.WriteTo(output, _repeated_idList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + idList_.WriteTo(ref output, _repeated_idList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += idList_.CalculateSize(_repeated_idList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DelMailScRsp other) { + if (other == null) { + return; + } + idList_.Add(other.idList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 58: + case 56: { + idList_.AddEntriesFrom(input, _repeated_idList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 58: + case 56: { + idList_.AddEntriesFrom(ref input, _repeated_idList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DeleteFriendCsReq.cs b/Common/Proto/DeleteFriendCsReq.cs new file mode 100644 index 00000000..5bbc8120 --- /dev/null +++ b/Common/Proto/DeleteFriendCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DeleteFriendCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DeleteFriendCsReq.proto + public static partial class DeleteFriendCsReqReflection { + + #region Descriptor + /// File descriptor for DeleteFriendCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DeleteFriendCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdEZWxldGVGcmllbmRDc1JlcS5wcm90byIgChFEZWxldGVGcmllbmRDc1Jl", + "cRILCgN1aWQYAyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90", + "b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DeleteFriendCsReq), global::EggLink.DanhengServer.Proto.DeleteFriendCsReq.Parser, new[]{ "Uid" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteFriendCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteFriendCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DeleteFriendCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteFriendCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteFriendCsReq(DeleteFriendCsReq other) : this() { + uid_ = other.uid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteFriendCsReq Clone() { + return new DeleteFriendCsReq(this); + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 3; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteFriendCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteFriendCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uid != other.Uid) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Uid != 0) hash ^= Uid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Uid != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Uid != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteFriendCsReq other) { + if (other == null) { + return; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Uid = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Uid = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DeployRotaterCsReq.cs b/Common/Proto/DeployRotaterCsReq.cs new file mode 100644 index 00000000..e2e0b3fa --- /dev/null +++ b/Common/Proto/DeployRotaterCsReq.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DeployRotaterCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DeployRotaterCsReq.proto + public static partial class DeployRotaterCsReqReflection { + + #region Descriptor + /// File descriptor for DeployRotaterCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DeployRotaterCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhEZXBsb3lSb3RhdGVyQ3NSZXEucHJvdG8aEVJvdGF0ZXJEYXRhLnByb3Rv", + "IjgKEkRlcGxveVJvdGF0ZXJDc1JlcRIiCgxyb3RhdGVyX2RhdGEYBCABKAsy", + "DC5Sb3RhdGVyRGF0YUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RotaterDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DeployRotaterCsReq), global::EggLink.DanhengServer.Proto.DeployRotaterCsReq.Parser, new[]{ "RotaterData" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeployRotaterCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeployRotaterCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DeployRotaterCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeployRotaterCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeployRotaterCsReq(DeployRotaterCsReq other) : this() { + rotaterData_ = other.rotaterData_ != null ? other.rotaterData_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeployRotaterCsReq Clone() { + return new DeployRotaterCsReq(this); + } + + /// Field number for the "rotater_data" field. + public const int RotaterDataFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.RotaterData rotaterData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RotaterData RotaterData { + get { return rotaterData_; } + set { + rotaterData_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeployRotaterCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeployRotaterCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RotaterData, other.RotaterData)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rotaterData_ != null) hash ^= RotaterData.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rotaterData_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RotaterData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rotaterData_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RotaterData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rotaterData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RotaterData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeployRotaterCsReq other) { + if (other == null) { + return; + } + if (other.rotaterData_ != null) { + if (rotaterData_ == null) { + RotaterData = new global::EggLink.DanhengServer.Proto.RotaterData(); + } + RotaterData.MergeFrom(other.RotaterData); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + if (rotaterData_ == null) { + RotaterData = new global::EggLink.DanhengServer.Proto.RotaterData(); + } + input.ReadMessage(RotaterData); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + if (rotaterData_ == null) { + RotaterData = new global::EggLink.DanhengServer.Proto.RotaterData(); + } + input.ReadMessage(RotaterData); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DeployRotaterScRsp.cs b/Common/Proto/DeployRotaterScRsp.cs new file mode 100644 index 00000000..9ef2b144 --- /dev/null +++ b/Common/Proto/DeployRotaterScRsp.cs @@ -0,0 +1,329 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DeployRotaterScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DeployRotaterScRsp.proto + public static partial class DeployRotaterScRspReflection { + + #region Descriptor + /// File descriptor for DeployRotaterScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DeployRotaterScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhEZXBsb3lSb3RhdGVyU2NSc3AucHJvdG8aEVJvdGF0ZXJEYXRhLnByb3Rv", + "GhdSb3RhdG9yRW5lcmd5SW5mby5wcm90byJyChJEZXBsb3lSb3RhdGVyU2NS", + "c3ASJwoLZW5lcmd5X2luZm8YByABKAsyEi5Sb3RhdG9yRW5lcmd5SW5mbxIP", + "CgdyZXRjb2RlGAMgASgNEiIKDHJvdGF0ZXJfZGF0YRgJIAEoCzIMLlJvdGF0", + "ZXJEYXRhQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RotaterDataReflection.Descriptor, global::EggLink.DanhengServer.Proto.RotatorEnergyInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DeployRotaterScRsp), global::EggLink.DanhengServer.Proto.DeployRotaterScRsp.Parser, new[]{ "EnergyInfo", "Retcode", "RotaterData" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeployRotaterScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeployRotaterScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DeployRotaterScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeployRotaterScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeployRotaterScRsp(DeployRotaterScRsp other) : this() { + energyInfo_ = other.energyInfo_ != null ? other.energyInfo_.Clone() : null; + retcode_ = other.retcode_; + rotaterData_ = other.rotaterData_ != null ? other.rotaterData_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeployRotaterScRsp Clone() { + return new DeployRotaterScRsp(this); + } + + /// Field number for the "energy_info" field. + public const int EnergyInfoFieldNumber = 7; + private global::EggLink.DanhengServer.Proto.RotatorEnergyInfo energyInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RotatorEnergyInfo EnergyInfo { + get { return energyInfo_; } + set { + energyInfo_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "rotater_data" field. + public const int RotaterDataFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.RotaterData rotaterData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RotaterData RotaterData { + get { return rotaterData_; } + set { + rotaterData_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeployRotaterScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeployRotaterScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(EnergyInfo, other.EnergyInfo)) return false; + if (Retcode != other.Retcode) return false; + if (!object.Equals(RotaterData, other.RotaterData)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (energyInfo_ != null) hash ^= EnergyInfo.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (rotaterData_ != null) hash ^= RotaterData.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (energyInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(EnergyInfo); + } + if (rotaterData_ != null) { + output.WriteRawTag(74); + output.WriteMessage(RotaterData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (energyInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(EnergyInfo); + } + if (rotaterData_ != null) { + output.WriteRawTag(74); + output.WriteMessage(RotaterData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (energyInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EnergyInfo); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (rotaterData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RotaterData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeployRotaterScRsp other) { + if (other == null) { + return; + } + if (other.energyInfo_ != null) { + if (energyInfo_ == null) { + EnergyInfo = new global::EggLink.DanhengServer.Proto.RotatorEnergyInfo(); + } + EnergyInfo.MergeFrom(other.EnergyInfo); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.rotaterData_ != null) { + if (rotaterData_ == null) { + RotaterData = new global::EggLink.DanhengServer.Proto.RotaterData(); + } + RotaterData.MergeFrom(other.RotaterData); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 58: { + if (energyInfo_ == null) { + EnergyInfo = new global::EggLink.DanhengServer.Proto.RotatorEnergyInfo(); + } + input.ReadMessage(EnergyInfo); + break; + } + case 74: { + if (rotaterData_ == null) { + RotaterData = new global::EggLink.DanhengServer.Proto.RotaterData(); + } + input.ReadMessage(RotaterData); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 58: { + if (energyInfo_ == null) { + EnergyInfo = new global::EggLink.DanhengServer.Proto.RotatorEnergyInfo(); + } + input.ReadMessage(EnergyInfo); + break; + } + case 74: { + if (rotaterData_ == null) { + RotaterData = new global::EggLink.DanhengServer.Proto.RotaterData(); + } + input.ReadMessage(RotaterData); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DialogueResult.cs b/Common/Proto/DialogueResult.cs new file mode 100644 index 00000000..16017d62 --- /dev/null +++ b/Common/Proto/DialogueResult.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DialogueResult.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DialogueResult.proto + public static partial class DialogueResultReflection { + + #region Descriptor + /// File descriptor for DialogueResult.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DialogueResultReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChREaWFsb2d1ZVJlc3VsdC5wcm90bxoOSXRlbUxpc3QucHJvdG8iWgoORGlh", + "bG9ndWVSZXN1bHQSEwoLSEZIS0JNR0JKQU4YDyABKA0SEwoLQkxHSU1EQ05E", + "SEoYBSADKA0SHgoLaXRlbV9yZXN1bHQYBiABKAsyCS5JdGVtTGlzdEIeqgIb", + "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DialogueResult), global::EggLink.DanhengServer.Proto.DialogueResult.Parser, new[]{ "HFHKBMGBJAN", "BLGIMDCNDHJ", "ItemResult" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DialogueResult : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DialogueResult()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DialogueResultReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DialogueResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DialogueResult(DialogueResult other) : this() { + hFHKBMGBJAN_ = other.hFHKBMGBJAN_; + bLGIMDCNDHJ_ = other.bLGIMDCNDHJ_.Clone(); + itemResult_ = other.itemResult_ != null ? other.itemResult_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DialogueResult Clone() { + return new DialogueResult(this); + } + + /// Field number for the "HFHKBMGBJAN" field. + public const int HFHKBMGBJANFieldNumber = 15; + private uint hFHKBMGBJAN_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint HFHKBMGBJAN { + get { return hFHKBMGBJAN_; } + set { + hFHKBMGBJAN_ = value; + } + } + + /// Field number for the "BLGIMDCNDHJ" field. + public const int BLGIMDCNDHJFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_bLGIMDCNDHJ_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField bLGIMDCNDHJ_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BLGIMDCNDHJ { + get { return bLGIMDCNDHJ_; } + } + + /// Field number for the "item_result" field. + public const int ItemResultFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.ItemList itemResult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList ItemResult { + get { return itemResult_; } + set { + itemResult_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DialogueResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DialogueResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (HFHKBMGBJAN != other.HFHKBMGBJAN) return false; + if(!bLGIMDCNDHJ_.Equals(other.bLGIMDCNDHJ_)) return false; + if (!object.Equals(ItemResult, other.ItemResult)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HFHKBMGBJAN != 0) hash ^= HFHKBMGBJAN.GetHashCode(); + hash ^= bLGIMDCNDHJ_.GetHashCode(); + if (itemResult_ != null) hash ^= ItemResult.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + bLGIMDCNDHJ_.WriteTo(output, _repeated_bLGIMDCNDHJ_codec); + if (itemResult_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ItemResult); + } + if (HFHKBMGBJAN != 0) { + output.WriteRawTag(120); + output.WriteUInt32(HFHKBMGBJAN); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + bLGIMDCNDHJ_.WriteTo(ref output, _repeated_bLGIMDCNDHJ_codec); + if (itemResult_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ItemResult); + } + if (HFHKBMGBJAN != 0) { + output.WriteRawTag(120); + output.WriteUInt32(HFHKBMGBJAN); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HFHKBMGBJAN != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(HFHKBMGBJAN); + } + size += bLGIMDCNDHJ_.CalculateSize(_repeated_bLGIMDCNDHJ_codec); + if (itemResult_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemResult); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DialogueResult other) { + if (other == null) { + return; + } + if (other.HFHKBMGBJAN != 0) { + HFHKBMGBJAN = other.HFHKBMGBJAN; + } + bLGIMDCNDHJ_.Add(other.bLGIMDCNDHJ_); + if (other.itemResult_ != null) { + if (itemResult_ == null) { + ItemResult = new global::EggLink.DanhengServer.Proto.ItemList(); + } + ItemResult.MergeFrom(other.ItemResult); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: + case 40: { + bLGIMDCNDHJ_.AddEntriesFrom(input, _repeated_bLGIMDCNDHJ_codec); + break; + } + case 50: { + if (itemResult_ == null) { + ItemResult = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ItemResult); + break; + } + case 120: { + HFHKBMGBJAN = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: + case 40: { + bLGIMDCNDHJ_.AddEntriesFrom(ref input, _repeated_bLGIMDCNDHJ_codec); + break; + } + case 50: { + if (itemResult_ == null) { + ItemResult = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ItemResult); + break; + } + case 120: { + HFHKBMGBJAN = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DiscardRelicCsReq.cs b/Common/Proto/DiscardRelicCsReq.cs new file mode 100644 index 00000000..d07a6d5b --- /dev/null +++ b/Common/Proto/DiscardRelicCsReq.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DiscardRelicCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DiscardRelicCsReq.proto + public static partial class DiscardRelicCsReqReflection { + + #region Descriptor + /// File descriptor for DiscardRelicCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DiscardRelicCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdEaXNjYXJkUmVsaWNDc1JlcS5wcm90byJAChFEaXNjYXJkUmVsaWNDc1Jl", + "cRIXCg9yZWxpY191bmlxdWVfaWQYDSABKA0SEgoKaXNfZGlzY2FyZBgBIAEo", + "CEIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DiscardRelicCsReq), global::EggLink.DanhengServer.Proto.DiscardRelicCsReq.Parser, new[]{ "RelicUniqueId", "IsDiscard" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DiscardRelicCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscardRelicCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DiscardRelicCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscardRelicCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscardRelicCsReq(DiscardRelicCsReq other) : this() { + relicUniqueId_ = other.relicUniqueId_; + isDiscard_ = other.isDiscard_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscardRelicCsReq Clone() { + return new DiscardRelicCsReq(this); + } + + /// Field number for the "relic_unique_id" field. + public const int RelicUniqueIdFieldNumber = 13; + private uint relicUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RelicUniqueId { + get { return relicUniqueId_; } + set { + relicUniqueId_ = value; + } + } + + /// Field number for the "is_discard" field. + public const int IsDiscardFieldNumber = 1; + private bool isDiscard_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsDiscard { + get { return isDiscard_; } + set { + isDiscard_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DiscardRelicCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DiscardRelicCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RelicUniqueId != other.RelicUniqueId) return false; + if (IsDiscard != other.IsDiscard) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RelicUniqueId != 0) hash ^= RelicUniqueId.GetHashCode(); + if (IsDiscard != false) hash ^= IsDiscard.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (IsDiscard != false) { + output.WriteRawTag(8); + output.WriteBool(IsDiscard); + } + if (RelicUniqueId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(RelicUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (IsDiscard != false) { + output.WriteRawTag(8); + output.WriteBool(IsDiscard); + } + if (RelicUniqueId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(RelicUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RelicUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelicUniqueId); + } + if (IsDiscard != 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(DiscardRelicCsReq other) { + if (other == null) { + return; + } + if (other.RelicUniqueId != 0) { + RelicUniqueId = other.RelicUniqueId; + } + if (other.IsDiscard != false) { + IsDiscard = other.IsDiscard; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + IsDiscard = input.ReadBool(); + break; + } + case 104: { + RelicUniqueId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + IsDiscard = input.ReadBool(); + break; + } + case 104: { + RelicUniqueId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DispatchRegionData.cs b/Common/Proto/DispatchRegionData.cs new file mode 100644 index 00000000..3665e982 --- /dev/null +++ b/Common/Proto/DispatchRegionData.cs @@ -0,0 +1,373 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DispatchRegionData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DispatchRegionData.proto + public static partial class DispatchRegionDataReflection { + + #region Descriptor + /// File descriptor for DispatchRegionData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DispatchRegionDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhEaXNwYXRjaFJlZ2lvbkRhdGEucHJvdG8aEVJlZ2lvbkVudHJ5LnByb3Rv", + "IocBChJEaXNwYXRjaFJlZ2lvbkRhdGESDwoHcmV0Y29kZRgBIAEoDRILCgNt", + "c2cYAiABKAkSHQoVdG9wX3NldmVyX3JlZ2lvbl9uYW1lGAMgASgJEiEKC3Jl", + "Z2lvbl9saXN0GAQgAygLMgwuUmVnaW9uRW50cnkSEQoJc3RvcF9kZXNjGAUg", + "ASgJQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RegionEntryReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DispatchRegionData), global::EggLink.DanhengServer.Proto.DispatchRegionData.Parser, new[]{ "Retcode", "Msg", "TopSeverRegionName", "RegionList", "StopDesc" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DispatchRegionData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DispatchRegionData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DispatchRegionDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DispatchRegionData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DispatchRegionData(DispatchRegionData other) : this() { + retcode_ = other.retcode_; + msg_ = other.msg_; + topSeverRegionName_ = other.topSeverRegionName_; + regionList_ = other.regionList_.Clone(); + stopDesc_ = other.stopDesc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DispatchRegionData Clone() { + return new DispatchRegionData(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "msg" field. + public const int MsgFieldNumber = 2; + private string msg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Msg { + get { return msg_; } + set { + msg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "top_sever_region_name" field. + public const int TopSeverRegionNameFieldNumber = 3; + private string topSeverRegionName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TopSeverRegionName { + get { return topSeverRegionName_; } + set { + topSeverRegionName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "region_list" field. + public const int RegionListFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_regionList_codec + = pb::FieldCodec.ForMessage(34, global::EggLink.DanhengServer.Proto.RegionEntry.Parser); + private readonly pbc::RepeatedField regionList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RegionList { + get { return regionList_; } + } + + /// Field number for the "stop_desc" field. + public const int StopDescFieldNumber = 5; + private string stopDesc_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StopDesc { + get { return stopDesc_; } + set { + stopDesc_ = 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 DispatchRegionData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DispatchRegionData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (Msg != other.Msg) return false; + if (TopSeverRegionName != other.TopSeverRegionName) return false; + if(!regionList_.Equals(other.regionList_)) return false; + if (StopDesc != other.StopDesc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (Msg.Length != 0) hash ^= Msg.GetHashCode(); + if (TopSeverRegionName.Length != 0) hash ^= TopSeverRegionName.GetHashCode(); + hash ^= regionList_.GetHashCode(); + if (StopDesc.Length != 0) hash ^= StopDesc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (Msg.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Msg); + } + if (TopSeverRegionName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TopSeverRegionName); + } + regionList_.WriteTo(output, _repeated_regionList_codec); + if (StopDesc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(StopDesc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (Msg.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Msg); + } + if (TopSeverRegionName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TopSeverRegionName); + } + regionList_.WriteTo(ref output, _repeated_regionList_codec); + if (StopDesc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(StopDesc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (Msg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Msg); + } + if (TopSeverRegionName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TopSeverRegionName); + } + size += regionList_.CalculateSize(_repeated_regionList_codec); + if (StopDesc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StopDesc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DispatchRegionData other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.Msg.Length != 0) { + Msg = other.Msg; + } + if (other.TopSeverRegionName.Length != 0) { + TopSeverRegionName = other.TopSeverRegionName; + } + regionList_.Add(other.regionList_); + if (other.StopDesc.Length != 0) { + StopDesc = other.StopDesc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 18: { + Msg = input.ReadString(); + break; + } + case 26: { + TopSeverRegionName = input.ReadString(); + break; + } + case 34: { + regionList_.AddEntriesFrom(input, _repeated_regionList_codec); + break; + } + case 42: { + StopDesc = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 18: { + Msg = input.ReadString(); + break; + } + case 26: { + TopSeverRegionName = input.ReadString(); + break; + } + case 34: { + regionList_.AddEntriesFrom(ref input, _repeated_regionList_codec); + break; + } + case 42: { + StopDesc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DisplayAvatar.cs b/Common/Proto/DisplayAvatar.cs new file mode 100644 index 00000000..00c59bee --- /dev/null +++ b/Common/Proto/DisplayAvatar.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DisplayAvatar.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DisplayAvatar.proto + public static partial class DisplayAvatarReflection { + + #region Descriptor + /// File descriptor for DisplayAvatar.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DisplayAvatarReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNEaXNwbGF5QXZhdGFyLnByb3RvIi8KDURpc3BsYXlBdmF0YXISEQoJYXZh", + "dGFyX2lkGA4gASgNEgsKA3BvcxgKIAEoDUIeqgIbRWdnTGluay5EYW5oZW5n", + "U2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DisplayAvatar), global::EggLink.DanhengServer.Proto.DisplayAvatar.Parser, new[]{ "AvatarId", "Pos" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DisplayAvatar : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisplayAvatar()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DisplayAvatarReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisplayAvatar() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisplayAvatar(DisplayAvatar other) : this() { + avatarId_ = other.avatarId_; + pos_ = other.pos_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisplayAvatar Clone() { + return new DisplayAvatar(this); + } + + /// Field number for the "avatar_id" field. + public const int AvatarIdFieldNumber = 14; + private uint avatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AvatarId { + get { return avatarId_; } + set { + avatarId_ = value; + } + } + + /// Field number for the "pos" field. + public const int PosFieldNumber = 10; + private uint pos_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Pos { + get { return pos_; } + set { + pos_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DisplayAvatar); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DisplayAvatar other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AvatarId != other.AvatarId) return false; + if (Pos != other.Pos) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AvatarId != 0) hash ^= AvatarId.GetHashCode(); + if (Pos != 0) hash ^= Pos.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Pos != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Pos); + } + if (AvatarId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(AvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Pos != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Pos); + } + if (AvatarId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(AvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AvatarId); + } + if (Pos != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Pos); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DisplayAvatar other) { + if (other == null) { + return; + } + if (other.AvatarId != 0) { + AvatarId = other.AvatarId; + } + if (other.Pos != 0) { + Pos = other.Pos; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 80: { + Pos = input.ReadUInt32(); + break; + } + case 112: { + AvatarId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 80: { + Pos = input.ReadUInt32(); + break; + } + case 112: { + AvatarId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DisplayAvatarVec.cs b/Common/Proto/DisplayAvatarVec.cs new file mode 100644 index 00000000..b5397d71 --- /dev/null +++ b/Common/Proto/DisplayAvatarVec.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DisplayAvatarVec.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DisplayAvatarVec.proto + public static partial class DisplayAvatarVecReflection { + + #region Descriptor + /// File descriptor for DisplayAvatarVec.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DisplayAvatarVecReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZEaXNwbGF5QXZhdGFyVmVjLnByb3RvGhNEaXNwbGF5QXZhdGFyLnByb3Rv", + "IlMKEERpc3BsYXlBdmF0YXJWZWMSKwoTZGlzcGxheV9hdmF0YXJfbGlzdBgP", + "IAMoCzIOLkRpc3BsYXlBdmF0YXISEgoKaXNfZGlzcGxheRgDIAEoCEIeqgIb", + "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.DisplayAvatarReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DisplayAvatarVec), global::EggLink.DanhengServer.Proto.DisplayAvatarVec.Parser, new[]{ "DisplayAvatarList", "IsDisplay" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DisplayAvatarVec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisplayAvatarVec()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DisplayAvatarVecReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisplayAvatarVec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisplayAvatarVec(DisplayAvatarVec other) : this() { + displayAvatarList_ = other.displayAvatarList_.Clone(); + isDisplay_ = other.isDisplay_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisplayAvatarVec Clone() { + return new DisplayAvatarVec(this); + } + + /// Field number for the "display_avatar_list" field. + public const int DisplayAvatarListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_displayAvatarList_codec + = pb::FieldCodec.ForMessage(122, global::EggLink.DanhengServer.Proto.DisplayAvatar.Parser); + private readonly pbc::RepeatedField displayAvatarList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DisplayAvatarList { + get { return displayAvatarList_; } + } + + /// Field number for the "is_display" field. + public const int IsDisplayFieldNumber = 3; + private bool isDisplay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsDisplay { + get { return isDisplay_; } + set { + isDisplay_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DisplayAvatarVec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DisplayAvatarVec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!displayAvatarList_.Equals(other.displayAvatarList_)) return false; + if (IsDisplay != other.IsDisplay) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= displayAvatarList_.GetHashCode(); + if (IsDisplay != false) hash ^= IsDisplay.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (IsDisplay != false) { + output.WriteRawTag(24); + output.WriteBool(IsDisplay); + } + displayAvatarList_.WriteTo(output, _repeated_displayAvatarList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (IsDisplay != false) { + output.WriteRawTag(24); + output.WriteBool(IsDisplay); + } + displayAvatarList_.WriteTo(ref output, _repeated_displayAvatarList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += displayAvatarList_.CalculateSize(_repeated_displayAvatarList_codec); + if (IsDisplay != 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(DisplayAvatarVec other) { + if (other == null) { + return; + } + displayAvatarList_.Add(other.displayAvatarList_); + if (other.IsDisplay != false) { + IsDisplay = other.IsDisplay; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + IsDisplay = input.ReadBool(); + break; + } + case 122: { + displayAvatarList_.AddEntriesFrom(input, _repeated_displayAvatarList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + IsDisplay = input.ReadBool(); + break; + } + case 122: { + displayAvatarList_.AddEntriesFrom(ref input, _repeated_displayAvatarList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DoGachaCsReq.cs b/Common/Proto/DoGachaCsReq.cs new file mode 100644 index 00000000..5d742e39 --- /dev/null +++ b/Common/Proto/DoGachaCsReq.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DoGachaCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DoGachaCsReq.proto + public static partial class DoGachaCsReqReflection { + + #region Descriptor + /// File descriptor for DoGachaCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DoGachaCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJEb0dhY2hhQ3NSZXEucHJvdG8iYQoMRG9HYWNoYUNzUmVxEhAKCGdhY2hh", + "X2lkGAUgASgNEhEKCWdhY2hhX251bRgGIAEoDRIWCg5zaW11bGF0ZV9tYWdp", + "YxgPIAEoDRIUCgxnYWNoYV9yYW5kb20YAyABKA1CHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DoGachaCsReq), global::EggLink.DanhengServer.Proto.DoGachaCsReq.Parser, new[]{ "GachaId", "GachaNum", "SimulateMagic", "GachaRandom" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DoGachaCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DoGachaCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DoGachaCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoGachaCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoGachaCsReq(DoGachaCsReq other) : this() { + gachaId_ = other.gachaId_; + gachaNum_ = other.gachaNum_; + simulateMagic_ = other.simulateMagic_; + gachaRandom_ = other.gachaRandom_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoGachaCsReq Clone() { + return new DoGachaCsReq(this); + } + + /// Field number for the "gacha_id" field. + public const int GachaIdFieldNumber = 5; + private uint gachaId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GachaId { + get { return gachaId_; } + set { + gachaId_ = value; + } + } + + /// Field number for the "gacha_num" field. + public const int GachaNumFieldNumber = 6; + private uint gachaNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GachaNum { + get { return gachaNum_; } + set { + gachaNum_ = value; + } + } + + /// Field number for the "simulate_magic" field. + public const int SimulateMagicFieldNumber = 15; + private uint simulateMagic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SimulateMagic { + get { return simulateMagic_; } + set { + simulateMagic_ = value; + } + } + + /// Field number for the "gacha_random" field. + public const int GachaRandomFieldNumber = 3; + private uint gachaRandom_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GachaRandom { + get { return gachaRandom_; } + set { + gachaRandom_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DoGachaCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DoGachaCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GachaId != other.GachaId) return false; + if (GachaNum != other.GachaNum) return false; + if (SimulateMagic != other.SimulateMagic) return false; + if (GachaRandom != other.GachaRandom) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GachaId != 0) hash ^= GachaId.GetHashCode(); + if (GachaNum != 0) hash ^= GachaNum.GetHashCode(); + if (SimulateMagic != 0) hash ^= SimulateMagic.GetHashCode(); + if (GachaRandom != 0) hash ^= GachaRandom.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (GachaRandom != 0) { + output.WriteRawTag(24); + output.WriteUInt32(GachaRandom); + } + if (GachaId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(GachaId); + } + if (GachaNum != 0) { + output.WriteRawTag(48); + output.WriteUInt32(GachaNum); + } + if (SimulateMagic != 0) { + output.WriteRawTag(120); + output.WriteUInt32(SimulateMagic); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (GachaRandom != 0) { + output.WriteRawTag(24); + output.WriteUInt32(GachaRandom); + } + if (GachaId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(GachaId); + } + if (GachaNum != 0) { + output.WriteRawTag(48); + output.WriteUInt32(GachaNum); + } + if (SimulateMagic != 0) { + output.WriteRawTag(120); + output.WriteUInt32(SimulateMagic); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GachaId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GachaId); + } + if (GachaNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GachaNum); + } + if (SimulateMagic != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SimulateMagic); + } + if (GachaRandom != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GachaRandom); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DoGachaCsReq other) { + if (other == null) { + return; + } + if (other.GachaId != 0) { + GachaId = other.GachaId; + } + if (other.GachaNum != 0) { + GachaNum = other.GachaNum; + } + if (other.SimulateMagic != 0) { + SimulateMagic = other.SimulateMagic; + } + if (other.GachaRandom != 0) { + GachaRandom = other.GachaRandom; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + GachaRandom = input.ReadUInt32(); + break; + } + case 40: { + GachaId = input.ReadUInt32(); + break; + } + case 48: { + GachaNum = input.ReadUInt32(); + break; + } + case 120: { + SimulateMagic = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + GachaRandom = input.ReadUInt32(); + break; + } + case 40: { + GachaId = input.ReadUInt32(); + break; + } + case 48: { + GachaNum = input.ReadUInt32(); + break; + } + case 120: { + SimulateMagic = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DoGachaInRollShopCsReq.cs b/Common/Proto/DoGachaInRollShopCsReq.cs new file mode 100644 index 00000000..8ed32338 --- /dev/null +++ b/Common/Proto/DoGachaInRollShopCsReq.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DoGachaInRollShopCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DoGachaInRollShopCsReq.proto + public static partial class DoGachaInRollShopCsReqReflection { + + #region Descriptor + /// File descriptor for DoGachaInRollShopCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DoGachaInRollShopCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxEb0dhY2hhSW5Sb2xsU2hvcENzUmVxLnByb3RvIkMKFkRvR2FjaGFJblJv", + "bGxTaG9wQ3NSZXESFAoMcm9sbF9zaG9wX2lkGAogASgNEhMKC0JCSklKSU5K", + "QUZLGAUgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DoGachaInRollShopCsReq), global::EggLink.DanhengServer.Proto.DoGachaInRollShopCsReq.Parser, new[]{ "RollShopId", "BBJIJINJAFK" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DoGachaInRollShopCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DoGachaInRollShopCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DoGachaInRollShopCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoGachaInRollShopCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoGachaInRollShopCsReq(DoGachaInRollShopCsReq other) : this() { + rollShopId_ = other.rollShopId_; + bBJIJINJAFK_ = other.bBJIJINJAFK_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoGachaInRollShopCsReq Clone() { + return new DoGachaInRollShopCsReq(this); + } + + /// Field number for the "roll_shop_id" field. + public const int RollShopIdFieldNumber = 10; + private uint rollShopId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RollShopId { + get { return rollShopId_; } + set { + rollShopId_ = value; + } + } + + /// Field number for the "BBJIJINJAFK" field. + public const int BBJIJINJAFKFieldNumber = 5; + private uint bBJIJINJAFK_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BBJIJINJAFK { + get { return bBJIJINJAFK_; } + set { + bBJIJINJAFK_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DoGachaInRollShopCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DoGachaInRollShopCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RollShopId != other.RollShopId) return false; + if (BBJIJINJAFK != other.BBJIJINJAFK) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RollShopId != 0) hash ^= RollShopId.GetHashCode(); + if (BBJIJINJAFK != 0) hash ^= BBJIJINJAFK.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BBJIJINJAFK != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BBJIJINJAFK); + } + if (RollShopId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(RollShopId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BBJIJINJAFK != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BBJIJINJAFK); + } + if (RollShopId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(RollShopId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RollShopId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollShopId); + } + if (BBJIJINJAFK != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BBJIJINJAFK); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DoGachaInRollShopCsReq other) { + if (other == null) { + return; + } + if (other.RollShopId != 0) { + RollShopId = other.RollShopId; + } + if (other.BBJIJINJAFK != 0) { + BBJIJINJAFK = other.BBJIJINJAFK; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + BBJIJINJAFK = input.ReadUInt32(); + break; + } + case 80: { + RollShopId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + BBJIJINJAFK = input.ReadUInt32(); + break; + } + case 80: { + RollShopId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DoGachaInRollShopScRsp.cs b/Common/Proto/DoGachaInRollShopScRsp.cs new file mode 100644 index 00000000..e13623aa --- /dev/null +++ b/Common/Proto/DoGachaInRollShopScRsp.cs @@ -0,0 +1,393 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DoGachaInRollShopScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DoGachaInRollShopScRsp.proto + public static partial class DoGachaInRollShopScRspReflection { + + #region Descriptor + /// File descriptor for DoGachaInRollShopScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DoGachaInRollShopScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxEb0dhY2hhSW5Sb2xsU2hvcFNjUnNwLnByb3RvGg5JdGVtTGlzdC5wcm90", + "byKEAQoWRG9HYWNoYUluUm9sbFNob3BTY1JzcBIPCgdyZXRjb2RlGAcgASgN", + "EhkKBnJld2FyZBgJIAEoCzIJLkl0ZW1MaXN0EhMKC0xFSkpPSkdOSUhLGAQg", + "ASgNEhQKDHJvbGxfc2hvcF9pZBgIIAEoDRITCgtBRk1QREJCSENITRgCIAEo", + "DUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DoGachaInRollShopScRsp), global::EggLink.DanhengServer.Proto.DoGachaInRollShopScRsp.Parser, new[]{ "Retcode", "Reward", "LEJJOJGNIHK", "RollShopId", "AFMPDBBHCHM" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DoGachaInRollShopScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DoGachaInRollShopScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DoGachaInRollShopScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoGachaInRollShopScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoGachaInRollShopScRsp(DoGachaInRollShopScRsp other) : this() { + retcode_ = other.retcode_; + reward_ = other.reward_ != null ? other.reward_.Clone() : null; + lEJJOJGNIHK_ = other.lEJJOJGNIHK_; + rollShopId_ = other.rollShopId_; + aFMPDBBHCHM_ = other.aFMPDBBHCHM_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoGachaInRollShopScRsp Clone() { + return new DoGachaInRollShopScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 7; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "reward" field. + public const int RewardFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.ItemList reward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList Reward { + get { return reward_; } + set { + reward_ = value; + } + } + + /// Field number for the "LEJJOJGNIHK" field. + public const int LEJJOJGNIHKFieldNumber = 4; + private uint lEJJOJGNIHK_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint LEJJOJGNIHK { + get { return lEJJOJGNIHK_; } + set { + lEJJOJGNIHK_ = value; + } + } + + /// Field number for the "roll_shop_id" field. + public const int RollShopIdFieldNumber = 8; + private uint rollShopId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RollShopId { + get { return rollShopId_; } + set { + rollShopId_ = value; + } + } + + /// Field number for the "AFMPDBBHCHM" field. + public const int AFMPDBBHCHMFieldNumber = 2; + private uint aFMPDBBHCHM_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AFMPDBBHCHM { + get { return aFMPDBBHCHM_; } + set { + aFMPDBBHCHM_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DoGachaInRollShopScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DoGachaInRollShopScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(Reward, other.Reward)) return false; + if (LEJJOJGNIHK != other.LEJJOJGNIHK) return false; + if (RollShopId != other.RollShopId) return false; + if (AFMPDBBHCHM != other.AFMPDBBHCHM) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (reward_ != null) hash ^= Reward.GetHashCode(); + if (LEJJOJGNIHK != 0) hash ^= LEJJOJGNIHK.GetHashCode(); + if (RollShopId != 0) hash ^= RollShopId.GetHashCode(); + if (AFMPDBBHCHM != 0) hash ^= AFMPDBBHCHM.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AFMPDBBHCHM != 0) { + output.WriteRawTag(16); + output.WriteUInt32(AFMPDBBHCHM); + } + if (LEJJOJGNIHK != 0) { + output.WriteRawTag(32); + output.WriteUInt32(LEJJOJGNIHK); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (RollShopId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(RollShopId); + } + if (reward_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Reward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AFMPDBBHCHM != 0) { + output.WriteRawTag(16); + output.WriteUInt32(AFMPDBBHCHM); + } + if (LEJJOJGNIHK != 0) { + output.WriteRawTag(32); + output.WriteUInt32(LEJJOJGNIHK); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (RollShopId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(RollShopId); + } + if (reward_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Reward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (reward_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Reward); + } + if (LEJJOJGNIHK != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LEJJOJGNIHK); + } + if (RollShopId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollShopId); + } + if (AFMPDBBHCHM != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AFMPDBBHCHM); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DoGachaInRollShopScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.reward_ != null) { + if (reward_ == null) { + Reward = new global::EggLink.DanhengServer.Proto.ItemList(); + } + Reward.MergeFrom(other.Reward); + } + if (other.LEJJOJGNIHK != 0) { + LEJJOJGNIHK = other.LEJJOJGNIHK; + } + if (other.RollShopId != 0) { + RollShopId = other.RollShopId; + } + if (other.AFMPDBBHCHM != 0) { + AFMPDBBHCHM = other.AFMPDBBHCHM; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + AFMPDBBHCHM = input.ReadUInt32(); + break; + } + case 32: { + LEJJOJGNIHK = input.ReadUInt32(); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 64: { + RollShopId = input.ReadUInt32(); + break; + } + case 74: { + if (reward_ == null) { + Reward = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Reward); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + AFMPDBBHCHM = input.ReadUInt32(); + break; + } + case 32: { + LEJJOJGNIHK = input.ReadUInt32(); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 64: { + RollShopId = input.ReadUInt32(); + break; + } + case 74: { + if (reward_ == null) { + Reward = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Reward); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DoGachaScRsp.cs b/Common/Proto/DoGachaScRsp.cs new file mode 100644 index 00000000..5b890512 --- /dev/null +++ b/Common/Proto/DoGachaScRsp.cs @@ -0,0 +1,373 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DoGachaScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DoGachaScRsp.proto + public static partial class DoGachaScRspReflection { + + #region Descriptor + /// File descriptor for DoGachaScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DoGachaScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJEb0dhY2hhU2NSc3AucHJvdG8aD0dhY2hhSXRlbS5wcm90byJ+CgxEb0dh", + "Y2hhU2NSc3ASEAoIZ2FjaGFfaWQYDSABKA0SDwoHcmV0Y29kZRgMIAEoDRIT", + "CgtjZWlsaW5nX251bRgJIAEoDRIjCg9nYWNoYV9pdGVtX2xpc3QYAyADKAsy", + "Ci5HYWNoYUl0ZW0SEQoJZ2FjaGFfbnVtGAIgASgNQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GachaItemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DoGachaScRsp), global::EggLink.DanhengServer.Proto.DoGachaScRsp.Parser, new[]{ "GachaId", "Retcode", "CeilingNum", "GachaItemList", "GachaNum" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DoGachaScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DoGachaScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DoGachaScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoGachaScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoGachaScRsp(DoGachaScRsp other) : this() { + gachaId_ = other.gachaId_; + retcode_ = other.retcode_; + ceilingNum_ = other.ceilingNum_; + gachaItemList_ = other.gachaItemList_.Clone(); + gachaNum_ = other.gachaNum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoGachaScRsp Clone() { + return new DoGachaScRsp(this); + } + + /// Field number for the "gacha_id" field. + public const int GachaIdFieldNumber = 13; + private uint gachaId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GachaId { + get { return gachaId_; } + set { + gachaId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 12; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "ceiling_num" field. + public const int CeilingNumFieldNumber = 9; + private uint ceilingNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CeilingNum { + get { return ceilingNum_; } + set { + ceilingNum_ = value; + } + } + + /// Field number for the "gacha_item_list" field. + public const int GachaItemListFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_gachaItemList_codec + = pb::FieldCodec.ForMessage(26, global::EggLink.DanhengServer.Proto.GachaItem.Parser); + private readonly pbc::RepeatedField gachaItemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GachaItemList { + get { return gachaItemList_; } + } + + /// Field number for the "gacha_num" field. + public const int GachaNumFieldNumber = 2; + private uint gachaNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GachaNum { + get { return gachaNum_; } + set { + gachaNum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DoGachaScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DoGachaScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GachaId != other.GachaId) return false; + if (Retcode != other.Retcode) return false; + if (CeilingNum != other.CeilingNum) return false; + if(!gachaItemList_.Equals(other.gachaItemList_)) return false; + if (GachaNum != other.GachaNum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GachaId != 0) hash ^= GachaId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (CeilingNum != 0) hash ^= CeilingNum.GetHashCode(); + hash ^= gachaItemList_.GetHashCode(); + if (GachaNum != 0) hash ^= GachaNum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (GachaNum != 0) { + output.WriteRawTag(16); + output.WriteUInt32(GachaNum); + } + gachaItemList_.WriteTo(output, _repeated_gachaItemList_codec); + if (CeilingNum != 0) { + output.WriteRawTag(72); + output.WriteUInt32(CeilingNum); + } + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (GachaId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(GachaId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (GachaNum != 0) { + output.WriteRawTag(16); + output.WriteUInt32(GachaNum); + } + gachaItemList_.WriteTo(ref output, _repeated_gachaItemList_codec); + if (CeilingNum != 0) { + output.WriteRawTag(72); + output.WriteUInt32(CeilingNum); + } + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (GachaId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(GachaId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GachaId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GachaId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (CeilingNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CeilingNum); + } + size += gachaItemList_.CalculateSize(_repeated_gachaItemList_codec); + if (GachaNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GachaNum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DoGachaScRsp other) { + if (other == null) { + return; + } + if (other.GachaId != 0) { + GachaId = other.GachaId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.CeilingNum != 0) { + CeilingNum = other.CeilingNum; + } + gachaItemList_.Add(other.gachaItemList_); + if (other.GachaNum != 0) { + GachaNum = other.GachaNum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + GachaNum = input.ReadUInt32(); + break; + } + case 26: { + gachaItemList_.AddEntriesFrom(input, _repeated_gachaItemList_codec); + break; + } + case 72: { + CeilingNum = input.ReadUInt32(); + break; + } + case 96: { + Retcode = input.ReadUInt32(); + break; + } + case 104: { + GachaId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + GachaNum = input.ReadUInt32(); + break; + } + case 26: { + gachaItemList_.AddEntriesFrom(ref input, _repeated_gachaItemList_codec); + break; + } + case 72: { + CeilingNum = input.ReadUInt32(); + break; + } + case 96: { + Retcode = input.ReadUInt32(); + break; + } + case 104: { + GachaId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DressAvatarCsReq.cs b/Common/Proto/DressAvatarCsReq.cs new file mode 100644 index 00000000..91200169 --- /dev/null +++ b/Common/Proto/DressAvatarCsReq.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DressAvatarCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DressAvatarCsReq.proto + public static partial class DressAvatarCsReqReflection { + + #region Descriptor + /// File descriptor for DressAvatarCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DressAvatarCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZEcmVzc0F2YXRhckNzUmVxLnByb3RvIkcKEERyZXNzQXZhdGFyQ3NSZXES", + "FgoOYmFzZV9hdmF0YXJfaWQYCiABKA0SGwoTZXF1aXBtZW50X3VuaXF1ZV9p", + "ZBgBIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DressAvatarCsReq), global::EggLink.DanhengServer.Proto.DressAvatarCsReq.Parser, new[]{ "BaseAvatarId", "EquipmentUniqueId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DressAvatarCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DressAvatarCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DressAvatarCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DressAvatarCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DressAvatarCsReq(DressAvatarCsReq other) : this() { + baseAvatarId_ = other.baseAvatarId_; + equipmentUniqueId_ = other.equipmentUniqueId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DressAvatarCsReq Clone() { + return new DressAvatarCsReq(this); + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 10; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + /// Field number for the "equipment_unique_id" field. + public const int EquipmentUniqueIdFieldNumber = 1; + private uint equipmentUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EquipmentUniqueId { + get { return equipmentUniqueId_; } + set { + equipmentUniqueId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DressAvatarCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DressAvatarCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BaseAvatarId != other.BaseAvatarId) return false; + if (EquipmentUniqueId != other.EquipmentUniqueId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (EquipmentUniqueId != 0) hash ^= EquipmentUniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EquipmentUniqueId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(EquipmentUniqueId); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EquipmentUniqueId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(EquipmentUniqueId); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (EquipmentUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EquipmentUniqueId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DressAvatarCsReq other) { + if (other == null) { + return; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + if (other.EquipmentUniqueId != 0) { + EquipmentUniqueId = other.EquipmentUniqueId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + EquipmentUniqueId = input.ReadUInt32(); + break; + } + case 80: { + BaseAvatarId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + EquipmentUniqueId = input.ReadUInt32(); + break; + } + case 80: { + BaseAvatarId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/DressRelicAvatarCsReq.cs b/Common/Proto/DressRelicAvatarCsReq.cs new file mode 100644 index 00000000..144d2030 --- /dev/null +++ b/Common/Proto/DressRelicAvatarCsReq.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DressRelicAvatarCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from DressRelicAvatarCsReq.proto + public static partial class DressRelicAvatarCsReqReflection { + + #region Descriptor + /// File descriptor for DressRelicAvatarCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DressRelicAvatarCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtEcmVzc1JlbGljQXZhdGFyQ3NSZXEucHJvdG8aEFJlbGljUGFyYW0ucHJv", + "dG8iUAoVRHJlc3NSZWxpY0F2YXRhckNzUmVxEh8KCnBhcmFtX2xpc3QYCiAD", + "KAsyCy5SZWxpY1BhcmFtEhYKDmJhc2VfYXZhdGFyX2lkGAMgASgNQh6qAhtF", + "Z2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RelicParamReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DressRelicAvatarCsReq), global::EggLink.DanhengServer.Proto.DressRelicAvatarCsReq.Parser, new[]{ "ParamList", "BaseAvatarId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DressRelicAvatarCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DressRelicAvatarCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.DressRelicAvatarCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DressRelicAvatarCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DressRelicAvatarCsReq(DressRelicAvatarCsReq other) : this() { + paramList_ = other.paramList_.Clone(); + baseAvatarId_ = other.baseAvatarId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DressRelicAvatarCsReq Clone() { + return new DressRelicAvatarCsReq(this); + } + + /// Field number for the "param_list" field. + public const int ParamListFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_paramList_codec + = pb::FieldCodec.ForMessage(82, global::EggLink.DanhengServer.Proto.RelicParam.Parser); + private readonly pbc::RepeatedField paramList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ParamList { + get { return paramList_; } + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 3; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DressRelicAvatarCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DressRelicAvatarCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!paramList_.Equals(other.paramList_)) return false; + if (BaseAvatarId != other.BaseAvatarId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= paramList_.GetHashCode(); + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BaseAvatarId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(BaseAvatarId); + } + paramList_.WriteTo(output, _repeated_paramList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BaseAvatarId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(BaseAvatarId); + } + paramList_.WriteTo(ref output, _repeated_paramList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += paramList_.CalculateSize(_repeated_paramList_codec); + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DressRelicAvatarCsReq other) { + if (other == null) { + return; + } + paramList_.Add(other.paramList_); + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 82: { + paramList_.AddEntriesFrom(input, _repeated_paramList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 82: { + paramList_.AddEntriesFrom(ref input, _repeated_paramList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EnableRogueTalentCsReq.cs b/Common/Proto/EnableRogueTalentCsReq.cs new file mode 100644 index 00000000..1364855a --- /dev/null +++ b/Common/Proto/EnableRogueTalentCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnableRogueTalentCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EnableRogueTalentCsReq.proto + public static partial class EnableRogueTalentCsReqReflection { + + #region Descriptor + /// File descriptor for EnableRogueTalentCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnableRogueTalentCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxFbmFibGVSb2d1ZVRhbGVudENzUmVxLnByb3RvIisKFkVuYWJsZVJvZ3Vl", + "VGFsZW50Q3NSZXESEQoJdGFsZW50X2lkGAMgASgNQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EnableRogueTalentCsReq), global::EggLink.DanhengServer.Proto.EnableRogueTalentCsReq.Parser, new[]{ "TalentId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnableRogueTalentCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnableRogueTalentCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EnableRogueTalentCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableRogueTalentCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableRogueTalentCsReq(EnableRogueTalentCsReq other) : this() { + talentId_ = other.talentId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableRogueTalentCsReq Clone() { + return new EnableRogueTalentCsReq(this); + } + + /// Field number for the "talent_id" field. + public const int TalentIdFieldNumber = 3; + private uint talentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TalentId { + get { return talentId_; } + set { + talentId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnableRogueTalentCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnableRogueTalentCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TalentId != 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 (TalentId != 0) 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 (TalentId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(TalentId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TalentId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(TalentId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TalentId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TalentId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnableRogueTalentCsReq other) { + if (other == null) { + return; + } + if (other.TalentId != 0) { + TalentId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + TalentId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + TalentId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EnableRogueTalentScRsp.cs b/Common/Proto/EnableRogueTalentScRsp.cs new file mode 100644 index 00000000..6e2fe220 --- /dev/null +++ b/Common/Proto/EnableRogueTalentScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnableRogueTalentScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EnableRogueTalentScRsp.proto + public static partial class EnableRogueTalentScRspReflection { + + #region Descriptor + /// File descriptor for EnableRogueTalentScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnableRogueTalentScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxFbmFibGVSb2d1ZVRhbGVudFNjUnNwLnByb3RvGhVSb2d1ZVRhbGVudElu", + "Zm8ucHJvdG8iUAoWRW5hYmxlUm9ndWVUYWxlbnRTY1JzcBIPCgdyZXRjb2Rl", + "GA4gASgNEiUKC3RhbGVudF9pbmZvGAYgASgLMhAuUm9ndWVUYWxlbnRJbmZv", + "Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueTalentInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EnableRogueTalentScRsp), global::EggLink.DanhengServer.Proto.EnableRogueTalentScRsp.Parser, new[]{ "Retcode", "TalentInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnableRogueTalentScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnableRogueTalentScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EnableRogueTalentScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableRogueTalentScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableRogueTalentScRsp(EnableRogueTalentScRsp other) : this() { + retcode_ = other.retcode_; + talentInfo_ = other.talentInfo_ != null ? other.talentInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableRogueTalentScRsp Clone() { + return new EnableRogueTalentScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 14; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "talent_info" field. + public const int TalentInfoFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.RogueTalentInfo talentInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueTalentInfo TalentInfo { + get { return talentInfo_; } + set { + talentInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnableRogueTalentScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnableRogueTalentScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(TalentInfo, other.TalentInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (talentInfo_ != null) hash ^= TalentInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (talentInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(TalentInfo); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (talentInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(TalentInfo); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (talentInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TalentInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnableRogueTalentScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.talentInfo_ != null) { + if (talentInfo_ == null) { + TalentInfo = new global::EggLink.DanhengServer.Proto.RogueTalentInfo(); + } + TalentInfo.MergeFrom(other.TalentInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: { + if (talentInfo_ == null) { + TalentInfo = new global::EggLink.DanhengServer.Proto.RogueTalentInfo(); + } + input.ReadMessage(TalentInfo); + break; + } + case 112: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: { + if (talentInfo_ == null) { + TalentInfo = new global::EggLink.DanhengServer.Proto.RogueTalentInfo(); + } + input.ReadMessage(TalentInfo); + break; + } + case 112: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EnhanceRogueBuffCsReq.cs b/Common/Proto/EnhanceRogueBuffCsReq.cs new file mode 100644 index 00000000..3d2ab59c --- /dev/null +++ b/Common/Proto/EnhanceRogueBuffCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnhanceRogueBuffCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EnhanceRogueBuffCsReq.proto + public static partial class EnhanceRogueBuffCsReqReflection { + + #region Descriptor + /// File descriptor for EnhanceRogueBuffCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnhanceRogueBuffCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtFbmhhbmNlUm9ndWVCdWZmQ3NSZXEucHJvdG8iKAoVRW5oYW5jZVJvZ3Vl", + "QnVmZkNzUmVxEg8KB2J1ZmZfaWQYCiABKA1CHqoCG0VnZ0xpbmsuRGFuaGVu", + "Z1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EnhanceRogueBuffCsReq), global::EggLink.DanhengServer.Proto.EnhanceRogueBuffCsReq.Parser, new[]{ "BuffId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnhanceRogueBuffCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnhanceRogueBuffCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EnhanceRogueBuffCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnhanceRogueBuffCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnhanceRogueBuffCsReq(EnhanceRogueBuffCsReq other) : this() { + buffId_ = other.buffId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnhanceRogueBuffCsReq Clone() { + return new EnhanceRogueBuffCsReq(this); + } + + /// Field number for the "buff_id" field. + public const int BuffIdFieldNumber = 10; + private uint buffId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 EnhanceRogueBuffCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnhanceRogueBuffCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (BuffId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(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 (BuffId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(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 (BuffId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnhanceRogueBuffCsReq other) { + if (other == null) { + return; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 80: { + BuffId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 80: { + BuffId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EnhanceRogueBuffScRsp.cs b/Common/Proto/EnhanceRogueBuffScRsp.cs new file mode 100644 index 00000000..a22b6dd4 --- /dev/null +++ b/Common/Proto/EnhanceRogueBuffScRsp.cs @@ -0,0 +1,318 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnhanceRogueBuffScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EnhanceRogueBuffScRsp.proto + public static partial class EnhanceRogueBuffScRspReflection { + + #region Descriptor + /// File descriptor for EnhanceRogueBuffScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnhanceRogueBuffScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtFbmhhbmNlUm9ndWVCdWZmU2NSc3AucHJvdG8aD1JvZ3VlQnVmZi5wcm90", + "byJcChVFbmhhbmNlUm9ndWVCdWZmU2NSc3ASEgoKaXNfc3VjY2VzcxgMIAEo", + "CBIeCgpyb2d1ZV9idWZmGAYgASgLMgouUm9ndWVCdWZmEg8KB3JldGNvZGUY", + "DyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueBuffReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EnhanceRogueBuffScRsp), global::EggLink.DanhengServer.Proto.EnhanceRogueBuffScRsp.Parser, new[]{ "IsSuccess", "RogueBuff", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnhanceRogueBuffScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnhanceRogueBuffScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EnhanceRogueBuffScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnhanceRogueBuffScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnhanceRogueBuffScRsp(EnhanceRogueBuffScRsp other) : this() { + isSuccess_ = other.isSuccess_; + rogueBuff_ = other.rogueBuff_ != null ? other.rogueBuff_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnhanceRogueBuffScRsp Clone() { + return new EnhanceRogueBuffScRsp(this); + } + + /// Field number for the "is_success" field. + public const int IsSuccessFieldNumber = 12; + private bool isSuccess_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsSuccess { + get { return isSuccess_; } + set { + isSuccess_ = value; + } + } + + /// Field number for the "rogue_buff" field. + public const int RogueBuffFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.RogueBuff rogueBuff_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBuff RogueBuff { + get { return rogueBuff_; } + set { + rogueBuff_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 15; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnhanceRogueBuffScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnhanceRogueBuffScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsSuccess != other.IsSuccess) return false; + if (!object.Equals(RogueBuff, other.RogueBuff)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (IsSuccess != false) hash ^= IsSuccess.GetHashCode(); + if (rogueBuff_ != null) hash ^= RogueBuff.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rogueBuff_ != null) { + output.WriteRawTag(50); + output.WriteMessage(RogueBuff); + } + if (IsSuccess != false) { + output.WriteRawTag(96); + output.WriteBool(IsSuccess); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rogueBuff_ != null) { + output.WriteRawTag(50); + output.WriteMessage(RogueBuff); + } + if (IsSuccess != false) { + output.WriteRawTag(96); + output.WriteBool(IsSuccess); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (IsSuccess != false) { + size += 1 + 1; + } + if (rogueBuff_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueBuff); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnhanceRogueBuffScRsp other) { + if (other == null) { + return; + } + if (other.IsSuccess != false) { + IsSuccess = other.IsSuccess; + } + if (other.rogueBuff_ != null) { + if (rogueBuff_ == null) { + RogueBuff = new global::EggLink.DanhengServer.Proto.RogueBuff(); + } + RogueBuff.MergeFrom(other.RogueBuff); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: { + if (rogueBuff_ == null) { + RogueBuff = new global::EggLink.DanhengServer.Proto.RogueBuff(); + } + input.ReadMessage(RogueBuff); + break; + } + case 96: { + IsSuccess = input.ReadBool(); + break; + } + case 120: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: { + if (rogueBuff_ == null) { + RogueBuff = new global::EggLink.DanhengServer.Proto.RogueBuff(); + } + input.ReadMessage(RogueBuff); + break; + } + case 96: { + IsSuccess = input.ReadBool(); + break; + } + case 120: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EnterMapRotationRegionCsReq.cs b/Common/Proto/EnterMapRotationRegionCsReq.cs new file mode 100644 index 00000000..e5b2f31f --- /dev/null +++ b/Common/Proto/EnterMapRotationRegionCsReq.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnterMapRotationRegionCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EnterMapRotationRegionCsReq.proto + public static partial class EnterMapRotationRegionCsReqReflection { + + #region Descriptor + /// File descriptor for EnterMapRotationRegionCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnterMapRotationRegionCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFFbnRlck1hcFJvdGF0aW9uUmVnaW9uQ3NSZXEucHJvdG8aEE1vdGlvbklu", + "Zm8ucHJvdG8iOgobRW50ZXJNYXBSb3RhdGlvblJlZ2lvbkNzUmVxEhsKBm1v", + "dGlvbhgMIAEoCzILLk1vdGlvbkluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl", + "cnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MotionInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EnterMapRotationRegionCsReq), global::EggLink.DanhengServer.Proto.EnterMapRotationRegionCsReq.Parser, new[]{ "Motion" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnterMapRotationRegionCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnterMapRotationRegionCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EnterMapRotationRegionCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterMapRotationRegionCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterMapRotationRegionCsReq(EnterMapRotationRegionCsReq other) : this() { + motion_ = other.motion_ != null ? other.motion_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterMapRotationRegionCsReq Clone() { + return new EnterMapRotationRegionCsReq(this); + } + + /// Field number for the "motion" field. + public const int MotionFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.MotionInfo motion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MotionInfo Motion { + get { return motion_; } + set { + motion_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnterMapRotationRegionCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnterMapRotationRegionCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(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 (motion_ != null) 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 (motion_ != null) { + output.WriteRawTag(98); + output.WriteMessage(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 (motion_ != null) { + output.WriteRawTag(98); + output.WriteMessage(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 (motion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Motion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnterMapRotationRegionCsReq other) { + if (other == null) { + return; + } + if (other.motion_ != null) { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + Motion.MergeFrom(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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 98: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 98: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EnterMapRotationRegionScRsp.cs b/Common/Proto/EnterMapRotationRegionScRsp.cs new file mode 100644 index 00000000..6a87a218 --- /dev/null +++ b/Common/Proto/EnterMapRotationRegionScRsp.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnterMapRotationRegionScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EnterMapRotationRegionScRsp.proto + public static partial class EnterMapRotationRegionScRspReflection { + + #region Descriptor + /// File descriptor for EnterMapRotationRegionScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnterMapRotationRegionScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFFbnRlck1hcFJvdGF0aW9uUmVnaW9uU2NSc3AucHJvdG8aEE1vdGlvbklu", + "Zm8ucHJvdG8iZwobRW50ZXJNYXBSb3RhdGlvblJlZ2lvblNjUnNwEhsKBm1v", + "dGlvbhgKIAEoCzILLk1vdGlvbkluZm8SDwoHcmV0Y29kZRgFIAEoDRIaChJj", + "bGllbnRfcG9zX3ZlcnNpb24YASABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl", + "cnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MotionInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EnterMapRotationRegionScRsp), global::EggLink.DanhengServer.Proto.EnterMapRotationRegionScRsp.Parser, new[]{ "Motion", "Retcode", "ClientPosVersion" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnterMapRotationRegionScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnterMapRotationRegionScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EnterMapRotationRegionScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterMapRotationRegionScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterMapRotationRegionScRsp(EnterMapRotationRegionScRsp other) : this() { + motion_ = other.motion_ != null ? other.motion_.Clone() : null; + retcode_ = other.retcode_; + clientPosVersion_ = other.clientPosVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterMapRotationRegionScRsp Clone() { + return new EnterMapRotationRegionScRsp(this); + } + + /// Field number for the "motion" field. + public const int MotionFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.MotionInfo motion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MotionInfo Motion { + get { return motion_; } + set { + motion_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 5; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "client_pos_version" field. + public const int ClientPosVersionFieldNumber = 1; + private uint clientPosVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClientPosVersion { + get { return clientPosVersion_; } + set { + clientPosVersion_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnterMapRotationRegionScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnterMapRotationRegionScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Motion, other.Motion)) return false; + if (Retcode != other.Retcode) return false; + if (ClientPosVersion != other.ClientPosVersion) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (motion_ != null) hash ^= Motion.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (ClientPosVersion != 0) hash ^= ClientPosVersion.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ClientPosVersion != 0) { + output.WriteRawTag(8); + output.WriteUInt32(ClientPosVersion); + } + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (motion_ != null) { + output.WriteRawTag(82); + output.WriteMessage(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 (ClientPosVersion != 0) { + output.WriteRawTag(8); + output.WriteUInt32(ClientPosVersion); + } + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (motion_ != null) { + output.WriteRawTag(82); + output.WriteMessage(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 (motion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Motion); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (ClientPosVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClientPosVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnterMapRotationRegionScRsp other) { + if (other == null) { + return; + } + if (other.motion_ != null) { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + Motion.MergeFrom(other.Motion); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.ClientPosVersion != 0) { + ClientPosVersion = other.ClientPosVersion; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ClientPosVersion = input.ReadUInt32(); + break; + } + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 82: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ClientPosVersion = input.ReadUInt32(); + break; + } + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 82: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EnterRogueMapRoomCsReq.cs b/Common/Proto/EnterRogueMapRoomCsReq.cs new file mode 100644 index 00000000..2b1f18db --- /dev/null +++ b/Common/Proto/EnterRogueMapRoomCsReq.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnterRogueMapRoomCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EnterRogueMapRoomCsReq.proto + public static partial class EnterRogueMapRoomCsReqReflection { + + #region Descriptor + /// File descriptor for EnterRogueMapRoomCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnterRogueMapRoomCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxFbnRlclJvZ3VlTWFwUm9vbUNzUmVxLnByb3RvIjoKFkVudGVyUm9ndWVN", + "YXBSb29tQ3NSZXESDwoHcm9vbV9pZBgCIAEoDRIPCgdzaXRlX2lkGAUgASgN", + "Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EnterRogueMapRoomCsReq), global::EggLink.DanhengServer.Proto.EnterRogueMapRoomCsReq.Parser, new[]{ "RoomId", "SiteId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnterRogueMapRoomCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnterRogueMapRoomCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EnterRogueMapRoomCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterRogueMapRoomCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterRogueMapRoomCsReq(EnterRogueMapRoomCsReq other) : this() { + roomId_ = other.roomId_; + siteId_ = other.siteId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterRogueMapRoomCsReq Clone() { + return new EnterRogueMapRoomCsReq(this); + } + + /// Field number for the "room_id" field. + public const int RoomIdFieldNumber = 2; + private uint roomId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RoomId { + get { return roomId_; } + set { + roomId_ = value; + } + } + + /// Field number for the "site_id" field. + public const int SiteIdFieldNumber = 5; + private uint siteId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SiteId { + get { return siteId_; } + set { + siteId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnterRogueMapRoomCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnterRogueMapRoomCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomId != other.RoomId) return false; + if (SiteId != other.SiteId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RoomId != 0) hash ^= RoomId.GetHashCode(); + if (SiteId != 0) hash ^= SiteId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RoomId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(RoomId); + } + if (SiteId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(SiteId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RoomId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(RoomId); + } + if (SiteId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(SiteId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RoomId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoomId); + } + if (SiteId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SiteId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnterRogueMapRoomCsReq other) { + if (other == null) { + return; + } + if (other.RoomId != 0) { + RoomId = other.RoomId; + } + if (other.SiteId != 0) { + SiteId = other.SiteId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + RoomId = input.ReadUInt32(); + break; + } + case 40: { + SiteId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + RoomId = input.ReadUInt32(); + break; + } + case 40: { + SiteId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EnterRogueMapRoomScRsp.cs b/Common/Proto/EnterRogueMapRoomScRsp.cs new file mode 100644 index 00000000..088c7655 --- /dev/null +++ b/Common/Proto/EnterRogueMapRoomScRsp.cs @@ -0,0 +1,365 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnterRogueMapRoomScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EnterRogueMapRoomScRsp.proto + public static partial class EnterRogueMapRoomScRspReflection { + + #region Descriptor + /// File descriptor for EnterRogueMapRoomScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnterRogueMapRoomScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxFbnRlclJvZ3VlTWFwUm9vbVNjUnNwLnByb3RvGhBMaW5ldXBJbmZvLnBy", + "b3RvGg9TY2VuZUluZm8ucHJvdG8idgoWRW50ZXJSb2d1ZU1hcFJvb21TY1Jz", + "cBIbCgZsaW5ldXAYBCABKAsyCy5MaW5ldXBJbmZvEhMKC2N1cl9zaXRlX2lk", + "GAIgASgNEg8KB3JldGNvZGUYBSABKA0SGQoFc2NlbmUYByABKAsyCi5TY2Vu", + "ZUluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.LineupInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EnterRogueMapRoomScRsp), global::EggLink.DanhengServer.Proto.EnterRogueMapRoomScRsp.Parser, new[]{ "Lineup", "CurSiteId", "Retcode", "Scene" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnterRogueMapRoomScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnterRogueMapRoomScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EnterRogueMapRoomScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterRogueMapRoomScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterRogueMapRoomScRsp(EnterRogueMapRoomScRsp other) : this() { + lineup_ = other.lineup_ != null ? other.lineup_.Clone() : null; + curSiteId_ = other.curSiteId_; + retcode_ = other.retcode_; + scene_ = other.scene_ != null ? other.scene_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterRogueMapRoomScRsp Clone() { + return new EnterRogueMapRoomScRsp(this); + } + + /// Field number for the "lineup" field. + public const int LineupFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.LineupInfo lineup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.LineupInfo Lineup { + get { return lineup_; } + set { + lineup_ = value; + } + } + + /// Field number for the "cur_site_id" field. + public const int CurSiteIdFieldNumber = 2; + private uint curSiteId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurSiteId { + get { return curSiteId_; } + set { + curSiteId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 5; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "scene" field. + public const int SceneFieldNumber = 7; + private global::EggLink.DanhengServer.Proto.SceneInfo scene_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneInfo Scene { + get { return scene_; } + set { + scene_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnterRogueMapRoomScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnterRogueMapRoomScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Lineup, other.Lineup)) return false; + if (CurSiteId != other.CurSiteId) return false; + if (Retcode != other.Retcode) return false; + if (!object.Equals(Scene, other.Scene)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (lineup_ != null) hash ^= Lineup.GetHashCode(); + if (CurSiteId != 0) hash ^= CurSiteId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (scene_ != null) hash ^= Scene.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CurSiteId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(CurSiteId); + } + if (lineup_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Lineup); + } + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (scene_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Scene); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CurSiteId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(CurSiteId); + } + if (lineup_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Lineup); + } + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (scene_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Scene); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (lineup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lineup); + } + if (CurSiteId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurSiteId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (scene_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scene); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnterRogueMapRoomScRsp other) { + if (other == null) { + return; + } + if (other.lineup_ != null) { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + Lineup.MergeFrom(other.Lineup); + } + if (other.CurSiteId != 0) { + CurSiteId = other.CurSiteId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.scene_ != null) { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + Scene.MergeFrom(other.Scene); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + CurSiteId = input.ReadUInt32(); + break; + } + case 34: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 58: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + CurSiteId = input.ReadUInt32(); + break; + } + case 34: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 58: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EnterSceneByServerScNotify.cs b/Common/Proto/EnterSceneByServerScNotify.cs new file mode 100644 index 00000000..fa70a4db --- /dev/null +++ b/Common/Proto/EnterSceneByServerScNotify.cs @@ -0,0 +1,329 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnterSceneByServerScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EnterSceneByServerScNotify.proto + public static partial class EnterSceneByServerScNotifyReflection { + + #region Descriptor + /// File descriptor for EnterSceneByServerScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnterSceneByServerScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBFbnRlclNjZW5lQnlTZXJ2ZXJTY05vdGlmeS5wcm90bxoQTGluZXVwSW5m", + "by5wcm90bxoWRW50ZXJTY2VuZVJlYXNvbi5wcm90bxoPU2NlbmVJbmZvLnBy", + "b3RvIncKGkVudGVyU2NlbmVCeVNlcnZlclNjTm90aWZ5EhsKBmxpbmV1cBgG", + "IAEoCzILLkxpbmV1cEluZm8SIQoGcmVhc29uGAogASgOMhEuRW50ZXJTY2Vu", + "ZVJlYXNvbhIZCgVzY2VuZRgFIAEoCzIKLlNjZW5lSW5mb0IeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.LineupInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.EnterSceneReasonReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EnterSceneByServerScNotify), global::EggLink.DanhengServer.Proto.EnterSceneByServerScNotify.Parser, new[]{ "Lineup", "Reason", "Scene" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnterSceneByServerScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnterSceneByServerScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EnterSceneByServerScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterSceneByServerScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterSceneByServerScNotify(EnterSceneByServerScNotify other) : this() { + lineup_ = other.lineup_ != null ? other.lineup_.Clone() : null; + reason_ = other.reason_; + scene_ = other.scene_ != null ? other.scene_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterSceneByServerScNotify Clone() { + return new EnterSceneByServerScNotify(this); + } + + /// Field number for the "lineup" field. + public const int LineupFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.LineupInfo lineup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.LineupInfo Lineup { + get { return lineup_; } + set { + lineup_ = value; + } + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.EnterSceneReason reason_ = global::EggLink.DanhengServer.Proto.EnterSceneReason.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.EnterSceneReason Reason { + get { return reason_; } + set { + reason_ = value; + } + } + + /// Field number for the "scene" field. + public const int SceneFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.SceneInfo scene_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneInfo Scene { + get { return scene_; } + set { + scene_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnterSceneByServerScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnterSceneByServerScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Lineup, other.Lineup)) return false; + if (Reason != other.Reason) return false; + if (!object.Equals(Scene, other.Scene)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (lineup_ != null) hash ^= Lineup.GetHashCode(); + if (Reason != global::EggLink.DanhengServer.Proto.EnterSceneReason.None) hash ^= Reason.GetHashCode(); + if (scene_ != null) hash ^= Scene.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (scene_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Scene); + } + if (lineup_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Lineup); + } + if (Reason != global::EggLink.DanhengServer.Proto.EnterSceneReason.None) { + output.WriteRawTag(80); + output.WriteEnum((int) Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (scene_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Scene); + } + if (lineup_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Lineup); + } + if (Reason != global::EggLink.DanhengServer.Proto.EnterSceneReason.None) { + output.WriteRawTag(80); + output.WriteEnum((int) Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (lineup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lineup); + } + if (Reason != global::EggLink.DanhengServer.Proto.EnterSceneReason.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason); + } + if (scene_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scene); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnterSceneByServerScNotify other) { + if (other == null) { + return; + } + if (other.lineup_ != null) { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + Lineup.MergeFrom(other.Lineup); + } + if (other.Reason != global::EggLink.DanhengServer.Proto.EnterSceneReason.None) { + Reason = other.Reason; + } + if (other.scene_ != null) { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + Scene.MergeFrom(other.Scene); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + case 50: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 80: { + Reason = (global::EggLink.DanhengServer.Proto.EnterSceneReason) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + case 50: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 80: { + Reason = (global::EggLink.DanhengServer.Proto.EnterSceneReason) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EnterSceneCsReq.cs b/Common/Proto/EnterSceneCsReq.cs new file mode 100644 index 00000000..99866413 --- /dev/null +++ b/Common/Proto/EnterSceneCsReq.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnterSceneCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EnterSceneCsReq.proto + public static partial class EnterSceneCsReqReflection { + + #region Descriptor + /// File descriptor for EnterSceneCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnterSceneCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVFbnRlclNjZW5lQ3NSZXEucHJvdG8iOAoPRW50ZXJTY2VuZUNzUmVxEhMK", + "C3RlbGVwb3J0X2lkGA4gASgNEhAKCGVudHJ5X2lkGAEgASgNQh6qAhtFZ2dM", + "aW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EnterSceneCsReq), global::EggLink.DanhengServer.Proto.EnterSceneCsReq.Parser, new[]{ "TeleportId", "EntryId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnterSceneCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnterSceneCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EnterSceneCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterSceneCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterSceneCsReq(EnterSceneCsReq other) : this() { + teleportId_ = other.teleportId_; + entryId_ = other.entryId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnterSceneCsReq Clone() { + return new EnterSceneCsReq(this); + } + + /// Field number for the "teleport_id" field. + public const int TeleportIdFieldNumber = 14; + private uint teleportId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TeleportId { + get { return teleportId_; } + set { + teleportId_ = value; + } + } + + /// Field number for the "entry_id" field. + public const int EntryIdFieldNumber = 1; + private uint entryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntryId { + get { return entryId_; } + set { + entryId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnterSceneCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnterSceneCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TeleportId != other.TeleportId) return false; + if (EntryId != other.EntryId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TeleportId != 0) hash ^= TeleportId.GetHashCode(); + if (EntryId != 0) hash ^= EntryId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntryId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(EntryId); + } + if (TeleportId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(TeleportId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EntryId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(EntryId); + } + if (TeleportId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(TeleportId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TeleportId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TeleportId); + } + if (EntryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntryId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnterSceneCsReq other) { + if (other == null) { + return; + } + if (other.TeleportId != 0) { + TeleportId = other.TeleportId; + } + if (other.EntryId != 0) { + EntryId = other.EntryId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + EntryId = input.ReadUInt32(); + break; + } + case 112: { + TeleportId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + EntryId = input.ReadUInt32(); + break; + } + case 112: { + TeleportId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EnterSceneReason.cs b/Common/Proto/EnterSceneReason.cs new file mode 100644 index 00000000..d1a8c4f8 --- /dev/null +++ b/Common/Proto/EnterSceneReason.cs @@ -0,0 +1,50 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnterSceneReason.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EnterSceneReason.proto + public static partial class EnterSceneReasonReflection { + + #region Descriptor + /// File descriptor for EnterSceneReason.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnterSceneReasonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZFbnRlclNjZW5lUmVhc29uLnByb3RvKn8KEEVudGVyU2NlbmVSZWFzb24S", + "GwoXRU5URVJfU0NFTkVfUkVBU09OX05PTkUQABIoCiRFTlRFUl9TQ0VORV9S", + "RUFTT05fQ0hBTExFTkdFX1RJTUVPVVQQARIkCiBFTlRFUl9TQ0VORV9SRUFT", + "T05fUk9HVUVfVElNRU9VVBACQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu", + "UHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.EnterSceneReason), }, null, null)); + } + #endregion + + } + #region Enums + public enum EnterSceneReason { + [pbr::OriginalName("ENTER_SCENE_REASON_NONE")] None = 0, + [pbr::OriginalName("ENTER_SCENE_REASON_CHALLENGE_TIMEOUT")] ChallengeTimeout = 1, + [pbr::OriginalName("ENTER_SCENE_REASON_ROGUE_TIMEOUT")] RogueTimeout = 2, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EnteredSceneInfo.cs b/Common/Proto/EnteredSceneInfo.cs new file mode 100644 index 00000000..64edd3d4 --- /dev/null +++ b/Common/Proto/EnteredSceneInfo.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EnteredSceneInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EnteredSceneInfo.proto + public static partial class EnteredSceneInfoReflection { + + #region Descriptor + /// File descriptor for EnteredSceneInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EnteredSceneInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZFbnRlcmVkU2NlbmVJbmZvLnByb3RvIjYKEEVudGVyZWRTY2VuZUluZm8S", + "EAoIZmxvb3JfaWQYBCABKA0SEAoIcGxhbmVfaWQYDCABKA1CHqoCG0VnZ0xp", + "bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EnteredSceneInfo), global::EggLink.DanhengServer.Proto.EnteredSceneInfo.Parser, new[]{ "FloorId", "PlaneId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnteredSceneInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnteredSceneInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EnteredSceneInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnteredSceneInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnteredSceneInfo(EnteredSceneInfo other) : this() { + floorId_ = other.floorId_; + planeId_ = other.planeId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnteredSceneInfo Clone() { + return new EnteredSceneInfo(this); + } + + /// Field number for the "floor_id" field. + public const int FloorIdFieldNumber = 4; + 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 "plane_id" field. + public const int PlaneIdFieldNumber = 12; + private uint planeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PlaneId { + get { return planeId_; } + set { + planeId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnteredSceneInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnteredSceneInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FloorId != other.FloorId) return false; + if (PlaneId != other.PlaneId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FloorId != 0) hash ^= FloorId.GetHashCode(); + if (PlaneId != 0) hash ^= PlaneId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FloorId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(FloorId); + } + if (PlaneId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(PlaneId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FloorId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(FloorId); + } + if (PlaneId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(PlaneId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FloorId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FloorId); + } + if (PlaneId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlaneId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnteredSceneInfo other) { + if (other == null) { + return; + } + if (other.FloorId != 0) { + FloorId = other.FloorId; + } + if (other.PlaneId != 0) { + PlaneId = other.PlaneId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + FloorId = input.ReadUInt32(); + break; + } + case 96: { + PlaneId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + FloorId = input.ReadUInt32(); + break; + } + case 96: { + PlaneId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EntityBuffChangeInfo.cs b/Common/Proto/EntityBuffChangeInfo.cs new file mode 100644 index 00000000..f9731355 --- /dev/null +++ b/Common/Proto/EntityBuffChangeInfo.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EntityBuffChangeInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EntityBuffChangeInfo.proto + public static partial class EntityBuffChangeInfoReflection { + + #region Descriptor + /// File descriptor for EntityBuffChangeInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EntityBuffChangeInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpFbnRpdHlCdWZmQ2hhbmdlSW5mby5wcm90bxoOQnVmZkluZm8ucHJvdG8i", + "YwoURW50aXR5QnVmZkNoYW5nZUluZm8SIAoNYWRkX2J1ZmZfaW5mbxgFIAEo", + "CzIJLkJ1ZmZJbmZvEhYKDnJlbW92ZV9idWZmX2lkGAwgASgNEhEKCWVudGl0", + "eV9pZBgHIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BuffInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EntityBuffChangeInfo), global::EggLink.DanhengServer.Proto.EntityBuffChangeInfo.Parser, new[]{ "AddBuffInfo", "RemoveBuffId", "EntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EntityBuffChangeInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EntityBuffChangeInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EntityBuffChangeInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntityBuffChangeInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntityBuffChangeInfo(EntityBuffChangeInfo other) : this() { + addBuffInfo_ = other.addBuffInfo_ != null ? other.addBuffInfo_.Clone() : null; + removeBuffId_ = other.removeBuffId_; + entityId_ = other.entityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntityBuffChangeInfo Clone() { + return new EntityBuffChangeInfo(this); + } + + /// Field number for the "add_buff_info" field. + public const int AddBuffInfoFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.BuffInfo addBuffInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.BuffInfo AddBuffInfo { + get { return addBuffInfo_; } + set { + addBuffInfo_ = value; + } + } + + /// Field number for the "remove_buff_id" field. + public const int RemoveBuffIdFieldNumber = 12; + private uint removeBuffId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RemoveBuffId { + get { return removeBuffId_; } + set { + removeBuffId_ = value; + } + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 7; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EntityBuffChangeInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EntityBuffChangeInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AddBuffInfo, other.AddBuffInfo)) return false; + if (RemoveBuffId != other.RemoveBuffId) return false; + if (EntityId != other.EntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (addBuffInfo_ != null) hash ^= AddBuffInfo.GetHashCode(); + if (RemoveBuffId != 0) hash ^= RemoveBuffId.GetHashCode(); + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (addBuffInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(AddBuffInfo); + } + if (EntityId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(EntityId); + } + if (RemoveBuffId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RemoveBuffId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (addBuffInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(AddBuffInfo); + } + if (EntityId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(EntityId); + } + if (RemoveBuffId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RemoveBuffId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (addBuffInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AddBuffInfo); + } + if (RemoveBuffId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RemoveBuffId); + } + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EntityBuffChangeInfo other) { + if (other == null) { + return; + } + if (other.addBuffInfo_ != null) { + if (addBuffInfo_ == null) { + AddBuffInfo = new global::EggLink.DanhengServer.Proto.BuffInfo(); + } + AddBuffInfo.MergeFrom(other.AddBuffInfo); + } + if (other.RemoveBuffId != 0) { + RemoveBuffId = other.RemoveBuffId; + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + if (addBuffInfo_ == null) { + AddBuffInfo = new global::EggLink.DanhengServer.Proto.BuffInfo(); + } + input.ReadMessage(AddBuffInfo); + break; + } + case 56: { + EntityId = input.ReadUInt32(); + break; + } + case 96: { + RemoveBuffId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + if (addBuffInfo_ == null) { + AddBuffInfo = new global::EggLink.DanhengServer.Proto.BuffInfo(); + } + input.ReadMessage(AddBuffInfo); + break; + } + case 56: { + EntityId = input.ReadUInt32(); + break; + } + case 96: { + RemoveBuffId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EntityBuffInfo.cs b/Common/Proto/EntityBuffInfo.cs new file mode 100644 index 00000000..6aa696e3 --- /dev/null +++ b/Common/Proto/EntityBuffInfo.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EntityBuffInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EntityBuffInfo.proto + public static partial class EntityBuffInfoReflection { + + #region Descriptor + /// File descriptor for EntityBuffInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EntityBuffInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRFbnRpdHlCdWZmSW5mby5wcm90bxoOQnVmZkluZm8ucHJvdG8iQQoORW50", + "aXR5QnVmZkluZm8SHAoJYnVmZl9saXN0GAggAygLMgkuQnVmZkluZm8SEQoJ", + "ZW50aXR5X2lkGAsgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJv", + "dG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BuffInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EntityBuffInfo), global::EggLink.DanhengServer.Proto.EntityBuffInfo.Parser, new[]{ "BuffList", "EntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EntityBuffInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EntityBuffInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EntityBuffInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntityBuffInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntityBuffInfo(EntityBuffInfo other) : this() { + buffList_ = other.buffList_.Clone(); + entityId_ = other.entityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntityBuffInfo Clone() { + return new EntityBuffInfo(this); + } + + /// Field number for the "buff_list" field. + public const int BuffListFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_buffList_codec + = pb::FieldCodec.ForMessage(66, global::EggLink.DanhengServer.Proto.BuffInfo.Parser); + private readonly pbc::RepeatedField buffList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffList { + get { return buffList_; } + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 11; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EntityBuffInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EntityBuffInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!buffList_.Equals(other.buffList_)) return false; + if (EntityId != other.EntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= buffList_.GetHashCode(); + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + buffList_.WriteTo(output, _repeated_buffList_codec); + if (EntityId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + buffList_.WriteTo(ref output, _repeated_buffList_codec); + if (EntityId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += buffList_.CalculateSize(_repeated_buffList_codec); + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EntityBuffInfo other) { + if (other == null) { + return; + } + buffList_.Add(other.buffList_); + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + buffList_.AddEntriesFrom(input, _repeated_buffList_codec); + break; + } + case 88: { + EntityId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: { + buffList_.AddEntriesFrom(ref input, _repeated_buffList_codec); + break; + } + case 88: { + EntityId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EntityMotion.cs b/Common/Proto/EntityMotion.cs new file mode 100644 index 00000000..7b7044c6 --- /dev/null +++ b/Common/Proto/EntityMotion.cs @@ -0,0 +1,318 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EntityMotion.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EntityMotion.proto + public static partial class EntityMotionReflection { + + #region Descriptor + /// File descriptor for EntityMotion.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EntityMotionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJFbnRpdHlNb3Rpb24ucHJvdG8aEE1vdGlvbkluZm8ucHJvdG8iUQoMRW50", + "aXR5TW90aW9uEhsKBm1vdGlvbhgDIAEoCzILLk1vdGlvbkluZm8SEQoJZW50", + "aXR5X2lkGAsgASgNEhEKCW1hcF9sYXllchgNIAEoDUIeqgIbRWdnTGluay5E", + "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MotionInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EntityMotion), global::EggLink.DanhengServer.Proto.EntityMotion.Parser, new[]{ "Motion", "EntityId", "MapLayer" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EntityMotion : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EntityMotion()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EntityMotionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntityMotion() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntityMotion(EntityMotion other) : this() { + motion_ = other.motion_ != null ? other.motion_.Clone() : null; + entityId_ = other.entityId_; + mapLayer_ = other.mapLayer_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EntityMotion Clone() { + return new EntityMotion(this); + } + + /// Field number for the "motion" field. + public const int MotionFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.MotionInfo motion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MotionInfo Motion { + get { return motion_; } + set { + motion_ = value; + } + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 11; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + /// Field number for the "map_layer" field. + public const int MapLayerFieldNumber = 13; + private uint mapLayer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MapLayer { + get { return mapLayer_; } + set { + mapLayer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EntityMotion); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EntityMotion other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Motion, other.Motion)) return false; + if (EntityId != other.EntityId) return false; + if (MapLayer != other.MapLayer) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (motion_ != null) hash ^= Motion.GetHashCode(); + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (MapLayer != 0) hash ^= MapLayer.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (motion_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Motion); + } + if (EntityId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(EntityId); + } + if (MapLayer != 0) { + output.WriteRawTag(104); + output.WriteUInt32(MapLayer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (motion_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Motion); + } + if (EntityId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(EntityId); + } + if (MapLayer != 0) { + output.WriteRawTag(104); + output.WriteUInt32(MapLayer); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (motion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Motion); + } + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (MapLayer != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MapLayer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EntityMotion other) { + if (other == null) { + return; + } + if (other.motion_ != null) { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + Motion.MergeFrom(other.Motion); + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + if (other.MapLayer != 0) { + MapLayer = other.MapLayer; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + case 88: { + EntityId = input.ReadUInt32(); + break; + } + case 104: { + MapLayer = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + case 88: { + EntityId = input.ReadUInt32(); + break; + } + case 104: { + MapLayer = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/EquipRelic.cs b/Common/Proto/EquipRelic.cs new file mode 100644 index 00000000..00a44233 --- /dev/null +++ b/Common/Proto/EquipRelic.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EquipRelic.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from EquipRelic.proto + public static partial class EquipRelicReflection { + + #region Descriptor + /// File descriptor for EquipRelic.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static EquipRelicReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBFcXVpcFJlbGljLnByb3RvIjMKCkVxdWlwUmVsaWMSDAoEc2xvdBgDIAEo", + "DRIXCg9yZWxpY191bmlxdWVfaWQYBCABKA1CHqoCG0VnZ0xpbmsuRGFuaGVu", + "Z1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EquipRelic), global::EggLink.DanhengServer.Proto.EquipRelic.Parser, new[]{ "Slot", "RelicUniqueId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EquipRelic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EquipRelic()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.EquipRelicReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipRelic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipRelic(EquipRelic other) : this() { + slot_ = other.slot_; + relicUniqueId_ = other.relicUniqueId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EquipRelic Clone() { + return new EquipRelic(this); + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 3; + private uint slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Slot { + get { return slot_; } + set { + slot_ = value; + } + } + + /// Field number for the "relic_unique_id" field. + public const int RelicUniqueIdFieldNumber = 4; + private uint relicUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RelicUniqueId { + get { return relicUniqueId_; } + set { + relicUniqueId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EquipRelic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EquipRelic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Slot != other.Slot) return false; + if (RelicUniqueId != other.RelicUniqueId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Slot != 0) hash ^= Slot.GetHashCode(); + if (RelicUniqueId != 0) hash ^= RelicUniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Slot != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Slot); + } + if (RelicUniqueId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(RelicUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Slot != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Slot); + } + if (RelicUniqueId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(RelicUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Slot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); + } + if (RelicUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelicUniqueId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EquipRelic other) { + if (other == null) { + return; + } + if (other.Slot != 0) { + Slot = other.Slot; + } + if (other.RelicUniqueId != 0) { + RelicUniqueId = other.RelicUniqueId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Slot = input.ReadUInt32(); + break; + } + case 32: { + RelicUniqueId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Slot = input.ReadUInt32(); + break; + } + case 32: { + RelicUniqueId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Equipment.cs b/Common/Proto/Equipment.cs new file mode 100644 index 00000000..10f7bdc4 --- /dev/null +++ b/Common/Proto/Equipment.cs @@ -0,0 +1,495 @@ +// +// 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 EggLink.DanhengServer.Proto { + + /// 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( + "Cg9FcXVpcG1lbnQucHJvdG8ilgEKCUVxdWlwbWVudBILCgNleHAYBiABKA0S", + "EQoJcHJvbW90aW9uGAwgASgNEg0KBWxldmVsGA4gASgNEhYKDmJhc2VfYXZh", + "dGFyX2lkGA8gASgNEhQKDGlzX3Byb3RlY3RlZBgFIAEoCBIMCgRyYW5rGAQg", + "ASgNEhEKCXVuaXF1ZV9pZBgLIAEoDRILCgN0aWQYAyABKA1CHqoCG0VnZ0xp", + "bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Equipment), global::EggLink.DanhengServer.Proto.Equipment.Parser, new[]{ "Exp", "Promotion", "Level", "BaseAvatarId", "IsProtected", "Rank", "UniqueId", "Tid" }, 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::EggLink.DanhengServer.Proto.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() { + exp_ = other.exp_; + promotion_ = other.promotion_; + level_ = other.level_; + baseAvatarId_ = other.baseAvatarId_; + isProtected_ = other.isProtected_; + rank_ = other.rank_; + uniqueId_ = other.uniqueId_; + tid_ = other.tid_; + _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 "exp" field. + public const int ExpFieldNumber = 6; + private uint exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + /// Field number for the "promotion" field. + public const int PromotionFieldNumber = 12; + private uint promotion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Promotion { + get { return promotion_; } + set { + promotion_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 14; + 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 "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 15; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + /// Field number for the "is_protected" field. + public const int IsProtectedFieldNumber = 5; + private bool isProtected_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsProtected { + get { return isProtected_; } + set { + isProtected_ = value; + } + } + + /// Field number for the "rank" field. + public const int RankFieldNumber = 4; + private uint rank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Rank { + get { return rank_; } + set { + rank_ = value; + } + } + + /// Field number for the "unique_id" field. + public const int UniqueIdFieldNumber = 11; + private uint uniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UniqueId { + get { return uniqueId_; } + set { + uniqueId_ = value; + } + } + + /// Field number for the "tid" field. + public const int TidFieldNumber = 3; + private uint tid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Tid { + get { return tid_; } + set { + tid_ = 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 (Exp != other.Exp) return false; + if (Promotion != other.Promotion) return false; + if (Level != other.Level) return false; + if (BaseAvatarId != other.BaseAvatarId) return false; + if (IsProtected != other.IsProtected) return false; + if (Rank != other.Rank) return false; + if (UniqueId != other.UniqueId) return false; + if (Tid != other.Tid) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (Promotion != 0) hash ^= Promotion.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (IsProtected != false) hash ^= IsProtected.GetHashCode(); + if (Rank != 0) hash ^= Rank.GetHashCode(); + if (UniqueId != 0) hash ^= UniqueId.GetHashCode(); + if (Tid != 0) hash ^= Tid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Tid != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Tid); + } + if (Rank != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Rank); + } + if (IsProtected != false) { + output.WriteRawTag(40); + output.WriteBool(IsProtected); + } + if (Exp != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Exp); + } + if (UniqueId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(UniqueId); + } + if (Promotion != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Promotion); + } + if (Level != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Level); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Tid != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Tid); + } + if (Rank != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Rank); + } + if (IsProtected != false) { + output.WriteRawTag(40); + output.WriteBool(IsProtected); + } + if (Exp != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Exp); + } + if (UniqueId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(UniqueId); + } + if (Promotion != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Promotion); + } + if (Level != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Level); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Exp); + } + if (Promotion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Promotion); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (IsProtected != false) { + size += 1 + 1; + } + if (Rank != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rank); + } + if (UniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UniqueId); + } + if (Tid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Tid); + } + 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.Exp != 0) { + Exp = other.Exp; + } + if (other.Promotion != 0) { + Promotion = other.Promotion; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + if (other.IsProtected != false) { + IsProtected = other.IsProtected; + } + if (other.Rank != 0) { + Rank = other.Rank; + } + if (other.UniqueId != 0) { + UniqueId = other.UniqueId; + } + if (other.Tid != 0) { + Tid = other.Tid; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Tid = input.ReadUInt32(); + break; + } + case 32: { + Rank = input.ReadUInt32(); + break; + } + case 40: { + IsProtected = input.ReadBool(); + break; + } + case 48: { + Exp = input.ReadUInt32(); + break; + } + case 88: { + UniqueId = input.ReadUInt32(); + break; + } + case 96: { + Promotion = input.ReadUInt32(); + break; + } + case 112: { + Level = input.ReadUInt32(); + break; + } + case 120: { + BaseAvatarId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Tid = input.ReadUInt32(); + break; + } + case 32: { + Rank = input.ReadUInt32(); + break; + } + case 40: { + IsProtected = input.ReadBool(); + break; + } + case 48: { + Exp = input.ReadUInt32(); + break; + } + case 88: { + UniqueId = input.ReadUInt32(); + break; + } + case 96: { + Promotion = input.ReadUInt32(); + break; + } + case 112: { + Level = input.ReadUInt32(); + break; + } + case 120: { + BaseAvatarId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ExchangeGachaCeilingCsReq.cs b/Common/Proto/ExchangeGachaCeilingCsReq.cs new file mode 100644 index 00000000..4240bd38 --- /dev/null +++ b/Common/Proto/ExchangeGachaCeilingCsReq.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ExchangeGachaCeilingCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ExchangeGachaCeilingCsReq.proto + public static partial class ExchangeGachaCeilingCsReqReflection { + + #region Descriptor + /// File descriptor for ExchangeGachaCeilingCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ExchangeGachaCeilingCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9FeGNoYW5nZUdhY2hhQ2VpbGluZ0NzUmVxLnByb3RvIkIKGUV4Y2hhbmdl", + "R2FjaGFDZWlsaW5nQ3NSZXESEgoKZ2FjaGFfdHlwZRgFIAEoDRIRCglhdmF0", + "YXJfaWQYASABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ExchangeGachaCeilingCsReq), global::EggLink.DanhengServer.Proto.ExchangeGachaCeilingCsReq.Parser, new[]{ "GachaType", "AvatarId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExchangeGachaCeilingCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExchangeGachaCeilingCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ExchangeGachaCeilingCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExchangeGachaCeilingCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExchangeGachaCeilingCsReq(ExchangeGachaCeilingCsReq other) : this() { + gachaType_ = other.gachaType_; + avatarId_ = other.avatarId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExchangeGachaCeilingCsReq Clone() { + return new ExchangeGachaCeilingCsReq(this); + } + + /// Field number for the "gacha_type" field. + public const int GachaTypeFieldNumber = 5; + private uint gachaType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GachaType { + get { return gachaType_; } + set { + gachaType_ = value; + } + } + + /// Field number for the "avatar_id" field. + public const int AvatarIdFieldNumber = 1; + private uint avatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AvatarId { + get { return avatarId_; } + set { + avatarId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExchangeGachaCeilingCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExchangeGachaCeilingCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GachaType != other.GachaType) return false; + if (AvatarId != other.AvatarId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GachaType != 0) hash ^= GachaType.GetHashCode(); + if (AvatarId != 0) hash ^= AvatarId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AvatarId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(AvatarId); + } + if (GachaType != 0) { + output.WriteRawTag(40); + output.WriteUInt32(GachaType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AvatarId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(AvatarId); + } + if (GachaType != 0) { + output.WriteRawTag(40); + output.WriteUInt32(GachaType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GachaType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GachaType); + } + if (AvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AvatarId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExchangeGachaCeilingCsReq other) { + if (other == null) { + return; + } + if (other.GachaType != 0) { + GachaType = other.GachaType; + } + if (other.AvatarId != 0) { + AvatarId = other.AvatarId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + AvatarId = input.ReadUInt32(); + break; + } + case 40: { + GachaType = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + AvatarId = input.ReadUInt32(); + break; + } + case 40: { + GachaType = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ExchangeGachaCeilingScRsp.cs b/Common/Proto/ExchangeGachaCeilingScRsp.cs new file mode 100644 index 00000000..41c58687 --- /dev/null +++ b/Common/Proto/ExchangeGachaCeilingScRsp.cs @@ -0,0 +1,404 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ExchangeGachaCeilingScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ExchangeGachaCeilingScRsp.proto + public static partial class ExchangeGachaCeilingScRspReflection { + + #region Descriptor + /// File descriptor for ExchangeGachaCeilingScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ExchangeGachaCeilingScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9FeGNoYW5nZUdhY2hhQ2VpbGluZ1NjUnNwLnByb3RvGg5JdGVtTGlzdC5w", + "cm90bxoSR2FjaGFDZWlsaW5nLnByb3RvIqABChlFeGNoYW5nZUdhY2hhQ2Vp", + "bGluZ1NjUnNwEiQKDWdhY2hhX2NlaWxpbmcYBSABKAsyDS5HYWNoYUNlaWxp", + "bmcSEQoJYXZhdGFyX2lkGAQgASgNEhIKCmdhY2hhX3R5cGUYCiABKA0SDwoH", + "cmV0Y29kZRgDIAEoDRIlChJ0cmFuc2Zlcl9pdGVtX2xpc3QYAiABKAsyCS5J", + "dGVtTGlzdEIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, global::EggLink.DanhengServer.Proto.GachaCeilingReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ExchangeGachaCeilingScRsp), global::EggLink.DanhengServer.Proto.ExchangeGachaCeilingScRsp.Parser, new[]{ "GachaCeiling", "AvatarId", "GachaType", "Retcode", "TransferItemList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExchangeGachaCeilingScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExchangeGachaCeilingScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ExchangeGachaCeilingScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExchangeGachaCeilingScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExchangeGachaCeilingScRsp(ExchangeGachaCeilingScRsp other) : this() { + gachaCeiling_ = other.gachaCeiling_ != null ? other.gachaCeiling_.Clone() : null; + avatarId_ = other.avatarId_; + gachaType_ = other.gachaType_; + retcode_ = other.retcode_; + transferItemList_ = other.transferItemList_ != null ? other.transferItemList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExchangeGachaCeilingScRsp Clone() { + return new ExchangeGachaCeilingScRsp(this); + } + + /// Field number for the "gacha_ceiling" field. + public const int GachaCeilingFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.GachaCeiling gachaCeiling_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.GachaCeiling GachaCeiling { + get { return gachaCeiling_; } + set { + gachaCeiling_ = value; + } + } + + /// Field number for the "avatar_id" field. + public const int AvatarIdFieldNumber = 4; + private uint avatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AvatarId { + get { return avatarId_; } + set { + avatarId_ = value; + } + } + + /// Field number for the "gacha_type" field. + public const int GachaTypeFieldNumber = 10; + private uint gachaType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GachaType { + get { return gachaType_; } + set { + gachaType_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "transfer_item_list" field. + public const int TransferItemListFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.ItemList transferItemList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList TransferItemList { + get { return transferItemList_; } + set { + transferItemList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExchangeGachaCeilingScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExchangeGachaCeilingScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GachaCeiling, other.GachaCeiling)) return false; + if (AvatarId != other.AvatarId) return false; + if (GachaType != other.GachaType) return false; + if (Retcode != other.Retcode) return false; + if (!object.Equals(TransferItemList, other.TransferItemList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (gachaCeiling_ != null) hash ^= GachaCeiling.GetHashCode(); + if (AvatarId != 0) hash ^= AvatarId.GetHashCode(); + if (GachaType != 0) hash ^= GachaType.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (transferItemList_ != null) hash ^= TransferItemList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (transferItemList_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TransferItemList); + } + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (AvatarId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(AvatarId); + } + if (gachaCeiling_ != null) { + output.WriteRawTag(42); + output.WriteMessage(GachaCeiling); + } + if (GachaType != 0) { + output.WriteRawTag(80); + output.WriteUInt32(GachaType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (transferItemList_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TransferItemList); + } + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (AvatarId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(AvatarId); + } + if (gachaCeiling_ != null) { + output.WriteRawTag(42); + output.WriteMessage(GachaCeiling); + } + if (GachaType != 0) { + output.WriteRawTag(80); + output.WriteUInt32(GachaType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (gachaCeiling_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GachaCeiling); + } + if (AvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AvatarId); + } + if (GachaType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GachaType); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (transferItemList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransferItemList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExchangeGachaCeilingScRsp other) { + if (other == null) { + return; + } + if (other.gachaCeiling_ != null) { + if (gachaCeiling_ == null) { + GachaCeiling = new global::EggLink.DanhengServer.Proto.GachaCeiling(); + } + GachaCeiling.MergeFrom(other.GachaCeiling); + } + if (other.AvatarId != 0) { + AvatarId = other.AvatarId; + } + if (other.GachaType != 0) { + GachaType = other.GachaType; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.transferItemList_ != null) { + if (transferItemList_ == null) { + TransferItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + TransferItemList.MergeFrom(other.TransferItemList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (transferItemList_ == null) { + TransferItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(TransferItemList); + break; + } + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 32: { + AvatarId = input.ReadUInt32(); + break; + } + case 42: { + if (gachaCeiling_ == null) { + GachaCeiling = new global::EggLink.DanhengServer.Proto.GachaCeiling(); + } + input.ReadMessage(GachaCeiling); + break; + } + case 80: { + GachaType = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (transferItemList_ == null) { + TransferItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(TransferItemList); + break; + } + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 32: { + AvatarId = input.ReadUInt32(); + break; + } + case 42: { + if (gachaCeiling_ == null) { + GachaCeiling = new global::EggLink.DanhengServer.Proto.GachaCeiling(); + } + input.ReadMessage(GachaCeiling); + break; + } + case 80: { + GachaType = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ExchangeHcoinCsReq.cs b/Common/Proto/ExchangeHcoinCsReq.cs new file mode 100644 index 00000000..adfba52d --- /dev/null +++ b/Common/Proto/ExchangeHcoinCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ExchangeHcoinCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ExchangeHcoinCsReq.proto + public static partial class ExchangeHcoinCsReqReflection { + + #region Descriptor + /// File descriptor for ExchangeHcoinCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ExchangeHcoinCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhFeGNoYW5nZUhjb2luQ3NSZXEucHJvdG8iIQoSRXhjaGFuZ2VIY29pbkNz", + "UmVxEgsKA251bRgKIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlBy", + "b3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ExchangeHcoinCsReq), global::EggLink.DanhengServer.Proto.ExchangeHcoinCsReq.Parser, new[]{ "Num" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExchangeHcoinCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExchangeHcoinCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ExchangeHcoinCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExchangeHcoinCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExchangeHcoinCsReq(ExchangeHcoinCsReq other) : this() { + num_ = other.num_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExchangeHcoinCsReq Clone() { + return new ExchangeHcoinCsReq(this); + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 10; + private uint num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Num { + get { return num_; } + set { + num_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExchangeHcoinCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExchangeHcoinCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (Num != 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 (Num != 0) { + output.WriteRawTag(80); + output.WriteUInt32(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 (Num != 0) { + output.WriteRawTag(80); + output.WriteUInt32(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 (Num != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Num); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExchangeHcoinCsReq other) { + if (other == null) { + return; + } + if (other.Num != 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 80: { + Num = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 80: { + Num = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ExchangeHcoinScRsp.cs b/Common/Proto/ExchangeHcoinScRsp.cs new file mode 100644 index 00000000..cee47b46 --- /dev/null +++ b/Common/Proto/ExchangeHcoinScRsp.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ExchangeHcoinScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ExchangeHcoinScRsp.proto + public static partial class ExchangeHcoinScRspReflection { + + #region Descriptor + /// File descriptor for ExchangeHcoinScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ExchangeHcoinScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhFeGNoYW5nZUhjb2luU2NSc3AucHJvdG8iMgoSRXhjaGFuZ2VIY29pblNj", + "UnNwEg8KB3JldGNvZGUYDiABKA0SCwoDbnVtGAEgASgNQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ExchangeHcoinScRsp), global::EggLink.DanhengServer.Proto.ExchangeHcoinScRsp.Parser, new[]{ "Retcode", "Num" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExchangeHcoinScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExchangeHcoinScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ExchangeHcoinScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExchangeHcoinScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExchangeHcoinScRsp(ExchangeHcoinScRsp other) : this() { + retcode_ = other.retcode_; + num_ = other.num_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExchangeHcoinScRsp Clone() { + return new ExchangeHcoinScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 14; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 1; + private uint num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Num { + get { return num_; } + set { + num_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExchangeHcoinScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExchangeHcoinScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) 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 (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (Num != 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 (Num != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Num); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Num != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Num); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (Num != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Num); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExchangeHcoinScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.Num != 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Num = input.ReadUInt32(); + break; + } + case 112: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Num = input.ReadUInt32(); + break; + } + case 112: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ExpUpEquipmentCsReq.cs b/Common/Proto/ExpUpEquipmentCsReq.cs new file mode 100644 index 00000000..013bbbca --- /dev/null +++ b/Common/Proto/ExpUpEquipmentCsReq.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ExpUpEquipmentCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ExpUpEquipmentCsReq.proto + public static partial class ExpUpEquipmentCsReqReflection { + + #region Descriptor + /// File descriptor for ExpUpEquipmentCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ExpUpEquipmentCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlFeHBVcEVxdWlwbWVudENzUmVxLnByb3RvGhJJdGVtQ29zdExpc3QucHJv", + "dG8iWQoTRXhwVXBFcXVpcG1lbnRDc1JlcRIbChNlcXVpcG1lbnRfdW5pcXVl", + "X2lkGAIgASgNEiUKDml0ZW1fY29zdF9saXN0GAEgASgLMg0uSXRlbUNvc3RM", + "aXN0Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ExpUpEquipmentCsReq), global::EggLink.DanhengServer.Proto.ExpUpEquipmentCsReq.Parser, new[]{ "EquipmentUniqueId", "ItemCostList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExpUpEquipmentCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExpUpEquipmentCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ExpUpEquipmentCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpUpEquipmentCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpUpEquipmentCsReq(ExpUpEquipmentCsReq other) : this() { + equipmentUniqueId_ = other.equipmentUniqueId_; + itemCostList_ = other.itemCostList_ != null ? other.itemCostList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpUpEquipmentCsReq Clone() { + return new ExpUpEquipmentCsReq(this); + } + + /// Field number for the "equipment_unique_id" field. + public const int EquipmentUniqueIdFieldNumber = 2; + private uint equipmentUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EquipmentUniqueId { + get { return equipmentUniqueId_; } + set { + equipmentUniqueId_ = value; + } + } + + /// Field number for the "item_cost_list" field. + public const int ItemCostListFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.ItemCostList itemCostList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList ItemCostList { + get { return itemCostList_; } + set { + itemCostList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExpUpEquipmentCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExpUpEquipmentCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EquipmentUniqueId != other.EquipmentUniqueId) return false; + if (!object.Equals(ItemCostList, other.ItemCostList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EquipmentUniqueId != 0) hash ^= EquipmentUniqueId.GetHashCode(); + if (itemCostList_ != null) hash ^= ItemCostList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (itemCostList_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ItemCostList); + } + if (EquipmentUniqueId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(EquipmentUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (itemCostList_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ItemCostList); + } + if (EquipmentUniqueId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(EquipmentUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EquipmentUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EquipmentUniqueId); + } + if (itemCostList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemCostList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExpUpEquipmentCsReq other) { + if (other == null) { + return; + } + if (other.EquipmentUniqueId != 0) { + EquipmentUniqueId = other.EquipmentUniqueId; + } + if (other.itemCostList_ != null) { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + ItemCostList.MergeFrom(other.ItemCostList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + case 16: { + EquipmentUniqueId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + case 16: { + EquipmentUniqueId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ExpUpEquipmentScRsp.cs b/Common/Proto/ExpUpEquipmentScRsp.cs new file mode 100644 index 00000000..11724429 --- /dev/null +++ b/Common/Proto/ExpUpEquipmentScRsp.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ExpUpEquipmentScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ExpUpEquipmentScRsp.proto + public static partial class ExpUpEquipmentScRspReflection { + + #region Descriptor + /// File descriptor for ExpUpEquipmentScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ExpUpEquipmentScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlFeHBVcEVxdWlwbWVudFNjUnNwLnByb3RvGg5QaWxlSXRlbS5wcm90byJL", + "ChNFeHBVcEVxdWlwbWVudFNjUnNwEiMKEHJldHVybl9pdGVtX2xpc3QYDCAD", + "KAsyCS5QaWxlSXRlbRIPCgdyZXRjb2RlGAggASgNQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PileItemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ExpUpEquipmentScRsp), global::EggLink.DanhengServer.Proto.ExpUpEquipmentScRsp.Parser, new[]{ "ReturnItemList", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExpUpEquipmentScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExpUpEquipmentScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ExpUpEquipmentScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpUpEquipmentScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpUpEquipmentScRsp(ExpUpEquipmentScRsp other) : this() { + returnItemList_ = other.returnItemList_.Clone(); + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpUpEquipmentScRsp Clone() { + return new ExpUpEquipmentScRsp(this); + } + + /// Field number for the "return_item_list" field. + public const int ReturnItemListFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_returnItemList_codec + = pb::FieldCodec.ForMessage(98, global::EggLink.DanhengServer.Proto.PileItem.Parser); + private readonly pbc::RepeatedField returnItemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ReturnItemList { + get { return returnItemList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 8; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExpUpEquipmentScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExpUpEquipmentScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!returnItemList_.Equals(other.returnItemList_)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= returnItemList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + returnItemList_.WriteTo(output, _repeated_returnItemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + returnItemList_.WriteTo(ref output, _repeated_returnItemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += returnItemList_.CalculateSize(_repeated_returnItemList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExpUpEquipmentScRsp other) { + if (other == null) { + return; + } + returnItemList_.Add(other.returnItemList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + Retcode = input.ReadUInt32(); + break; + } + case 98: { + returnItemList_.AddEntriesFrom(input, _repeated_returnItemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + Retcode = input.ReadUInt32(); + break; + } + case 98: { + returnItemList_.AddEntriesFrom(ref input, _repeated_returnItemList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ExpUpRelicCsReq.cs b/Common/Proto/ExpUpRelicCsReq.cs new file mode 100644 index 00000000..c57028bf --- /dev/null +++ b/Common/Proto/ExpUpRelicCsReq.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ExpUpRelicCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ExpUpRelicCsReq.proto + public static partial class ExpUpRelicCsReqReflection { + + #region Descriptor + /// File descriptor for ExpUpRelicCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ExpUpRelicCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVFeHBVcFJlbGljQ3NSZXEucHJvdG8aEkl0ZW1Db3N0TGlzdC5wcm90byJR", + "Cg9FeHBVcFJlbGljQ3NSZXESFwoPcmVsaWNfdW5pcXVlX2lkGAcgASgNEiUK", + "Dml0ZW1fY29zdF9saXN0GAsgASgLMg0uSXRlbUNvc3RMaXN0Qh6qAhtFZ2dM", + "aW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ExpUpRelicCsReq), global::EggLink.DanhengServer.Proto.ExpUpRelicCsReq.Parser, new[]{ "RelicUniqueId", "ItemCostList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExpUpRelicCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExpUpRelicCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ExpUpRelicCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpUpRelicCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpUpRelicCsReq(ExpUpRelicCsReq other) : this() { + relicUniqueId_ = other.relicUniqueId_; + itemCostList_ = other.itemCostList_ != null ? other.itemCostList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpUpRelicCsReq Clone() { + return new ExpUpRelicCsReq(this); + } + + /// Field number for the "relic_unique_id" field. + public const int RelicUniqueIdFieldNumber = 7; + private uint relicUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RelicUniqueId { + get { return relicUniqueId_; } + set { + relicUniqueId_ = value; + } + } + + /// Field number for the "item_cost_list" field. + public const int ItemCostListFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.ItemCostList itemCostList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList ItemCostList { + get { return itemCostList_; } + set { + itemCostList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExpUpRelicCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExpUpRelicCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RelicUniqueId != other.RelicUniqueId) return false; + if (!object.Equals(ItemCostList, other.ItemCostList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RelicUniqueId != 0) hash ^= RelicUniqueId.GetHashCode(); + if (itemCostList_ != null) hash ^= ItemCostList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RelicUniqueId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(RelicUniqueId); + } + if (itemCostList_ != null) { + output.WriteRawTag(90); + output.WriteMessage(ItemCostList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RelicUniqueId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(RelicUniqueId); + } + if (itemCostList_ != null) { + output.WriteRawTag(90); + output.WriteMessage(ItemCostList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RelicUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelicUniqueId); + } + if (itemCostList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemCostList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExpUpRelicCsReq other) { + if (other == null) { + return; + } + if (other.RelicUniqueId != 0) { + RelicUniqueId = other.RelicUniqueId; + } + if (other.itemCostList_ != null) { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + ItemCostList.MergeFrom(other.ItemCostList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 56: { + RelicUniqueId = input.ReadUInt32(); + break; + } + case 90: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 56: { + RelicUniqueId = input.ReadUInt32(); + break; + } + case 90: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ExpUpRelicScRsp.cs b/Common/Proto/ExpUpRelicScRsp.cs new file mode 100644 index 00000000..3b3ba6e3 --- /dev/null +++ b/Common/Proto/ExpUpRelicScRsp.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ExpUpRelicScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ExpUpRelicScRsp.proto + public static partial class ExpUpRelicScRspReflection { + + #region Descriptor + /// File descriptor for ExpUpRelicScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ExpUpRelicScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVFeHBVcFJlbGljU2NSc3AucHJvdG8aDlBpbGVJdGVtLnByb3RvIkcKD0V4", + "cFVwUmVsaWNTY1JzcBIPCgdyZXRjb2RlGAEgASgNEiMKEHJldHVybl9pdGVt", + "X2xpc3QYDiADKAsyCS5QaWxlSXRlbUIeqgIbRWdnTGluay5EYW5oZW5nU2Vy", + "dmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PileItemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ExpUpRelicScRsp), global::EggLink.DanhengServer.Proto.ExpUpRelicScRsp.Parser, new[]{ "Retcode", "ReturnItemList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ExpUpRelicScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExpUpRelicScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ExpUpRelicScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpUpRelicScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpUpRelicScRsp(ExpUpRelicScRsp other) : this() { + retcode_ = other.retcode_; + returnItemList_ = other.returnItemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpUpRelicScRsp Clone() { + return new ExpUpRelicScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "return_item_list" field. + public const int ReturnItemListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_returnItemList_codec + = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.PileItem.Parser); + private readonly pbc::RepeatedField returnItemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ReturnItemList { + get { return returnItemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExpUpRelicScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExpUpRelicScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if(!returnItemList_.Equals(other.returnItemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= returnItemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + returnItemList_.WriteTo(output, _repeated_returnItemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + returnItemList_.WriteTo(ref output, _repeated_returnItemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += returnItemList_.CalculateSize(_repeated_returnItemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExpUpRelicScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + returnItemList_.Add(other.returnItemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 114: { + returnItemList_.AddEntriesFrom(input, _repeated_returnItemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 114: { + returnItemList_.AddEntriesFrom(ref input, _repeated_returnItemList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ExtraLineupType.cs b/Common/Proto/ExtraLineupType.cs new file mode 100644 index 00000000..e5320f21 --- /dev/null +++ b/Common/Proto/ExtraLineupType.cs @@ -0,0 +1,64 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ExtraLineupType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ExtraLineupType.proto + public static partial class ExtraLineupTypeReflection { + + #region Descriptor + /// File descriptor for ExtraLineupType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ExtraLineupTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVFeHRyYUxpbmV1cFR5cGUucHJvdG8qvQIKD0V4dHJhTGluZXVwVHlwZRIP", + "CgtMSU5FVVBfTk9ORRAAEhQKEExJTkVVUF9DSEFMTEVOR0UQARIQCgxMSU5F", + "VVBfUk9HVUUQAhIWChJMSU5FVVBfQ0hBTExFTkdFXzIQAxIWChJMSU5FVVBf", + "Q0hBTExFTkdFXzMQBBIaChZMSU5FVVBfUk9HVUVfQ0hBTExFTkdFEAUSFgoS", + "TElORVVQX1NUQUdFX1RSSUFMEAYSFgoSTElORVVQX1JPR1VFX1RSSUFMEAcS", + "EwoPTElORVVQX0FDVElWSVRZEAgSFgoSTElORVVQX0JPWElOR19DTFVCEAkS", + "GwoXTElORVVQX1RSRUFTVVJFX0RVTkdFT04QCxIWChJMSU5FVVBfQ0hFU1Nf", + "Uk9HVUUQDBITCg9MSU5FVVBfSEVMSU9CVVMQDUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.ExtraLineupType), }, null, null)); + } + #endregion + + } + #region Enums + public enum ExtraLineupType { + [pbr::OriginalName("LINEUP_NONE")] LineupNone = 0, + [pbr::OriginalName("LINEUP_CHALLENGE")] LineupChallenge = 1, + [pbr::OriginalName("LINEUP_ROGUE")] LineupRogue = 2, + [pbr::OriginalName("LINEUP_CHALLENGE_2")] LineupChallenge2 = 3, + [pbr::OriginalName("LINEUP_CHALLENGE_3")] LineupChallenge3 = 4, + [pbr::OriginalName("LINEUP_ROGUE_CHALLENGE")] LineupRogueChallenge = 5, + [pbr::OriginalName("LINEUP_STAGE_TRIAL")] LineupStageTrial = 6, + [pbr::OriginalName("LINEUP_ROGUE_TRIAL")] LineupRogueTrial = 7, + [pbr::OriginalName("LINEUP_ACTIVITY")] LineupActivity = 8, + [pbr::OriginalName("LINEUP_BOXING_CLUB")] LineupBoxingClub = 9, + [pbr::OriginalName("LINEUP_TREASURE_DUNGEON")] LineupTreasureDungeon = 11, + [pbr::OriginalName("LINEUP_CHESS_ROGUE")] LineupChessRogue = 12, + [pbr::OriginalName("LINEUP_HELIOBUS")] LineupHeliobus = 13, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/FarmStageGachaInfo.cs b/Common/Proto/FarmStageGachaInfo.cs new file mode 100644 index 00000000..e75ecc49 --- /dev/null +++ b/Common/Proto/FarmStageGachaInfo.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FarmStageGachaInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from FarmStageGachaInfo.proto + public static partial class FarmStageGachaInfoReflection { + + #region Descriptor + /// File descriptor for FarmStageGachaInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FarmStageGachaInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhGYXJtU3RhZ2VHYWNoYUluZm8ucHJvdG8iTAoSRmFybVN0YWdlR2FjaGFJ", + "bmZvEhAKCGVuZF90aW1lGA4gASgDEhAKCGdhY2hhX2lkGAwgASgNEhIKCmJl", + "Z2luX3RpbWUYDSABKANCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90", + "b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.FarmStageGachaInfo), global::EggLink.DanhengServer.Proto.FarmStageGachaInfo.Parser, new[]{ "EndTime", "GachaId", "BeginTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FarmStageGachaInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FarmStageGachaInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.FarmStageGachaInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FarmStageGachaInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FarmStageGachaInfo(FarmStageGachaInfo other) : this() { + endTime_ = other.endTime_; + gachaId_ = other.gachaId_; + beginTime_ = other.beginTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FarmStageGachaInfo Clone() { + return new FarmStageGachaInfo(this); + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 14; + private long endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "gacha_id" field. + public const int GachaIdFieldNumber = 12; + private uint gachaId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GachaId { + get { return gachaId_; } + set { + gachaId_ = value; + } + } + + /// Field number for the "begin_time" field. + public const int BeginTimeFieldNumber = 13; + private long beginTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BeginTime { + get { return beginTime_; } + set { + beginTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FarmStageGachaInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FarmStageGachaInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EndTime != other.EndTime) return false; + if (GachaId != other.GachaId) return false; + if (BeginTime != other.BeginTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EndTime != 0L) hash ^= EndTime.GetHashCode(); + if (GachaId != 0) hash ^= GachaId.GetHashCode(); + if (BeginTime != 0L) hash ^= BeginTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (GachaId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(GachaId); + } + if (BeginTime != 0L) { + output.WriteRawTag(104); + output.WriteInt64(BeginTime); + } + if (EndTime != 0L) { + output.WriteRawTag(112); + output.WriteInt64(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 (GachaId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(GachaId); + } + if (BeginTime != 0L) { + output.WriteRawTag(104); + output.WriteInt64(BeginTime); + } + if (EndTime != 0L) { + output.WriteRawTag(112); + output.WriteInt64(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 (EndTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime); + } + if (GachaId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GachaId); + } + if (BeginTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FarmStageGachaInfo other) { + if (other == null) { + return; + } + if (other.EndTime != 0L) { + EndTime = other.EndTime; + } + if (other.GachaId != 0) { + GachaId = other.GachaId; + } + if (other.BeginTime != 0L) { + BeginTime = other.BeginTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 96: { + GachaId = input.ReadUInt32(); + break; + } + case 104: { + BeginTime = input.ReadInt64(); + break; + } + case 112: { + EndTime = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 96: { + GachaId = input.ReadUInt32(); + break; + } + case 104: { + BeginTime = input.ReadInt64(); + break; + } + case 112: { + EndTime = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/FinishRogueDialogueGroupCsReq.cs b/Common/Proto/FinishRogueDialogueGroupCsReq.cs new file mode 100644 index 00000000..7875841c --- /dev/null +++ b/Common/Proto/FinishRogueDialogueGroupCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FinishRogueDialogueGroupCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from FinishRogueDialogueGroupCsReq.proto + public static partial class FinishRogueDialogueGroupCsReqReflection { + + #region Descriptor + /// File descriptor for FinishRogueDialogueGroupCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FinishRogueDialogueGroupCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiNGaW5pc2hSb2d1ZURpYWxvZ3VlR3JvdXBDc1JlcS5wcm90byIyCh1GaW5p", + "c2hSb2d1ZURpYWxvZ3VlR3JvdXBDc1JlcRIRCgllbnRpdHlfaWQYBSABKA1C", + "HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.FinishRogueDialogueGroupCsReq), global::EggLink.DanhengServer.Proto.FinishRogueDialogueGroupCsReq.Parser, new[]{ "EntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FinishRogueDialogueGroupCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FinishRogueDialogueGroupCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.FinishRogueDialogueGroupCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FinishRogueDialogueGroupCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FinishRogueDialogueGroupCsReq(FinishRogueDialogueGroupCsReq other) : this() { + entityId_ = other.entityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FinishRogueDialogueGroupCsReq Clone() { + return new FinishRogueDialogueGroupCsReq(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 5; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FinishRogueDialogueGroupCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FinishRogueDialogueGroupCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntityId != other.EntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntityId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EntityId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FinishRogueDialogueGroupCsReq other) { + if (other == null) { + return; + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + EntityId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + EntityId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/FinishTalkMissionCsReq.cs b/Common/Proto/FinishTalkMissionCsReq.cs new file mode 100644 index 00000000..921b116b --- /dev/null +++ b/Common/Proto/FinishTalkMissionCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FinishTalkMissionCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from FinishTalkMissionCsReq.proto + public static partial class FinishTalkMissionCsReqReflection { + + #region Descriptor + /// File descriptor for FinishTalkMissionCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FinishTalkMissionCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxGaW5pc2hUYWxrTWlzc2lvbkNzUmVxLnByb3RvIikKFkZpbmlzaFRhbGtN", + "aXNzaW9uQ3NSZXESDwoHbWlzc2lvbhgHIAEoCUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.FinishTalkMissionCsReq), global::EggLink.DanhengServer.Proto.FinishTalkMissionCsReq.Parser, new[]{ "Mission" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FinishTalkMissionCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FinishTalkMissionCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.FinishTalkMissionCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FinishTalkMissionCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FinishTalkMissionCsReq(FinishTalkMissionCsReq other) : this() { + mission_ = other.mission_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FinishTalkMissionCsReq Clone() { + return new FinishTalkMissionCsReq(this); + } + + /// Field number for the "mission" field. + public const int MissionFieldNumber = 7; + private string mission_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Mission { + get { return mission_; } + set { + mission_ = 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 FinishTalkMissionCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FinishTalkMissionCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Mission != other.Mission) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Mission.Length != 0) hash ^= Mission.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Mission.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Mission); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Mission.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Mission); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Mission.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Mission); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FinishTalkMissionCsReq other) { + if (other == null) { + return; + } + if (other.Mission.Length != 0) { + Mission = other.Mission; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + Mission = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + Mission = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/FinishTalkMissionScRsp.cs b/Common/Proto/FinishTalkMissionScRsp.cs new file mode 100644 index 00000000..0ca40356 --- /dev/null +++ b/Common/Proto/FinishTalkMissionScRsp.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FinishTalkMissionScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from FinishTalkMissionScRsp.proto + public static partial class FinishTalkMissionScRspReflection { + + #region Descriptor + /// File descriptor for FinishTalkMissionScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FinishTalkMissionScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxGaW5pc2hUYWxrTWlzc2lvblNjUnNwLnByb3RvIikKFkZpbmlzaFRhbGtN", + "aXNzaW9uU2NSc3ASDwoHbWlzc2lvbhgKIAEoCUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.FinishTalkMissionScRsp), global::EggLink.DanhengServer.Proto.FinishTalkMissionScRsp.Parser, new[]{ "Mission" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FinishTalkMissionScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FinishTalkMissionScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.FinishTalkMissionScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FinishTalkMissionScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FinishTalkMissionScRsp(FinishTalkMissionScRsp other) : this() { + mission_ = other.mission_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FinishTalkMissionScRsp Clone() { + return new FinishTalkMissionScRsp(this); + } + + /// Field number for the "mission" field. + public const int MissionFieldNumber = 10; + private string mission_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Mission { + get { return mission_; } + set { + mission_ = 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 FinishTalkMissionScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FinishTalkMissionScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Mission != other.Mission) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Mission.Length != 0) hash ^= Mission.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Mission.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Mission); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Mission.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Mission); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Mission.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Mission); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FinishTalkMissionScRsp other) { + if (other == null) { + return; + } + if (other.Mission.Length != 0) { + Mission = other.Mission; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 82: { + Mission = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 82: { + Mission = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/FirstNpcTalkInfo.cs b/Common/Proto/FirstNpcTalkInfo.cs new file mode 100644 index 00000000..431c2a88 --- /dev/null +++ b/Common/Proto/FirstNpcTalkInfo.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FirstNpcTalkInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from FirstNpcTalkInfo.proto + public static partial class FirstNpcTalkInfoReflection { + + #region Descriptor + /// File descriptor for FirstNpcTalkInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FirstNpcTalkInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZGaXJzdE5wY1RhbGtJbmZvLnByb3RvIjcKEEZpcnN0TnBjVGFsa0luZm8S", + "EwoLS0dDSk1CQkZCSUEYByABKAgSDgoGbnBjX2lkGAMgASgNQh6qAhtFZ2dM", + "aW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.FirstNpcTalkInfo), global::EggLink.DanhengServer.Proto.FirstNpcTalkInfo.Parser, new[]{ "KGCJMBBFBIA", "NpcId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FirstNpcTalkInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FirstNpcTalkInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.FirstNpcTalkInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FirstNpcTalkInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FirstNpcTalkInfo(FirstNpcTalkInfo other) : this() { + kGCJMBBFBIA_ = other.kGCJMBBFBIA_; + npcId_ = other.npcId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FirstNpcTalkInfo Clone() { + return new FirstNpcTalkInfo(this); + } + + /// Field number for the "KGCJMBBFBIA" field. + public const int KGCJMBBFBIAFieldNumber = 7; + private bool kGCJMBBFBIA_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool KGCJMBBFBIA { + get { return kGCJMBBFBIA_; } + set { + kGCJMBBFBIA_ = value; + } + } + + /// Field number for the "npc_id" field. + public const int NpcIdFieldNumber = 3; + private uint npcId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 FirstNpcTalkInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FirstNpcTalkInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KGCJMBBFBIA != other.KGCJMBBFBIA) 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 (KGCJMBBFBIA != false) hash ^= KGCJMBBFBIA.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 (NpcId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(NpcId); + } + if (KGCJMBBFBIA != false) { + output.WriteRawTag(56); + output.WriteBool(KGCJMBBFBIA); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (NpcId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(NpcId); + } + if (KGCJMBBFBIA != false) { + output.WriteRawTag(56); + output.WriteBool(KGCJMBBFBIA); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (KGCJMBBFBIA != false) { + size += 1 + 1; + } + if (NpcId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NpcId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FirstNpcTalkInfo other) { + if (other == null) { + return; + } + if (other.KGCJMBBFBIA != false) { + KGCJMBBFBIA = other.KGCJMBBFBIA; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + NpcId = input.ReadUInt32(); + break; + } + case 56: { + KGCJMBBFBIA = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + NpcId = input.ReadUInt32(); + break; + } + case 56: { + KGCJMBBFBIA = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/FriendApplyInfo.cs b/Common/Proto/FriendApplyInfo.cs new file mode 100644 index 00000000..9e3b7282 --- /dev/null +++ b/Common/Proto/FriendApplyInfo.cs @@ -0,0 +1,243 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FriendApplyInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from FriendApplyInfo.proto + public static partial class FriendApplyInfoReflection { + + #region Descriptor + /// File descriptor for FriendApplyInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FriendApplyInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVGcmllbmRBcHBseUluZm8ucHJvdG8aEFNpbXBsZUluZm8ucHJvdG8iMwoP", + "RnJpZW5kQXBwbHlJbmZvEiAKC3NpbXBsZV9pbmZvGA4gASgLMgsuU2ltcGxl", + "SW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SimpleInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.FriendApplyInfo), global::EggLink.DanhengServer.Proto.FriendApplyInfo.Parser, new[]{ "SimpleInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FriendApplyInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FriendApplyInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.FriendApplyInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FriendApplyInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FriendApplyInfo(FriendApplyInfo other) : this() { + simpleInfo_ = other.simpleInfo_ != null ? other.simpleInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FriendApplyInfo Clone() { + return new FriendApplyInfo(this); + } + + /// Field number for the "simple_info" field. + public const int SimpleInfoFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.SimpleInfo simpleInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SimpleInfo SimpleInfo { + get { return simpleInfo_; } + set { + simpleInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FriendApplyInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FriendApplyInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SimpleInfo, other.SimpleInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (simpleInfo_ != null) hash ^= SimpleInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (simpleInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(SimpleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (simpleInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(SimpleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (simpleInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SimpleInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FriendApplyInfo other) { + if (other == null) { + return; + } + if (other.simpleInfo_ != null) { + if (simpleInfo_ == null) { + SimpleInfo = new global::EggLink.DanhengServer.Proto.SimpleInfo(); + } + SimpleInfo.MergeFrom(other.SimpleInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + if (simpleInfo_ == null) { + SimpleInfo = new global::EggLink.DanhengServer.Proto.SimpleInfo(); + } + input.ReadMessage(SimpleInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + if (simpleInfo_ == null) { + SimpleInfo = new global::EggLink.DanhengServer.Proto.SimpleInfo(); + } + input.ReadMessage(SimpleInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/FriendApplySource.cs b/Common/Proto/FriendApplySource.cs new file mode 100644 index 00000000..b7f322a3 --- /dev/null +++ b/Common/Proto/FriendApplySource.cs @@ -0,0 +1,55 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FriendApplySource.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from FriendApplySource.proto + public static partial class FriendApplySourceReflection { + + #region Descriptor + /// File descriptor for FriendApplySource.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FriendApplySourceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdGcmllbmRBcHBseVNvdXJjZS5wcm90byriAQoRRnJpZW5kQXBwbHlTb3Vy", + "Y2USHAoYRlJJRU5EX0FQUExZX1NPVVJDRV9OT05FEAASHgoaRlJJRU5EX0FQ", + "UExZX1NPVVJDRV9TRUFSQ0gQARIhCh1GUklFTkRfQVBQTFlfU09VUkNFX1JF", + "Q09NTUVORBACEh4KGkZSSUVORF9BUFBMWV9TT1VSQ0VfQVNTSVNUEAMSKAok", + "RlJJRU5EX0FQUExZX1NPVVJDRV9SRUNPTU1FTkRfQVNTSVNUEAQSIgoeRlJJ", + "RU5EX0FQUExZX1NPVVJDRV9QU05fRlJJRU5EEAVCHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.FriendApplySource), }, null, null)); + } + #endregion + + } + #region Enums + public enum FriendApplySource { + [pbr::OriginalName("FRIEND_APPLY_SOURCE_NONE")] None = 0, + [pbr::OriginalName("FRIEND_APPLY_SOURCE_SEARCH")] Search = 1, + [pbr::OriginalName("FRIEND_APPLY_SOURCE_RECOMMEND")] Recommend = 2, + [pbr::OriginalName("FRIEND_APPLY_SOURCE_ASSIST")] Assist = 3, + [pbr::OriginalName("FRIEND_APPLY_SOURCE_RECOMMEND_ASSIST")] RecommendAssist = 4, + [pbr::OriginalName("FRIEND_APPLY_SOURCE_PSN_FRIEND")] PsnFriend = 5, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/FriendListInfo.cs b/Common/Proto/FriendListInfo.cs new file mode 100644 index 00000000..889705d3 --- /dev/null +++ b/Common/Proto/FriendListInfo.cs @@ -0,0 +1,243 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FriendListInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from FriendListInfo.proto + public static partial class FriendListInfoReflection { + + #region Descriptor + /// File descriptor for FriendListInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FriendListInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRGcmllbmRMaXN0SW5mby5wcm90bxoQU2ltcGxlSW5mby5wcm90byIyCg5G", + "cmllbmRMaXN0SW5mbxIgCgtzaW1wbGVfaW5mbxgKIAEoCzILLlNpbXBsZUlu", + "Zm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SimpleInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.FriendListInfo), global::EggLink.DanhengServer.Proto.FriendListInfo.Parser, new[]{ "SimpleInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FriendListInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FriendListInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.FriendListInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FriendListInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FriendListInfo(FriendListInfo other) : this() { + simpleInfo_ = other.simpleInfo_ != null ? other.simpleInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FriendListInfo Clone() { + return new FriendListInfo(this); + } + + /// Field number for the "simple_info" field. + public const int SimpleInfoFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.SimpleInfo simpleInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SimpleInfo SimpleInfo { + get { return simpleInfo_; } + set { + simpleInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FriendListInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FriendListInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SimpleInfo, other.SimpleInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (simpleInfo_ != null) hash ^= SimpleInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (simpleInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(SimpleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (simpleInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(SimpleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (simpleInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SimpleInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FriendListInfo other) { + if (other == null) { + return; + } + if (other.simpleInfo_ != null) { + if (simpleInfo_ == null) { + SimpleInfo = new global::EggLink.DanhengServer.Proto.SimpleInfo(); + } + SimpleInfo.MergeFrom(other.SimpleInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 82: { + if (simpleInfo_ == null) { + SimpleInfo = new global::EggLink.DanhengServer.Proto.SimpleInfo(); + } + input.ReadMessage(SimpleInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 82: { + if (simpleInfo_ == null) { + SimpleInfo = new global::EggLink.DanhengServer.Proto.SimpleInfo(); + } + input.ReadMessage(SimpleInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/FriendOnlineStatus.cs b/Common/Proto/FriendOnlineStatus.cs new file mode 100644 index 00000000..a02978d2 --- /dev/null +++ b/Common/Proto/FriendOnlineStatus.cs @@ -0,0 +1,48 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FriendOnlineStatus.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from FriendOnlineStatus.proto + public static partial class FriendOnlineStatusReflection { + + #region Descriptor + /// File descriptor for FriendOnlineStatus.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FriendOnlineStatusReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhGcmllbmRPbmxpbmVTdGF0dXMucHJvdG8qVwoSRnJpZW5kT25saW5lU3Rh", + "dHVzEiAKHEZSSUVORF9PTkxJTkVfU1RBVFVTX09GRkxJTkUQABIfChtGUklF", + "TkRfT05MSU5FX1NUQVRVU19PTkxJTkUQAUIeqgIbRWdnTGluay5EYW5oZW5n", + "U2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.FriendOnlineStatus), }, null, null)); + } + #endregion + + } + #region Enums + public enum FriendOnlineStatus { + [pbr::OriginalName("FRIEND_ONLINE_STATUS_OFFLINE")] Offline = 0, + [pbr::OriginalName("FRIEND_ONLINE_STATUS_ONLINE")] Online = 1, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/FriendRecommendInfo.cs b/Common/Proto/FriendRecommendInfo.cs new file mode 100644 index 00000000..f9f341d3 --- /dev/null +++ b/Common/Proto/FriendRecommendInfo.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FriendRecommendInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from FriendRecommendInfo.proto + public static partial class FriendRecommendInfoReflection { + + #region Descriptor + /// File descriptor for FriendRecommendInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FriendRecommendInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlGcmllbmRSZWNvbW1lbmRJbmZvLnByb3RvGhBTaW1wbGVJbmZvLnByb3Rv", + "IjcKE0ZyaWVuZFJlY29tbWVuZEluZm8SIAoLc2ltcGxlX2luZm8YDyABKAsy", + "Cy5TaW1wbGVJbmZvQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SimpleInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.FriendRecommendInfo), global::EggLink.DanhengServer.Proto.FriendRecommendInfo.Parser, new[]{ "SimpleInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FriendRecommendInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FriendRecommendInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.FriendRecommendInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FriendRecommendInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FriendRecommendInfo(FriendRecommendInfo other) : this() { + simpleInfo_ = other.simpleInfo_ != null ? other.simpleInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FriendRecommendInfo Clone() { + return new FriendRecommendInfo(this); + } + + /// Field number for the "simple_info" field. + public const int SimpleInfoFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.SimpleInfo simpleInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SimpleInfo SimpleInfo { + get { return simpleInfo_; } + set { + simpleInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FriendRecommendInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FriendRecommendInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(SimpleInfo, other.SimpleInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (simpleInfo_ != null) hash ^= SimpleInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (simpleInfo_ != null) { + output.WriteRawTag(122); + output.WriteMessage(SimpleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (simpleInfo_ != null) { + output.WriteRawTag(122); + output.WriteMessage(SimpleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (simpleInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SimpleInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FriendRecommendInfo other) { + if (other == null) { + return; + } + if (other.simpleInfo_ != null) { + if (simpleInfo_ == null) { + SimpleInfo = new global::EggLink.DanhengServer.Proto.SimpleInfo(); + } + SimpleInfo.MergeFrom(other.SimpleInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 122: { + if (simpleInfo_ == null) { + SimpleInfo = new global::EggLink.DanhengServer.Proto.SimpleInfo(); + } + input.ReadMessage(SimpleInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 122: { + if (simpleInfo_ == null) { + SimpleInfo = new global::EggLink.DanhengServer.Proto.SimpleInfo(); + } + input.ReadMessage(SimpleInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GachaCeiling.cs b/Common/Proto/GachaCeiling.cs new file mode 100644 index 00000000..e8642044 --- /dev/null +++ b/Common/Proto/GachaCeiling.cs @@ -0,0 +1,299 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GachaCeiling.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GachaCeiling.proto + public static partial class GachaCeilingReflection { + + #region Descriptor + /// File descriptor for GachaCeiling.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GachaCeilingReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJHYWNoYUNlaWxpbmcucHJvdG8aGEdhY2hhQ2VpbGluZ0F2YXRhci5wcm90", + "byJhCgxHYWNoYUNlaWxpbmcSEgoKaXNfY2xhaW1lZBgDIAEoCBIoCgthdmF0", + "YXJfbGlzdBgBIAMoCzITLkdhY2hhQ2VpbGluZ0F2YXRhchITCgtjZWlsaW5n", + "X251bRgEIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GachaCeilingAvatarReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GachaCeiling), global::EggLink.DanhengServer.Proto.GachaCeiling.Parser, new[]{ "IsClaimed", "AvatarList", "CeilingNum" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GachaCeiling : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GachaCeiling()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GachaCeilingReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaCeiling() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaCeiling(GachaCeiling other) : this() { + isClaimed_ = other.isClaimed_; + avatarList_ = other.avatarList_.Clone(); + ceilingNum_ = other.ceilingNum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaCeiling Clone() { + return new GachaCeiling(this); + } + + /// Field number for the "is_claimed" field. + public const int IsClaimedFieldNumber = 3; + private bool isClaimed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsClaimed { + get { return isClaimed_; } + set { + isClaimed_ = value; + } + } + + /// Field number for the "avatar_list" field. + public const int AvatarListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_avatarList_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.GachaCeilingAvatar.Parser); + private readonly pbc::RepeatedField avatarList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AvatarList { + get { return avatarList_; } + } + + /// Field number for the "ceiling_num" field. + public const int CeilingNumFieldNumber = 4; + private uint ceilingNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CeilingNum { + get { return ceilingNum_; } + set { + ceilingNum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GachaCeiling); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GachaCeiling other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsClaimed != other.IsClaimed) return false; + if(!avatarList_.Equals(other.avatarList_)) return false; + if (CeilingNum != other.CeilingNum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (IsClaimed != false) hash ^= IsClaimed.GetHashCode(); + hash ^= avatarList_.GetHashCode(); + if (CeilingNum != 0) hash ^= CeilingNum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + avatarList_.WriteTo(output, _repeated_avatarList_codec); + if (IsClaimed != false) { + output.WriteRawTag(24); + output.WriteBool(IsClaimed); + } + if (CeilingNum != 0) { + output.WriteRawTag(32); + output.WriteUInt32(CeilingNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + avatarList_.WriteTo(ref output, _repeated_avatarList_codec); + if (IsClaimed != false) { + output.WriteRawTag(24); + output.WriteBool(IsClaimed); + } + if (CeilingNum != 0) { + output.WriteRawTag(32); + output.WriteUInt32(CeilingNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (IsClaimed != false) { + size += 1 + 1; + } + size += avatarList_.CalculateSize(_repeated_avatarList_codec); + if (CeilingNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CeilingNum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GachaCeiling other) { + if (other == null) { + return; + } + if (other.IsClaimed != false) { + IsClaimed = other.IsClaimed; + } + avatarList_.Add(other.avatarList_); + if (other.CeilingNum != 0) { + CeilingNum = other.CeilingNum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + avatarList_.AddEntriesFrom(input, _repeated_avatarList_codec); + break; + } + case 24: { + IsClaimed = input.ReadBool(); + break; + } + case 32: { + CeilingNum = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + avatarList_.AddEntriesFrom(ref input, _repeated_avatarList_codec); + break; + } + case 24: { + IsClaimed = input.ReadBool(); + break; + } + case 32: { + CeilingNum = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GachaCeilingAvatar.cs b/Common/Proto/GachaCeilingAvatar.cs new file mode 100644 index 00000000..8add7688 --- /dev/null +++ b/Common/Proto/GachaCeilingAvatar.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GachaCeilingAvatar.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GachaCeilingAvatar.proto + public static partial class GachaCeilingAvatarReflection { + + #region Descriptor + /// File descriptor for GachaCeilingAvatar.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GachaCeilingAvatarReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhHYWNoYUNlaWxpbmdBdmF0YXIucHJvdG8iPQoSR2FjaGFDZWlsaW5nQXZh", + "dGFyEhQKDHJlcGVhdGVkX2NudBgPIAEoDRIRCglhdmF0YXJfaWQYAiABKA1C", + "HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GachaCeilingAvatar), global::EggLink.DanhengServer.Proto.GachaCeilingAvatar.Parser, new[]{ "RepeatedCnt", "AvatarId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GachaCeilingAvatar : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GachaCeilingAvatar()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GachaCeilingAvatarReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaCeilingAvatar() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaCeilingAvatar(GachaCeilingAvatar other) : this() { + repeatedCnt_ = other.repeatedCnt_; + avatarId_ = other.avatarId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaCeilingAvatar Clone() { + return new GachaCeilingAvatar(this); + } + + /// Field number for the "repeated_cnt" field. + public const int RepeatedCntFieldNumber = 15; + private uint repeatedCnt_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RepeatedCnt { + get { return repeatedCnt_; } + set { + repeatedCnt_ = value; + } + } + + /// Field number for the "avatar_id" field. + public const int AvatarIdFieldNumber = 2; + private uint avatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AvatarId { + get { return avatarId_; } + set { + avatarId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GachaCeilingAvatar); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GachaCeilingAvatar other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RepeatedCnt != other.RepeatedCnt) return false; + if (AvatarId != other.AvatarId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RepeatedCnt != 0) hash ^= RepeatedCnt.GetHashCode(); + if (AvatarId != 0) hash ^= AvatarId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AvatarId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(AvatarId); + } + if (RepeatedCnt != 0) { + output.WriteRawTag(120); + output.WriteUInt32(RepeatedCnt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AvatarId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(AvatarId); + } + if (RepeatedCnt != 0) { + output.WriteRawTag(120); + output.WriteUInt32(RepeatedCnt); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RepeatedCnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RepeatedCnt); + } + if (AvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AvatarId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GachaCeilingAvatar other) { + if (other == null) { + return; + } + if (other.RepeatedCnt != 0) { + RepeatedCnt = other.RepeatedCnt; + } + if (other.AvatarId != 0) { + AvatarId = other.AvatarId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + AvatarId = input.ReadUInt32(); + break; + } + case 120: { + RepeatedCnt = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + AvatarId = input.ReadUInt32(); + break; + } + case 120: { + RepeatedCnt = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GachaInfo.cs b/Common/Proto/GachaInfo.cs new file mode 100644 index 00000000..ecacd4e3 --- /dev/null +++ b/Common/Proto/GachaInfo.cs @@ -0,0 +1,487 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GachaInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GachaInfo.proto + public static partial class GachaInfoReflection { + + #region Descriptor + /// File descriptor for GachaInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GachaInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9HYWNoYUluZm8ucHJvdG8aEkdhY2hhQ2VpbGluZy5wcm90byK1AQoJR2Fj", + "aGFJbmZvEhMKC2hpc3RvcnlfdXJsGAYgASgJEhIKCmRldGFpbF91cmwYAiAB", + "KAkSEgoKYmVnaW5fdGltZRgKIAEoAxIkCg1nYWNoYV9jZWlsaW5nGAkgASgL", + "Mg0uR2FjaGFDZWlsaW5nEhAKCGZlYXR1cmVkGAEgAygNEg8KB3VwX2luZm8Y", + "BSADKA0SEAoIZ2FjaGFfaWQYDSABKA0SEAoIZW5kX3RpbWUYDCABKANCHqoC", + "G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GachaCeilingReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GachaInfo), global::EggLink.DanhengServer.Proto.GachaInfo.Parser, new[]{ "HistoryUrl", "DetailUrl", "BeginTime", "GachaCeiling", "Featured", "UpInfo", "GachaId", "EndTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GachaInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GachaInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GachaInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaInfo(GachaInfo other) : this() { + historyUrl_ = other.historyUrl_; + detailUrl_ = other.detailUrl_; + beginTime_ = other.beginTime_; + gachaCeiling_ = other.gachaCeiling_ != null ? other.gachaCeiling_.Clone() : null; + featured_ = other.featured_.Clone(); + upInfo_ = other.upInfo_.Clone(); + gachaId_ = other.gachaId_; + endTime_ = other.endTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaInfo Clone() { + return new GachaInfo(this); + } + + /// Field number for the "history_url" field. + public const int HistoryUrlFieldNumber = 6; + private string historyUrl_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HistoryUrl { + get { return historyUrl_; } + set { + historyUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "detail_url" field. + public const int DetailUrlFieldNumber = 2; + private string detailUrl_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DetailUrl { + get { return detailUrl_; } + set { + detailUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "begin_time" field. + public const int BeginTimeFieldNumber = 10; + private long beginTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BeginTime { + get { return beginTime_; } + set { + beginTime_ = value; + } + } + + /// Field number for the "gacha_ceiling" field. + public const int GachaCeilingFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.GachaCeiling gachaCeiling_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.GachaCeiling GachaCeiling { + get { return gachaCeiling_; } + set { + gachaCeiling_ = value; + } + } + + /// Field number for the "featured" field. + public const int FeaturedFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_featured_codec + = pb::FieldCodec.ForUInt32(10); + private readonly pbc::RepeatedField featured_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Featured { + get { return featured_; } + } + + /// Field number for the "up_info" field. + public const int UpInfoFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_upInfo_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField upInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UpInfo { + get { return upInfo_; } + } + + /// Field number for the "gacha_id" field. + public const int GachaIdFieldNumber = 13; + private uint gachaId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GachaId { + get { return gachaId_; } + set { + gachaId_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 12; + private long endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GachaInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GachaInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (HistoryUrl != other.HistoryUrl) return false; + if (DetailUrl != other.DetailUrl) return false; + if (BeginTime != other.BeginTime) return false; + if (!object.Equals(GachaCeiling, other.GachaCeiling)) return false; + if(!featured_.Equals(other.featured_)) return false; + if(!upInfo_.Equals(other.upInfo_)) return false; + if (GachaId != other.GachaId) 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 (HistoryUrl.Length != 0) hash ^= HistoryUrl.GetHashCode(); + if (DetailUrl.Length != 0) hash ^= DetailUrl.GetHashCode(); + if (BeginTime != 0L) hash ^= BeginTime.GetHashCode(); + if (gachaCeiling_ != null) hash ^= GachaCeiling.GetHashCode(); + hash ^= featured_.GetHashCode(); + hash ^= upInfo_.GetHashCode(); + if (GachaId != 0) hash ^= GachaId.GetHashCode(); + if (EndTime != 0L) 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 + featured_.WriteTo(output, _repeated_featured_codec); + if (DetailUrl.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DetailUrl); + } + upInfo_.WriteTo(output, _repeated_upInfo_codec); + if (HistoryUrl.Length != 0) { + output.WriteRawTag(50); + output.WriteString(HistoryUrl); + } + if (gachaCeiling_ != null) { + output.WriteRawTag(74); + output.WriteMessage(GachaCeiling); + } + if (BeginTime != 0L) { + output.WriteRawTag(80); + output.WriteInt64(BeginTime); + } + if (EndTime != 0L) { + output.WriteRawTag(96); + output.WriteInt64(EndTime); + } + if (GachaId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(GachaId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + featured_.WriteTo(ref output, _repeated_featured_codec); + if (DetailUrl.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DetailUrl); + } + upInfo_.WriteTo(ref output, _repeated_upInfo_codec); + if (HistoryUrl.Length != 0) { + output.WriteRawTag(50); + output.WriteString(HistoryUrl); + } + if (gachaCeiling_ != null) { + output.WriteRawTag(74); + output.WriteMessage(GachaCeiling); + } + if (BeginTime != 0L) { + output.WriteRawTag(80); + output.WriteInt64(BeginTime); + } + if (EndTime != 0L) { + output.WriteRawTag(96); + output.WriteInt64(EndTime); + } + if (GachaId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(GachaId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HistoryUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HistoryUrl); + } + if (DetailUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DetailUrl); + } + if (BeginTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime); + } + if (gachaCeiling_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GachaCeiling); + } + size += featured_.CalculateSize(_repeated_featured_codec); + size += upInfo_.CalculateSize(_repeated_upInfo_codec); + if (GachaId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GachaId); + } + if (EndTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GachaInfo other) { + if (other == null) { + return; + } + if (other.HistoryUrl.Length != 0) { + HistoryUrl = other.HistoryUrl; + } + if (other.DetailUrl.Length != 0) { + DetailUrl = other.DetailUrl; + } + if (other.BeginTime != 0L) { + BeginTime = other.BeginTime; + } + if (other.gachaCeiling_ != null) { + if (gachaCeiling_ == null) { + GachaCeiling = new global::EggLink.DanhengServer.Proto.GachaCeiling(); + } + GachaCeiling.MergeFrom(other.GachaCeiling); + } + featured_.Add(other.featured_); + upInfo_.Add(other.upInfo_); + if (other.GachaId != 0) { + GachaId = other.GachaId; + } + if (other.EndTime != 0L) { + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + featured_.AddEntriesFrom(input, _repeated_featured_codec); + break; + } + case 18: { + DetailUrl = input.ReadString(); + break; + } + case 42: + case 40: { + upInfo_.AddEntriesFrom(input, _repeated_upInfo_codec); + break; + } + case 50: { + HistoryUrl = input.ReadString(); + break; + } + case 74: { + if (gachaCeiling_ == null) { + GachaCeiling = new global::EggLink.DanhengServer.Proto.GachaCeiling(); + } + input.ReadMessage(GachaCeiling); + break; + } + case 80: { + BeginTime = input.ReadInt64(); + break; + } + case 96: { + EndTime = input.ReadInt64(); + break; + } + case 104: { + GachaId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + featured_.AddEntriesFrom(ref input, _repeated_featured_codec); + break; + } + case 18: { + DetailUrl = input.ReadString(); + break; + } + case 42: + case 40: { + upInfo_.AddEntriesFrom(ref input, _repeated_upInfo_codec); + break; + } + case 50: { + HistoryUrl = input.ReadString(); + break; + } + case 74: { + if (gachaCeiling_ == null) { + GachaCeiling = new global::EggLink.DanhengServer.Proto.GachaCeiling(); + } + input.ReadMessage(GachaCeiling); + break; + } + case 80: { + BeginTime = input.ReadInt64(); + break; + } + case 96: { + EndTime = input.ReadInt64(); + break; + } + case 104: { + GachaId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GachaItem.cs b/Common/Proto/GachaItem.cs new file mode 100644 index 00000000..8d30455f --- /dev/null +++ b/Common/Proto/GachaItem.cs @@ -0,0 +1,374 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GachaItem.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GachaItem.proto + public static partial class GachaItemReflection { + + #region Descriptor + /// File descriptor for GachaItem.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GachaItemReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9HYWNoYUl0ZW0ucHJvdG8aCkl0ZW0ucHJvdG8aDkl0ZW1MaXN0LnByb3Rv", + "InwKCUdhY2hhSXRlbRIlChJ0cmFuc2Zlcl9pdGVtX2xpc3QYCiABKAsyCS5J", + "dGVtTGlzdBIOCgZpc19uZXcYBCABKAgSGQoKZ2FjaGFfaXRlbRgHIAEoCzIF", + "Lkl0ZW0SHQoKdG9rZW5faXRlbRgGIAEoCzIJLkl0ZW1MaXN0Qh6qAhtFZ2dM", + "aW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemReflection.Descriptor, global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GachaItem), global::EggLink.DanhengServer.Proto.GachaItem.Parser, new[]{ "TransferItemList", "IsNew", "GachaItem_", "TokenItem" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GachaItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GachaItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GachaItemReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaItem(GachaItem other) : this() { + transferItemList_ = other.transferItemList_ != null ? other.transferItemList_.Clone() : null; + isNew_ = other.isNew_; + gachaItem_ = other.gachaItem_ != null ? other.gachaItem_.Clone() : null; + tokenItem_ = other.tokenItem_ != null ? other.tokenItem_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GachaItem Clone() { + return new GachaItem(this); + } + + /// Field number for the "transfer_item_list" field. + public const int TransferItemListFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.ItemList transferItemList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList TransferItemList { + get { return transferItemList_; } + set { + transferItemList_ = value; + } + } + + /// Field number for the "is_new" field. + public const int IsNewFieldNumber = 4; + private bool isNew_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsNew { + get { return isNew_; } + set { + isNew_ = value; + } + } + + /// Field number for the "gacha_item" field. + public const int GachaItem_FieldNumber = 7; + private global::EggLink.DanhengServer.Proto.Item gachaItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.Item GachaItem_ { + get { return gachaItem_; } + set { + gachaItem_ = value; + } + } + + /// Field number for the "token_item" field. + public const int TokenItemFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.ItemList tokenItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList TokenItem { + get { return tokenItem_; } + set { + tokenItem_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GachaItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GachaItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TransferItemList, other.TransferItemList)) return false; + if (IsNew != other.IsNew) return false; + if (!object.Equals(GachaItem_, other.GachaItem_)) return false; + if (!object.Equals(TokenItem, other.TokenItem)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (transferItemList_ != null) hash ^= TransferItemList.GetHashCode(); + if (IsNew != false) hash ^= IsNew.GetHashCode(); + if (gachaItem_ != null) hash ^= GachaItem_.GetHashCode(); + if (tokenItem_ != null) hash ^= TokenItem.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (IsNew != false) { + output.WriteRawTag(32); + output.WriteBool(IsNew); + } + if (tokenItem_ != null) { + output.WriteRawTag(50); + output.WriteMessage(TokenItem); + } + if (gachaItem_ != null) { + output.WriteRawTag(58); + output.WriteMessage(GachaItem_); + } + if (transferItemList_ != null) { + output.WriteRawTag(82); + output.WriteMessage(TransferItemList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (IsNew != false) { + output.WriteRawTag(32); + output.WriteBool(IsNew); + } + if (tokenItem_ != null) { + output.WriteRawTag(50); + output.WriteMessage(TokenItem); + } + if (gachaItem_ != null) { + output.WriteRawTag(58); + output.WriteMessage(GachaItem_); + } + if (transferItemList_ != null) { + output.WriteRawTag(82); + output.WriteMessage(TransferItemList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (transferItemList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransferItemList); + } + if (IsNew != false) { + size += 1 + 1; + } + if (gachaItem_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GachaItem_); + } + if (tokenItem_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TokenItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GachaItem other) { + if (other == null) { + return; + } + if (other.transferItemList_ != null) { + if (transferItemList_ == null) { + TransferItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + TransferItemList.MergeFrom(other.TransferItemList); + } + if (other.IsNew != false) { + IsNew = other.IsNew; + } + if (other.gachaItem_ != null) { + if (gachaItem_ == null) { + GachaItem_ = new global::EggLink.DanhengServer.Proto.Item(); + } + GachaItem_.MergeFrom(other.GachaItem_); + } + if (other.tokenItem_ != null) { + if (tokenItem_ == null) { + TokenItem = new global::EggLink.DanhengServer.Proto.ItemList(); + } + TokenItem.MergeFrom(other.TokenItem); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + IsNew = input.ReadBool(); + break; + } + case 50: { + if (tokenItem_ == null) { + TokenItem = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(TokenItem); + break; + } + case 58: { + if (gachaItem_ == null) { + GachaItem_ = new global::EggLink.DanhengServer.Proto.Item(); + } + input.ReadMessage(GachaItem_); + break; + } + case 82: { + if (transferItemList_ == null) { + TransferItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(TransferItemList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + IsNew = input.ReadBool(); + break; + } + case 50: { + if (tokenItem_ == null) { + TokenItem = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(TokenItem); + break; + } + case 58: { + if (gachaItem_ == null) { + GachaItem_ = new global::EggLink.DanhengServer.Proto.Item(); + } + input.ReadMessage(GachaItem_); + break; + } + case 82: { + if (transferItemList_ == null) { + TransferItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(TransferItemList); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Gateserver.cs b/Common/Proto/Gateserver.cs new file mode 100644 index 00000000..00e83f86 --- /dev/null +++ b/Common/Proto/Gateserver.cs @@ -0,0 +1,835 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Gateserver.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from Gateserver.proto + public static partial class GateserverReflection { + + #region Descriptor + /// File descriptor for Gateserver.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GateserverReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBHYXRlc2VydmVyLnByb3RvIsQCCgpHYXRlc2VydmVyEg8KB2x1YV91cmwY", + "CyABKAkSEwoLcmVnaW9uX25hbWUYDSABKAkSFwoPZXhfcmVzb3VyY2VfdXJs", + "GAkgASgJEhUKDGlmaXhfdmVyc2lvbhikCyABKAkSGAoQYXNzZXRfYnVuZGxl", + "X3VybBgBIAEoCRIMCgRwb3J0GAcgASgNEgoKAmlwGAwgASgJEgwKA21zZxi0", + "CCABKAkSEQoIaWZpeF91cmwYjAEgASgJEhgKD21ka19yZXNfdmVyc2lvbhiw", + "CyABKAkSGgoRY2xpZW50X3NlY3JldF9rZXkYzwQgASgJEgwKBHVuazEYBCAB", + "KAgSDAoEdW5rMhgIIAEoCBIMCgR1bmszGEIgASgIEg0KBHVuazQYpwQgASgI", + "Eg0KBHVuazUYoQcgASgIEg0KBHVuazYY0wcgASgIQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Gateserver), global::EggLink.DanhengServer.Proto.Gateserver.Parser, new[]{ "LuaUrl", "RegionName", "ExResourceUrl", "IfixVersion", "AssetBundleUrl", "Port", "Ip", "Msg", "IfixUrl", "MdkResVersion", "ClientSecretKey", "Unk1", "Unk2", "Unk3", "Unk4", "Unk5", "Unk6" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Gateserver : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Gateserver()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GateserverReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Gateserver() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Gateserver(Gateserver other) : this() { + luaUrl_ = other.luaUrl_; + regionName_ = other.regionName_; + exResourceUrl_ = other.exResourceUrl_; + ifixVersion_ = other.ifixVersion_; + assetBundleUrl_ = other.assetBundleUrl_; + port_ = other.port_; + ip_ = other.ip_; + msg_ = other.msg_; + ifixUrl_ = other.ifixUrl_; + mdkResVersion_ = other.mdkResVersion_; + clientSecretKey_ = other.clientSecretKey_; + unk1_ = other.unk1_; + unk2_ = other.unk2_; + unk3_ = other.unk3_; + unk4_ = other.unk4_; + unk5_ = other.unk5_; + unk6_ = other.unk6_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Gateserver Clone() { + return new Gateserver(this); + } + + /// Field number for the "lua_url" field. + public const int LuaUrlFieldNumber = 11; + private string luaUrl_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LuaUrl { + get { return luaUrl_; } + set { + luaUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "region_name" field. + public const int RegionNameFieldNumber = 13; + private string regionName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RegionName { + get { return regionName_; } + set { + regionName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ex_resource_url" field. + public const int ExResourceUrlFieldNumber = 9; + private string exResourceUrl_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExResourceUrl { + get { return exResourceUrl_; } + set { + exResourceUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ifix_version" field. + public const int IfixVersionFieldNumber = 1444; + private string ifixVersion_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IfixVersion { + get { return ifixVersion_; } + set { + ifixVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "asset_bundle_url" field. + public const int AssetBundleUrlFieldNumber = 1; + private string assetBundleUrl_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AssetBundleUrl { + get { return assetBundleUrl_; } + set { + assetBundleUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "port" field. + public const int PortFieldNumber = 7; + private uint port_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Port { + get { return port_; } + set { + port_ = value; + } + } + + /// Field number for the "ip" field. + public const int IpFieldNumber = 12; + private string ip_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ip { + get { return ip_; } + set { + ip_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "msg" field. + public const int MsgFieldNumber = 1076; + private string msg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Msg { + get { return msg_; } + set { + msg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ifix_url" field. + public const int IfixUrlFieldNumber = 140; + private string ifixUrl_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IfixUrl { + get { return ifixUrl_; } + set { + ifixUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mdk_res_version" field. + public const int MdkResVersionFieldNumber = 1456; + private string mdkResVersion_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MdkResVersion { + get { return mdkResVersion_; } + set { + mdkResVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "client_secret_key" field. + public const int ClientSecretKeyFieldNumber = 591; + private string clientSecretKey_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClientSecretKey { + get { return clientSecretKey_; } + set { + clientSecretKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "unk1" field. + public const int Unk1FieldNumber = 4; + private bool unk1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Unk1 { + get { return unk1_; } + set { + unk1_ = value; + } + } + + /// Field number for the "unk2" field. + public const int Unk2FieldNumber = 8; + private bool unk2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Unk2 { + get { return unk2_; } + set { + unk2_ = value; + } + } + + /// Field number for the "unk3" field. + public const int Unk3FieldNumber = 66; + private bool unk3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Unk3 { + get { return unk3_; } + set { + unk3_ = value; + } + } + + /// Field number for the "unk4" field. + public const int Unk4FieldNumber = 551; + private bool unk4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Unk4 { + get { return unk4_; } + set { + unk4_ = value; + } + } + + /// Field number for the "unk5" field. + public const int Unk5FieldNumber = 929; + private bool unk5_; + /// + ///bool unk5 = 646; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Unk5 { + get { return unk5_; } + set { + unk5_ = value; + } + } + + /// Field number for the "unk6" field. + public const int Unk6FieldNumber = 979; + private bool unk6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Unk6 { + get { return unk6_; } + set { + unk6_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Gateserver); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Gateserver other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LuaUrl != other.LuaUrl) return false; + if (RegionName != other.RegionName) return false; + if (ExResourceUrl != other.ExResourceUrl) return false; + if (IfixVersion != other.IfixVersion) return false; + if (AssetBundleUrl != other.AssetBundleUrl) return false; + if (Port != other.Port) return false; + if (Ip != other.Ip) return false; + if (Msg != other.Msg) return false; + if (IfixUrl != other.IfixUrl) return false; + if (MdkResVersion != other.MdkResVersion) return false; + if (ClientSecretKey != other.ClientSecretKey) return false; + if (Unk1 != other.Unk1) return false; + if (Unk2 != other.Unk2) return false; + if (Unk3 != other.Unk3) return false; + if (Unk4 != other.Unk4) return false; + if (Unk5 != other.Unk5) return false; + if (Unk6 != other.Unk6) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (LuaUrl.Length != 0) hash ^= LuaUrl.GetHashCode(); + if (RegionName.Length != 0) hash ^= RegionName.GetHashCode(); + if (ExResourceUrl.Length != 0) hash ^= ExResourceUrl.GetHashCode(); + if (IfixVersion.Length != 0) hash ^= IfixVersion.GetHashCode(); + if (AssetBundleUrl.Length != 0) hash ^= AssetBundleUrl.GetHashCode(); + if (Port != 0) hash ^= Port.GetHashCode(); + if (Ip.Length != 0) hash ^= Ip.GetHashCode(); + if (Msg.Length != 0) hash ^= Msg.GetHashCode(); + if (IfixUrl.Length != 0) hash ^= IfixUrl.GetHashCode(); + if (MdkResVersion.Length != 0) hash ^= MdkResVersion.GetHashCode(); + if (ClientSecretKey.Length != 0) hash ^= ClientSecretKey.GetHashCode(); + if (Unk1 != false) hash ^= Unk1.GetHashCode(); + if (Unk2 != false) hash ^= Unk2.GetHashCode(); + if (Unk3 != false) hash ^= Unk3.GetHashCode(); + if (Unk4 != false) hash ^= Unk4.GetHashCode(); + if (Unk5 != false) hash ^= Unk5.GetHashCode(); + if (Unk6 != false) hash ^= Unk6.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AssetBundleUrl.Length != 0) { + output.WriteRawTag(10); + output.WriteString(AssetBundleUrl); + } + if (Unk1 != false) { + output.WriteRawTag(32); + output.WriteBool(Unk1); + } + if (Port != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Port); + } + if (Unk2 != false) { + output.WriteRawTag(64); + output.WriteBool(Unk2); + } + if (ExResourceUrl.Length != 0) { + output.WriteRawTag(74); + output.WriteString(ExResourceUrl); + } + if (LuaUrl.Length != 0) { + output.WriteRawTag(90); + output.WriteString(LuaUrl); + } + if (Ip.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Ip); + } + if (RegionName.Length != 0) { + output.WriteRawTag(106); + output.WriteString(RegionName); + } + if (Unk3 != false) { + output.WriteRawTag(144, 4); + output.WriteBool(Unk3); + } + if (IfixUrl.Length != 0) { + output.WriteRawTag(226, 8); + output.WriteString(IfixUrl); + } + if (Unk4 != false) { + output.WriteRawTag(184, 34); + output.WriteBool(Unk4); + } + if (ClientSecretKey.Length != 0) { + output.WriteRawTag(250, 36); + output.WriteString(ClientSecretKey); + } + if (Unk5 != false) { + output.WriteRawTag(136, 58); + output.WriteBool(Unk5); + } + if (Unk6 != false) { + output.WriteRawTag(152, 61); + output.WriteBool(Unk6); + } + if (Msg.Length != 0) { + output.WriteRawTag(162, 67); + output.WriteString(Msg); + } + if (IfixVersion.Length != 0) { + output.WriteRawTag(162, 90); + output.WriteString(IfixVersion); + } + if (MdkResVersion.Length != 0) { + output.WriteRawTag(130, 91); + output.WriteString(MdkResVersion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AssetBundleUrl.Length != 0) { + output.WriteRawTag(10); + output.WriteString(AssetBundleUrl); + } + if (Unk1 != false) { + output.WriteRawTag(32); + output.WriteBool(Unk1); + } + if (Port != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Port); + } + if (Unk2 != false) { + output.WriteRawTag(64); + output.WriteBool(Unk2); + } + if (ExResourceUrl.Length != 0) { + output.WriteRawTag(74); + output.WriteString(ExResourceUrl); + } + if (LuaUrl.Length != 0) { + output.WriteRawTag(90); + output.WriteString(LuaUrl); + } + if (Ip.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Ip); + } + if (RegionName.Length != 0) { + output.WriteRawTag(106); + output.WriteString(RegionName); + } + if (Unk3 != false) { + output.WriteRawTag(144, 4); + output.WriteBool(Unk3); + } + if (IfixUrl.Length != 0) { + output.WriteRawTag(226, 8); + output.WriteString(IfixUrl); + } + if (Unk4 != false) { + output.WriteRawTag(184, 34); + output.WriteBool(Unk4); + } + if (ClientSecretKey.Length != 0) { + output.WriteRawTag(250, 36); + output.WriteString(ClientSecretKey); + } + if (Unk5 != false) { + output.WriteRawTag(136, 58); + output.WriteBool(Unk5); + } + if (Unk6 != false) { + output.WriteRawTag(152, 61); + output.WriteBool(Unk6); + } + if (Msg.Length != 0) { + output.WriteRawTag(162, 67); + output.WriteString(Msg); + } + if (IfixVersion.Length != 0) { + output.WriteRawTag(162, 90); + output.WriteString(IfixVersion); + } + if (MdkResVersion.Length != 0) { + output.WriteRawTag(130, 91); + output.WriteString(MdkResVersion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (LuaUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LuaUrl); + } + if (RegionName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RegionName); + } + if (ExResourceUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ExResourceUrl); + } + if (IfixVersion.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(IfixVersion); + } + if (AssetBundleUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetBundleUrl); + } + if (Port != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Port); + } + if (Ip.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Ip); + } + if (Msg.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Msg); + } + if (IfixUrl.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(IfixUrl); + } + if (MdkResVersion.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(MdkResVersion); + } + if (ClientSecretKey.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ClientSecretKey); + } + if (Unk1 != false) { + size += 1 + 1; + } + if (Unk2 != false) { + size += 1 + 1; + } + if (Unk3 != false) { + size += 2 + 1; + } + if (Unk4 != false) { + size += 2 + 1; + } + if (Unk5 != false) { + size += 2 + 1; + } + if (Unk6 != 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(Gateserver other) { + if (other == null) { + return; + } + if (other.LuaUrl.Length != 0) { + LuaUrl = other.LuaUrl; + } + if (other.RegionName.Length != 0) { + RegionName = other.RegionName; + } + if (other.ExResourceUrl.Length != 0) { + ExResourceUrl = other.ExResourceUrl; + } + if (other.IfixVersion.Length != 0) { + IfixVersion = other.IfixVersion; + } + if (other.AssetBundleUrl.Length != 0) { + AssetBundleUrl = other.AssetBundleUrl; + } + if (other.Port != 0) { + Port = other.Port; + } + if (other.Ip.Length != 0) { + Ip = other.Ip; + } + if (other.Msg.Length != 0) { + Msg = other.Msg; + } + if (other.IfixUrl.Length != 0) { + IfixUrl = other.IfixUrl; + } + if (other.MdkResVersion.Length != 0) { + MdkResVersion = other.MdkResVersion; + } + if (other.ClientSecretKey.Length != 0) { + ClientSecretKey = other.ClientSecretKey; + } + if (other.Unk1 != false) { + Unk1 = other.Unk1; + } + if (other.Unk2 != false) { + Unk2 = other.Unk2; + } + if (other.Unk3 != false) { + Unk3 = other.Unk3; + } + if (other.Unk4 != false) { + Unk4 = other.Unk4; + } + if (other.Unk5 != false) { + Unk5 = other.Unk5; + } + if (other.Unk6 != false) { + Unk6 = other.Unk6; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + AssetBundleUrl = input.ReadString(); + break; + } + case 32: { + Unk1 = input.ReadBool(); + break; + } + case 56: { + Port = input.ReadUInt32(); + break; + } + case 64: { + Unk2 = input.ReadBool(); + break; + } + case 74: { + ExResourceUrl = input.ReadString(); + break; + } + case 90: { + LuaUrl = input.ReadString(); + break; + } + case 98: { + Ip = input.ReadString(); + break; + } + case 106: { + RegionName = input.ReadString(); + break; + } + case 528: { + Unk3 = input.ReadBool(); + break; + } + case 1122: { + IfixUrl = input.ReadString(); + break; + } + case 4408: { + Unk4 = input.ReadBool(); + break; + } + case 4730: { + ClientSecretKey = input.ReadString(); + break; + } + case 7432: { + Unk5 = input.ReadBool(); + break; + } + case 7832: { + Unk6 = input.ReadBool(); + break; + } + case 8610: { + Msg = input.ReadString(); + break; + } + case 11554: { + IfixVersion = input.ReadString(); + break; + } + case 11650: { + MdkResVersion = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + AssetBundleUrl = input.ReadString(); + break; + } + case 32: { + Unk1 = input.ReadBool(); + break; + } + case 56: { + Port = input.ReadUInt32(); + break; + } + case 64: { + Unk2 = input.ReadBool(); + break; + } + case 74: { + ExResourceUrl = input.ReadString(); + break; + } + case 90: { + LuaUrl = input.ReadString(); + break; + } + case 98: { + Ip = input.ReadString(); + break; + } + case 106: { + RegionName = input.ReadString(); + break; + } + case 528: { + Unk3 = input.ReadBool(); + break; + } + case 1122: { + IfixUrl = input.ReadString(); + break; + } + case 4408: { + Unk4 = input.ReadBool(); + break; + } + case 4730: { + ClientSecretKey = input.ReadString(); + break; + } + case 7432: { + Unk5 = input.ReadBool(); + break; + } + case 7832: { + Unk6 = input.ReadBool(); + break; + } + case 8610: { + Msg = input.ReadString(); + break; + } + case 11554: { + IfixVersion = input.ReadString(); + break; + } + case 11650: { + MdkResVersion = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Gender.cs b/Common/Proto/Gender.cs new file mode 100644 index 00000000..35b058fa --- /dev/null +++ b/Common/Proto/Gender.cs @@ -0,0 +1,48 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Gender.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from Gender.proto + public static partial class GenderReflection { + + #region Descriptor + /// File descriptor for Gender.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GenderReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxHZW5kZXIucHJvdG8qOAoGR2VuZGVyEg4KCkdlbmRlck5vbmUQABINCglH", + "ZW5kZXJNYW4QARIPCgtHZW5kZXJXb21hbhACQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.Gender), }, null, null)); + } + #endregion + + } + #region Enums + public enum Gender { + [pbr::OriginalName("GenderNone")] None = 0, + [pbr::OriginalName("GenderMan")] Man = 1, + [pbr::OriginalName("GenderWoman")] Woman = 2, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetActivityScheduleConfigScRsp.cs b/Common/Proto/GetActivityScheduleConfigScRsp.cs new file mode 100644 index 00000000..8c1b6ebd --- /dev/null +++ b/Common/Proto/GetActivityScheduleConfigScRsp.cs @@ -0,0 +1,262 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetActivityScheduleConfigScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetActivityScheduleConfigScRsp.proto + public static partial class GetActivityScheduleConfigScRspReflection { + + #region Descriptor + /// File descriptor for GetActivityScheduleConfigScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetActivityScheduleConfigScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiRHZXRBY3Rpdml0eVNjaGVkdWxlQ29uZmlnU2NSc3AucHJvdG8aGkFjdGl2", + "aXR5U2NoZWR1bGVJbmZvLnByb3RvImgKHkdldEFjdGl2aXR5U2NoZWR1bGVD", + "b25maWdTY1JzcBI1ChZhY3Rpdml0eV9zY2hlZHVsZV9saXN0GAkgAygLMhUu", + "QWN0aXZpdHlTY2hlZHVsZUluZm8SDwoHcmV0Y29kZRgDIAEoDUIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ActivityScheduleInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetActivityScheduleConfigScRsp), global::EggLink.DanhengServer.Proto.GetActivityScheduleConfigScRsp.Parser, new[]{ "ActivityScheduleList", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetActivityScheduleConfigScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetActivityScheduleConfigScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetActivityScheduleConfigScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetActivityScheduleConfigScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetActivityScheduleConfigScRsp(GetActivityScheduleConfigScRsp other) : this() { + activityScheduleList_ = other.activityScheduleList_.Clone(); + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetActivityScheduleConfigScRsp Clone() { + return new GetActivityScheduleConfigScRsp(this); + } + + /// Field number for the "activity_schedule_list" field. + public const int ActivityScheduleListFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_activityScheduleList_codec + = pb::FieldCodec.ForMessage(74, global::EggLink.DanhengServer.Proto.ActivityScheduleInfo.Parser); + private readonly pbc::RepeatedField activityScheduleList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ActivityScheduleList { + get { return activityScheduleList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetActivityScheduleConfigScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetActivityScheduleConfigScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!activityScheduleList_.Equals(other.activityScheduleList_)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= activityScheduleList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + activityScheduleList_.WriteTo(output, _repeated_activityScheduleList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + activityScheduleList_.WriteTo(ref output, _repeated_activityScheduleList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += activityScheduleList_.CalculateSize(_repeated_activityScheduleList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetActivityScheduleConfigScRsp other) { + if (other == null) { + return; + } + activityScheduleList_.Add(other.activityScheduleList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 74: { + activityScheduleList_.AddEntriesFrom(input, _repeated_activityScheduleList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 74: { + activityScheduleList_.AddEntriesFrom(ref input, _repeated_activityScheduleList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetAllLineupDataScRsp.cs b/Common/Proto/GetAllLineupDataScRsp.cs new file mode 100644 index 00000000..a66a6fc8 --- /dev/null +++ b/Common/Proto/GetAllLineupDataScRsp.cs @@ -0,0 +1,299 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetAllLineupDataScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetAllLineupDataScRsp.proto + public static partial class GetAllLineupDataScRspReflection { + + #region Descriptor + /// File descriptor for GetAllLineupDataScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetAllLineupDataScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtHZXRBbGxMaW5ldXBEYXRhU2NSc3AucHJvdG8aEExpbmV1cEluZm8ucHJv", + "dG8iXQoVR2V0QWxsTGluZXVwRGF0YVNjUnNwEg8KB3JldGNvZGUYAyABKA0S", + "EQoJY3VyX2luZGV4GA8gASgNEiAKC2xpbmV1cF9saXN0GAIgAygLMgsuTGlu", + "ZXVwSW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.LineupInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetAllLineupDataScRsp), global::EggLink.DanhengServer.Proto.GetAllLineupDataScRsp.Parser, new[]{ "Retcode", "CurIndex", "LineupList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetAllLineupDataScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllLineupDataScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetAllLineupDataScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAllLineupDataScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAllLineupDataScRsp(GetAllLineupDataScRsp other) : this() { + retcode_ = other.retcode_; + curIndex_ = other.curIndex_; + lineupList_ = other.lineupList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAllLineupDataScRsp Clone() { + return new GetAllLineupDataScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "cur_index" field. + public const int CurIndexFieldNumber = 15; + private uint curIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurIndex { + get { return curIndex_; } + set { + curIndex_ = value; + } + } + + /// Field number for the "lineup_list" field. + public const int LineupListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_lineupList_codec + = pb::FieldCodec.ForMessage(18, global::EggLink.DanhengServer.Proto.LineupInfo.Parser); + private readonly pbc::RepeatedField lineupList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LineupList { + get { return lineupList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetAllLineupDataScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetAllLineupDataScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (CurIndex != other.CurIndex) return false; + if(!lineupList_.Equals(other.lineupList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (CurIndex != 0) hash ^= CurIndex.GetHashCode(); + hash ^= lineupList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + lineupList_.WriteTo(output, _repeated_lineupList_codec); + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (CurIndex != 0) { + output.WriteRawTag(120); + output.WriteUInt32(CurIndex); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + lineupList_.WriteTo(ref output, _repeated_lineupList_codec); + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (CurIndex != 0) { + output.WriteRawTag(120); + output.WriteUInt32(CurIndex); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (CurIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurIndex); + } + size += lineupList_.CalculateSize(_repeated_lineupList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetAllLineupDataScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.CurIndex != 0) { + CurIndex = other.CurIndex; + } + lineupList_.Add(other.lineupList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + lineupList_.AddEntriesFrom(input, _repeated_lineupList_codec); + break; + } + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 120: { + CurIndex = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + lineupList_.AddEntriesFrom(ref input, _repeated_lineupList_codec); + break; + } + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 120: { + CurIndex = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetArchiveDataScRsp.cs b/Common/Proto/GetArchiveDataScRsp.cs new file mode 100644 index 00000000..ab80898b --- /dev/null +++ b/Common/Proto/GetArchiveDataScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetArchiveDataScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetArchiveDataScRsp.proto + public static partial class GetArchiveDataScRspReflection { + + #region Descriptor + /// File descriptor for GetArchiveDataScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetArchiveDataScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlHZXRBcmNoaXZlRGF0YVNjUnNwLnByb3RvGhFBcmNoaXZlRGF0YS5wcm90", + "byJKChNHZXRBcmNoaXZlRGF0YVNjUnNwEiIKDGFyY2hpdmVfZGF0YRgPIAEo", + "CzIMLkFyY2hpdmVEYXRhEg8KB3JldGNvZGUYBSABKA1CHqoCG0VnZ0xpbmsu", + "RGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ArchiveDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetArchiveDataScRsp), global::EggLink.DanhengServer.Proto.GetArchiveDataScRsp.Parser, new[]{ "ArchiveData", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetArchiveDataScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetArchiveDataScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetArchiveDataScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetArchiveDataScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetArchiveDataScRsp(GetArchiveDataScRsp other) : this() { + archiveData_ = other.archiveData_ != null ? other.archiveData_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetArchiveDataScRsp Clone() { + return new GetArchiveDataScRsp(this); + } + + /// Field number for the "archive_data" field. + public const int ArchiveDataFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.ArchiveData archiveData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ArchiveData ArchiveData { + get { return archiveData_; } + set { + archiveData_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 5; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetArchiveDataScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetArchiveDataScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ArchiveData, other.ArchiveData)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (archiveData_ != null) hash ^= ArchiveData.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (archiveData_ != null) { + output.WriteRawTag(122); + output.WriteMessage(ArchiveData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (archiveData_ != null) { + output.WriteRawTag(122); + output.WriteMessage(ArchiveData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (archiveData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ArchiveData); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetArchiveDataScRsp other) { + if (other == null) { + return; + } + if (other.archiveData_ != null) { + if (archiveData_ == null) { + ArchiveData = new global::EggLink.DanhengServer.Proto.ArchiveData(); + } + ArchiveData.MergeFrom(other.ArchiveData); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 122: { + if (archiveData_ == null) { + ArchiveData = new global::EggLink.DanhengServer.Proto.ArchiveData(); + } + input.ReadMessage(ArchiveData); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 122: { + if (archiveData_ == null) { + ArchiveData = new global::EggLink.DanhengServer.Proto.ArchiveData(); + } + input.ReadMessage(ArchiveData); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetAvatarDataCsReq.cs b/Common/Proto/GetAvatarDataCsReq.cs new file mode 100644 index 00000000..7f0299d5 --- /dev/null +++ b/Common/Proto/GetAvatarDataCsReq.cs @@ -0,0 +1,263 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetAvatarDataCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetAvatarDataCsReq.proto + public static partial class GetAvatarDataCsReqReflection { + + #region Descriptor + /// File descriptor for GetAvatarDataCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetAvatarDataCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhHZXRBdmF0YXJEYXRhQ3NSZXEucHJvdG8iRQoSR2V0QXZhdGFyRGF0YUNz", + "UmVxEhIKCmlzX2dldF9hbGwYBiABKAgSGwoTYmFzZV9hdmF0YXJfaWRfbGlz", + "dBgPIAMoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetAvatarDataCsReq), global::EggLink.DanhengServer.Proto.GetAvatarDataCsReq.Parser, new[]{ "IsGetAll", "BaseAvatarIdList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetAvatarDataCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAvatarDataCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetAvatarDataCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAvatarDataCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAvatarDataCsReq(GetAvatarDataCsReq other) : this() { + isGetAll_ = other.isGetAll_; + baseAvatarIdList_ = other.baseAvatarIdList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAvatarDataCsReq Clone() { + return new GetAvatarDataCsReq(this); + } + + /// Field number for the "is_get_all" field. + public const int IsGetAllFieldNumber = 6; + private bool isGetAll_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsGetAll { + get { return isGetAll_; } + set { + isGetAll_ = value; + } + } + + /// Field number for the "base_avatar_id_list" field. + public const int BaseAvatarIdListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_baseAvatarIdList_codec + = pb::FieldCodec.ForUInt32(122); + private readonly pbc::RepeatedField baseAvatarIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BaseAvatarIdList { + get { return baseAvatarIdList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetAvatarDataCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetAvatarDataCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsGetAll != other.IsGetAll) return false; + if(!baseAvatarIdList_.Equals(other.baseAvatarIdList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (IsGetAll != false) hash ^= IsGetAll.GetHashCode(); + hash ^= baseAvatarIdList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (IsGetAll != false) { + output.WriteRawTag(48); + output.WriteBool(IsGetAll); + } + baseAvatarIdList_.WriteTo(output, _repeated_baseAvatarIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (IsGetAll != false) { + output.WriteRawTag(48); + output.WriteBool(IsGetAll); + } + baseAvatarIdList_.WriteTo(ref output, _repeated_baseAvatarIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (IsGetAll != false) { + size += 1 + 1; + } + size += baseAvatarIdList_.CalculateSize(_repeated_baseAvatarIdList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetAvatarDataCsReq other) { + if (other == null) { + return; + } + if (other.IsGetAll != false) { + IsGetAll = other.IsGetAll; + } + baseAvatarIdList_.Add(other.baseAvatarIdList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 48: { + IsGetAll = input.ReadBool(); + break; + } + case 122: + case 120: { + baseAvatarIdList_.AddEntriesFrom(input, _repeated_baseAvatarIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 48: { + IsGetAll = input.ReadBool(); + break; + } + case 122: + case 120: { + baseAvatarIdList_.AddEntriesFrom(ref input, _repeated_baseAvatarIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetAvatarDataScRsp.cs b/Common/Proto/GetAvatarDataScRsp.cs new file mode 100644 index 00000000..ba51b9e7 --- /dev/null +++ b/Common/Proto/GetAvatarDataScRsp.cs @@ -0,0 +1,298 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetAvatarDataScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetAvatarDataScRsp.proto + public static partial class GetAvatarDataScRspReflection { + + #region Descriptor + /// File descriptor for GetAvatarDataScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetAvatarDataScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhHZXRBdmF0YXJEYXRhU2NSc3AucHJvdG8aDEF2YXRhci5wcm90byJXChJH", + "ZXRBdmF0YXJEYXRhU2NSc3ASDwoHcmV0Y29kZRgGIAEoDRISCgppc19nZXRf", + "YWxsGAogASgIEhwKC2F2YXRhcl9saXN0GAcgAygLMgcuQXZhdGFyQh6qAhtF", + "Z2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AvatarReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetAvatarDataScRsp), global::EggLink.DanhengServer.Proto.GetAvatarDataScRsp.Parser, new[]{ "Retcode", "IsGetAll", "AvatarList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetAvatarDataScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAvatarDataScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetAvatarDataScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAvatarDataScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAvatarDataScRsp(GetAvatarDataScRsp other) : this() { + retcode_ = other.retcode_; + isGetAll_ = other.isGetAll_; + avatarList_ = other.avatarList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAvatarDataScRsp Clone() { + return new GetAvatarDataScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 6; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "is_get_all" field. + public const int IsGetAllFieldNumber = 10; + private bool isGetAll_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsGetAll { + get { return isGetAll_; } + set { + isGetAll_ = value; + } + } + + /// Field number for the "avatar_list" field. + public const int AvatarListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_avatarList_codec + = pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.Avatar.Parser); + private readonly pbc::RepeatedField avatarList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AvatarList { + get { return avatarList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetAvatarDataScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetAvatarDataScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (IsGetAll != other.IsGetAll) return false; + if(!avatarList_.Equals(other.avatarList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (IsGetAll != false) hash ^= IsGetAll.GetHashCode(); + hash ^= avatarList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Retcode); + } + avatarList_.WriteTo(output, _repeated_avatarList_codec); + if (IsGetAll != false) { + output.WriteRawTag(80); + output.WriteBool(IsGetAll); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Retcode); + } + avatarList_.WriteTo(ref output, _repeated_avatarList_codec); + if (IsGetAll != false) { + output.WriteRawTag(80); + output.WriteBool(IsGetAll); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (IsGetAll != false) { + size += 1 + 1; + } + size += avatarList_.CalculateSize(_repeated_avatarList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetAvatarDataScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.IsGetAll != false) { + IsGetAll = other.IsGetAll; + } + avatarList_.Add(other.avatarList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 48: { + Retcode = input.ReadUInt32(); + break; + } + case 58: { + avatarList_.AddEntriesFrom(input, _repeated_avatarList_codec); + break; + } + case 80: { + IsGetAll = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 48: { + Retcode = input.ReadUInt32(); + break; + } + case 58: { + avatarList_.AddEntriesFrom(ref input, _repeated_avatarList_codec); + break; + } + case 80: { + IsGetAll = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetBagScRsp.cs b/Common/Proto/GetBagScRsp.cs new file mode 100644 index 00000000..42356ff8 --- /dev/null +++ b/Common/Proto/GetBagScRsp.cs @@ -0,0 +1,315 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetBagScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetBagScRsp.proto + public static partial class GetBagScRspReflection { + + #region Descriptor + /// File descriptor for GetBagScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetBagScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFHZXRCYWdTY1JzcC5wcm90bxoLUmVsaWMucHJvdG8aD0VxdWlwbWVudC5w", + "cm90bxoOTWF0ZXJpYWwucHJvdG8igAEKC0dldEJhZ1NjUnNwEhoKCnJlbGlj", + "X2xpc3QYASADKAsyBi5SZWxpYxIgCg1tYXRlcmlhbF9saXN0GA4gAygLMgku", + "TWF0ZXJpYWwSIgoOZXF1aXBtZW50X2xpc3QYCiADKAsyCi5FcXVpcG1lbnQS", + "DwoHcmV0Y29kZRgCIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlBy", + "b3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RelicReflection.Descriptor, global::EggLink.DanhengServer.Proto.EquipmentReflection.Descriptor, global::EggLink.DanhengServer.Proto.MaterialReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetBagScRsp), global::EggLink.DanhengServer.Proto.GetBagScRsp.Parser, new[]{ "RelicList", "MaterialList", "EquipmentList", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetBagScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBagScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetBagScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetBagScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetBagScRsp(GetBagScRsp other) : this() { + relicList_ = other.relicList_.Clone(); + materialList_ = other.materialList_.Clone(); + equipmentList_ = other.equipmentList_.Clone(); + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetBagScRsp Clone() { + return new GetBagScRsp(this); + } + + /// Field number for the "relic_list" field. + public const int RelicListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_relicList_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.Relic.Parser); + private readonly pbc::RepeatedField relicList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RelicList { + get { return relicList_; } + } + + /// Field number for the "material_list" field. + public const int MaterialListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_materialList_codec + = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.Material.Parser); + private readonly pbc::RepeatedField materialList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MaterialList { + get { return materialList_; } + } + + /// Field number for the "equipment_list" field. + public const int EquipmentListFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_equipmentList_codec + = pb::FieldCodec.ForMessage(82, global::EggLink.DanhengServer.Proto.Equipment.Parser); + private readonly pbc::RepeatedField equipmentList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EquipmentList { + get { return equipmentList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 2; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetBagScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetBagScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!relicList_.Equals(other.relicList_)) return false; + if(!materialList_.Equals(other.materialList_)) return false; + if(!equipmentList_.Equals(other.equipmentList_)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= relicList_.GetHashCode(); + hash ^= materialList_.GetHashCode(); + hash ^= equipmentList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + relicList_.WriteTo(output, _repeated_relicList_codec); + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + equipmentList_.WriteTo(output, _repeated_equipmentList_codec); + materialList_.WriteTo(output, _repeated_materialList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + relicList_.WriteTo(ref output, _repeated_relicList_codec); + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + equipmentList_.WriteTo(ref output, _repeated_equipmentList_codec); + materialList_.WriteTo(ref output, _repeated_materialList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += relicList_.CalculateSize(_repeated_relicList_codec); + size += materialList_.CalculateSize(_repeated_materialList_codec); + size += equipmentList_.CalculateSize(_repeated_equipmentList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetBagScRsp other) { + if (other == null) { + return; + } + relicList_.Add(other.relicList_); + materialList_.Add(other.materialList_); + equipmentList_.Add(other.equipmentList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + relicList_.AddEntriesFrom(input, _repeated_relicList_codec); + break; + } + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 82: { + equipmentList_.AddEntriesFrom(input, _repeated_equipmentList_codec); + break; + } + case 114: { + materialList_.AddEntriesFrom(input, _repeated_materialList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + relicList_.AddEntriesFrom(ref input, _repeated_relicList_codec); + break; + } + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 82: { + equipmentList_.AddEntriesFrom(ref input, _repeated_equipmentList_codec); + break; + } + case 114: { + materialList_.AddEntriesFrom(ref input, _repeated_materialList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetBasicInfoScRsp.cs b/Common/Proto/GetBasicInfoScRsp.cs new file mode 100644 index 00000000..53beb361 --- /dev/null +++ b/Common/Proto/GetBasicInfoScRsp.cs @@ -0,0 +1,507 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetBasicInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetBasicInfoScRsp.proto + public static partial class GetBasicInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetBasicInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetBasicInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdHZXRCYXNpY0luZm9TY1JzcC5wcm90bxoXUGxheWVyU2V0dGluZ0luZm8u", + "cHJvdG8i+AEKEUdldEJhc2ljSW5mb1NjUnNwEg8KB2N1cl9kYXkYAiABKA0S", + "HgoWbGFzdF9zZXRfbmlja25hbWVfdGltZRgLIAEoAxIWCg5leGNoYW5nZV90", + "aW1lcxgEIAEoDRIiChp3ZWVrX2NvY29vbl9maW5pc2hlZF9jb3VudBgJIAEo", + "DRIvChNwbGF5ZXJfc2V0dGluZ19pbmZvGAYgASgLMhIuUGxheWVyU2V0dGlu", + "Z0luZm8SGQoRZ2FtZXBsYXlfYmlydGhkYXkYDiABKA0SGQoRbmV4dF9yZWNv", + "dmVyX3RpbWUYASABKAMSDwoHcmV0Y29kZRgNIAEoDUIeqgIbRWdnTGluay5E", + "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PlayerSettingInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetBasicInfoScRsp), global::EggLink.DanhengServer.Proto.GetBasicInfoScRsp.Parser, new[]{ "CurDay", "LastSetNicknameTime", "ExchangeTimes", "WeekCocoonFinishedCount", "PlayerSettingInfo", "GameplayBirthday", "NextRecoverTime", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetBasicInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBasicInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetBasicInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetBasicInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetBasicInfoScRsp(GetBasicInfoScRsp other) : this() { + curDay_ = other.curDay_; + lastSetNicknameTime_ = other.lastSetNicknameTime_; + exchangeTimes_ = other.exchangeTimes_; + weekCocoonFinishedCount_ = other.weekCocoonFinishedCount_; + playerSettingInfo_ = other.playerSettingInfo_ != null ? other.playerSettingInfo_.Clone() : null; + gameplayBirthday_ = other.gameplayBirthday_; + nextRecoverTime_ = other.nextRecoverTime_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetBasicInfoScRsp Clone() { + return new GetBasicInfoScRsp(this); + } + + /// Field number for the "cur_day" field. + public const int CurDayFieldNumber = 2; + private uint curDay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurDay { + get { return curDay_; } + set { + curDay_ = value; + } + } + + /// Field number for the "last_set_nickname_time" field. + public const int LastSetNicknameTimeFieldNumber = 11; + private long lastSetNicknameTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long LastSetNicknameTime { + get { return lastSetNicknameTime_; } + set { + lastSetNicknameTime_ = value; + } + } + + /// Field number for the "exchange_times" field. + public const int ExchangeTimesFieldNumber = 4; + private uint exchangeTimes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ExchangeTimes { + get { return exchangeTimes_; } + set { + exchangeTimes_ = value; + } + } + + /// Field number for the "week_cocoon_finished_count" field. + public const int WeekCocoonFinishedCountFieldNumber = 9; + private uint weekCocoonFinishedCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WeekCocoonFinishedCount { + get { return weekCocoonFinishedCount_; } + set { + weekCocoonFinishedCount_ = value; + } + } + + /// Field number for the "player_setting_info" field. + public const int PlayerSettingInfoFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.PlayerSettingInfo playerSettingInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.PlayerSettingInfo PlayerSettingInfo { + get { return playerSettingInfo_; } + set { + playerSettingInfo_ = value; + } + } + + /// Field number for the "gameplay_birthday" field. + public const int GameplayBirthdayFieldNumber = 14; + private uint gameplayBirthday_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GameplayBirthday { + get { return gameplayBirthday_; } + set { + gameplayBirthday_ = value; + } + } + + /// Field number for the "next_recover_time" field. + public const int NextRecoverTimeFieldNumber = 1; + private long nextRecoverTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NextRecoverTime { + get { return nextRecoverTime_; } + set { + nextRecoverTime_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 13; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetBasicInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetBasicInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CurDay != other.CurDay) return false; + if (LastSetNicknameTime != other.LastSetNicknameTime) return false; + if (ExchangeTimes != other.ExchangeTimes) return false; + if (WeekCocoonFinishedCount != other.WeekCocoonFinishedCount) return false; + if (!object.Equals(PlayerSettingInfo, other.PlayerSettingInfo)) return false; + if (GameplayBirthday != other.GameplayBirthday) return false; + if (NextRecoverTime != other.NextRecoverTime) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CurDay != 0) hash ^= CurDay.GetHashCode(); + if (LastSetNicknameTime != 0L) hash ^= LastSetNicknameTime.GetHashCode(); + if (ExchangeTimes != 0) hash ^= ExchangeTimes.GetHashCode(); + if (WeekCocoonFinishedCount != 0) hash ^= WeekCocoonFinishedCount.GetHashCode(); + if (playerSettingInfo_ != null) hash ^= PlayerSettingInfo.GetHashCode(); + if (GameplayBirthday != 0) hash ^= GameplayBirthday.GetHashCode(); + if (NextRecoverTime != 0L) hash ^= NextRecoverTime.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (NextRecoverTime != 0L) { + output.WriteRawTag(8); + output.WriteInt64(NextRecoverTime); + } + if (CurDay != 0) { + output.WriteRawTag(16); + output.WriteUInt32(CurDay); + } + if (ExchangeTimes != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ExchangeTimes); + } + if (playerSettingInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(PlayerSettingInfo); + } + if (WeekCocoonFinishedCount != 0) { + output.WriteRawTag(72); + output.WriteUInt32(WeekCocoonFinishedCount); + } + if (LastSetNicknameTime != 0L) { + output.WriteRawTag(88); + output.WriteInt64(LastSetNicknameTime); + } + if (Retcode != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Retcode); + } + if (GameplayBirthday != 0) { + output.WriteRawTag(112); + output.WriteUInt32(GameplayBirthday); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (NextRecoverTime != 0L) { + output.WriteRawTag(8); + output.WriteInt64(NextRecoverTime); + } + if (CurDay != 0) { + output.WriteRawTag(16); + output.WriteUInt32(CurDay); + } + if (ExchangeTimes != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ExchangeTimes); + } + if (playerSettingInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(PlayerSettingInfo); + } + if (WeekCocoonFinishedCount != 0) { + output.WriteRawTag(72); + output.WriteUInt32(WeekCocoonFinishedCount); + } + if (LastSetNicknameTime != 0L) { + output.WriteRawTag(88); + output.WriteInt64(LastSetNicknameTime); + } + if (Retcode != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Retcode); + } + if (GameplayBirthday != 0) { + output.WriteRawTag(112); + output.WriteUInt32(GameplayBirthday); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CurDay != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurDay); + } + if (LastSetNicknameTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(LastSetNicknameTime); + } + if (ExchangeTimes != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ExchangeTimes); + } + if (WeekCocoonFinishedCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WeekCocoonFinishedCount); + } + if (playerSettingInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlayerSettingInfo); + } + if (GameplayBirthday != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GameplayBirthday); + } + if (NextRecoverTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NextRecoverTime); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetBasicInfoScRsp other) { + if (other == null) { + return; + } + if (other.CurDay != 0) { + CurDay = other.CurDay; + } + if (other.LastSetNicknameTime != 0L) { + LastSetNicknameTime = other.LastSetNicknameTime; + } + if (other.ExchangeTimes != 0) { + ExchangeTimes = other.ExchangeTimes; + } + if (other.WeekCocoonFinishedCount != 0) { + WeekCocoonFinishedCount = other.WeekCocoonFinishedCount; + } + if (other.playerSettingInfo_ != null) { + if (playerSettingInfo_ == null) { + PlayerSettingInfo = new global::EggLink.DanhengServer.Proto.PlayerSettingInfo(); + } + PlayerSettingInfo.MergeFrom(other.PlayerSettingInfo); + } + if (other.GameplayBirthday != 0) { + GameplayBirthday = other.GameplayBirthday; + } + if (other.NextRecoverTime != 0L) { + NextRecoverTime = other.NextRecoverTime; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + NextRecoverTime = input.ReadInt64(); + break; + } + case 16: { + CurDay = input.ReadUInt32(); + break; + } + case 32: { + ExchangeTimes = input.ReadUInt32(); + break; + } + case 50: { + if (playerSettingInfo_ == null) { + PlayerSettingInfo = new global::EggLink.DanhengServer.Proto.PlayerSettingInfo(); + } + input.ReadMessage(PlayerSettingInfo); + break; + } + case 72: { + WeekCocoonFinishedCount = input.ReadUInt32(); + break; + } + case 88: { + LastSetNicknameTime = input.ReadInt64(); + break; + } + case 104: { + Retcode = input.ReadUInt32(); + break; + } + case 112: { + GameplayBirthday = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + NextRecoverTime = input.ReadInt64(); + break; + } + case 16: { + CurDay = input.ReadUInt32(); + break; + } + case 32: { + ExchangeTimes = input.ReadUInt32(); + break; + } + case 50: { + if (playerSettingInfo_ == null) { + PlayerSettingInfo = new global::EggLink.DanhengServer.Proto.PlayerSettingInfo(); + } + input.ReadMessage(PlayerSettingInfo); + break; + } + case 72: { + WeekCocoonFinishedCount = input.ReadUInt32(); + break; + } + case 88: { + LastSetNicknameTime = input.ReadInt64(); + break; + } + case 104: { + Retcode = input.ReadUInt32(); + break; + } + case 112: { + GameplayBirthday = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetChallengeScRsp.cs b/Common/Proto/GetChallengeScRsp.cs new file mode 100644 index 00000000..f6d0a657 --- /dev/null +++ b/Common/Proto/GetChallengeScRsp.cs @@ -0,0 +1,289 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetChallengeScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetChallengeScRsp.proto + public static partial class GetChallengeScRspReflection { + + #region Descriptor + /// File descriptor for GetChallengeScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetChallengeScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdHZXRDaGFsbGVuZ2VTY1JzcC5wcm90bxoPQ2hhbGxlbmdlLnByb3RvGhVD", + "aGFsbGVuZ2VSZXdhcmQucHJvdG8ieQoRR2V0Q2hhbGxlbmdlU2NSc3ASIgoO", + "Y2hhbGxlbmdlX2xpc3QYDSADKAsyCi5DaGFsbGVuZ2USDwoHcmV0Y29kZRgF", + "IAEoDRIvChVjaGFsbGVuZ2VfcmV3YXJkX2xpc3QYASADKAsyEC5DaGFsbGVu", + "Z2VSZXdhcmRCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChallengeReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChallengeRewardReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetChallengeScRsp), global::EggLink.DanhengServer.Proto.GetChallengeScRsp.Parser, new[]{ "ChallengeList", "Retcode", "ChallengeRewardList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetChallengeScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetChallengeScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetChallengeScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetChallengeScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetChallengeScRsp(GetChallengeScRsp other) : this() { + challengeList_ = other.challengeList_.Clone(); + retcode_ = other.retcode_; + challengeRewardList_ = other.challengeRewardList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetChallengeScRsp Clone() { + return new GetChallengeScRsp(this); + } + + /// Field number for the "challenge_list" field. + public const int ChallengeListFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_challengeList_codec + = pb::FieldCodec.ForMessage(106, global::EggLink.DanhengServer.Proto.Challenge.Parser); + private readonly pbc::RepeatedField challengeList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ChallengeList { + get { return challengeList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 5; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "challenge_reward_list" field. + public const int ChallengeRewardListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_challengeRewardList_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.ChallengeReward.Parser); + private readonly pbc::RepeatedField challengeRewardList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ChallengeRewardList { + get { return challengeRewardList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetChallengeScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetChallengeScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!challengeList_.Equals(other.challengeList_)) return false; + if (Retcode != other.Retcode) return false; + if(!challengeRewardList_.Equals(other.challengeRewardList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= challengeList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= challengeRewardList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + challengeRewardList_.WriteTo(output, _repeated_challengeRewardList_codec); + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + challengeList_.WriteTo(output, _repeated_challengeList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + challengeRewardList_.WriteTo(ref output, _repeated_challengeRewardList_codec); + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + challengeList_.WriteTo(ref output, _repeated_challengeList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += challengeList_.CalculateSize(_repeated_challengeList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += challengeRewardList_.CalculateSize(_repeated_challengeRewardList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetChallengeScRsp other) { + if (other == null) { + return; + } + challengeList_.Add(other.challengeList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + challengeRewardList_.Add(other.challengeRewardList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + challengeRewardList_.AddEntriesFrom(input, _repeated_challengeRewardList_codec); + break; + } + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + challengeList_.AddEntriesFrom(input, _repeated_challengeList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + challengeRewardList_.AddEntriesFrom(ref input, _repeated_challengeRewardList_codec); + break; + } + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + challengeList_.AddEntriesFrom(ref input, _repeated_challengeList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetChessRogueNousStoryInfoScRsp.cs b/Common/Proto/GetChessRogueNousStoryInfoScRsp.cs new file mode 100644 index 00000000..fa5032c5 --- /dev/null +++ b/Common/Proto/GetChessRogueNousStoryInfoScRsp.cs @@ -0,0 +1,290 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetChessRogueNousStoryInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetChessRogueNousStoryInfoScRsp.proto + public static partial class GetChessRogueNousStoryInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetChessRogueNousStoryInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetChessRogueNousStoryInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiVHZXRDaGVzc1JvZ3VlTm91c1N0b3J5SW5mb1NjUnNwLnByb3RvGiBDaGVz", + "c1JvZ3VlTm91c1N1YlN0b3J5SW5mby5wcm90bxohQ2hlc3NSb2d1ZU5vdXNN", + "YWluU3RvcnlJbmZvLnByb3RvIp4BCh9HZXRDaGVzc1JvZ3VlTm91c1N0b3J5", + "SW5mb1NjUnNwEg8KB3JldGNvZGUYDCABKA0SMwoOc3ViX3N0b3J5X2luZm8Y", + "BiADKAsyGy5DaGVzc1JvZ3VlTm91c1N1YlN0b3J5SW5mbxI1Cg9tYWluX3N0", + "b3J5X2luZm8YCiADKAsyHC5DaGVzc1JvZ3VlTm91c01haW5TdG9yeUluZm9C", + "HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueNousSubStoryInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueNousMainStoryInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetChessRogueNousStoryInfoScRsp), global::EggLink.DanhengServer.Proto.GetChessRogueNousStoryInfoScRsp.Parser, new[]{ "Retcode", "SubStoryInfo", "MainStoryInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetChessRogueNousStoryInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetChessRogueNousStoryInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetChessRogueNousStoryInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetChessRogueNousStoryInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetChessRogueNousStoryInfoScRsp(GetChessRogueNousStoryInfoScRsp other) : this() { + retcode_ = other.retcode_; + subStoryInfo_ = other.subStoryInfo_.Clone(); + mainStoryInfo_ = other.mainStoryInfo_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetChessRogueNousStoryInfoScRsp Clone() { + return new GetChessRogueNousStoryInfoScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 12; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "sub_story_info" field. + public const int SubStoryInfoFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_subStoryInfo_codec + = pb::FieldCodec.ForMessage(50, global::EggLink.DanhengServer.Proto.ChessRogueNousSubStoryInfo.Parser); + private readonly pbc::RepeatedField subStoryInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SubStoryInfo { + get { return subStoryInfo_; } + } + + /// Field number for the "main_story_info" field. + public const int MainStoryInfoFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_mainStoryInfo_codec + = pb::FieldCodec.ForMessage(82, global::EggLink.DanhengServer.Proto.ChessRogueNousMainStoryInfo.Parser); + private readonly pbc::RepeatedField mainStoryInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MainStoryInfo { + get { return mainStoryInfo_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetChessRogueNousStoryInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetChessRogueNousStoryInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if(!subStoryInfo_.Equals(other.subStoryInfo_)) return false; + if(!mainStoryInfo_.Equals(other.mainStoryInfo_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= subStoryInfo_.GetHashCode(); + hash ^= mainStoryInfo_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + subStoryInfo_.WriteTo(output, _repeated_subStoryInfo_codec); + mainStoryInfo_.WriteTo(output, _repeated_mainStoryInfo_codec); + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + subStoryInfo_.WriteTo(ref output, _repeated_subStoryInfo_codec); + mainStoryInfo_.WriteTo(ref output, _repeated_mainStoryInfo_codec); + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += subStoryInfo_.CalculateSize(_repeated_subStoryInfo_codec); + size += mainStoryInfo_.CalculateSize(_repeated_mainStoryInfo_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetChessRogueNousStoryInfoScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + subStoryInfo_.Add(other.subStoryInfo_); + mainStoryInfo_.Add(other.mainStoryInfo_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: { + subStoryInfo_.AddEntriesFrom(input, _repeated_subStoryInfo_codec); + break; + } + case 82: { + mainStoryInfo_.AddEntriesFrom(input, _repeated_mainStoryInfo_codec); + break; + } + case 96: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: { + subStoryInfo_.AddEntriesFrom(ref input, _repeated_subStoryInfo_codec); + break; + } + case 82: { + mainStoryInfo_.AddEntriesFrom(ref input, _repeated_mainStoryInfo_codec); + break; + } + case 96: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetCurChallengeScRsp.cs b/Common/Proto/GetCurChallengeScRsp.cs new file mode 100644 index 00000000..53c61c29 --- /dev/null +++ b/Common/Proto/GetCurChallengeScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetCurChallengeScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetCurChallengeScRsp.proto + public static partial class GetCurChallengeScRspReflection { + + #region Descriptor + /// File descriptor for GetCurChallengeScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetCurChallengeScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpHZXRDdXJDaGFsbGVuZ2VTY1JzcC5wcm90bxoTQ2hhbGxlbmdlSW5mby5w", + "cm90byJPChRHZXRDdXJDaGFsbGVuZ2VTY1JzcBIPCgdyZXRjb2RlGA8gASgN", + "EiYKDmNoYWxsZW5nZV9pbmZvGA4gASgLMg4uQ2hhbGxlbmdlSW5mb0IeqgIb", + "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChallengeInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetCurChallengeScRsp), global::EggLink.DanhengServer.Proto.GetCurChallengeScRsp.Parser, new[]{ "Retcode", "ChallengeInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetCurChallengeScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCurChallengeScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetCurChallengeScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCurChallengeScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCurChallengeScRsp(GetCurChallengeScRsp other) : this() { + retcode_ = other.retcode_; + challengeInfo_ = other.challengeInfo_ != null ? other.challengeInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCurChallengeScRsp Clone() { + return new GetCurChallengeScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 15; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "challenge_info" field. + public const int ChallengeInfoFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.ChallengeInfo challengeInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChallengeInfo ChallengeInfo { + get { return challengeInfo_; } + set { + challengeInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetCurChallengeScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetCurChallengeScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(ChallengeInfo, other.ChallengeInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (challengeInfo_ != null) hash ^= ChallengeInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (challengeInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(ChallengeInfo); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (challengeInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(ChallengeInfo); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (challengeInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChallengeInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetCurChallengeScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.challengeInfo_ != null) { + if (challengeInfo_ == null) { + ChallengeInfo = new global::EggLink.DanhengServer.Proto.ChallengeInfo(); + } + ChallengeInfo.MergeFrom(other.ChallengeInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + if (challengeInfo_ == null) { + ChallengeInfo = new global::EggLink.DanhengServer.Proto.ChallengeInfo(); + } + input.ReadMessage(ChallengeInfo); + break; + } + case 120: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + if (challengeInfo_ == null) { + ChallengeInfo = new global::EggLink.DanhengServer.Proto.ChallengeInfo(); + } + input.ReadMessage(ChallengeInfo); + break; + } + case 120: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetCurLineupDataScRsp.cs b/Common/Proto/GetCurLineupDataScRsp.cs new file mode 100644 index 00000000..d0de6ca8 --- /dev/null +++ b/Common/Proto/GetCurLineupDataScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetCurLineupDataScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetCurLineupDataScRsp.proto + public static partial class GetCurLineupDataScRspReflection { + + #region Descriptor + /// File descriptor for GetCurLineupDataScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetCurLineupDataScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtHZXRDdXJMaW5ldXBEYXRhU2NSc3AucHJvdG8aEExpbmV1cEluZm8ucHJv", + "dG8iRQoVR2V0Q3VyTGluZXVwRGF0YVNjUnNwEg8KB3JldGNvZGUYASABKA0S", + "GwoGbGluZXVwGA8gASgLMgsuTGluZXVwSW5mb0IeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.LineupInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetCurLineupDataScRsp), global::EggLink.DanhengServer.Proto.GetCurLineupDataScRsp.Parser, new[]{ "Retcode", "Lineup" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetCurLineupDataScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCurLineupDataScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetCurLineupDataScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCurLineupDataScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCurLineupDataScRsp(GetCurLineupDataScRsp other) : this() { + retcode_ = other.retcode_; + lineup_ = other.lineup_ != null ? other.lineup_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCurLineupDataScRsp Clone() { + return new GetCurLineupDataScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "lineup" field. + public const int LineupFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.LineupInfo lineup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.LineupInfo Lineup { + get { return lineup_; } + set { + lineup_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetCurLineupDataScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetCurLineupDataScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(Lineup, other.Lineup)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (lineup_ != null) hash ^= Lineup.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (lineup_ != null) { + output.WriteRawTag(122); + output.WriteMessage(Lineup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (lineup_ != null) { + output.WriteRawTag(122); + output.WriteMessage(Lineup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (lineup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lineup); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetCurLineupDataScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.lineup_ != null) { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + Lineup.MergeFrom(other.Lineup); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 122: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 122: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetCurSceneInfoScRsp.cs b/Common/Proto/GetCurSceneInfoScRsp.cs new file mode 100644 index 00000000..ae9da0cc --- /dev/null +++ b/Common/Proto/GetCurSceneInfoScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetCurSceneInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetCurSceneInfoScRsp.proto + public static partial class GetCurSceneInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetCurSceneInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetCurSceneInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpHZXRDdXJTY2VuZUluZm9TY1JzcC5wcm90bxoPU2NlbmVJbmZvLnByb3Rv", + "IkIKFEdldEN1clNjZW5lSW5mb1NjUnNwEg8KB3JldGNvZGUYDyABKA0SGQoF", + "c2NlbmUYDSABKAsyCi5TY2VuZUluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl", + "cnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetCurSceneInfoScRsp), global::EggLink.DanhengServer.Proto.GetCurSceneInfoScRsp.Parser, new[]{ "Retcode", "Scene" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetCurSceneInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCurSceneInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetCurSceneInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCurSceneInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCurSceneInfoScRsp(GetCurSceneInfoScRsp other) : this() { + retcode_ = other.retcode_; + scene_ = other.scene_ != null ? other.scene_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetCurSceneInfoScRsp Clone() { + return new GetCurSceneInfoScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 15; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "scene" field. + public const int SceneFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.SceneInfo scene_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneInfo Scene { + get { return scene_; } + set { + scene_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetCurSceneInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetCurSceneInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(Scene, other.Scene)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (scene_ != null) hash ^= Scene.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (scene_ != null) { + output.WriteRawTag(106); + output.WriteMessage(Scene); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (scene_ != null) { + output.WriteRawTag(106); + output.WriteMessage(Scene); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (scene_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scene); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetCurSceneInfoScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.scene_ != null) { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + Scene.MergeFrom(other.Scene); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 106: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + case 120: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 106: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + case 120: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetDailyActiveInfoCsReq.cs b/Common/Proto/GetDailyActiveInfoCsReq.cs new file mode 100644 index 00000000..91b23c04 --- /dev/null +++ b/Common/Proto/GetDailyActiveInfoCsReq.cs @@ -0,0 +1,197 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetDailyActiveInfoCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetDailyActiveInfoCsReq.proto + public static partial class GetDailyActiveInfoCsReqReflection { + + #region Descriptor + /// File descriptor for GetDailyActiveInfoCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetDailyActiveInfoCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1HZXREYWlseUFjdGl2ZUluZm9Dc1JlcS5wcm90byIZChdHZXREYWlseUFj", + "dGl2ZUluZm9Dc1JlcUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetDailyActiveInfoCsReq), global::EggLink.DanhengServer.Proto.GetDailyActiveInfoCsReq.Parser, null, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetDailyActiveInfoCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDailyActiveInfoCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetDailyActiveInfoCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDailyActiveInfoCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDailyActiveInfoCsReq(GetDailyActiveInfoCsReq other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDailyActiveInfoCsReq Clone() { + return new GetDailyActiveInfoCsReq(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDailyActiveInfoCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDailyActiveInfoCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDailyActiveInfoCsReq other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetDailyActiveInfoScRsp.cs b/Common/Proto/GetDailyActiveInfoScRsp.cs new file mode 100644 index 00000000..8e8d0fa6 --- /dev/null +++ b/Common/Proto/GetDailyActiveInfoScRsp.cs @@ -0,0 +1,328 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetDailyActiveInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetDailyActiveInfoScRsp.proto + public static partial class GetDailyActiveInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetDailyActiveInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetDailyActiveInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1HZXREYWlseUFjdGl2ZUluZm9TY1JzcC5wcm90bxoXRGFpbHlBY3Rpdml0", + "eUluZm8ucHJvdG8inwEKF0dldERhaWx5QWN0aXZlSW5mb1NjUnNwEg8KB3Jl", + "dGNvZGUYBiABKA0SMwoXZGFpbHlfYWN0aXZlX2xldmVsX2xpc3QYDiADKAsy", + "Ei5EYWlseUFjdGl2aXR5SW5mbxIiChpkYWlseV9hY3RpdmVfcXVlc3RfaWRf", + "bGlzdBgPIAMoDRIaChJkYWlseV9hY3RpdmVfcG9pbnQYBCABKA1CHqoCG0Vn", + "Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.DailyActivityInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetDailyActiveInfoScRsp), global::EggLink.DanhengServer.Proto.GetDailyActiveInfoScRsp.Parser, new[]{ "Retcode", "DailyActiveLevelList", "DailyActiveQuestIdList", "DailyActivePoint" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetDailyActiveInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDailyActiveInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetDailyActiveInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDailyActiveInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDailyActiveInfoScRsp(GetDailyActiveInfoScRsp other) : this() { + retcode_ = other.retcode_; + dailyActiveLevelList_ = other.dailyActiveLevelList_.Clone(); + dailyActiveQuestIdList_ = other.dailyActiveQuestIdList_.Clone(); + dailyActivePoint_ = other.dailyActivePoint_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDailyActiveInfoScRsp Clone() { + return new GetDailyActiveInfoScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 6; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "daily_active_level_list" field. + public const int DailyActiveLevelListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_dailyActiveLevelList_codec + = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.DailyActivityInfo.Parser); + private readonly pbc::RepeatedField dailyActiveLevelList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DailyActiveLevelList { + get { return dailyActiveLevelList_; } + } + + /// Field number for the "daily_active_quest_id_list" field. + public const int DailyActiveQuestIdListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_dailyActiveQuestIdList_codec + = pb::FieldCodec.ForUInt32(122); + private readonly pbc::RepeatedField dailyActiveQuestIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DailyActiveQuestIdList { + get { return dailyActiveQuestIdList_; } + } + + /// Field number for the "daily_active_point" field. + public const int DailyActivePointFieldNumber = 4; + private uint dailyActivePoint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DailyActivePoint { + get { return dailyActivePoint_; } + set { + dailyActivePoint_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDailyActiveInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDailyActiveInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if(!dailyActiveLevelList_.Equals(other.dailyActiveLevelList_)) return false; + if(!dailyActiveQuestIdList_.Equals(other.dailyActiveQuestIdList_)) return false; + if (DailyActivePoint != other.DailyActivePoint) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= dailyActiveLevelList_.GetHashCode(); + hash ^= dailyActiveQuestIdList_.GetHashCode(); + if (DailyActivePoint != 0) hash ^= DailyActivePoint.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (DailyActivePoint != 0) { + output.WriteRawTag(32); + output.WriteUInt32(DailyActivePoint); + } + if (Retcode != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Retcode); + } + dailyActiveLevelList_.WriteTo(output, _repeated_dailyActiveLevelList_codec); + dailyActiveQuestIdList_.WriteTo(output, _repeated_dailyActiveQuestIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (DailyActivePoint != 0) { + output.WriteRawTag(32); + output.WriteUInt32(DailyActivePoint); + } + if (Retcode != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Retcode); + } + dailyActiveLevelList_.WriteTo(ref output, _repeated_dailyActiveLevelList_codec); + dailyActiveQuestIdList_.WriteTo(ref output, _repeated_dailyActiveQuestIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += dailyActiveLevelList_.CalculateSize(_repeated_dailyActiveLevelList_codec); + size += dailyActiveQuestIdList_.CalculateSize(_repeated_dailyActiveQuestIdList_codec); + if (DailyActivePoint != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DailyActivePoint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDailyActiveInfoScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + dailyActiveLevelList_.Add(other.dailyActiveLevelList_); + dailyActiveQuestIdList_.Add(other.dailyActiveQuestIdList_); + if (other.DailyActivePoint != 0) { + DailyActivePoint = other.DailyActivePoint; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + DailyActivePoint = input.ReadUInt32(); + break; + } + case 48: { + Retcode = input.ReadUInt32(); + break; + } + case 114: { + dailyActiveLevelList_.AddEntriesFrom(input, _repeated_dailyActiveLevelList_codec); + break; + } + case 122: + case 120: { + dailyActiveQuestIdList_.AddEntriesFrom(input, _repeated_dailyActiveQuestIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + DailyActivePoint = input.ReadUInt32(); + break; + } + case 48: { + Retcode = input.ReadUInt32(); + break; + } + case 114: { + dailyActiveLevelList_.AddEntriesFrom(ref input, _repeated_dailyActiveLevelList_codec); + break; + } + case 122: + case 120: { + dailyActiveQuestIdList_.AddEntriesFrom(ref input, _repeated_dailyActiveQuestIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetEnteredSceneScRsp.cs b/Common/Proto/GetEnteredSceneScRsp.cs new file mode 100644 index 00000000..c13cc435 --- /dev/null +++ b/Common/Proto/GetEnteredSceneScRsp.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetEnteredSceneScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetEnteredSceneScRsp.proto + public static partial class GetEnteredSceneScRspReflection { + + #region Descriptor + /// File descriptor for GetEnteredSceneScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetEnteredSceneScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpHZXRFbnRlcmVkU2NlbmVTY1JzcC5wcm90bxoWRW50ZXJlZFNjZW5lSW5m", + "by5wcm90byJWChRHZXRFbnRlcmVkU2NlbmVTY1JzcBItChJlbnRlcmVkX3Nj", + "ZW5lX2luZm8YBiADKAsyES5FbnRlcmVkU2NlbmVJbmZvEg8KB3JldGNvZGUY", + "CyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.EnteredSceneInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetEnteredSceneScRsp), global::EggLink.DanhengServer.Proto.GetEnteredSceneScRsp.Parser, new[]{ "EnteredSceneInfo", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetEnteredSceneScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetEnteredSceneScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetEnteredSceneScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetEnteredSceneScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetEnteredSceneScRsp(GetEnteredSceneScRsp other) : this() { + enteredSceneInfo_ = other.enteredSceneInfo_.Clone(); + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetEnteredSceneScRsp Clone() { + return new GetEnteredSceneScRsp(this); + } + + /// Field number for the "entered_scene_info" field. + public const int EnteredSceneInfoFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_enteredSceneInfo_codec + = pb::FieldCodec.ForMessage(50, global::EggLink.DanhengServer.Proto.EnteredSceneInfo.Parser); + private readonly pbc::RepeatedField enteredSceneInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EnteredSceneInfo { + get { return enteredSceneInfo_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 11; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetEnteredSceneScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetEnteredSceneScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!enteredSceneInfo_.Equals(other.enteredSceneInfo_)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= enteredSceneInfo_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + enteredSceneInfo_.WriteTo(output, _repeated_enteredSceneInfo_codec); + if (Retcode != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + enteredSceneInfo_.WriteTo(ref output, _repeated_enteredSceneInfo_codec); + if (Retcode != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += enteredSceneInfo_.CalculateSize(_repeated_enteredSceneInfo_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetEnteredSceneScRsp other) { + if (other == null) { + return; + } + enteredSceneInfo_.Add(other.enteredSceneInfo_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: { + enteredSceneInfo_.AddEntriesFrom(input, _repeated_enteredSceneInfo_codec); + break; + } + case 88: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: { + enteredSceneInfo_.AddEntriesFrom(ref input, _repeated_enteredSceneInfo_codec); + break; + } + case 88: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetFarmStageGachaInfoCsReq.cs b/Common/Proto/GetFarmStageGachaInfoCsReq.cs new file mode 100644 index 00000000..42fe9e75 --- /dev/null +++ b/Common/Proto/GetFarmStageGachaInfoCsReq.cs @@ -0,0 +1,226 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetFarmStageGachaInfoCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetFarmStageGachaInfoCsReq.proto + public static partial class GetFarmStageGachaInfoCsReqReflection { + + #region Descriptor + /// File descriptor for GetFarmStageGachaInfoCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetFarmStageGachaInfoCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBHZXRGYXJtU3RhZ2VHYWNoYUluZm9Dc1JlcS5wcm90byI+ChpHZXRGYXJt", + "U3RhZ2VHYWNoYUluZm9Dc1JlcRIgChhmYXJtX3N0YWdlX2dhY2hhX2lkX2xp", + "c3QYDCADKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetFarmStageGachaInfoCsReq), global::EggLink.DanhengServer.Proto.GetFarmStageGachaInfoCsReq.Parser, new[]{ "FarmStageGachaIdList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetFarmStageGachaInfoCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFarmStageGachaInfoCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetFarmStageGachaInfoCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFarmStageGachaInfoCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFarmStageGachaInfoCsReq(GetFarmStageGachaInfoCsReq other) : this() { + farmStageGachaIdList_ = other.farmStageGachaIdList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFarmStageGachaInfoCsReq Clone() { + return new GetFarmStageGachaInfoCsReq(this); + } + + /// Field number for the "farm_stage_gacha_id_list" field. + public const int FarmStageGachaIdListFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_farmStageGachaIdList_codec + = pb::FieldCodec.ForUInt32(98); + private readonly pbc::RepeatedField farmStageGachaIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FarmStageGachaIdList { + get { return farmStageGachaIdList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetFarmStageGachaInfoCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetFarmStageGachaInfoCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!farmStageGachaIdList_.Equals(other.farmStageGachaIdList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= farmStageGachaIdList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + farmStageGachaIdList_.WriteTo(output, _repeated_farmStageGachaIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + farmStageGachaIdList_.WriteTo(ref output, _repeated_farmStageGachaIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += farmStageGachaIdList_.CalculateSize(_repeated_farmStageGachaIdList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetFarmStageGachaInfoCsReq other) { + if (other == null) { + return; + } + farmStageGachaIdList_.Add(other.farmStageGachaIdList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 98: + case 96: { + farmStageGachaIdList_.AddEntriesFrom(input, _repeated_farmStageGachaIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 98: + case 96: { + farmStageGachaIdList_.AddEntriesFrom(ref input, _repeated_farmStageGachaIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetFarmStageGachaInfoScRsp.cs b/Common/Proto/GetFarmStageGachaInfoScRsp.cs new file mode 100644 index 00000000..e3a91aef --- /dev/null +++ b/Common/Proto/GetFarmStageGachaInfoScRsp.cs @@ -0,0 +1,262 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetFarmStageGachaInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetFarmStageGachaInfoScRsp.proto + public static partial class GetFarmStageGachaInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetFarmStageGachaInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetFarmStageGachaInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBHZXRGYXJtU3RhZ2VHYWNoYUluZm9TY1JzcC5wcm90bxoYRmFybVN0YWdl", + "R2FjaGFJbmZvLnByb3RvImYKGkdldEZhcm1TdGFnZUdhY2hhSW5mb1NjUnNw", + "Eg8KB3JldGNvZGUYBSABKA0SNwoaZmFybV9zdGFnZV9nYWNoYV9pbmZvX2xp", + "c3QYDCADKAsyEy5GYXJtU3RhZ2VHYWNoYUluZm9CHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.FarmStageGachaInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetFarmStageGachaInfoScRsp), global::EggLink.DanhengServer.Proto.GetFarmStageGachaInfoScRsp.Parser, new[]{ "Retcode", "FarmStageGachaInfoList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetFarmStageGachaInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFarmStageGachaInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetFarmStageGachaInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFarmStageGachaInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFarmStageGachaInfoScRsp(GetFarmStageGachaInfoScRsp other) : this() { + retcode_ = other.retcode_; + farmStageGachaInfoList_ = other.farmStageGachaInfoList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFarmStageGachaInfoScRsp Clone() { + return new GetFarmStageGachaInfoScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 5; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "farm_stage_gacha_info_list" field. + public const int FarmStageGachaInfoListFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_farmStageGachaInfoList_codec + = pb::FieldCodec.ForMessage(98, global::EggLink.DanhengServer.Proto.FarmStageGachaInfo.Parser); + private readonly pbc::RepeatedField farmStageGachaInfoList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FarmStageGachaInfoList { + get { return farmStageGachaInfoList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetFarmStageGachaInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetFarmStageGachaInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if(!farmStageGachaInfoList_.Equals(other.farmStageGachaInfoList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= farmStageGachaInfoList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + farmStageGachaInfoList_.WriteTo(output, _repeated_farmStageGachaInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + farmStageGachaInfoList_.WriteTo(ref output, _repeated_farmStageGachaInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += farmStageGachaInfoList_.CalculateSize(_repeated_farmStageGachaInfoList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetFarmStageGachaInfoScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + farmStageGachaInfoList_.Add(other.farmStageGachaInfoList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 98: { + farmStageGachaInfoList_.AddEntriesFrom(input, _repeated_farmStageGachaInfoList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 98: { + farmStageGachaInfoList_.AddEntriesFrom(ref input, _repeated_farmStageGachaInfoList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetFirstTalkByPerformanceNpcCsReq.cs b/Common/Proto/GetFirstTalkByPerformanceNpcCsReq.cs new file mode 100644 index 00000000..14ff5fc5 --- /dev/null +++ b/Common/Proto/GetFirstTalkByPerformanceNpcCsReq.cs @@ -0,0 +1,226 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetFirstTalkByPerformanceNpcCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetFirstTalkByPerformanceNpcCsReq.proto + public static partial class GetFirstTalkByPerformanceNpcCsReqReflection { + + #region Descriptor + /// File descriptor for GetFirstTalkByPerformanceNpcCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetFirstTalkByPerformanceNpcCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CidHZXRGaXJzdFRhbGtCeVBlcmZvcm1hbmNlTnBjQ3NSZXEucHJvdG8iOgoh", + "R2V0Rmlyc3RUYWxrQnlQZXJmb3JtYW5jZU5wY0NzUmVxEhUKDW5wY190YWxr", + "X2xpc3QYBiADKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetFirstTalkByPerformanceNpcCsReq), global::EggLink.DanhengServer.Proto.GetFirstTalkByPerformanceNpcCsReq.Parser, new[]{ "NpcTalkList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetFirstTalkByPerformanceNpcCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFirstTalkByPerformanceNpcCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetFirstTalkByPerformanceNpcCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFirstTalkByPerformanceNpcCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFirstTalkByPerformanceNpcCsReq(GetFirstTalkByPerformanceNpcCsReq other) : this() { + npcTalkList_ = other.npcTalkList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFirstTalkByPerformanceNpcCsReq Clone() { + return new GetFirstTalkByPerformanceNpcCsReq(this); + } + + /// Field number for the "npc_talk_list" field. + public const int NpcTalkListFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_npcTalkList_codec + = pb::FieldCodec.ForUInt32(50); + private readonly pbc::RepeatedField npcTalkList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NpcTalkList { + get { return npcTalkList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetFirstTalkByPerformanceNpcCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetFirstTalkByPerformanceNpcCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!npcTalkList_.Equals(other.npcTalkList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= npcTalkList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + npcTalkList_.WriteTo(output, _repeated_npcTalkList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + npcTalkList_.WriteTo(ref output, _repeated_npcTalkList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += npcTalkList_.CalculateSize(_repeated_npcTalkList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetFirstTalkByPerformanceNpcCsReq other) { + if (other == null) { + return; + } + npcTalkList_.Add(other.npcTalkList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: + case 48: { + npcTalkList_.AddEntriesFrom(input, _repeated_npcTalkList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: + case 48: { + npcTalkList_.AddEntriesFrom(ref input, _repeated_npcTalkList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetFirstTalkByPerformanceNpcScRsp.cs b/Common/Proto/GetFirstTalkByPerformanceNpcScRsp.cs new file mode 100644 index 00000000..11cebd85 --- /dev/null +++ b/Common/Proto/GetFirstTalkByPerformanceNpcScRsp.cs @@ -0,0 +1,262 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetFirstTalkByPerformanceNpcScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetFirstTalkByPerformanceNpcScRsp.proto + public static partial class GetFirstTalkByPerformanceNpcScRspReflection { + + #region Descriptor + /// File descriptor for GetFirstTalkByPerformanceNpcScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetFirstTalkByPerformanceNpcScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CidHZXRGaXJzdFRhbGtCeVBlcmZvcm1hbmNlTnBjU2NSc3AucHJvdG8aEU5w", + "Y1RhbGtJbmZvLnByb3RvIl4KIUdldEZpcnN0VGFsa0J5UGVyZm9ybWFuY2VO", + "cGNTY1JzcBIPCgdyZXRjb2RlGA4gASgNEigKEm5wY190YWxrX2luZm9fbGlz", + "dBgEIAMoCzIMLk5wY1RhbGtJbmZvQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2", + "ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.NpcTalkInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetFirstTalkByPerformanceNpcScRsp), global::EggLink.DanhengServer.Proto.GetFirstTalkByPerformanceNpcScRsp.Parser, new[]{ "Retcode", "NpcTalkInfoList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetFirstTalkByPerformanceNpcScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFirstTalkByPerformanceNpcScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetFirstTalkByPerformanceNpcScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFirstTalkByPerformanceNpcScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFirstTalkByPerformanceNpcScRsp(GetFirstTalkByPerformanceNpcScRsp other) : this() { + retcode_ = other.retcode_; + npcTalkInfoList_ = other.npcTalkInfoList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFirstTalkByPerformanceNpcScRsp Clone() { + return new GetFirstTalkByPerformanceNpcScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 14; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "npc_talk_info_list" field. + public const int NpcTalkInfoListFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_npcTalkInfoList_codec + = pb::FieldCodec.ForMessage(34, global::EggLink.DanhengServer.Proto.NpcTalkInfo.Parser); + private readonly pbc::RepeatedField npcTalkInfoList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NpcTalkInfoList { + get { return npcTalkInfoList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetFirstTalkByPerformanceNpcScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetFirstTalkByPerformanceNpcScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if(!npcTalkInfoList_.Equals(other.npcTalkInfoList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= npcTalkInfoList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + npcTalkInfoList_.WriteTo(output, _repeated_npcTalkInfoList_codec); + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + npcTalkInfoList_.WriteTo(ref output, _repeated_npcTalkInfoList_codec); + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += npcTalkInfoList_.CalculateSize(_repeated_npcTalkInfoList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetFirstTalkByPerformanceNpcScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + npcTalkInfoList_.Add(other.npcTalkInfoList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + npcTalkInfoList_.AddEntriesFrom(input, _repeated_npcTalkInfoList_codec); + break; + } + case 112: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + npcTalkInfoList_.AddEntriesFrom(ref input, _repeated_npcTalkInfoList_codec); + break; + } + case 112: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetFirstTalkNpcCsReq.cs b/Common/Proto/GetFirstTalkNpcCsReq.cs new file mode 100644 index 00000000..9f87af09 --- /dev/null +++ b/Common/Proto/GetFirstTalkNpcCsReq.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetFirstTalkNpcCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetFirstTalkNpcCsReq.proto + public static partial class GetFirstTalkNpcCsReqReflection { + + #region Descriptor + /// File descriptor for GetFirstTalkNpcCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetFirstTalkNpcCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpHZXRGaXJzdFRhbGtOcGNDc1JlcS5wcm90byImChRHZXRGaXJzdFRhbGtO", + "cGNDc1JlcRIOCgZucGNfaWQYDCADKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl", + "cnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetFirstTalkNpcCsReq), global::EggLink.DanhengServer.Proto.GetFirstTalkNpcCsReq.Parser, new[]{ "NpcId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetFirstTalkNpcCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFirstTalkNpcCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetFirstTalkNpcCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFirstTalkNpcCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFirstTalkNpcCsReq(GetFirstTalkNpcCsReq other) : this() { + npcId_ = other.npcId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFirstTalkNpcCsReq Clone() { + return new GetFirstTalkNpcCsReq(this); + } + + /// Field number for the "npc_id" field. + public const int NpcIdFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_npcId_codec + = pb::FieldCodec.ForUInt32(98); + private readonly pbc::RepeatedField npcId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NpcId { + get { return npcId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetFirstTalkNpcCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetFirstTalkNpcCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!npcId_.Equals(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; + 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 + npcId_.WriteTo(output, _repeated_npcId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + npcId_.WriteTo(ref output, _repeated_npcId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += npcId_.CalculateSize(_repeated_npcId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetFirstTalkNpcCsReq other) { + if (other == null) { + return; + } + npcId_.Add(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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 98: + case 96: { + npcId_.AddEntriesFrom(input, _repeated_npcId_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 98: + case 96: { + npcId_.AddEntriesFrom(ref input, _repeated_npcId_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetFirstTalkNpcScRsp.cs b/Common/Proto/GetFirstTalkNpcScRsp.cs new file mode 100644 index 00000000..3490a8cf --- /dev/null +++ b/Common/Proto/GetFirstTalkNpcScRsp.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetFirstTalkNpcScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetFirstTalkNpcScRsp.proto + public static partial class GetFirstTalkNpcScRspReflection { + + #region Descriptor + /// File descriptor for GetFirstTalkNpcScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetFirstTalkNpcScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpHZXRGaXJzdFRhbGtOcGNTY1JzcC5wcm90bxoWRmlyc3ROcGNUYWxrSW5m", + "by5wcm90byJWChRHZXRGaXJzdFRhbGtOcGNTY1JzcBItChJucGNfdGFsa19p", + "bmZvX2xpc3QYAyADKAsyES5GaXJzdE5wY1RhbGtJbmZvEg8KB3JldGNvZGUY", + "BSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.FirstNpcTalkInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetFirstTalkNpcScRsp), global::EggLink.DanhengServer.Proto.GetFirstTalkNpcScRsp.Parser, new[]{ "NpcTalkInfoList", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetFirstTalkNpcScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFirstTalkNpcScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetFirstTalkNpcScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFirstTalkNpcScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFirstTalkNpcScRsp(GetFirstTalkNpcScRsp other) : this() { + npcTalkInfoList_ = other.npcTalkInfoList_.Clone(); + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFirstTalkNpcScRsp Clone() { + return new GetFirstTalkNpcScRsp(this); + } + + /// Field number for the "npc_talk_info_list" field. + public const int NpcTalkInfoListFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_npcTalkInfoList_codec + = pb::FieldCodec.ForMessage(26, global::EggLink.DanhengServer.Proto.FirstNpcTalkInfo.Parser); + private readonly pbc::RepeatedField npcTalkInfoList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NpcTalkInfoList { + get { return npcTalkInfoList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 5; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetFirstTalkNpcScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetFirstTalkNpcScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!npcTalkInfoList_.Equals(other.npcTalkInfoList_)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= npcTalkInfoList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + npcTalkInfoList_.WriteTo(output, _repeated_npcTalkInfoList_codec); + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + npcTalkInfoList_.WriteTo(ref output, _repeated_npcTalkInfoList_codec); + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += npcTalkInfoList_.CalculateSize(_repeated_npcTalkInfoList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetFirstTalkNpcScRsp other) { + if (other == null) { + return; + } + npcTalkInfoList_.Add(other.npcTalkInfoList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + npcTalkInfoList_.AddEntriesFrom(input, _repeated_npcTalkInfoList_codec); + break; + } + case 40: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + npcTalkInfoList_.AddEntriesFrom(ref input, _repeated_npcTalkInfoList_codec); + break; + } + case 40: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetFriendApplyListInfoScRsp.cs b/Common/Proto/GetFriendApplyListInfoScRsp.cs new file mode 100644 index 00000000..400c4973 --- /dev/null +++ b/Common/Proto/GetFriendApplyListInfoScRsp.cs @@ -0,0 +1,262 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetFriendApplyListInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetFriendApplyListInfoScRsp.proto + public static partial class GetFriendApplyListInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetFriendApplyListInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetFriendApplyListInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFHZXRGcmllbmRBcHBseUxpc3RJbmZvU2NSc3AucHJvdG8aFUZyaWVuZEFw", + "cGx5SW5mby5wcm90byJbChtHZXRGcmllbmRBcHBseUxpc3RJbmZvU2NSc3AS", + "DwoHcmV0Y29kZRgJIAEoDRIrChFmcmllbmRfYXBwbHlfbGlzdBgFIAMoCzIQ", + "LkZyaWVuZEFwcGx5SW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlBy", + "b3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.FriendApplyInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetFriendApplyListInfoScRsp), global::EggLink.DanhengServer.Proto.GetFriendApplyListInfoScRsp.Parser, new[]{ "Retcode", "FriendApplyList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetFriendApplyListInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFriendApplyListInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetFriendApplyListInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFriendApplyListInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFriendApplyListInfoScRsp(GetFriendApplyListInfoScRsp other) : this() { + retcode_ = other.retcode_; + friendApplyList_ = other.friendApplyList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFriendApplyListInfoScRsp Clone() { + return new GetFriendApplyListInfoScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 9; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "friend_apply_list" field. + public const int FriendApplyListFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_friendApplyList_codec + = pb::FieldCodec.ForMessage(42, global::EggLink.DanhengServer.Proto.FriendApplyInfo.Parser); + private readonly pbc::RepeatedField friendApplyList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FriendApplyList { + get { return friendApplyList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetFriendApplyListInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetFriendApplyListInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if(!friendApplyList_.Equals(other.friendApplyList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= friendApplyList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + friendApplyList_.WriteTo(output, _repeated_friendApplyList_codec); + if (Retcode != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + friendApplyList_.WriteTo(ref output, _repeated_friendApplyList_codec); + if (Retcode != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += friendApplyList_.CalculateSize(_repeated_friendApplyList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetFriendApplyListInfoScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + friendApplyList_.Add(other.friendApplyList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + friendApplyList_.AddEntriesFrom(input, _repeated_friendApplyList_codec); + break; + } + case 72: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + friendApplyList_.AddEntriesFrom(ref input, _repeated_friendApplyList_codec); + break; + } + case 72: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetFriendListInfoScRsp.cs b/Common/Proto/GetFriendListInfoScRsp.cs new file mode 100644 index 00000000..52bbd9cb --- /dev/null +++ b/Common/Proto/GetFriendListInfoScRsp.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetFriendListInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetFriendListInfoScRsp.proto + public static partial class GetFriendListInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetFriendListInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetFriendListInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxHZXRGcmllbmRMaXN0SW5mb1NjUnNwLnByb3RvGhRGcmllbmRMaXN0SW5m", + "by5wcm90byJPChZHZXRGcmllbmRMaXN0SW5mb1NjUnNwEg8KB3JldGNvZGUY", + "BiABKA0SJAoLZnJpZW5kX2xpc3QYAiADKAsyDy5GcmllbmRMaXN0SW5mb0Ie", + "qgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.FriendListInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetFriendListInfoScRsp), global::EggLink.DanhengServer.Proto.GetFriendListInfoScRsp.Parser, new[]{ "Retcode", "FriendList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetFriendListInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFriendListInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetFriendListInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFriendListInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFriendListInfoScRsp(GetFriendListInfoScRsp other) : this() { + retcode_ = other.retcode_; + friendList_ = other.friendList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFriendListInfoScRsp Clone() { + return new GetFriendListInfoScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 6; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "friend_list" field. + public const int FriendListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_friendList_codec + = pb::FieldCodec.ForMessage(18, global::EggLink.DanhengServer.Proto.FriendListInfo.Parser); + private readonly pbc::RepeatedField friendList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FriendList { + get { return friendList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetFriendListInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetFriendListInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if(!friendList_.Equals(other.friendList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= friendList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + friendList_.WriteTo(output, _repeated_friendList_codec); + if (Retcode != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + friendList_.WriteTo(ref output, _repeated_friendList_codec); + if (Retcode != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += friendList_.CalculateSize(_repeated_friendList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetFriendListInfoScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + friendList_.Add(other.friendList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + friendList_.AddEntriesFrom(input, _repeated_friendList_codec); + break; + } + case 48: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + friendList_.AddEntriesFrom(ref input, _repeated_friendList_codec); + break; + } + case 48: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetFriendLoginInfoScRsp.cs b/Common/Proto/GetFriendLoginInfoScRsp.cs new file mode 100644 index 00000000..121db35e --- /dev/null +++ b/Common/Proto/GetFriendLoginInfoScRsp.cs @@ -0,0 +1,291 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetFriendLoginInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetFriendLoginInfoScRsp.proto + public static partial class GetFriendLoginInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetFriendLoginInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetFriendLoginInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1HZXRGcmllbmRMb2dpbkluZm9TY1JzcC5wcm90byJYChdHZXRGcmllbmRM", + "b2dpbkluZm9TY1JzcBIXCg9mcmllbmRfdWlkX2xpc3QYCyADKA0SEwoLREtP", + "R0JIUElGS0oYDCADKA0SDwoHcmV0Y29kZRgEIAEoDUIeqgIbRWdnTGluay5E", + "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetFriendLoginInfoScRsp), global::EggLink.DanhengServer.Proto.GetFriendLoginInfoScRsp.Parser, new[]{ "FriendUidList", "DKOGBHPIFKJ", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetFriendLoginInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFriendLoginInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetFriendLoginInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFriendLoginInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFriendLoginInfoScRsp(GetFriendLoginInfoScRsp other) : this() { + friendUidList_ = other.friendUidList_.Clone(); + dKOGBHPIFKJ_ = other.dKOGBHPIFKJ_.Clone(); + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFriendLoginInfoScRsp Clone() { + return new GetFriendLoginInfoScRsp(this); + } + + /// Field number for the "friend_uid_list" field. + public const int FriendUidListFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_friendUidList_codec + = pb::FieldCodec.ForUInt32(90); + private readonly pbc::RepeatedField friendUidList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FriendUidList { + get { return friendUidList_; } + } + + /// Field number for the "DKOGBHPIFKJ" field. + public const int DKOGBHPIFKJFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_dKOGBHPIFKJ_codec + = pb::FieldCodec.ForUInt32(98); + private readonly pbc::RepeatedField dKOGBHPIFKJ_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DKOGBHPIFKJ { + get { return dKOGBHPIFKJ_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 4; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetFriendLoginInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetFriendLoginInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!friendUidList_.Equals(other.friendUidList_)) return false; + if(!dKOGBHPIFKJ_.Equals(other.dKOGBHPIFKJ_)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= friendUidList_.GetHashCode(); + hash ^= dKOGBHPIFKJ_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + friendUidList_.WriteTo(output, _repeated_friendUidList_codec); + dKOGBHPIFKJ_.WriteTo(output, _repeated_dKOGBHPIFKJ_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + friendUidList_.WriteTo(ref output, _repeated_friendUidList_codec); + dKOGBHPIFKJ_.WriteTo(ref output, _repeated_dKOGBHPIFKJ_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += friendUidList_.CalculateSize(_repeated_friendUidList_codec); + size += dKOGBHPIFKJ_.CalculateSize(_repeated_dKOGBHPIFKJ_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetFriendLoginInfoScRsp other) { + if (other == null) { + return; + } + friendUidList_.Add(other.friendUidList_); + dKOGBHPIFKJ_.Add(other.dKOGBHPIFKJ_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 90: + case 88: { + friendUidList_.AddEntriesFrom(input, _repeated_friendUidList_codec); + break; + } + case 98: + case 96: { + dKOGBHPIFKJ_.AddEntriesFrom(input, _repeated_dKOGBHPIFKJ_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 90: + case 88: { + friendUidList_.AddEntriesFrom(ref input, _repeated_friendUidList_codec); + break; + } + case 98: + case 96: { + dKOGBHPIFKJ_.AddEntriesFrom(ref input, _repeated_dKOGBHPIFKJ_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetFriendRecommendListInfoScRsp.cs b/Common/Proto/GetFriendRecommendListInfoScRsp.cs new file mode 100644 index 00000000..7db8bc2f --- /dev/null +++ b/Common/Proto/GetFriendRecommendListInfoScRsp.cs @@ -0,0 +1,262 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetFriendRecommendListInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetFriendRecommendListInfoScRsp.proto + public static partial class GetFriendRecommendListInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetFriendRecommendListInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetFriendRecommendListInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiVHZXRGcmllbmRSZWNvbW1lbmRMaXN0SW5mb1NjUnNwLnByb3RvGhlGcmll", + "bmRSZWNvbW1lbmRJbmZvLnByb3RvImcKH0dldEZyaWVuZFJlY29tbWVuZExp", + "c3RJbmZvU2NSc3ASMwoVZnJpZW5kX3JlY29tbWVuZF9saXN0GAogAygLMhQu", + "RnJpZW5kUmVjb21tZW5kSW5mbxIPCgdyZXRjb2RlGAggASgNQh6qAhtFZ2dM", + "aW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.FriendRecommendInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetFriendRecommendListInfoScRsp), global::EggLink.DanhengServer.Proto.GetFriendRecommendListInfoScRsp.Parser, new[]{ "FriendRecommendList", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetFriendRecommendListInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFriendRecommendListInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetFriendRecommendListInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFriendRecommendListInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFriendRecommendListInfoScRsp(GetFriendRecommendListInfoScRsp other) : this() { + friendRecommendList_ = other.friendRecommendList_.Clone(); + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFriendRecommendListInfoScRsp Clone() { + return new GetFriendRecommendListInfoScRsp(this); + } + + /// Field number for the "friend_recommend_list" field. + public const int FriendRecommendListFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_friendRecommendList_codec + = pb::FieldCodec.ForMessage(82, global::EggLink.DanhengServer.Proto.FriendRecommendInfo.Parser); + private readonly pbc::RepeatedField friendRecommendList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FriendRecommendList { + get { return friendRecommendList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 8; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetFriendRecommendListInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetFriendRecommendListInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!friendRecommendList_.Equals(other.friendRecommendList_)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= friendRecommendList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + friendRecommendList_.WriteTo(output, _repeated_friendRecommendList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + friendRecommendList_.WriteTo(ref output, _repeated_friendRecommendList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += friendRecommendList_.CalculateSize(_repeated_friendRecommendList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetFriendRecommendListInfoScRsp other) { + if (other == null) { + return; + } + friendRecommendList_.Add(other.friendRecommendList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + Retcode = input.ReadUInt32(); + break; + } + case 82: { + friendRecommendList_.AddEntriesFrom(input, _repeated_friendRecommendList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + Retcode = input.ReadUInt32(); + break; + } + case 82: { + friendRecommendList_.AddEntriesFrom(ref input, _repeated_friendRecommendList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetGachaCeilingCsReq.cs b/Common/Proto/GetGachaCeilingCsReq.cs new file mode 100644 index 00000000..3b74d30f --- /dev/null +++ b/Common/Proto/GetGachaCeilingCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetGachaCeilingCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetGachaCeilingCsReq.proto + public static partial class GetGachaCeilingCsReqReflection { + + #region Descriptor + /// File descriptor for GetGachaCeilingCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetGachaCeilingCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpHZXRHYWNoYUNlaWxpbmdDc1JlcS5wcm90byIqChRHZXRHYWNoYUNlaWxp", + "bmdDc1JlcRISCgpnYWNoYV90eXBlGAwgASgNQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetGachaCeilingCsReq), global::EggLink.DanhengServer.Proto.GetGachaCeilingCsReq.Parser, new[]{ "GachaType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetGachaCeilingCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGachaCeilingCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetGachaCeilingCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGachaCeilingCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGachaCeilingCsReq(GetGachaCeilingCsReq other) : this() { + gachaType_ = other.gachaType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGachaCeilingCsReq Clone() { + return new GetGachaCeilingCsReq(this); + } + + /// Field number for the "gacha_type" field. + public const int GachaTypeFieldNumber = 12; + private uint gachaType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GachaType { + get { return gachaType_; } + set { + gachaType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGachaCeilingCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGachaCeilingCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GachaType != other.GachaType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GachaType != 0) hash ^= GachaType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (GachaType != 0) { + output.WriteRawTag(96); + output.WriteUInt32(GachaType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (GachaType != 0) { + output.WriteRawTag(96); + output.WriteUInt32(GachaType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GachaType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GachaType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGachaCeilingCsReq other) { + if (other == null) { + return; + } + if (other.GachaType != 0) { + GachaType = other.GachaType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 96: { + GachaType = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 96: { + GachaType = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetGachaCeilingScRsp.cs b/Common/Proto/GetGachaCeilingScRsp.cs new file mode 100644 index 00000000..362d444f --- /dev/null +++ b/Common/Proto/GetGachaCeilingScRsp.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetGachaCeilingScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetGachaCeilingScRsp.proto + public static partial class GetGachaCeilingScRspReflection { + + #region Descriptor + /// File descriptor for GetGachaCeilingScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetGachaCeilingScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpHZXRHYWNoYUNlaWxpbmdTY1JzcC5wcm90bxoSR2FjaGFDZWlsaW5nLnBy", + "b3RvImEKFEdldEdhY2hhQ2VpbGluZ1NjUnNwEhIKCmdhY2hhX3R5cGUYBiAB", + "KA0SDwoHcmV0Y29kZRgDIAEoDRIkCg1nYWNoYV9jZWlsaW5nGAEgASgLMg0u", + "R2FjaGFDZWlsaW5nQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GachaCeilingReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetGachaCeilingScRsp), global::EggLink.DanhengServer.Proto.GetGachaCeilingScRsp.Parser, new[]{ "GachaType", "Retcode", "GachaCeiling" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetGachaCeilingScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGachaCeilingScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetGachaCeilingScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGachaCeilingScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGachaCeilingScRsp(GetGachaCeilingScRsp other) : this() { + gachaType_ = other.gachaType_; + retcode_ = other.retcode_; + gachaCeiling_ = other.gachaCeiling_ != null ? other.gachaCeiling_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGachaCeilingScRsp Clone() { + return new GetGachaCeilingScRsp(this); + } + + /// Field number for the "gacha_type" field. + public const int GachaTypeFieldNumber = 6; + private uint gachaType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GachaType { + get { return gachaType_; } + set { + gachaType_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "gacha_ceiling" field. + public const int GachaCeilingFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.GachaCeiling gachaCeiling_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.GachaCeiling GachaCeiling { + get { return gachaCeiling_; } + set { + gachaCeiling_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGachaCeilingScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGachaCeilingScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GachaType != other.GachaType) return false; + if (Retcode != other.Retcode) return false; + if (!object.Equals(GachaCeiling, other.GachaCeiling)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GachaType != 0) hash ^= GachaType.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (gachaCeiling_ != null) hash ^= GachaCeiling.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (gachaCeiling_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GachaCeiling); + } + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (GachaType != 0) { + output.WriteRawTag(48); + output.WriteUInt32(GachaType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (gachaCeiling_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GachaCeiling); + } + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (GachaType != 0) { + output.WriteRawTag(48); + output.WriteUInt32(GachaType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GachaType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GachaType); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (gachaCeiling_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GachaCeiling); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGachaCeilingScRsp other) { + if (other == null) { + return; + } + if (other.GachaType != 0) { + GachaType = other.GachaType; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.gachaCeiling_ != null) { + if (gachaCeiling_ == null) { + GachaCeiling = new global::EggLink.DanhengServer.Proto.GachaCeiling(); + } + GachaCeiling.MergeFrom(other.GachaCeiling); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (gachaCeiling_ == null) { + GachaCeiling = new global::EggLink.DanhengServer.Proto.GachaCeiling(); + } + input.ReadMessage(GachaCeiling); + break; + } + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 48: { + GachaType = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (gachaCeiling_ == null) { + GachaCeiling = new global::EggLink.DanhengServer.Proto.GachaCeiling(); + } + input.ReadMessage(GachaCeiling); + break; + } + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 48: { + GachaType = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetGachaInfoScRsp.cs b/Common/Proto/GetGachaInfoScRsp.cs new file mode 100644 index 00000000..a0397610 --- /dev/null +++ b/Common/Proto/GetGachaInfoScRsp.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetGachaInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetGachaInfoScRsp.proto + public static partial class GetGachaInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetGachaInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetGachaInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdHZXRHYWNoYUluZm9TY1JzcC5wcm90bxoPR2FjaGFJbmZvLnByb3RvIkkK", + "EUdldEdhY2hhSW5mb1NjUnNwEg8KB3JldGNvZGUYBCABKA0SIwoPZ2FjaGFf", + "aW5mb19saXN0GA0gAygLMgouR2FjaGFJbmZvQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GachaInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetGachaInfoScRsp), global::EggLink.DanhengServer.Proto.GetGachaInfoScRsp.Parser, new[]{ "Retcode", "GachaInfoList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetGachaInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGachaInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetGachaInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGachaInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGachaInfoScRsp(GetGachaInfoScRsp other) : this() { + retcode_ = other.retcode_; + gachaInfoList_ = other.gachaInfoList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetGachaInfoScRsp Clone() { + return new GetGachaInfoScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 4; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "gacha_info_list" field. + public const int GachaInfoListFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_gachaInfoList_codec + = pb::FieldCodec.ForMessage(106, global::EggLink.DanhengServer.Proto.GachaInfo.Parser); + private readonly pbc::RepeatedField gachaInfoList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GachaInfoList { + get { return gachaInfoList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetGachaInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetGachaInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if(!gachaInfoList_.Equals(other.gachaInfoList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= gachaInfoList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + gachaInfoList_.WriteTo(output, _repeated_gachaInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + gachaInfoList_.WriteTo(ref output, _repeated_gachaInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += gachaInfoList_.CalculateSize(_repeated_gachaInfoList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetGachaInfoScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + gachaInfoList_.Add(other.gachaInfoList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + gachaInfoList_.AddEntriesFrom(input, _repeated_gachaInfoList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + gachaInfoList_.AddEntriesFrom(ref input, _repeated_gachaInfoList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetHeroBasicTypeInfoScRsp.cs b/Common/Proto/GetHeroBasicTypeInfoScRsp.cs new file mode 100644 index 00000000..8a9a5ccb --- /dev/null +++ b/Common/Proto/GetHeroBasicTypeInfoScRsp.cs @@ -0,0 +1,338 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetHeroBasicTypeInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetHeroBasicTypeInfoScRsp.proto + public static partial class GetHeroBasicTypeInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetHeroBasicTypeInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetHeroBasicTypeInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9HZXRIZXJvQmFzaWNUeXBlSW5mb1NjUnNwLnByb3RvGhNIZXJvQmFzaWNU", + "eXBlLnByb3RvGgxHZW5kZXIucHJvdG8aF0hlcm9CYXNpY1R5cGVJbmZvLnBy", + "b3RvIp8BChlHZXRIZXJvQmFzaWNUeXBlSW5mb1NjUnNwEiYKDmN1cl9iYXNp", + "Y190eXBlGAcgASgOMg4uSGVyb0Jhc2ljVHlwZRIwChRiYXNpY190eXBlX2lu", + "Zm9fbGlzdBgCIAMoCzISLkhlcm9CYXNpY1R5cGVJbmZvEhcKBmdlbmRlchgB", + "IAEoDjIHLkdlbmRlchIPCgdyZXRjb2RlGAsgASgNQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.HeroBasicTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.GenderReflection.Descriptor, global::EggLink.DanhengServer.Proto.HeroBasicTypeInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetHeroBasicTypeInfoScRsp), global::EggLink.DanhengServer.Proto.GetHeroBasicTypeInfoScRsp.Parser, new[]{ "CurBasicType", "BasicTypeInfoList", "Gender", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetHeroBasicTypeInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetHeroBasicTypeInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetHeroBasicTypeInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetHeroBasicTypeInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetHeroBasicTypeInfoScRsp(GetHeroBasicTypeInfoScRsp other) : this() { + curBasicType_ = other.curBasicType_; + basicTypeInfoList_ = other.basicTypeInfoList_.Clone(); + gender_ = other.gender_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetHeroBasicTypeInfoScRsp Clone() { + return new GetHeroBasicTypeInfoScRsp(this); + } + + /// Field number for the "cur_basic_type" field. + public const int CurBasicTypeFieldNumber = 7; + private global::EggLink.DanhengServer.Proto.HeroBasicType curBasicType_ = global::EggLink.DanhengServer.Proto.HeroBasicType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.HeroBasicType CurBasicType { + get { return curBasicType_; } + set { + curBasicType_ = value; + } + } + + /// Field number for the "basic_type_info_list" field. + public const int BasicTypeInfoListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_basicTypeInfoList_codec + = pb::FieldCodec.ForMessage(18, global::EggLink.DanhengServer.Proto.HeroBasicTypeInfo.Parser); + private readonly pbc::RepeatedField basicTypeInfoList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BasicTypeInfoList { + get { return basicTypeInfoList_; } + } + + /// Field number for the "gender" field. + public const int GenderFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.Gender gender_ = global::EggLink.DanhengServer.Proto.Gender.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.Gender Gender { + get { return gender_; } + set { + gender_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 11; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetHeroBasicTypeInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetHeroBasicTypeInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CurBasicType != other.CurBasicType) return false; + if(!basicTypeInfoList_.Equals(other.basicTypeInfoList_)) return false; + if (Gender != other.Gender) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CurBasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) hash ^= CurBasicType.GetHashCode(); + hash ^= basicTypeInfoList_.GetHashCode(); + if (Gender != global::EggLink.DanhengServer.Proto.Gender.None) hash ^= Gender.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Gender != global::EggLink.DanhengServer.Proto.Gender.None) { + output.WriteRawTag(8); + output.WriteEnum((int) Gender); + } + basicTypeInfoList_.WriteTo(output, _repeated_basicTypeInfoList_codec); + if (CurBasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + output.WriteRawTag(56); + output.WriteEnum((int) CurBasicType); + } + if (Retcode != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Gender != global::EggLink.DanhengServer.Proto.Gender.None) { + output.WriteRawTag(8); + output.WriteEnum((int) Gender); + } + basicTypeInfoList_.WriteTo(ref output, _repeated_basicTypeInfoList_codec); + if (CurBasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + output.WriteRawTag(56); + output.WriteEnum((int) CurBasicType); + } + if (Retcode != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CurBasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CurBasicType); + } + size += basicTypeInfoList_.CalculateSize(_repeated_basicTypeInfoList_codec); + if (Gender != global::EggLink.DanhengServer.Proto.Gender.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Gender); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetHeroBasicTypeInfoScRsp other) { + if (other == null) { + return; + } + if (other.CurBasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + CurBasicType = other.CurBasicType; + } + basicTypeInfoList_.Add(other.basicTypeInfoList_); + if (other.Gender != global::EggLink.DanhengServer.Proto.Gender.None) { + Gender = other.Gender; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Gender = (global::EggLink.DanhengServer.Proto.Gender) input.ReadEnum(); + break; + } + case 18: { + basicTypeInfoList_.AddEntriesFrom(input, _repeated_basicTypeInfoList_codec); + break; + } + case 56: { + CurBasicType = (global::EggLink.DanhengServer.Proto.HeroBasicType) input.ReadEnum(); + break; + } + case 88: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Gender = (global::EggLink.DanhengServer.Proto.Gender) input.ReadEnum(); + break; + } + case 18: { + basicTypeInfoList_.AddEntriesFrom(ref input, _repeated_basicTypeInfoList_codec); + break; + } + case 56: { + CurBasicType = (global::EggLink.DanhengServer.Proto.HeroBasicType) input.ReadEnum(); + break; + } + case 88: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetJukeboxDataCsReq.cs b/Common/Proto/GetJukeboxDataCsReq.cs new file mode 100644 index 00000000..52909c90 --- /dev/null +++ b/Common/Proto/GetJukeboxDataCsReq.cs @@ -0,0 +1,196 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetJukeboxDataCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetJukeboxDataCsReq.proto + public static partial class GetJukeboxDataCsReqReflection { + + #region Descriptor + /// File descriptor for GetJukeboxDataCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetJukeboxDataCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlHZXRKdWtlYm94RGF0YUNzUmVxLnByb3RvIhUKE0dldEp1a2Vib3hEYXRh", + "Q3NSZXFCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetJukeboxDataCsReq), global::EggLink.DanhengServer.Proto.GetJukeboxDataCsReq.Parser, null, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetJukeboxDataCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetJukeboxDataCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetJukeboxDataCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetJukeboxDataCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetJukeboxDataCsReq(GetJukeboxDataCsReq other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetJukeboxDataCsReq Clone() { + return new GetJukeboxDataCsReq(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetJukeboxDataCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetJukeboxDataCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetJukeboxDataCsReq other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetJukeboxDataScRsp.cs b/Common/Proto/GetJukeboxDataScRsp.cs new file mode 100644 index 00000000..c40bc848 --- /dev/null +++ b/Common/Proto/GetJukeboxDataScRsp.cs @@ -0,0 +1,299 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetJukeboxDataScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetJukeboxDataScRsp.proto + public static partial class GetJukeboxDataScRspReflection { + + #region Descriptor + /// File descriptor for GetJukeboxDataScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetJukeboxDataScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlHZXRKdWtlYm94RGF0YVNjUnNwLnByb3RvGhNVbmxvY2tlZE11c2ljLnBy", + "b3RvIl4KE0dldEp1a2Vib3hEYXRhU2NSc3ASDwoHcmV0Y29kZRgEIAEoDRIS", + "CgpwbGF5aW5nX2lkGAogASgNEiIKCm11c2ljX2xpc3QYAyADKAsyDi5Vbmxv", + "Y2tlZE11c2ljQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.UnlockedMusicReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetJukeboxDataScRsp), global::EggLink.DanhengServer.Proto.GetJukeboxDataScRsp.Parser, new[]{ "Retcode", "PlayingId", "MusicList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetJukeboxDataScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetJukeboxDataScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetJukeboxDataScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetJukeboxDataScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetJukeboxDataScRsp(GetJukeboxDataScRsp other) : this() { + retcode_ = other.retcode_; + playingId_ = other.playingId_; + musicList_ = other.musicList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetJukeboxDataScRsp Clone() { + return new GetJukeboxDataScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 4; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "playing_id" field. + public const int PlayingIdFieldNumber = 10; + private uint playingId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PlayingId { + get { return playingId_; } + set { + playingId_ = value; + } + } + + /// Field number for the "music_list" field. + public const int MusicListFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_musicList_codec + = pb::FieldCodec.ForMessage(26, global::EggLink.DanhengServer.Proto.UnlockedMusic.Parser); + private readonly pbc::RepeatedField musicList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MusicList { + get { return musicList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetJukeboxDataScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetJukeboxDataScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (PlayingId != other.PlayingId) return false; + if(!musicList_.Equals(other.musicList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (PlayingId != 0) hash ^= PlayingId.GetHashCode(); + hash ^= musicList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + musicList_.WriteTo(output, _repeated_musicList_codec); + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + if (PlayingId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(PlayingId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + musicList_.WriteTo(ref output, _repeated_musicList_codec); + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + if (PlayingId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(PlayingId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (PlayingId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlayingId); + } + size += musicList_.CalculateSize(_repeated_musicList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetJukeboxDataScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.PlayingId != 0) { + PlayingId = other.PlayingId; + } + musicList_.Add(other.musicList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + musicList_.AddEntriesFrom(input, _repeated_musicList_codec); + break; + } + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 80: { + PlayingId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + musicList_.AddEntriesFrom(ref input, _repeated_musicList_codec); + break; + } + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 80: { + PlayingId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetMailScRsp.cs b/Common/Proto/GetMailScRsp.cs new file mode 100644 index 00000000..4c9ecd5f --- /dev/null +++ b/Common/Proto/GetMailScRsp.cs @@ -0,0 +1,400 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetMailScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetMailScRsp.proto + public static partial class GetMailScRspReflection { + + #region Descriptor + /// File descriptor for GetMailScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetMailScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJHZXRNYWlsU2NSc3AucHJvdG8aEENsaWVudE1haWwucHJvdG8imAEKDEdl", + "dE1haWxTY1JzcBIRCgl0b3RhbF9udW0YCCABKA0SDQoFc3RhcnQYDiABKA0S", + "DwoHcmV0Y29kZRgBIAEoDRIeCgltYWlsX2xpc3QYAiADKAsyCy5DbGllbnRN", + "YWlsEg4KBmlzX2VuZBgEIAEoCBIlChBub3RpY2VfbWFpbF9saXN0GAYgAygL", + "MgsuQ2xpZW50TWFpbEIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ClientMailReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetMailScRsp), global::EggLink.DanhengServer.Proto.GetMailScRsp.Parser, new[]{ "TotalNum", "Start", "Retcode", "MailList", "IsEnd", "NoticeMailList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetMailScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMailScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetMailScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMailScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMailScRsp(GetMailScRsp other) : this() { + totalNum_ = other.totalNum_; + start_ = other.start_; + retcode_ = other.retcode_; + mailList_ = other.mailList_.Clone(); + isEnd_ = other.isEnd_; + noticeMailList_ = other.noticeMailList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMailScRsp Clone() { + return new GetMailScRsp(this); + } + + /// Field number for the "total_num" field. + public const int TotalNumFieldNumber = 8; + private uint totalNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalNum { + get { return totalNum_; } + set { + totalNum_ = value; + } + } + + /// Field number for the "start" field. + public const int StartFieldNumber = 14; + private uint start_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Start { + get { return start_; } + set { + start_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "mail_list" field. + public const int MailListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_mailList_codec + = pb::FieldCodec.ForMessage(18, global::EggLink.DanhengServer.Proto.ClientMail.Parser); + private readonly pbc::RepeatedField mailList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MailList { + get { return mailList_; } + } + + /// Field number for the "is_end" field. + public const int IsEndFieldNumber = 4; + private bool isEnd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsEnd { + get { return isEnd_; } + set { + isEnd_ = value; + } + } + + /// Field number for the "notice_mail_list" field. + public const int NoticeMailListFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_noticeMailList_codec + = pb::FieldCodec.ForMessage(50, global::EggLink.DanhengServer.Proto.ClientMail.Parser); + private readonly pbc::RepeatedField noticeMailList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NoticeMailList { + get { return noticeMailList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetMailScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMailScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalNum != other.TotalNum) return false; + if (Start != other.Start) return false; + if (Retcode != other.Retcode) return false; + if(!mailList_.Equals(other.mailList_)) return false; + if (IsEnd != other.IsEnd) return false; + if(!noticeMailList_.Equals(other.noticeMailList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TotalNum != 0) hash ^= TotalNum.GetHashCode(); + if (Start != 0) hash ^= Start.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= mailList_.GetHashCode(); + if (IsEnd != false) hash ^= IsEnd.GetHashCode(); + hash ^= noticeMailList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + mailList_.WriteTo(output, _repeated_mailList_codec); + if (IsEnd != false) { + output.WriteRawTag(32); + output.WriteBool(IsEnd); + } + noticeMailList_.WriteTo(output, _repeated_noticeMailList_codec); + if (TotalNum != 0) { + output.WriteRawTag(64); + output.WriteUInt32(TotalNum); + } + if (Start != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Start); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + mailList_.WriteTo(ref output, _repeated_mailList_codec); + if (IsEnd != false) { + output.WriteRawTag(32); + output.WriteBool(IsEnd); + } + noticeMailList_.WriteTo(ref output, _repeated_noticeMailList_codec); + if (TotalNum != 0) { + output.WriteRawTag(64); + output.WriteUInt32(TotalNum); + } + if (Start != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Start); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TotalNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalNum); + } + if (Start != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Start); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += mailList_.CalculateSize(_repeated_mailList_codec); + if (IsEnd != false) { + size += 1 + 1; + } + size += noticeMailList_.CalculateSize(_repeated_noticeMailList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetMailScRsp other) { + if (other == null) { + return; + } + if (other.TotalNum != 0) { + TotalNum = other.TotalNum; + } + if (other.Start != 0) { + Start = other.Start; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + mailList_.Add(other.mailList_); + if (other.IsEnd != false) { + IsEnd = other.IsEnd; + } + noticeMailList_.Add(other.noticeMailList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 18: { + mailList_.AddEntriesFrom(input, _repeated_mailList_codec); + break; + } + case 32: { + IsEnd = input.ReadBool(); + break; + } + case 50: { + noticeMailList_.AddEntriesFrom(input, _repeated_noticeMailList_codec); + break; + } + case 64: { + TotalNum = input.ReadUInt32(); + break; + } + case 112: { + Start = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 18: { + mailList_.AddEntriesFrom(ref input, _repeated_mailList_codec); + break; + } + case 32: { + IsEnd = input.ReadBool(); + break; + } + case 50: { + noticeMailList_.AddEntriesFrom(ref input, _repeated_noticeMailList_codec); + break; + } + case 64: { + TotalNum = input.ReadUInt32(); + break; + } + case 112: { + Start = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetMainMissionCustomValueCsReq.cs b/Common/Proto/GetMainMissionCustomValueCsReq.cs new file mode 100644 index 00000000..f17fa9b5 --- /dev/null +++ b/Common/Proto/GetMainMissionCustomValueCsReq.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetMainMissionCustomValueCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetMainMissionCustomValueCsReq.proto + public static partial class GetMainMissionCustomValueCsReqReflection { + + #region Descriptor + /// File descriptor for GetMainMissionCustomValueCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetMainMissionCustomValueCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiRHZXRNYWluTWlzc2lvbkN1c3RvbVZhbHVlQ3NSZXEucHJvdG8iMwoeR2V0", + "TWFpbk1pc3Npb25DdXN0b21WYWx1ZUNzUmVxEhEKCW1pc3Npb25JZBgIIAMo", + "DUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetMainMissionCustomValueCsReq), global::EggLink.DanhengServer.Proto.GetMainMissionCustomValueCsReq.Parser, new[]{ "MissionId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetMainMissionCustomValueCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMainMissionCustomValueCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetMainMissionCustomValueCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMainMissionCustomValueCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMainMissionCustomValueCsReq(GetMainMissionCustomValueCsReq other) : this() { + missionId_ = other.missionId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMainMissionCustomValueCsReq Clone() { + return new GetMainMissionCustomValueCsReq(this); + } + + /// Field number for the "missionId" field. + public const int MissionIdFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_missionId_codec + = pb::FieldCodec.ForUInt32(66); + private readonly pbc::RepeatedField missionId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MissionId { + get { return missionId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetMainMissionCustomValueCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMainMissionCustomValueCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!missionId_.Equals(other.missionId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= missionId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + missionId_.WriteTo(output, _repeated_missionId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + missionId_.WriteTo(ref output, _repeated_missionId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += missionId_.CalculateSize(_repeated_missionId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetMainMissionCustomValueCsReq other) { + if (other == null) { + return; + } + missionId_.Add(other.missionId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: + case 64: { + missionId_.AddEntriesFrom(input, _repeated_missionId_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: + case 64: { + missionId_.AddEntriesFrom(ref input, _repeated_missionId_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetMissionStatusCsReq.cs b/Common/Proto/GetMissionStatusCsReq.cs new file mode 100644 index 00000000..b805b5ce --- /dev/null +++ b/Common/Proto/GetMissionStatusCsReq.cs @@ -0,0 +1,283 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetMissionStatusCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetMissionStatusCsReq.proto + public static partial class GetMissionStatusCsReqReflection { + + #region Descriptor + /// File descriptor for GetMissionStatusCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetMissionStatusCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtHZXRNaXNzaW9uU3RhdHVzQ3NSZXEucHJvdG8icQoVR2V0TWlzc2lvblN0", + "YXR1c0NzUmVxEhsKE3N1Yl9taXNzaW9uX2lkX2xpc3QYCCADKA0SHQoVbWlz", + "c2lvbl9ldmVudF9pZF9saXN0GAcgAygNEhwKFG1haW5fbWlzc2lvbl9pZF9s", + "aXN0GA4gAygNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetMissionStatusCsReq), global::EggLink.DanhengServer.Proto.GetMissionStatusCsReq.Parser, new[]{ "SubMissionIdList", "MissionEventIdList", "MainMissionIdList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetMissionStatusCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMissionStatusCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetMissionStatusCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMissionStatusCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMissionStatusCsReq(GetMissionStatusCsReq other) : this() { + subMissionIdList_ = other.subMissionIdList_.Clone(); + missionEventIdList_ = other.missionEventIdList_.Clone(); + mainMissionIdList_ = other.mainMissionIdList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMissionStatusCsReq Clone() { + return new GetMissionStatusCsReq(this); + } + + /// Field number for the "sub_mission_id_list" field. + public const int SubMissionIdListFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_subMissionIdList_codec + = pb::FieldCodec.ForUInt32(66); + private readonly pbc::RepeatedField subMissionIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SubMissionIdList { + get { return subMissionIdList_; } + } + + /// Field number for the "mission_event_id_list" field. + public const int MissionEventIdListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_missionEventIdList_codec + = pb::FieldCodec.ForUInt32(58); + private readonly pbc::RepeatedField missionEventIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MissionEventIdList { + get { return missionEventIdList_; } + } + + /// Field number for the "main_mission_id_list" field. + public const int MainMissionIdListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_mainMissionIdList_codec + = pb::FieldCodec.ForUInt32(114); + private readonly pbc::RepeatedField mainMissionIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MainMissionIdList { + get { return mainMissionIdList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetMissionStatusCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMissionStatusCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!subMissionIdList_.Equals(other.subMissionIdList_)) return false; + if(!missionEventIdList_.Equals(other.missionEventIdList_)) return false; + if(!mainMissionIdList_.Equals(other.mainMissionIdList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= subMissionIdList_.GetHashCode(); + hash ^= missionEventIdList_.GetHashCode(); + hash ^= mainMissionIdList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + missionEventIdList_.WriteTo(output, _repeated_missionEventIdList_codec); + subMissionIdList_.WriteTo(output, _repeated_subMissionIdList_codec); + mainMissionIdList_.WriteTo(output, _repeated_mainMissionIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + missionEventIdList_.WriteTo(ref output, _repeated_missionEventIdList_codec); + subMissionIdList_.WriteTo(ref output, _repeated_subMissionIdList_codec); + mainMissionIdList_.WriteTo(ref output, _repeated_mainMissionIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += subMissionIdList_.CalculateSize(_repeated_subMissionIdList_codec); + size += missionEventIdList_.CalculateSize(_repeated_missionEventIdList_codec); + size += mainMissionIdList_.CalculateSize(_repeated_mainMissionIdList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetMissionStatusCsReq other) { + if (other == null) { + return; + } + subMissionIdList_.Add(other.subMissionIdList_); + missionEventIdList_.Add(other.missionEventIdList_); + mainMissionIdList_.Add(other.mainMissionIdList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: + case 56: { + missionEventIdList_.AddEntriesFrom(input, _repeated_missionEventIdList_codec); + break; + } + case 66: + case 64: { + subMissionIdList_.AddEntriesFrom(input, _repeated_subMissionIdList_codec); + break; + } + case 114: + case 112: { + mainMissionIdList_.AddEntriesFrom(input, _repeated_mainMissionIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: + case 56: { + missionEventIdList_.AddEntriesFrom(ref input, _repeated_missionEventIdList_codec); + break; + } + case 66: + case 64: { + subMissionIdList_.AddEntriesFrom(ref input, _repeated_subMissionIdList_codec); + break; + } + case 114: + case 112: { + mainMissionIdList_.AddEntriesFrom(ref input, _repeated_mainMissionIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetMissionStatusScRsp.cs b/Common/Proto/GetMissionStatusScRsp.cs new file mode 100644 index 00000000..563edc6d --- /dev/null +++ b/Common/Proto/GetMissionStatusScRsp.cs @@ -0,0 +1,375 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetMissionStatusScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetMissionStatusScRsp.proto + public static partial class GetMissionStatusScRspReflection { + + #region Descriptor + /// File descriptor for GetMissionStatusScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetMissionStatusScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtHZXRNaXNzaW9uU3RhdHVzU2NSc3AucHJvdG8aDU1pc3Npb24ucHJvdG8i", + "9wEKFUdldE1pc3Npb25TdGF0dXNTY1JzcBInCh91bmZpbmlzaGVkX21haW5f", + "bWlzc2lvbl9pZF9saXN0GAogAygNEiUKHWZpbmlzaGVkX21haW5fbWlzc2lv", + "bl9pZF9saXN0GA0gAygNEisKGW1pc3Npb25fZXZlbnRfc3RhdHVzX2xpc3QY", + "CSADKAsyCC5NaXNzaW9uEg8KB3JldGNvZGUYBCABKA0SJQodZGlzYWJsZWRf", + "bWFpbl9taXNzaW9uX2lkX2xpc3QYCyADKA0SKQoXc3ViX21pc3Npb25fc3Rh", + "dHVzX2xpc3QYDiADKAsyCC5NaXNzaW9uQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MissionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetMissionStatusScRsp), global::EggLink.DanhengServer.Proto.GetMissionStatusScRsp.Parser, new[]{ "UnfinishedMainMissionIdList", "FinishedMainMissionIdList", "MissionEventStatusList", "Retcode", "DisabledMainMissionIdList", "SubMissionStatusList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetMissionStatusScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMissionStatusScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetMissionStatusScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMissionStatusScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMissionStatusScRsp(GetMissionStatusScRsp other) : this() { + unfinishedMainMissionIdList_ = other.unfinishedMainMissionIdList_.Clone(); + finishedMainMissionIdList_ = other.finishedMainMissionIdList_.Clone(); + missionEventStatusList_ = other.missionEventStatusList_.Clone(); + retcode_ = other.retcode_; + disabledMainMissionIdList_ = other.disabledMainMissionIdList_.Clone(); + subMissionStatusList_ = other.subMissionStatusList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMissionStatusScRsp Clone() { + return new GetMissionStatusScRsp(this); + } + + /// Field number for the "unfinished_main_mission_id_list" field. + public const int UnfinishedMainMissionIdListFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_unfinishedMainMissionIdList_codec + = pb::FieldCodec.ForUInt32(82); + private readonly pbc::RepeatedField unfinishedMainMissionIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnfinishedMainMissionIdList { + get { return unfinishedMainMissionIdList_; } + } + + /// Field number for the "finished_main_mission_id_list" field. + public const int FinishedMainMissionIdListFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_finishedMainMissionIdList_codec + = pb::FieldCodec.ForUInt32(106); + private readonly pbc::RepeatedField finishedMainMissionIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FinishedMainMissionIdList { + get { return finishedMainMissionIdList_; } + } + + /// Field number for the "mission_event_status_list" field. + public const int MissionEventStatusListFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_missionEventStatusList_codec + = pb::FieldCodec.ForMessage(74, global::EggLink.DanhengServer.Proto.Mission.Parser); + private readonly pbc::RepeatedField missionEventStatusList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MissionEventStatusList { + get { return missionEventStatusList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 4; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "disabled_main_mission_id_list" field. + public const int DisabledMainMissionIdListFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_disabledMainMissionIdList_codec + = pb::FieldCodec.ForUInt32(90); + private readonly pbc::RepeatedField disabledMainMissionIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DisabledMainMissionIdList { + get { return disabledMainMissionIdList_; } + } + + /// Field number for the "sub_mission_status_list" field. + public const int SubMissionStatusListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_subMissionStatusList_codec + = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.Mission.Parser); + private readonly pbc::RepeatedField subMissionStatusList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SubMissionStatusList { + get { return subMissionStatusList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetMissionStatusScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMissionStatusScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!unfinishedMainMissionIdList_.Equals(other.unfinishedMainMissionIdList_)) return false; + if(!finishedMainMissionIdList_.Equals(other.finishedMainMissionIdList_)) return false; + if(!missionEventStatusList_.Equals(other.missionEventStatusList_)) return false; + if (Retcode != other.Retcode) return false; + if(!disabledMainMissionIdList_.Equals(other.disabledMainMissionIdList_)) return false; + if(!subMissionStatusList_.Equals(other.subMissionStatusList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= unfinishedMainMissionIdList_.GetHashCode(); + hash ^= finishedMainMissionIdList_.GetHashCode(); + hash ^= missionEventStatusList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= disabledMainMissionIdList_.GetHashCode(); + hash ^= subMissionStatusList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + missionEventStatusList_.WriteTo(output, _repeated_missionEventStatusList_codec); + unfinishedMainMissionIdList_.WriteTo(output, _repeated_unfinishedMainMissionIdList_codec); + disabledMainMissionIdList_.WriteTo(output, _repeated_disabledMainMissionIdList_codec); + finishedMainMissionIdList_.WriteTo(output, _repeated_finishedMainMissionIdList_codec); + subMissionStatusList_.WriteTo(output, _repeated_subMissionStatusList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + missionEventStatusList_.WriteTo(ref output, _repeated_missionEventStatusList_codec); + unfinishedMainMissionIdList_.WriteTo(ref output, _repeated_unfinishedMainMissionIdList_codec); + disabledMainMissionIdList_.WriteTo(ref output, _repeated_disabledMainMissionIdList_codec); + finishedMainMissionIdList_.WriteTo(ref output, _repeated_finishedMainMissionIdList_codec); + subMissionStatusList_.WriteTo(ref output, _repeated_subMissionStatusList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += unfinishedMainMissionIdList_.CalculateSize(_repeated_unfinishedMainMissionIdList_codec); + size += finishedMainMissionIdList_.CalculateSize(_repeated_finishedMainMissionIdList_codec); + size += missionEventStatusList_.CalculateSize(_repeated_missionEventStatusList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += disabledMainMissionIdList_.CalculateSize(_repeated_disabledMainMissionIdList_codec); + size += subMissionStatusList_.CalculateSize(_repeated_subMissionStatusList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetMissionStatusScRsp other) { + if (other == null) { + return; + } + unfinishedMainMissionIdList_.Add(other.unfinishedMainMissionIdList_); + finishedMainMissionIdList_.Add(other.finishedMainMissionIdList_); + missionEventStatusList_.Add(other.missionEventStatusList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + disabledMainMissionIdList_.Add(other.disabledMainMissionIdList_); + subMissionStatusList_.Add(other.subMissionStatusList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 74: { + missionEventStatusList_.AddEntriesFrom(input, _repeated_missionEventStatusList_codec); + break; + } + case 82: + case 80: { + unfinishedMainMissionIdList_.AddEntriesFrom(input, _repeated_unfinishedMainMissionIdList_codec); + break; + } + case 90: + case 88: { + disabledMainMissionIdList_.AddEntriesFrom(input, _repeated_disabledMainMissionIdList_codec); + break; + } + case 106: + case 104: { + finishedMainMissionIdList_.AddEntriesFrom(input, _repeated_finishedMainMissionIdList_codec); + break; + } + case 114: { + subMissionStatusList_.AddEntriesFrom(input, _repeated_subMissionStatusList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 74: { + missionEventStatusList_.AddEntriesFrom(ref input, _repeated_missionEventStatusList_codec); + break; + } + case 82: + case 80: { + unfinishedMainMissionIdList_.AddEntriesFrom(ref input, _repeated_unfinishedMainMissionIdList_codec); + break; + } + case 90: + case 88: { + disabledMainMissionIdList_.AddEntriesFrom(ref input, _repeated_disabledMainMissionIdList_codec); + break; + } + case 106: + case 104: { + finishedMainMissionIdList_.AddEntriesFrom(ref input, _repeated_finishedMainMissionIdList_codec); + break; + } + case 114: { + subMissionStatusList_.AddEntriesFrom(ref input, _repeated_subMissionStatusList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetNpcTakenRewardCsReq.cs b/Common/Proto/GetNpcTakenRewardCsReq.cs new file mode 100644 index 00000000..a00bc84b --- /dev/null +++ b/Common/Proto/GetNpcTakenRewardCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetNpcTakenRewardCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetNpcTakenRewardCsReq.proto + public static partial class GetNpcTakenRewardCsReqReflection { + + #region Descriptor + /// File descriptor for GetNpcTakenRewardCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetNpcTakenRewardCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxHZXROcGNUYWtlblJld2FyZENzUmVxLnByb3RvIigKFkdldE5wY1Rha2Vu", + "UmV3YXJkQ3NSZXESDgoGbnBjX2lkGAQgASgNQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetNpcTakenRewardCsReq), global::EggLink.DanhengServer.Proto.GetNpcTakenRewardCsReq.Parser, new[]{ "NpcId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetNpcTakenRewardCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetNpcTakenRewardCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetNpcTakenRewardCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNpcTakenRewardCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNpcTakenRewardCsReq(GetNpcTakenRewardCsReq other) : this() { + npcId_ = other.npcId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNpcTakenRewardCsReq Clone() { + return new GetNpcTakenRewardCsReq(this); + } + + /// Field number for the "npc_id" field. + public const int NpcIdFieldNumber = 4; + private uint npcId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 GetNpcTakenRewardCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetNpcTakenRewardCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (NpcId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(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 (NpcId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(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 (NpcId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NpcId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetNpcTakenRewardCsReq other) { + if (other == null) { + return; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + NpcId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + NpcId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetNpcTakenRewardScRsp.cs b/Common/Proto/GetNpcTakenRewardScRsp.cs new file mode 100644 index 00000000..4bcbb47e --- /dev/null +++ b/Common/Proto/GetNpcTakenRewardScRsp.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetNpcTakenRewardScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetNpcTakenRewardScRsp.proto + public static partial class GetNpcTakenRewardScRspReflection { + + #region Descriptor + /// File descriptor for GetNpcTakenRewardScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetNpcTakenRewardScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxHZXROcGNUYWtlblJld2FyZFNjUnNwLnByb3RvIjkKFkdldE5wY1Rha2Vu", + "UmV3YXJkU2NSc3ASDgoGbnBjX2lkGA0gASgNEg8KB3JldGNvZGUYAyABKA1C", + "HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetNpcTakenRewardScRsp), global::EggLink.DanhengServer.Proto.GetNpcTakenRewardScRsp.Parser, new[]{ "NpcId", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetNpcTakenRewardScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetNpcTakenRewardScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetNpcTakenRewardScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNpcTakenRewardScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNpcTakenRewardScRsp(GetNpcTakenRewardScRsp other) : this() { + npcId_ = other.npcId_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNpcTakenRewardScRsp Clone() { + return new GetNpcTakenRewardScRsp(this); + } + + /// Field number for the "npc_id" field. + public const int NpcIdFieldNumber = 13; + private uint npcId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NpcId { + get { return npcId_; } + set { + npcId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetNpcTakenRewardScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetNpcTakenRewardScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NpcId != other.NpcId) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (NpcId != 0) hash ^= NpcId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (NpcId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(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 (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (NpcId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(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 (NpcId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NpcId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetNpcTakenRewardScRsp other) { + if (other == null) { + return; + } + if (other.NpcId != 0) { + NpcId = other.NpcId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 104: { + NpcId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 104: { + NpcId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetPhoneDataCsReq.cs b/Common/Proto/GetPhoneDataCsReq.cs new file mode 100644 index 00000000..228bc1c9 --- /dev/null +++ b/Common/Proto/GetPhoneDataCsReq.cs @@ -0,0 +1,196 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetPhoneDataCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetPhoneDataCsReq.proto + public static partial class GetPhoneDataCsReqReflection { + + #region Descriptor + /// File descriptor for GetPhoneDataCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetPhoneDataCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdHZXRQaG9uZURhdGFDc1JlcS5wcm90byITChFHZXRQaG9uZURhdGFDc1Jl", + "cUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetPhoneDataCsReq), global::EggLink.DanhengServer.Proto.GetPhoneDataCsReq.Parser, null, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetPhoneDataCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPhoneDataCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetPhoneDataCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPhoneDataCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPhoneDataCsReq(GetPhoneDataCsReq other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPhoneDataCsReq Clone() { + return new GetPhoneDataCsReq(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetPhoneDataCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetPhoneDataCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetPhoneDataCsReq other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetPhoneDataScRsp.cs b/Common/Proto/GetPhoneDataScRsp.cs new file mode 100644 index 00000000..b3201cf4 --- /dev/null +++ b/Common/Proto/GetPhoneDataScRsp.cs @@ -0,0 +1,366 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetPhoneDataScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetPhoneDataScRsp.proto + public static partial class GetPhoneDataScRspReflection { + + #region Descriptor + /// File descriptor for GetPhoneDataScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetPhoneDataScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdHZXRQaG9uZURhdGFTY1JzcC5wcm90byKOAQoRR2V0UGhvbmVEYXRhU2NS", + "c3ASFwoPY3VyX3Bob25lX3RoZW1lGAogASgNEg8KB3JldGNvZGUYDiABKA0S", + "GgoSb3duZWRfY2hhdF9idWJibGVzGAkgAygNEhcKD2N1cl9jaGF0X2J1YmJs", + "ZRgNIAEoDRIaChJvd25lZF9waG9uZV90aGVtZXMYCyADKA1CHqoCG0VnZ0xp", + "bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetPhoneDataScRsp), global::EggLink.DanhengServer.Proto.GetPhoneDataScRsp.Parser, new[]{ "CurPhoneTheme", "Retcode", "OwnedChatBubbles", "CurChatBubble", "OwnedPhoneThemes" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetPhoneDataScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPhoneDataScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetPhoneDataScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPhoneDataScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPhoneDataScRsp(GetPhoneDataScRsp other) : this() { + curPhoneTheme_ = other.curPhoneTheme_; + retcode_ = other.retcode_; + ownedChatBubbles_ = other.ownedChatBubbles_.Clone(); + curChatBubble_ = other.curChatBubble_; + ownedPhoneThemes_ = other.ownedPhoneThemes_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPhoneDataScRsp Clone() { + return new GetPhoneDataScRsp(this); + } + + /// Field number for the "cur_phone_theme" field. + public const int CurPhoneThemeFieldNumber = 10; + private uint curPhoneTheme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurPhoneTheme { + get { return curPhoneTheme_; } + set { + curPhoneTheme_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 14; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "owned_chat_bubbles" field. + public const int OwnedChatBubblesFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_ownedChatBubbles_codec + = pb::FieldCodec.ForUInt32(74); + private readonly pbc::RepeatedField ownedChatBubbles_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OwnedChatBubbles { + get { return ownedChatBubbles_; } + } + + /// Field number for the "cur_chat_bubble" field. + public const int CurChatBubbleFieldNumber = 13; + private uint curChatBubble_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurChatBubble { + get { return curChatBubble_; } + set { + curChatBubble_ = value; + } + } + + /// Field number for the "owned_phone_themes" field. + public const int OwnedPhoneThemesFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_ownedPhoneThemes_codec + = pb::FieldCodec.ForUInt32(90); + private readonly pbc::RepeatedField ownedPhoneThemes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OwnedPhoneThemes { + get { return ownedPhoneThemes_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetPhoneDataScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetPhoneDataScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CurPhoneTheme != other.CurPhoneTheme) return false; + if (Retcode != other.Retcode) return false; + if(!ownedChatBubbles_.Equals(other.ownedChatBubbles_)) return false; + if (CurChatBubble != other.CurChatBubble) return false; + if(!ownedPhoneThemes_.Equals(other.ownedPhoneThemes_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CurPhoneTheme != 0) hash ^= CurPhoneTheme.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= ownedChatBubbles_.GetHashCode(); + if (CurChatBubble != 0) hash ^= CurChatBubble.GetHashCode(); + hash ^= ownedPhoneThemes_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + ownedChatBubbles_.WriteTo(output, _repeated_ownedChatBubbles_codec); + if (CurPhoneTheme != 0) { + output.WriteRawTag(80); + output.WriteUInt32(CurPhoneTheme); + } + ownedPhoneThemes_.WriteTo(output, _repeated_ownedPhoneThemes_codec); + if (CurChatBubble != 0) { + output.WriteRawTag(104); + output.WriteUInt32(CurChatBubble); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + ownedChatBubbles_.WriteTo(ref output, _repeated_ownedChatBubbles_codec); + if (CurPhoneTheme != 0) { + output.WriteRawTag(80); + output.WriteUInt32(CurPhoneTheme); + } + ownedPhoneThemes_.WriteTo(ref output, _repeated_ownedPhoneThemes_codec); + if (CurChatBubble != 0) { + output.WriteRawTag(104); + output.WriteUInt32(CurChatBubble); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CurPhoneTheme != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurPhoneTheme); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += ownedChatBubbles_.CalculateSize(_repeated_ownedChatBubbles_codec); + if (CurChatBubble != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurChatBubble); + } + size += ownedPhoneThemes_.CalculateSize(_repeated_ownedPhoneThemes_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetPhoneDataScRsp other) { + if (other == null) { + return; + } + if (other.CurPhoneTheme != 0) { + CurPhoneTheme = other.CurPhoneTheme; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + ownedChatBubbles_.Add(other.ownedChatBubbles_); + if (other.CurChatBubble != 0) { + CurChatBubble = other.CurChatBubble; + } + ownedPhoneThemes_.Add(other.ownedPhoneThemes_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 74: + case 72: { + ownedChatBubbles_.AddEntriesFrom(input, _repeated_ownedChatBubbles_codec); + break; + } + case 80: { + CurPhoneTheme = input.ReadUInt32(); + break; + } + case 90: + case 88: { + ownedPhoneThemes_.AddEntriesFrom(input, _repeated_ownedPhoneThemes_codec); + break; + } + case 104: { + CurChatBubble = input.ReadUInt32(); + break; + } + case 112: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 74: + case 72: { + ownedChatBubbles_.AddEntriesFrom(ref input, _repeated_ownedChatBubbles_codec); + break; + } + case 80: { + CurPhoneTheme = input.ReadUInt32(); + break; + } + case 90: + case 88: { + ownedPhoneThemes_.AddEntriesFrom(ref input, _repeated_ownedPhoneThemes_codec); + break; + } + case 104: { + CurChatBubble = input.ReadUInt32(); + break; + } + case 112: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetPlayerBoardDataScRsp.cs b/Common/Proto/GetPlayerBoardDataScRsp.cs new file mode 100644 index 00000000..2a45f235 --- /dev/null +++ b/Common/Proto/GetPlayerBoardDataScRsp.cs @@ -0,0 +1,384 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetPlayerBoardDataScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetPlayerBoardDataScRsp.proto + public static partial class GetPlayerBoardDataScRspReflection { + + #region Descriptor + /// File descriptor for GetPlayerBoardDataScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetPlayerBoardDataScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1HZXRQbGF5ZXJCb2FyZERhdGFTY1JzcC5wcm90bxoOSGVhZEljb24ucHJv", + "dG8aFkRpc3BsYXlBdmF0YXJWZWMucHJvdG8itgEKF0dldFBsYXllckJvYXJk", + "RGF0YVNjUnNwEhEKCXNpZ25hdHVyZRgPIAEoCRIqChd1bmxvY2tlZF9oZWFk", + "X2ljb25fbGlzdBgDIAMoCzIJLkhlYWRJY29uEhwKFGN1cnJlbnRfaGVhZF9p", + "Y29uX2lkGAIgASgNEi0KEmRpc3BsYXlfYXZhdGFyX3ZlYxgNIAEoCzIRLkRp", + "c3BsYXlBdmF0YXJWZWMSDwoHcmV0Y29kZRgJIAEoDUIeqgIbRWdnTGluay5E", + "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.HeadIconReflection.Descriptor, global::EggLink.DanhengServer.Proto.DisplayAvatarVecReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetPlayerBoardDataScRsp), global::EggLink.DanhengServer.Proto.GetPlayerBoardDataScRsp.Parser, new[]{ "Signature", "UnlockedHeadIconList", "CurrentHeadIconId", "DisplayAvatarVec", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetPlayerBoardDataScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlayerBoardDataScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetPlayerBoardDataScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPlayerBoardDataScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPlayerBoardDataScRsp(GetPlayerBoardDataScRsp other) : this() { + signature_ = other.signature_; + unlockedHeadIconList_ = other.unlockedHeadIconList_.Clone(); + currentHeadIconId_ = other.currentHeadIconId_; + displayAvatarVec_ = other.displayAvatarVec_ != null ? other.displayAvatarVec_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPlayerBoardDataScRsp Clone() { + return new GetPlayerBoardDataScRsp(this); + } + + /// Field number for the "signature" field. + public const int SignatureFieldNumber = 15; + private string signature_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Signature { + get { return signature_; } + set { + signature_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "unlocked_head_icon_list" field. + public const int UnlockedHeadIconListFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_unlockedHeadIconList_codec + = pb::FieldCodec.ForMessage(26, global::EggLink.DanhengServer.Proto.HeadIcon.Parser); + private readonly pbc::RepeatedField unlockedHeadIconList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnlockedHeadIconList { + get { return unlockedHeadIconList_; } + } + + /// Field number for the "current_head_icon_id" field. + public const int CurrentHeadIconIdFieldNumber = 2; + private uint currentHeadIconId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurrentHeadIconId { + get { return currentHeadIconId_; } + set { + currentHeadIconId_ = value; + } + } + + /// Field number for the "display_avatar_vec" field. + public const int DisplayAvatarVecFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.DisplayAvatarVec displayAvatarVec_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.DisplayAvatarVec DisplayAvatarVec { + get { return displayAvatarVec_; } + set { + displayAvatarVec_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 9; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetPlayerBoardDataScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetPlayerBoardDataScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Signature != other.Signature) return false; + if(!unlockedHeadIconList_.Equals(other.unlockedHeadIconList_)) return false; + if (CurrentHeadIconId != other.CurrentHeadIconId) return false; + if (!object.Equals(DisplayAvatarVec, other.DisplayAvatarVec)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Signature.Length != 0) hash ^= Signature.GetHashCode(); + hash ^= unlockedHeadIconList_.GetHashCode(); + if (CurrentHeadIconId != 0) hash ^= CurrentHeadIconId.GetHashCode(); + if (displayAvatarVec_ != null) hash ^= DisplayAvatarVec.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CurrentHeadIconId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(CurrentHeadIconId); + } + unlockedHeadIconList_.WriteTo(output, _repeated_unlockedHeadIconList_codec); + if (Retcode != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Retcode); + } + if (displayAvatarVec_ != null) { + output.WriteRawTag(106); + output.WriteMessage(DisplayAvatarVec); + } + if (Signature.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Signature); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CurrentHeadIconId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(CurrentHeadIconId); + } + unlockedHeadIconList_.WriteTo(ref output, _repeated_unlockedHeadIconList_codec); + if (Retcode != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Retcode); + } + if (displayAvatarVec_ != null) { + output.WriteRawTag(106); + output.WriteMessage(DisplayAvatarVec); + } + if (Signature.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Signature); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Signature.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Signature); + } + size += unlockedHeadIconList_.CalculateSize(_repeated_unlockedHeadIconList_codec); + if (CurrentHeadIconId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurrentHeadIconId); + } + if (displayAvatarVec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DisplayAvatarVec); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetPlayerBoardDataScRsp other) { + if (other == null) { + return; + } + if (other.Signature.Length != 0) { + Signature = other.Signature; + } + unlockedHeadIconList_.Add(other.unlockedHeadIconList_); + if (other.CurrentHeadIconId != 0) { + CurrentHeadIconId = other.CurrentHeadIconId; + } + if (other.displayAvatarVec_ != null) { + if (displayAvatarVec_ == null) { + DisplayAvatarVec = new global::EggLink.DanhengServer.Proto.DisplayAvatarVec(); + } + DisplayAvatarVec.MergeFrom(other.DisplayAvatarVec); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + CurrentHeadIconId = input.ReadUInt32(); + break; + } + case 26: { + unlockedHeadIconList_.AddEntriesFrom(input, _repeated_unlockedHeadIconList_codec); + break; + } + case 72: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + if (displayAvatarVec_ == null) { + DisplayAvatarVec = new global::EggLink.DanhengServer.Proto.DisplayAvatarVec(); + } + input.ReadMessage(DisplayAvatarVec); + break; + } + case 122: { + Signature = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + CurrentHeadIconId = input.ReadUInt32(); + break; + } + case 26: { + unlockedHeadIconList_.AddEntriesFrom(ref input, _repeated_unlockedHeadIconList_codec); + break; + } + case 72: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + if (displayAvatarVec_ == null) { + DisplayAvatarVec = new global::EggLink.DanhengServer.Proto.DisplayAvatarVec(); + } + input.ReadMessage(DisplayAvatarVec); + break; + } + case 122: { + Signature = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetPlayerDetailInfoCsReq.cs b/Common/Proto/GetPlayerDetailInfoCsReq.cs new file mode 100644 index 00000000..971cdded --- /dev/null +++ b/Common/Proto/GetPlayerDetailInfoCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetPlayerDetailInfoCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetPlayerDetailInfoCsReq.proto + public static partial class GetPlayerDetailInfoCsReqReflection { + + #region Descriptor + /// File descriptor for GetPlayerDetailInfoCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetPlayerDetailInfoCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5HZXRQbGF5ZXJEZXRhaWxJbmZvQ3NSZXEucHJvdG8iJwoYR2V0UGxheWVy", + "RGV0YWlsSW5mb0NzUmVxEgsKA3VpZBgMIAEoDUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetPlayerDetailInfoCsReq), global::EggLink.DanhengServer.Proto.GetPlayerDetailInfoCsReq.Parser, new[]{ "Uid" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetPlayerDetailInfoCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlayerDetailInfoCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetPlayerDetailInfoCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPlayerDetailInfoCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPlayerDetailInfoCsReq(GetPlayerDetailInfoCsReq other) : this() { + uid_ = other.uid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPlayerDetailInfoCsReq Clone() { + return new GetPlayerDetailInfoCsReq(this); + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 12; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetPlayerDetailInfoCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetPlayerDetailInfoCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uid != other.Uid) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Uid != 0) hash ^= Uid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Uid != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Uid != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetPlayerDetailInfoCsReq other) { + if (other == null) { + return; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 96: { + Uid = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 96: { + Uid = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetPlayerDetailInfoScRsp.cs b/Common/Proto/GetPlayerDetailInfoScRsp.cs new file mode 100644 index 00000000..6b84c5cc --- /dev/null +++ b/Common/Proto/GetPlayerDetailInfoScRsp.cs @@ -0,0 +1,282 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetPlayerDetailInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetPlayerDetailInfoScRsp.proto + public static partial class GetPlayerDetailInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetPlayerDetailInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetPlayerDetailInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5HZXRQbGF5ZXJEZXRhaWxJbmZvU2NSc3AucHJvdG8aFlBsYXllckRldGFp", + "bEluZm8ucHJvdG8iWgoYR2V0UGxheWVyRGV0YWlsSW5mb1NjUnNwEg8KB3Jl", + "dGNvZGUYCCABKA0SLQoScGxheWVyX2RldGFpbF9pbmZvGAQgASgLMhEuUGxh", + "eWVyRGV0YWlsSW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PlayerDetailInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetPlayerDetailInfoScRsp), global::EggLink.DanhengServer.Proto.GetPlayerDetailInfoScRsp.Parser, new[]{ "Retcode", "PlayerDetailInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetPlayerDetailInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlayerDetailInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetPlayerDetailInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPlayerDetailInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPlayerDetailInfoScRsp(GetPlayerDetailInfoScRsp other) : this() { + retcode_ = other.retcode_; + playerDetailInfo_ = other.playerDetailInfo_ != null ? other.playerDetailInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPlayerDetailInfoScRsp Clone() { + return new GetPlayerDetailInfoScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 8; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "player_detail_info" field. + public const int PlayerDetailInfoFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.PlayerDetailInfo playerDetailInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.PlayerDetailInfo PlayerDetailInfo { + get { return playerDetailInfo_; } + set { + playerDetailInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetPlayerDetailInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetPlayerDetailInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(PlayerDetailInfo, other.PlayerDetailInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (playerDetailInfo_ != null) hash ^= PlayerDetailInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (playerDetailInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PlayerDetailInfo); + } + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (playerDetailInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(PlayerDetailInfo); + } + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (playerDetailInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlayerDetailInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetPlayerDetailInfoScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.playerDetailInfo_ != null) { + if (playerDetailInfo_ == null) { + PlayerDetailInfo = new global::EggLink.DanhengServer.Proto.PlayerDetailInfo(); + } + PlayerDetailInfo.MergeFrom(other.PlayerDetailInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + if (playerDetailInfo_ == null) { + PlayerDetailInfo = new global::EggLink.DanhengServer.Proto.PlayerDetailInfo(); + } + input.ReadMessage(PlayerDetailInfo); + break; + } + case 64: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + if (playerDetailInfo_ == null) { + PlayerDetailInfo = new global::EggLink.DanhengServer.Proto.PlayerDetailInfo(); + } + input.ReadMessage(PlayerDetailInfo); + break; + } + case 64: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetPrivateChatHistoryCsReq.cs b/Common/Proto/GetPrivateChatHistoryCsReq.cs new file mode 100644 index 00000000..3f9c1c04 --- /dev/null +++ b/Common/Proto/GetPrivateChatHistoryCsReq.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetPrivateChatHistoryCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetPrivateChatHistoryCsReq.proto + public static partial class GetPrivateChatHistoryCsReqReflection { + + #region Descriptor + /// File descriptor for GetPrivateChatHistoryCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetPrivateChatHistoryCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBHZXRQcml2YXRlQ2hhdEhpc3RvcnlDc1JlcS5wcm90byJAChpHZXRQcml2", + "YXRlQ2hhdEhpc3RvcnlDc1JlcRIOCgZ0b191aWQYDSABKA0SEgoKc2VuZGVy", + "X3VpZBgIIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetPrivateChatHistoryCsReq), global::EggLink.DanhengServer.Proto.GetPrivateChatHistoryCsReq.Parser, new[]{ "ToUid", "SenderUid" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetPrivateChatHistoryCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPrivateChatHistoryCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetPrivateChatHistoryCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPrivateChatHistoryCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPrivateChatHistoryCsReq(GetPrivateChatHistoryCsReq other) : this() { + toUid_ = other.toUid_; + senderUid_ = other.senderUid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPrivateChatHistoryCsReq Clone() { + return new GetPrivateChatHistoryCsReq(this); + } + + /// Field number for the "to_uid" field. + public const int ToUidFieldNumber = 13; + private uint toUid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ToUid { + get { return toUid_; } + set { + toUid_ = value; + } + } + + /// Field number for the "sender_uid" field. + public const int SenderUidFieldNumber = 8; + private uint senderUid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SenderUid { + get { return senderUid_; } + set { + senderUid_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetPrivateChatHistoryCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetPrivateChatHistoryCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ToUid != other.ToUid) return false; + if (SenderUid != other.SenderUid) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ToUid != 0) hash ^= ToUid.GetHashCode(); + if (SenderUid != 0) hash ^= SenderUid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SenderUid != 0) { + output.WriteRawTag(64); + output.WriteUInt32(SenderUid); + } + if (ToUid != 0) { + output.WriteRawTag(104); + output.WriteUInt32(ToUid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SenderUid != 0) { + output.WriteRawTag(64); + output.WriteUInt32(SenderUid); + } + if (ToUid != 0) { + output.WriteRawTag(104); + output.WriteUInt32(ToUid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ToUid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ToUid); + } + if (SenderUid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SenderUid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetPrivateChatHistoryCsReq other) { + if (other == null) { + return; + } + if (other.ToUid != 0) { + ToUid = other.ToUid; + } + if (other.SenderUid != 0) { + SenderUid = other.SenderUid; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + SenderUid = input.ReadUInt32(); + break; + } + case 104: { + ToUid = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + SenderUid = input.ReadUInt32(); + break; + } + case 104: { + ToUid = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetPrivateChatHistoryScRsp.cs b/Common/Proto/GetPrivateChatHistoryScRsp.cs new file mode 100644 index 00000000..d6dec136 --- /dev/null +++ b/Common/Proto/GetPrivateChatHistoryScRsp.cs @@ -0,0 +1,336 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetPrivateChatHistoryScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetPrivateChatHistoryScRsp.proto + public static partial class GetPrivateChatHistoryScRspReflection { + + #region Descriptor + /// File descriptor for GetPrivateChatHistoryScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetPrivateChatHistoryScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBHZXRQcml2YXRlQ2hhdEhpc3RvcnlTY1JzcC5wcm90bxoKQ2hhdC5wcm90", + "byJrChpHZXRQcml2YXRlQ2hhdEhpc3RvcnlTY1JzcBISCgpzZW5kZXJfdWlk", + "GA0gASgNEg4KBnRvX3VpZBgIIAEoDRIPCgdyZXRjb2RlGAogASgNEhgKCWNo", + "YXRfbGlzdBgFIAMoCzIFLkNoYXRCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl", + "ci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChatReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetPrivateChatHistoryScRsp), global::EggLink.DanhengServer.Proto.GetPrivateChatHistoryScRsp.Parser, new[]{ "SenderUid", "ToUid", "Retcode", "ChatList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetPrivateChatHistoryScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPrivateChatHistoryScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetPrivateChatHistoryScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPrivateChatHistoryScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPrivateChatHistoryScRsp(GetPrivateChatHistoryScRsp other) : this() { + senderUid_ = other.senderUid_; + toUid_ = other.toUid_; + retcode_ = other.retcode_; + chatList_ = other.chatList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetPrivateChatHistoryScRsp Clone() { + return new GetPrivateChatHistoryScRsp(this); + } + + /// Field number for the "sender_uid" field. + public const int SenderUidFieldNumber = 13; + private uint senderUid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SenderUid { + get { return senderUid_; } + set { + senderUid_ = value; + } + } + + /// Field number for the "to_uid" field. + public const int ToUidFieldNumber = 8; + private uint toUid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ToUid { + get { return toUid_; } + set { + toUid_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 10; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "chat_list" field. + public const int ChatListFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_chatList_codec + = pb::FieldCodec.ForMessage(42, global::EggLink.DanhengServer.Proto.Chat.Parser); + private readonly pbc::RepeatedField chatList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ChatList { + get { return chatList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetPrivateChatHistoryScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetPrivateChatHistoryScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SenderUid != other.SenderUid) return false; + if (ToUid != other.ToUid) return false; + if (Retcode != other.Retcode) return false; + if(!chatList_.Equals(other.chatList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (SenderUid != 0) hash ^= SenderUid.GetHashCode(); + if (ToUid != 0) hash ^= ToUid.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= chatList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + chatList_.WriteTo(output, _repeated_chatList_codec); + if (ToUid != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ToUid); + } + if (Retcode != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Retcode); + } + if (SenderUid != 0) { + output.WriteRawTag(104); + output.WriteUInt32(SenderUid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + chatList_.WriteTo(ref output, _repeated_chatList_codec); + if (ToUid != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ToUid); + } + if (Retcode != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Retcode); + } + if (SenderUid != 0) { + output.WriteRawTag(104); + output.WriteUInt32(SenderUid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SenderUid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SenderUid); + } + if (ToUid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ToUid); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += chatList_.CalculateSize(_repeated_chatList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetPrivateChatHistoryScRsp other) { + if (other == null) { + return; + } + if (other.SenderUid != 0) { + SenderUid = other.SenderUid; + } + if (other.ToUid != 0) { + ToUid = other.ToUid; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + chatList_.Add(other.chatList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + chatList_.AddEntriesFrom(input, _repeated_chatList_codec); + break; + } + case 64: { + ToUid = input.ReadUInt32(); + break; + } + case 80: { + Retcode = input.ReadUInt32(); + break; + } + case 104: { + SenderUid = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + chatList_.AddEntriesFrom(ref input, _repeated_chatList_codec); + break; + } + case 64: { + ToUid = input.ReadUInt32(); + break; + } + case 80: { + Retcode = input.ReadUInt32(); + break; + } + case 104: { + SenderUid = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetQuestDataCsReq.cs b/Common/Proto/GetQuestDataCsReq.cs new file mode 100644 index 00000000..deaa9216 --- /dev/null +++ b/Common/Proto/GetQuestDataCsReq.cs @@ -0,0 +1,196 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetQuestDataCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetQuestDataCsReq.proto + public static partial class GetQuestDataCsReqReflection { + + #region Descriptor + /// File descriptor for GetQuestDataCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetQuestDataCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdHZXRRdWVzdERhdGFDc1JlcS5wcm90byITChFHZXRRdWVzdERhdGFDc1Jl", + "cUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetQuestDataCsReq), global::EggLink.DanhengServer.Proto.GetQuestDataCsReq.Parser, null, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetQuestDataCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetQuestDataCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetQuestDataCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetQuestDataCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetQuestDataCsReq(GetQuestDataCsReq other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetQuestDataCsReq Clone() { + return new GetQuestDataCsReq(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetQuestDataCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetQuestDataCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetQuestDataCsReq other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetQuestDataScRsp.cs b/Common/Proto/GetQuestDataScRsp.cs new file mode 100644 index 00000000..f5e6374a --- /dev/null +++ b/Common/Proto/GetQuestDataScRsp.cs @@ -0,0 +1,298 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetQuestDataScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetQuestDataScRsp.proto + public static partial class GetQuestDataScRspReflection { + + #region Descriptor + /// File descriptor for GetQuestDataScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetQuestDataScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdHZXRRdWVzdERhdGFTY1JzcC5wcm90bxoLUXVlc3QucHJvdG8iXwoRR2V0", + "UXVlc3REYXRhU2NSc3ASDwoHcmV0Y29kZRgNIAEoDRIdChV0b3RhbF9hY2hp", + "ZXZlbWVudF9leHAYAyABKA0SGgoKcXVlc3RfbGlzdBgMIAMoCzIGLlF1ZXN0", + "Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.QuestReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetQuestDataScRsp), global::EggLink.DanhengServer.Proto.GetQuestDataScRsp.Parser, new[]{ "Retcode", "TotalAchievementExp", "QuestList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetQuestDataScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetQuestDataScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetQuestDataScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetQuestDataScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetQuestDataScRsp(GetQuestDataScRsp other) : this() { + retcode_ = other.retcode_; + totalAchievementExp_ = other.totalAchievementExp_; + questList_ = other.questList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetQuestDataScRsp Clone() { + return new GetQuestDataScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 13; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "total_achievement_exp" field. + public const int TotalAchievementExpFieldNumber = 3; + private uint totalAchievementExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalAchievementExp { + get { return totalAchievementExp_; } + set { + totalAchievementExp_ = value; + } + } + + /// Field number for the "quest_list" field. + public const int QuestListFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_questList_codec + = pb::FieldCodec.ForMessage(98, global::EggLink.DanhengServer.Proto.Quest.Parser); + private readonly pbc::RepeatedField questList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField QuestList { + get { return questList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetQuestDataScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetQuestDataScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (TotalAchievementExp != other.TotalAchievementExp) return false; + if(!questList_.Equals(other.questList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (TotalAchievementExp != 0) hash ^= TotalAchievementExp.GetHashCode(); + hash ^= questList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TotalAchievementExp != 0) { + output.WriteRawTag(24); + output.WriteUInt32(TotalAchievementExp); + } + questList_.WriteTo(output, _repeated_questList_codec); + if (Retcode != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TotalAchievementExp != 0) { + output.WriteRawTag(24); + output.WriteUInt32(TotalAchievementExp); + } + questList_.WriteTo(ref output, _repeated_questList_codec); + if (Retcode != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (TotalAchievementExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalAchievementExp); + } + size += questList_.CalculateSize(_repeated_questList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetQuestDataScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.TotalAchievementExp != 0) { + TotalAchievementExp = other.TotalAchievementExp; + } + questList_.Add(other.questList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + TotalAchievementExp = input.ReadUInt32(); + break; + } + case 98: { + questList_.AddEntriesFrom(input, _repeated_questList_codec); + break; + } + case 104: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + TotalAchievementExp = input.ReadUInt32(); + break; + } + case 98: { + questList_.AddEntriesFrom(ref input, _repeated_questList_codec); + break; + } + case 104: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetRogueBuffEnhanceInfoScRsp.cs b/Common/Proto/GetRogueBuffEnhanceInfoScRsp.cs new file mode 100644 index 00000000..c77cd2ff --- /dev/null +++ b/Common/Proto/GetRogueBuffEnhanceInfoScRsp.cs @@ -0,0 +1,282 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetRogueBuffEnhanceInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetRogueBuffEnhanceInfoScRsp.proto + public static partial class GetRogueBuffEnhanceInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetRogueBuffEnhanceInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetRogueBuffEnhanceInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJHZXRSb2d1ZUJ1ZmZFbmhhbmNlSW5mb1NjUnNwLnByb3RvGh5Sb2d1ZUJ1", + "ZmZFbmhhbmNlU2hvcEluZm8ucHJvdG8iXQocR2V0Um9ndWVCdWZmRW5oYW5j", + "ZUluZm9TY1JzcBIPCgdyZXRjb2RlGAogASgNEiwKCXNob3BfaW5mbxgEIAEo", + "CzIZLlJvZ3VlQnVmZkVuaGFuY2VTaG9wSW5mb0IeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueBuffEnhanceShopInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetRogueBuffEnhanceInfoScRsp), global::EggLink.DanhengServer.Proto.GetRogueBuffEnhanceInfoScRsp.Parser, new[]{ "Retcode", "ShopInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetRogueBuffEnhanceInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRogueBuffEnhanceInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetRogueBuffEnhanceInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueBuffEnhanceInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueBuffEnhanceInfoScRsp(GetRogueBuffEnhanceInfoScRsp other) : this() { + retcode_ = other.retcode_; + shopInfo_ = other.shopInfo_ != null ? other.shopInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueBuffEnhanceInfoScRsp Clone() { + return new GetRogueBuffEnhanceInfoScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 10; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "shop_info" field. + public const int ShopInfoFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.RogueBuffEnhanceShopInfo shopInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBuffEnhanceShopInfo ShopInfo { + get { return shopInfo_; } + set { + shopInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRogueBuffEnhanceInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRogueBuffEnhanceInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(ShopInfo, other.ShopInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (shopInfo_ != null) hash ^= ShopInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (shopInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ShopInfo); + } + if (Retcode != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (shopInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ShopInfo); + } + if (Retcode != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (shopInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ShopInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRogueBuffEnhanceInfoScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.shopInfo_ != null) { + if (shopInfo_ == null) { + ShopInfo = new global::EggLink.DanhengServer.Proto.RogueBuffEnhanceShopInfo(); + } + ShopInfo.MergeFrom(other.ShopInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + if (shopInfo_ == null) { + ShopInfo = new global::EggLink.DanhengServer.Proto.RogueBuffEnhanceShopInfo(); + } + input.ReadMessage(ShopInfo); + break; + } + case 80: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + if (shopInfo_ == null) { + ShopInfo = new global::EggLink.DanhengServer.Proto.RogueBuffEnhanceShopInfo(); + } + input.ReadMessage(ShopInfo); + break; + } + case 80: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetRogueHandbookDataScRsp.cs b/Common/Proto/GetRogueHandbookDataScRsp.cs new file mode 100644 index 00000000..66ff0864 --- /dev/null +++ b/Common/Proto/GetRogueHandbookDataScRsp.cs @@ -0,0 +1,282 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetRogueHandbookDataScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetRogueHandbookDataScRsp.proto + public static partial class GetRogueHandbookDataScRspReflection { + + #region Descriptor + /// File descriptor for GetRogueHandbookDataScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetRogueHandbookDataScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9HZXRSb2d1ZUhhbmRib29rRGF0YVNjUnNwLnByb3RvGhdSb2d1ZUhhbmRi", + "b29rRGF0YS5wcm90byJXChlHZXRSb2d1ZUhhbmRib29rRGF0YVNjUnNwEikK", + "DWhhbmRib29rX2luZm8YDiABKAsyEi5Sb2d1ZUhhbmRib29rRGF0YRIPCgdy", + "ZXRjb2RlGAMgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueHandbookDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetRogueHandbookDataScRsp), global::EggLink.DanhengServer.Proto.GetRogueHandbookDataScRsp.Parser, new[]{ "HandbookInfo", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetRogueHandbookDataScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRogueHandbookDataScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetRogueHandbookDataScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueHandbookDataScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueHandbookDataScRsp(GetRogueHandbookDataScRsp other) : this() { + handbookInfo_ = other.handbookInfo_ != null ? other.handbookInfo_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueHandbookDataScRsp Clone() { + return new GetRogueHandbookDataScRsp(this); + } + + /// Field number for the "handbook_info" field. + public const int HandbookInfoFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.RogueHandbookData handbookInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueHandbookData HandbookInfo { + get { return handbookInfo_; } + set { + handbookInfo_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRogueHandbookDataScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRogueHandbookDataScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(HandbookInfo, other.HandbookInfo)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (handbookInfo_ != null) hash ^= HandbookInfo.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (handbookInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(HandbookInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (handbookInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(HandbookInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (handbookInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HandbookInfo); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRogueHandbookDataScRsp other) { + if (other == null) { + return; + } + if (other.handbookInfo_ != null) { + if (handbookInfo_ == null) { + HandbookInfo = new global::EggLink.DanhengServer.Proto.RogueHandbookData(); + } + HandbookInfo.MergeFrom(other.HandbookInfo); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 114: { + if (handbookInfo_ == null) { + HandbookInfo = new global::EggLink.DanhengServer.Proto.RogueHandbookData(); + } + input.ReadMessage(HandbookInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 114: { + if (handbookInfo_ == null) { + HandbookInfo = new global::EggLink.DanhengServer.Proto.RogueHandbookData(); + } + input.ReadMessage(HandbookInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetRogueInfoScRsp.cs b/Common/Proto/GetRogueInfoScRsp.cs new file mode 100644 index 00000000..7e1d75d6 --- /dev/null +++ b/Common/Proto/GetRogueInfoScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetRogueInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetRogueInfoScRsp.proto + public static partial class GetRogueInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetRogueInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetRogueInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdHZXRSb2d1ZUluZm9TY1JzcC5wcm90bxoPUm9ndWVJbmZvLnByb3RvIkQK", + "EUdldFJvZ3VlSW5mb1NjUnNwEg8KB3JldGNvZGUYDyABKA0SHgoKcm9ndWVf", + "aW5mbxgOIAEoCzIKLlJvZ3VlSW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2Vy", + "dmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetRogueInfoScRsp), global::EggLink.DanhengServer.Proto.GetRogueInfoScRsp.Parser, new[]{ "Retcode", "RogueInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetRogueInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRogueInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetRogueInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueInfoScRsp(GetRogueInfoScRsp other) : this() { + retcode_ = other.retcode_; + rogueInfo_ = other.rogueInfo_ != null ? other.rogueInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueInfoScRsp Clone() { + return new GetRogueInfoScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 15; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "rogue_info" field. + public const int RogueInfoFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.RogueInfo rogueInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueInfo RogueInfo { + get { return rogueInfo_; } + set { + rogueInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRogueInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRogueInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(RogueInfo, other.RogueInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (rogueInfo_ != null) hash ^= RogueInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rogueInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(RogueInfo); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rogueInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(RogueInfo); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (rogueInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRogueInfoScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.rogueInfo_ != null) { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.RogueInfo(); + } + RogueInfo.MergeFrom(other.RogueInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.RogueInfo(); + } + input.ReadMessage(RogueInfo); + break; + } + case 120: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.RogueInfo(); + } + input.ReadMessage(RogueInfo); + break; + } + case 120: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetRogueScoreRewardInfoScRsp.cs b/Common/Proto/GetRogueScoreRewardInfoScRsp.cs new file mode 100644 index 00000000..4923f6ba --- /dev/null +++ b/Common/Proto/GetRogueScoreRewardInfoScRsp.cs @@ -0,0 +1,282 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetRogueScoreRewardInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetRogueScoreRewardInfoScRsp.proto + public static partial class GetRogueScoreRewardInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetRogueScoreRewardInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetRogueScoreRewardInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJHZXRSb2d1ZVNjb3JlUmV3YXJkSW5mb1NjUnNwLnByb3RvGhpSb2d1ZVNj", + "b3JlUmV3YXJkSW5mby5wcm90byJhChxHZXRSb2d1ZVNjb3JlUmV3YXJkSW5m", + "b1NjUnNwEjAKEXNjb3JlX3Jld2FyZF9pbmZvGA0gASgLMhUuUm9ndWVTY29y", + "ZVJld2FyZEluZm8SDwoHcmV0Y29kZRgEIAEoDUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueScoreRewardInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetRogueScoreRewardInfoScRsp), global::EggLink.DanhengServer.Proto.GetRogueScoreRewardInfoScRsp.Parser, new[]{ "ScoreRewardInfo", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetRogueScoreRewardInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRogueScoreRewardInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetRogueScoreRewardInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueScoreRewardInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueScoreRewardInfoScRsp(GetRogueScoreRewardInfoScRsp other) : this() { + scoreRewardInfo_ = other.scoreRewardInfo_ != null ? other.scoreRewardInfo_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueScoreRewardInfoScRsp Clone() { + return new GetRogueScoreRewardInfoScRsp(this); + } + + /// Field number for the "score_reward_info" field. + public const int ScoreRewardInfoFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo scoreRewardInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo ScoreRewardInfo { + get { return scoreRewardInfo_; } + set { + scoreRewardInfo_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 4; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRogueScoreRewardInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRogueScoreRewardInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ScoreRewardInfo, other.ScoreRewardInfo)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (scoreRewardInfo_ != null) hash ^= ScoreRewardInfo.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + if (scoreRewardInfo_ != null) { + output.WriteRawTag(106); + output.WriteMessage(ScoreRewardInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + if (scoreRewardInfo_ != null) { + output.WriteRawTag(106); + output.WriteMessage(ScoreRewardInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (scoreRewardInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScoreRewardInfo); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRogueScoreRewardInfoScRsp other) { + if (other == null) { + return; + } + if (other.scoreRewardInfo_ != null) { + if (scoreRewardInfo_ == null) { + ScoreRewardInfo = new global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo(); + } + ScoreRewardInfo.MergeFrom(other.ScoreRewardInfo); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + if (scoreRewardInfo_ == null) { + ScoreRewardInfo = new global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo(); + } + input.ReadMessage(ScoreRewardInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + if (scoreRewardInfo_ == null) { + ScoreRewardInfo = new global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo(); + } + input.ReadMessage(ScoreRewardInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetRogueTalentInfoScRsp.cs b/Common/Proto/GetRogueTalentInfoScRsp.cs new file mode 100644 index 00000000..3f5ecd47 --- /dev/null +++ b/Common/Proto/GetRogueTalentInfoScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetRogueTalentInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetRogueTalentInfoScRsp.proto + public static partial class GetRogueTalentInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetRogueTalentInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetRogueTalentInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1HZXRSb2d1ZVRhbGVudEluZm9TY1JzcC5wcm90bxoVUm9ndWVUYWxlbnRJ", + "bmZvLnByb3RvIlEKF0dldFJvZ3VlVGFsZW50SW5mb1NjUnNwEg8KB3JldGNv", + "ZGUYCCABKA0SJQoLdGFsZW50X2luZm8YCiABKAsyEC5Sb2d1ZVRhbGVudElu", + "Zm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueTalentInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetRogueTalentInfoScRsp), global::EggLink.DanhengServer.Proto.GetRogueTalentInfoScRsp.Parser, new[]{ "Retcode", "TalentInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetRogueTalentInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRogueTalentInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetRogueTalentInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueTalentInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueTalentInfoScRsp(GetRogueTalentInfoScRsp other) : this() { + retcode_ = other.retcode_; + talentInfo_ = other.talentInfo_ != null ? other.talentInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRogueTalentInfoScRsp Clone() { + return new GetRogueTalentInfoScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 8; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "talent_info" field. + public const int TalentInfoFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.RogueTalentInfo talentInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueTalentInfo TalentInfo { + get { return talentInfo_; } + set { + talentInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRogueTalentInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRogueTalentInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(TalentInfo, other.TalentInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (talentInfo_ != null) hash ^= TalentInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + if (talentInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(TalentInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + if (talentInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(TalentInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (talentInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TalentInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRogueTalentInfoScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.talentInfo_ != null) { + if (talentInfo_ == null) { + TalentInfo = new global::EggLink.DanhengServer.Proto.RogueTalentInfo(); + } + TalentInfo.MergeFrom(other.TalentInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + Retcode = input.ReadUInt32(); + break; + } + case 82: { + if (talentInfo_ == null) { + TalentInfo = new global::EggLink.DanhengServer.Proto.RogueTalentInfo(); + } + input.ReadMessage(TalentInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + Retcode = input.ReadUInt32(); + break; + } + case 82: { + if (talentInfo_ == null) { + TalentInfo = new global::EggLink.DanhengServer.Proto.RogueTalentInfo(); + } + input.ReadMessage(TalentInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetRollShopInfoCsReq.cs b/Common/Proto/GetRollShopInfoCsReq.cs new file mode 100644 index 00000000..f9674a1c --- /dev/null +++ b/Common/Proto/GetRollShopInfoCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetRollShopInfoCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetRollShopInfoCsReq.proto + public static partial class GetRollShopInfoCsReqReflection { + + #region Descriptor + /// File descriptor for GetRollShopInfoCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetRollShopInfoCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpHZXRSb2xsU2hvcEluZm9Dc1JlcS5wcm90byIsChRHZXRSb2xsU2hvcElu", + "Zm9Dc1JlcRIUCgxyb2xsX3Nob3BfaWQYCCABKA1CHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetRollShopInfoCsReq), global::EggLink.DanhengServer.Proto.GetRollShopInfoCsReq.Parser, new[]{ "RollShopId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetRollShopInfoCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRollShopInfoCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetRollShopInfoCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRollShopInfoCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRollShopInfoCsReq(GetRollShopInfoCsReq other) : this() { + rollShopId_ = other.rollShopId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRollShopInfoCsReq Clone() { + return new GetRollShopInfoCsReq(this); + } + + /// Field number for the "roll_shop_id" field. + public const int RollShopIdFieldNumber = 8; + private uint rollShopId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RollShopId { + get { return rollShopId_; } + set { + rollShopId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRollShopInfoCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRollShopInfoCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RollShopId != other.RollShopId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RollShopId != 0) hash ^= RollShopId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RollShopId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(RollShopId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RollShopId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(RollShopId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RollShopId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollShopId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRollShopInfoCsReq other) { + if (other == null) { + return; + } + if (other.RollShopId != 0) { + RollShopId = other.RollShopId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + RollShopId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + RollShopId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetRollShopInfoScRsp.cs b/Common/Proto/GetRollShopInfoScRsp.cs new file mode 100644 index 00000000..da6230de --- /dev/null +++ b/Common/Proto/GetRollShopInfoScRsp.cs @@ -0,0 +1,337 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetRollShopInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetRollShopInfoScRsp.proto + public static partial class GetRollShopInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetRollShopInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetRollShopInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpHZXRSb2xsU2hvcEluZm9TY1JzcC5wcm90byJnChRHZXRSb2xsU2hvcElu", + "Zm9TY1JzcBIUCgxyb2xsX3Nob3BfaWQYDyABKA0SDwoHcmV0Y29kZRgFIAEo", + "DRITCgtETFBCSk1QRUNGQxgIIAMoDRITCgtCQkpJSklOSkFGSxgEIAEoDUIe", + "qgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetRollShopInfoScRsp), global::EggLink.DanhengServer.Proto.GetRollShopInfoScRsp.Parser, new[]{ "RollShopId", "Retcode", "DLPBJMPECFC", "BBJIJINJAFK" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetRollShopInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRollShopInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetRollShopInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRollShopInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRollShopInfoScRsp(GetRollShopInfoScRsp other) : this() { + rollShopId_ = other.rollShopId_; + retcode_ = other.retcode_; + dLPBJMPECFC_ = other.dLPBJMPECFC_.Clone(); + bBJIJINJAFK_ = other.bBJIJINJAFK_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRollShopInfoScRsp Clone() { + return new GetRollShopInfoScRsp(this); + } + + /// Field number for the "roll_shop_id" field. + public const int RollShopIdFieldNumber = 15; + private uint rollShopId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RollShopId { + get { return rollShopId_; } + set { + rollShopId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 5; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "DLPBJMPECFC" field. + public const int DLPBJMPECFCFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_dLPBJMPECFC_codec + = pb::FieldCodec.ForUInt32(66); + private readonly pbc::RepeatedField dLPBJMPECFC_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DLPBJMPECFC { + get { return dLPBJMPECFC_; } + } + + /// Field number for the "BBJIJINJAFK" field. + public const int BBJIJINJAFKFieldNumber = 4; + private uint bBJIJINJAFK_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BBJIJINJAFK { + get { return bBJIJINJAFK_; } + set { + bBJIJINJAFK_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRollShopInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRollShopInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RollShopId != other.RollShopId) return false; + if (Retcode != other.Retcode) return false; + if(!dLPBJMPECFC_.Equals(other.dLPBJMPECFC_)) return false; + if (BBJIJINJAFK != other.BBJIJINJAFK) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RollShopId != 0) hash ^= RollShopId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= dLPBJMPECFC_.GetHashCode(); + if (BBJIJINJAFK != 0) hash ^= BBJIJINJAFK.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BBJIJINJAFK != 0) { + output.WriteRawTag(32); + output.WriteUInt32(BBJIJINJAFK); + } + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + dLPBJMPECFC_.WriteTo(output, _repeated_dLPBJMPECFC_codec); + if (RollShopId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(RollShopId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BBJIJINJAFK != 0) { + output.WriteRawTag(32); + output.WriteUInt32(BBJIJINJAFK); + } + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + dLPBJMPECFC_.WriteTo(ref output, _repeated_dLPBJMPECFC_codec); + if (RollShopId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(RollShopId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RollShopId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollShopId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += dLPBJMPECFC_.CalculateSize(_repeated_dLPBJMPECFC_codec); + if (BBJIJINJAFK != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BBJIJINJAFK); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRollShopInfoScRsp other) { + if (other == null) { + return; + } + if (other.RollShopId != 0) { + RollShopId = other.RollShopId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + dLPBJMPECFC_.Add(other.dLPBJMPECFC_); + if (other.BBJIJINJAFK != 0) { + BBJIJINJAFK = other.BBJIJINJAFK; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + BBJIJINJAFK = input.ReadUInt32(); + break; + } + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 66: + case 64: { + dLPBJMPECFC_.AddEntriesFrom(input, _repeated_dLPBJMPECFC_codec); + break; + } + case 120: { + RollShopId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + BBJIJINJAFK = input.ReadUInt32(); + break; + } + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 66: + case 64: { + dLPBJMPECFC_.AddEntriesFrom(ref input, _repeated_dLPBJMPECFC_codec); + break; + } + case 120: { + RollShopId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetSceneMapInfoCsReq.cs b/Common/Proto/GetSceneMapInfoCsReq.cs new file mode 100644 index 00000000..ec92cd23 --- /dev/null +++ b/Common/Proto/GetSceneMapInfoCsReq.cs @@ -0,0 +1,262 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetSceneMapInfoCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetSceneMapInfoCsReq.proto + public static partial class GetSceneMapInfoCsReqReflection { + + #region Descriptor + /// File descriptor for GetSceneMapInfoCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetSceneMapInfoCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpHZXRTY2VuZU1hcEluZm9Dc1JlcS5wcm90byI/ChRHZXRTY2VuZU1hcElu", + "Zm9Dc1JlcRIQCghlbnRyeV9pZBgPIAEoDRIVCg1lbnRyeV9pZF9saXN0GAgg", + "AygNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetSceneMapInfoCsReq), global::EggLink.DanhengServer.Proto.GetSceneMapInfoCsReq.Parser, new[]{ "EntryId", "EntryIdList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetSceneMapInfoCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSceneMapInfoCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetSceneMapInfoCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSceneMapInfoCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSceneMapInfoCsReq(GetSceneMapInfoCsReq other) : this() { + entryId_ = other.entryId_; + entryIdList_ = other.entryIdList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSceneMapInfoCsReq Clone() { + return new GetSceneMapInfoCsReq(this); + } + + /// Field number for the "entry_id" field. + public const int EntryIdFieldNumber = 15; + private uint entryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntryId { + get { return entryId_; } + set { + entryId_ = value; + } + } + + /// Field number for the "entry_id_list" field. + public const int EntryIdListFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_entryIdList_codec + = pb::FieldCodec.ForUInt32(66); + private readonly pbc::RepeatedField entryIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EntryIdList { + get { return entryIdList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSceneMapInfoCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSceneMapInfoCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntryId != other.EntryId) return false; + if(!entryIdList_.Equals(other.entryIdList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EntryId != 0) hash ^= EntryId.GetHashCode(); + hash ^= entryIdList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + entryIdList_.WriteTo(output, _repeated_entryIdList_codec); + if (EntryId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(EntryId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + entryIdList_.WriteTo(ref output, _repeated_entryIdList_codec); + if (EntryId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(EntryId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EntryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntryId); + } + size += entryIdList_.CalculateSize(_repeated_entryIdList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSceneMapInfoCsReq other) { + if (other == null) { + return; + } + if (other.EntryId != 0) { + EntryId = other.EntryId; + } + entryIdList_.Add(other.entryIdList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: + case 64: { + entryIdList_.AddEntriesFrom(input, _repeated_entryIdList_codec); + break; + } + case 120: { + EntryId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: + case 64: { + entryIdList_.AddEntriesFrom(ref input, _repeated_entryIdList_codec); + break; + } + case 120: { + EntryId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetSceneMapInfoScRsp.cs b/Common/Proto/GetSceneMapInfoScRsp.cs new file mode 100644 index 00000000..57394832 --- /dev/null +++ b/Common/Proto/GetSceneMapInfoScRsp.cs @@ -0,0 +1,475 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetSceneMapInfoScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetSceneMapInfoScRsp.proto + public static partial class GetSceneMapInfoScRspReflection { + + #region Descriptor + /// File descriptor for GetSceneMapInfoScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetSceneMapInfoScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpHZXRTY2VuZU1hcEluZm9TY1JzcC5wcm90bxoRTWF6ZU1hcERhdGEucHJv", + "dG8aD01hemVHcm91cC5wcm90bxoPTWF6ZUNoZXN0LnByb3RvGg5NYXplUHJv", + "cC5wcm90byKiAgoUR2V0U2NlbmVNYXBJbmZvU2NSc3ASHgoWdW5sb2NrZWRf", + "dGVsZXBvcnRfbGlzdBgNIAMoDRIcChRsaWdodGVuX3NlY3Rpb25fbGlzdBgE", + "IAMoDRIYChBjdXJfbWFwX2VudHJ5X2lkGAkgASgNEh4KCG1hcF9saXN0GA4g", + "AygLMgwuTWF6ZU1hcERhdGESJwoTdW5sb2NrZWRfY2hlc3RfbGlzdBgMIAMo", + "CzIKLk1hemVDaGVzdBIjCg9tYXplX2dyb3VwX2xpc3QYDyADKAsyCi5NYXpl", + "R3JvdXASDwoHcmV0Y29kZRgIIAEoDRIhCg5tYXplX3Byb3BfbGlzdBgHIAMo", + "CzIJLk1hemVQcm9wEhAKCGVudHJ5X2lkGAogASgNQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MazeMapDataReflection.Descriptor, global::EggLink.DanhengServer.Proto.MazeGroupReflection.Descriptor, global::EggLink.DanhengServer.Proto.MazeChestReflection.Descriptor, global::EggLink.DanhengServer.Proto.MazePropReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetSceneMapInfoScRsp), global::EggLink.DanhengServer.Proto.GetSceneMapInfoScRsp.Parser, new[]{ "UnlockedTeleportList", "LightenSectionList", "CurMapEntryId", "MapList", "UnlockedChestList", "MazeGroupList", "Retcode", "MazePropList", "EntryId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetSceneMapInfoScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSceneMapInfoScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetSceneMapInfoScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSceneMapInfoScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSceneMapInfoScRsp(GetSceneMapInfoScRsp other) : this() { + unlockedTeleportList_ = other.unlockedTeleportList_.Clone(); + lightenSectionList_ = other.lightenSectionList_.Clone(); + curMapEntryId_ = other.curMapEntryId_; + mapList_ = other.mapList_.Clone(); + unlockedChestList_ = other.unlockedChestList_.Clone(); + mazeGroupList_ = other.mazeGroupList_.Clone(); + retcode_ = other.retcode_; + mazePropList_ = other.mazePropList_.Clone(); + entryId_ = other.entryId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSceneMapInfoScRsp Clone() { + return new GetSceneMapInfoScRsp(this); + } + + /// Field number for the "unlocked_teleport_list" field. + public const int UnlockedTeleportListFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_unlockedTeleportList_codec + = pb::FieldCodec.ForUInt32(106); + private readonly pbc::RepeatedField unlockedTeleportList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnlockedTeleportList { + get { return unlockedTeleportList_; } + } + + /// Field number for the "lighten_section_list" field. + public const int LightenSectionListFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_lightenSectionList_codec + = pb::FieldCodec.ForUInt32(34); + private readonly pbc::RepeatedField lightenSectionList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LightenSectionList { + get { return lightenSectionList_; } + } + + /// Field number for the "cur_map_entry_id" field. + public const int CurMapEntryIdFieldNumber = 9; + private uint curMapEntryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurMapEntryId { + get { return curMapEntryId_; } + set { + curMapEntryId_ = value; + } + } + + /// Field number for the "map_list" field. + public const int MapListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_mapList_codec + = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.MazeMapData.Parser); + private readonly pbc::RepeatedField mapList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MapList { + get { return mapList_; } + } + + /// Field number for the "unlocked_chest_list" field. + public const int UnlockedChestListFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_unlockedChestList_codec + = pb::FieldCodec.ForMessage(98, global::EggLink.DanhengServer.Proto.MazeChest.Parser); + private readonly pbc::RepeatedField unlockedChestList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnlockedChestList { + get { return unlockedChestList_; } + } + + /// Field number for the "maze_group_list" field. + public const int MazeGroupListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_mazeGroupList_codec + = pb::FieldCodec.ForMessage(122, global::EggLink.DanhengServer.Proto.MazeGroup.Parser); + private readonly pbc::RepeatedField mazeGroupList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MazeGroupList { + get { return mazeGroupList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 8; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "maze_prop_list" field. + public const int MazePropListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_mazePropList_codec + = pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.MazeProp.Parser); + private readonly pbc::RepeatedField mazePropList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MazePropList { + get { return mazePropList_; } + } + + /// Field number for the "entry_id" field. + public const int EntryIdFieldNumber = 10; + private uint entryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntryId { + get { return entryId_; } + set { + entryId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSceneMapInfoScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSceneMapInfoScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!unlockedTeleportList_.Equals(other.unlockedTeleportList_)) return false; + if(!lightenSectionList_.Equals(other.lightenSectionList_)) return false; + if (CurMapEntryId != other.CurMapEntryId) return false; + if(!mapList_.Equals(other.mapList_)) return false; + if(!unlockedChestList_.Equals(other.unlockedChestList_)) return false; + if(!mazeGroupList_.Equals(other.mazeGroupList_)) return false; + if (Retcode != other.Retcode) return false; + if(!mazePropList_.Equals(other.mazePropList_)) return false; + if (EntryId != other.EntryId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= unlockedTeleportList_.GetHashCode(); + hash ^= lightenSectionList_.GetHashCode(); + if (CurMapEntryId != 0) hash ^= CurMapEntryId.GetHashCode(); + hash ^= mapList_.GetHashCode(); + hash ^= unlockedChestList_.GetHashCode(); + hash ^= mazeGroupList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= mazePropList_.GetHashCode(); + if (EntryId != 0) hash ^= EntryId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + lightenSectionList_.WriteTo(output, _repeated_lightenSectionList_codec); + mazePropList_.WriteTo(output, _repeated_mazePropList_codec); + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + if (CurMapEntryId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(CurMapEntryId); + } + if (EntryId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(EntryId); + } + unlockedChestList_.WriteTo(output, _repeated_unlockedChestList_codec); + unlockedTeleportList_.WriteTo(output, _repeated_unlockedTeleportList_codec); + mapList_.WriteTo(output, _repeated_mapList_codec); + mazeGroupList_.WriteTo(output, _repeated_mazeGroupList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + lightenSectionList_.WriteTo(ref output, _repeated_lightenSectionList_codec); + mazePropList_.WriteTo(ref output, _repeated_mazePropList_codec); + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + if (CurMapEntryId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(CurMapEntryId); + } + if (EntryId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(EntryId); + } + unlockedChestList_.WriteTo(ref output, _repeated_unlockedChestList_codec); + unlockedTeleportList_.WriteTo(ref output, _repeated_unlockedTeleportList_codec); + mapList_.WriteTo(ref output, _repeated_mapList_codec); + mazeGroupList_.WriteTo(ref output, _repeated_mazeGroupList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += unlockedTeleportList_.CalculateSize(_repeated_unlockedTeleportList_codec); + size += lightenSectionList_.CalculateSize(_repeated_lightenSectionList_codec); + if (CurMapEntryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurMapEntryId); + } + size += mapList_.CalculateSize(_repeated_mapList_codec); + size += unlockedChestList_.CalculateSize(_repeated_unlockedChestList_codec); + size += mazeGroupList_.CalculateSize(_repeated_mazeGroupList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += mazePropList_.CalculateSize(_repeated_mazePropList_codec); + if (EntryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntryId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSceneMapInfoScRsp other) { + if (other == null) { + return; + } + unlockedTeleportList_.Add(other.unlockedTeleportList_); + lightenSectionList_.Add(other.lightenSectionList_); + if (other.CurMapEntryId != 0) { + CurMapEntryId = other.CurMapEntryId; + } + mapList_.Add(other.mapList_); + unlockedChestList_.Add(other.unlockedChestList_); + mazeGroupList_.Add(other.mazeGroupList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + mazePropList_.Add(other.mazePropList_); + if (other.EntryId != 0) { + EntryId = other.EntryId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: + case 32: { + lightenSectionList_.AddEntriesFrom(input, _repeated_lightenSectionList_codec); + break; + } + case 58: { + mazePropList_.AddEntriesFrom(input, _repeated_mazePropList_codec); + break; + } + case 64: { + Retcode = input.ReadUInt32(); + break; + } + case 72: { + CurMapEntryId = input.ReadUInt32(); + break; + } + case 80: { + EntryId = input.ReadUInt32(); + break; + } + case 98: { + unlockedChestList_.AddEntriesFrom(input, _repeated_unlockedChestList_codec); + break; + } + case 106: + case 104: { + unlockedTeleportList_.AddEntriesFrom(input, _repeated_unlockedTeleportList_codec); + break; + } + case 114: { + mapList_.AddEntriesFrom(input, _repeated_mapList_codec); + break; + } + case 122: { + mazeGroupList_.AddEntriesFrom(input, _repeated_mazeGroupList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: + case 32: { + lightenSectionList_.AddEntriesFrom(ref input, _repeated_lightenSectionList_codec); + break; + } + case 58: { + mazePropList_.AddEntriesFrom(ref input, _repeated_mazePropList_codec); + break; + } + case 64: { + Retcode = input.ReadUInt32(); + break; + } + case 72: { + CurMapEntryId = input.ReadUInt32(); + break; + } + case 80: { + EntryId = input.ReadUInt32(); + break; + } + case 98: { + unlockedChestList_.AddEntriesFrom(ref input, _repeated_unlockedChestList_codec); + break; + } + case 106: + case 104: { + unlockedTeleportList_.AddEntriesFrom(ref input, _repeated_unlockedTeleportList_codec); + break; + } + case 114: { + mapList_.AddEntriesFrom(ref input, _repeated_mapList_codec); + break; + } + case 122: { + mazeGroupList_.AddEntriesFrom(ref input, _repeated_mazeGroupList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetShopListCsReq.cs b/Common/Proto/GetShopListCsReq.cs new file mode 100644 index 00000000..4011644b --- /dev/null +++ b/Common/Proto/GetShopListCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetShopListCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetShopListCsReq.proto + public static partial class GetShopListCsReqReflection { + + #region Descriptor + /// File descriptor for GetShopListCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetShopListCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZHZXRTaG9wTGlzdENzUmVxLnByb3RvIiUKEEdldFNob3BMaXN0Q3NSZXES", + "EQoJc2hvcF90eXBlGAogASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu", + "UHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetShopListCsReq), global::EggLink.DanhengServer.Proto.GetShopListCsReq.Parser, new[]{ "ShopType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetShopListCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetShopListCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetShopListCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetShopListCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetShopListCsReq(GetShopListCsReq other) : this() { + shopType_ = other.shopType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetShopListCsReq Clone() { + return new GetShopListCsReq(this); + } + + /// Field number for the "shop_type" field. + public const int ShopTypeFieldNumber = 10; + private uint shopType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ShopType { + get { return shopType_; } + set { + shopType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetShopListCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetShopListCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ShopType != other.ShopType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ShopType != 0) hash ^= ShopType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ShopType != 0) { + output.WriteRawTag(80); + output.WriteUInt32(ShopType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ShopType != 0) { + output.WriteRawTag(80); + output.WriteUInt32(ShopType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ShopType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ShopType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetShopListCsReq other) { + if (other == null) { + return; + } + if (other.ShopType != 0) { + ShopType = other.ShopType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 80: { + ShopType = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 80: { + ShopType = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetShopListScRsp.cs b/Common/Proto/GetShopListScRsp.cs new file mode 100644 index 00000000..7c9f1fd4 --- /dev/null +++ b/Common/Proto/GetShopListScRsp.cs @@ -0,0 +1,298 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetShopListScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetShopListScRsp.proto + public static partial class GetShopListScRspReflection { + + #region Descriptor + /// File descriptor for GetShopListScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetShopListScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZHZXRTaG9wTGlzdFNjUnNwLnByb3RvGgpTaG9wLnByb3RvIlAKEEdldFNo", + "b3BMaXN0U2NSc3ASEQoJc2hvcF90eXBlGAMgASgNEg8KB3JldGNvZGUYDSAB", + "KA0SGAoJc2hvcF9saXN0GAggAygLMgUuU2hvcEIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ShopReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetShopListScRsp), global::EggLink.DanhengServer.Proto.GetShopListScRsp.Parser, new[]{ "ShopType", "Retcode", "ShopList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetShopListScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetShopListScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetShopListScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetShopListScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetShopListScRsp(GetShopListScRsp other) : this() { + shopType_ = other.shopType_; + retcode_ = other.retcode_; + shopList_ = other.shopList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetShopListScRsp Clone() { + return new GetShopListScRsp(this); + } + + /// Field number for the "shop_type" field. + public const int ShopTypeFieldNumber = 3; + private uint shopType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ShopType { + get { return shopType_; } + set { + shopType_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 13; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "shop_list" field. + public const int ShopListFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_shopList_codec + = pb::FieldCodec.ForMessage(66, global::EggLink.DanhengServer.Proto.Shop.Parser); + private readonly pbc::RepeatedField shopList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ShopList { + get { return shopList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetShopListScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetShopListScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ShopType != other.ShopType) return false; + if (Retcode != other.Retcode) return false; + if(!shopList_.Equals(other.shopList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ShopType != 0) hash ^= ShopType.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= shopList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ShopType != 0) { + output.WriteRawTag(24); + output.WriteUInt32(ShopType); + } + shopList_.WriteTo(output, _repeated_shopList_codec); + if (Retcode != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ShopType != 0) { + output.WriteRawTag(24); + output.WriteUInt32(ShopType); + } + shopList_.WriteTo(ref output, _repeated_shopList_codec); + if (Retcode != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ShopType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ShopType); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += shopList_.CalculateSize(_repeated_shopList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetShopListScRsp other) { + if (other == null) { + return; + } + if (other.ShopType != 0) { + ShopType = other.ShopType; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + shopList_.Add(other.shopList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + ShopType = input.ReadUInt32(); + break; + } + case 66: { + shopList_.AddEntriesFrom(input, _repeated_shopList_codec); + break; + } + case 104: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + ShopType = input.ReadUInt32(); + break; + } + case 66: { + shopList_.AddEntriesFrom(ref input, _repeated_shopList_codec); + break; + } + case 104: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetUnlockTeleportCsReq.cs b/Common/Proto/GetUnlockTeleportCsReq.cs new file mode 100644 index 00000000..e565488d --- /dev/null +++ b/Common/Proto/GetUnlockTeleportCsReq.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetUnlockTeleportCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetUnlockTeleportCsReq.proto + public static partial class GetUnlockTeleportCsReqReflection { + + #region Descriptor + /// File descriptor for GetUnlockTeleportCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetUnlockTeleportCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxHZXRVbmxvY2tUZWxlcG9ydENzUmVxLnByb3RvIi8KFkdldFVubG9ja1Rl", + "bGVwb3J0Q3NSZXESFQoNZW50cnlfaWRfbGlzdBgBIAMoDUIeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetUnlockTeleportCsReq), global::EggLink.DanhengServer.Proto.GetUnlockTeleportCsReq.Parser, new[]{ "EntryIdList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetUnlockTeleportCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUnlockTeleportCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetUnlockTeleportCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUnlockTeleportCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUnlockTeleportCsReq(GetUnlockTeleportCsReq other) : this() { + entryIdList_ = other.entryIdList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUnlockTeleportCsReq Clone() { + return new GetUnlockTeleportCsReq(this); + } + + /// Field number for the "entry_id_list" field. + public const int EntryIdListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_entryIdList_codec + = pb::FieldCodec.ForUInt32(10); + private readonly pbc::RepeatedField entryIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EntryIdList { + get { return entryIdList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetUnlockTeleportCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetUnlockTeleportCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!entryIdList_.Equals(other.entryIdList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= entryIdList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + entryIdList_.WriteTo(output, _repeated_entryIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + entryIdList_.WriteTo(ref output, _repeated_entryIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += entryIdList_.CalculateSize(_repeated_entryIdList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetUnlockTeleportCsReq other) { + if (other == null) { + return; + } + entryIdList_.Add(other.entryIdList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + entryIdList_.AddEntriesFrom(input, _repeated_entryIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + entryIdList_.AddEntriesFrom(ref input, _repeated_entryIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetUnlockTeleportScRsp.cs b/Common/Proto/GetUnlockTeleportScRsp.cs new file mode 100644 index 00000000..fc832615 --- /dev/null +++ b/Common/Proto/GetUnlockTeleportScRsp.cs @@ -0,0 +1,263 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetUnlockTeleportScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetUnlockTeleportScRsp.proto + public static partial class GetUnlockTeleportScRspReflection { + + #region Descriptor + /// File descriptor for GetUnlockTeleportScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetUnlockTeleportScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxHZXRVbmxvY2tUZWxlcG9ydFNjUnNwLnByb3RvIkkKFkdldFVubG9ja1Rl", + "bGVwb3J0U2NSc3ASHgoWdW5sb2NrZWRfdGVsZXBvcnRfbGlzdBgDIAMoDRIP", + "CgdyZXRjb2RlGAYgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJv", + "dG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetUnlockTeleportScRsp), global::EggLink.DanhengServer.Proto.GetUnlockTeleportScRsp.Parser, new[]{ "UnlockedTeleportList", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetUnlockTeleportScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUnlockTeleportScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetUnlockTeleportScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUnlockTeleportScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUnlockTeleportScRsp(GetUnlockTeleportScRsp other) : this() { + unlockedTeleportList_ = other.unlockedTeleportList_.Clone(); + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUnlockTeleportScRsp Clone() { + return new GetUnlockTeleportScRsp(this); + } + + /// Field number for the "unlocked_teleport_list" field. + public const int UnlockedTeleportListFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_unlockedTeleportList_codec + = pb::FieldCodec.ForUInt32(26); + private readonly pbc::RepeatedField unlockedTeleportList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnlockedTeleportList { + get { return unlockedTeleportList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 6; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetUnlockTeleportScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetUnlockTeleportScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!unlockedTeleportList_.Equals(other.unlockedTeleportList_)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= unlockedTeleportList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + unlockedTeleportList_.WriteTo(output, _repeated_unlockedTeleportList_codec); + if (Retcode != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + unlockedTeleportList_.WriteTo(ref output, _repeated_unlockedTeleportList_codec); + if (Retcode != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += unlockedTeleportList_.CalculateSize(_repeated_unlockedTeleportList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetUnlockTeleportScRsp other) { + if (other == null) { + return; + } + unlockedTeleportList_.Add(other.unlockedTeleportList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: + case 24: { + unlockedTeleportList_.AddEntriesFrom(input, _repeated_unlockedTeleportList_codec); + break; + } + case 48: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: + case 24: { + unlockedTeleportList_.AddEntriesFrom(ref input, _repeated_unlockedTeleportList_codec); + break; + } + case 48: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GetVideoVersionKeyScRsp.cs b/Common/Proto/GetVideoVersionKeyScRsp.cs new file mode 100644 index 00000000..5e4f7457 --- /dev/null +++ b/Common/Proto/GetVideoVersionKeyScRsp.cs @@ -0,0 +1,224 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GetVideoVersionKeyScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GetVideoVersionKeyScRsp.proto + public static partial class GetVideoVersionKeyScRspReflection { + + #region Descriptor + /// File descriptor for GetVideoVersionKeyScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetVideoVersionKeyScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1HZXRWaWRlb1ZlcnNpb25LZXlTY1JzcC5wcm90bxoVVmlkZW9WZXJzaW9u", + "S2V5LnByb3RvIkQKF0dldFZpZGVvVmVyc2lvbktleVNjUnNwEikKD3ZpZGVv", + "VmVyc2lvbktleRgIIAMoCzIQLlZpZGVvVmVyc2lvbktleUIeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.VideoVersionKeyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GetVideoVersionKeyScRsp), global::EggLink.DanhengServer.Proto.GetVideoVersionKeyScRsp.Parser, new[]{ "VideoVersionKey" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetVideoVersionKeyScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetVideoVersionKeyScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GetVideoVersionKeyScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetVideoVersionKeyScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetVideoVersionKeyScRsp(GetVideoVersionKeyScRsp other) : this() { + videoVersionKey_ = other.videoVersionKey_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetVideoVersionKeyScRsp Clone() { + return new GetVideoVersionKeyScRsp(this); + } + + /// Field number for the "videoVersionKey" field. + public const int VideoVersionKeyFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_videoVersionKey_codec + = pb::FieldCodec.ForMessage(66, global::EggLink.DanhengServer.Proto.VideoVersionKey.Parser); + private readonly pbc::RepeatedField videoVersionKey_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField VideoVersionKey { + get { return videoVersionKey_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetVideoVersionKeyScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetVideoVersionKeyScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!videoVersionKey_.Equals(other.videoVersionKey_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= videoVersionKey_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + videoVersionKey_.WriteTo(output, _repeated_videoVersionKey_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + videoVersionKey_.WriteTo(ref output, _repeated_videoVersionKey_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += videoVersionKey_.CalculateSize(_repeated_videoVersionKey_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetVideoVersionKeyScRsp other) { + if (other == null) { + return; + } + videoVersionKey_.Add(other.videoVersionKey_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + videoVersionKey_.AddEntriesFrom(input, _repeated_videoVersionKey_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: { + videoVersionKey_.AddEntriesFrom(ref input, _repeated_videoVersionKey_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Goods.cs b/Common/Proto/Goods.cs new file mode 100644 index 00000000..a60f01e0 --- /dev/null +++ b/Common/Proto/Goods.cs @@ -0,0 +1,383 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Goods.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from Goods.proto + public static partial class GoodsReflection { + + #region Descriptor + /// File descriptor for Goods.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GoodsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtHb29kcy5wcm90byJjCgVHb29kcxIQCghlbmRfdGltZRgNIAEoAxIRCgli", + "dXlfdGltZXMYCCABKA0SEgoKYmVnaW5fdGltZRgDIAEoAxIQCghnb29kc19p", + "ZBgEIAEoDRIPCgdpdGVtX2lkGA4gASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Goods), global::EggLink.DanhengServer.Proto.Goods.Parser, new[]{ "EndTime", "BuyTimes", "BeginTime", "GoodsId", "ItemId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Goods : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Goods()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GoodsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Goods() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Goods(Goods other) : this() { + endTime_ = other.endTime_; + buyTimes_ = other.buyTimes_; + beginTime_ = other.beginTime_; + goodsId_ = other.goodsId_; + itemId_ = other.itemId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Goods Clone() { + return new Goods(this); + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 13; + private long endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "buy_times" field. + public const int BuyTimesFieldNumber = 8; + private uint buyTimes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BuyTimes { + get { return buyTimes_; } + set { + buyTimes_ = value; + } + } + + /// Field number for the "begin_time" field. + public const int BeginTimeFieldNumber = 3; + private long beginTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BeginTime { + get { return beginTime_; } + set { + beginTime_ = value; + } + } + + /// Field number for the "goods_id" field. + public const int GoodsIdFieldNumber = 4; + private uint goodsId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GoodsId { + get { return goodsId_; } + set { + goodsId_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 14; + private uint itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 Goods); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Goods other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EndTime != other.EndTime) return false; + if (BuyTimes != other.BuyTimes) return false; + if (BeginTime != other.BeginTime) return false; + if (GoodsId != other.GoodsId) 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 (EndTime != 0L) hash ^= EndTime.GetHashCode(); + if (BuyTimes != 0) hash ^= BuyTimes.GetHashCode(); + if (BeginTime != 0L) hash ^= BeginTime.GetHashCode(); + if (GoodsId != 0) hash ^= GoodsId.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 (BeginTime != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BeginTime); + } + if (GoodsId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(GoodsId); + } + if (BuyTimes != 0) { + output.WriteRawTag(64); + output.WriteUInt32(BuyTimes); + } + if (EndTime != 0L) { + output.WriteRawTag(104); + output.WriteInt64(EndTime); + } + if (ItemId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(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 (BeginTime != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BeginTime); + } + if (GoodsId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(GoodsId); + } + if (BuyTimes != 0) { + output.WriteRawTag(64); + output.WriteUInt32(BuyTimes); + } + if (EndTime != 0L) { + output.WriteRawTag(104); + output.WriteInt64(EndTime); + } + if (ItemId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(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 (EndTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime); + } + if (BuyTimes != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuyTimes); + } + if (BeginTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime); + } + if (GoodsId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GoodsId); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ItemId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Goods other) { + if (other == null) { + return; + } + if (other.EndTime != 0L) { + EndTime = other.EndTime; + } + if (other.BuyTimes != 0) { + BuyTimes = other.BuyTimes; + } + if (other.BeginTime != 0L) { + BeginTime = other.BeginTime; + } + if (other.GoodsId != 0) { + GoodsId = other.GoodsId; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + BeginTime = input.ReadInt64(); + break; + } + case 32: { + GoodsId = input.ReadUInt32(); + break; + } + case 64: { + BuyTimes = input.ReadUInt32(); + break; + } + case 104: { + EndTime = input.ReadInt64(); + break; + } + case 112: { + ItemId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + BeginTime = input.ReadInt64(); + break; + } + case 32: { + GoodsId = input.ReadUInt32(); + break; + } + case 64: { + BuyTimes = input.ReadUInt32(); + break; + } + case 104: { + EndTime = input.ReadInt64(); + break; + } + case 112: { + ItemId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GroupStateChangeCsReq.cs b/Common/Proto/GroupStateChangeCsReq.cs new file mode 100644 index 00000000..b4310bee --- /dev/null +++ b/Common/Proto/GroupStateChangeCsReq.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GroupStateChangeCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GroupStateChangeCsReq.proto + public static partial class GroupStateChangeCsReqReflection { + + #region Descriptor + /// File descriptor for GroupStateChangeCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GroupStateChangeCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtHcm91cFN0YXRlQ2hhbmdlQ3NSZXEucHJvdG8aFEdyb3VwU3RhdGVJbmZv", + "LnByb3RvIkIKFUdyb3VwU3RhdGVDaGFuZ2VDc1JlcRIpChBncm91cF9zdGF0", + "ZV9pbmZvGAggASgLMg8uR3JvdXBTdGF0ZUluZm9CHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GroupStateInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GroupStateChangeCsReq), global::EggLink.DanhengServer.Proto.GroupStateChangeCsReq.Parser, new[]{ "GroupStateInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GroupStateChangeCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GroupStateChangeCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GroupStateChangeCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupStateChangeCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupStateChangeCsReq(GroupStateChangeCsReq other) : this() { + groupStateInfo_ = other.groupStateInfo_ != null ? other.groupStateInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupStateChangeCsReq Clone() { + return new GroupStateChangeCsReq(this); + } + + /// Field number for the "group_state_info" field. + public const int GroupStateInfoFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.GroupStateInfo groupStateInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.GroupStateInfo GroupStateInfo { + get { return groupStateInfo_; } + set { + groupStateInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GroupStateChangeCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GroupStateChangeCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GroupStateInfo, other.GroupStateInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (groupStateInfo_ != null) hash ^= GroupStateInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (groupStateInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(GroupStateInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (groupStateInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(GroupStateInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (groupStateInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GroupStateInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GroupStateChangeCsReq other) { + if (other == null) { + return; + } + if (other.groupStateInfo_ != null) { + if (groupStateInfo_ == null) { + GroupStateInfo = new global::EggLink.DanhengServer.Proto.GroupStateInfo(); + } + GroupStateInfo.MergeFrom(other.GroupStateInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + if (groupStateInfo_ == null) { + GroupStateInfo = new global::EggLink.DanhengServer.Proto.GroupStateInfo(); + } + input.ReadMessage(GroupStateInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: { + if (groupStateInfo_ == null) { + GroupStateInfo = new global::EggLink.DanhengServer.Proto.GroupStateInfo(); + } + input.ReadMessage(GroupStateInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GroupStateChangeScNotify.cs b/Common/Proto/GroupStateChangeScNotify.cs new file mode 100644 index 00000000..932aaf26 --- /dev/null +++ b/Common/Proto/GroupStateChangeScNotify.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GroupStateChangeScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GroupStateChangeScNotify.proto + public static partial class GroupStateChangeScNotifyReflection { + + #region Descriptor + /// File descriptor for GroupStateChangeScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GroupStateChangeScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5Hcm91cFN0YXRlQ2hhbmdlU2NOb3RpZnkucHJvdG8aFEdyb3VwU3RhdGVJ", + "bmZvLnByb3RvIkUKGEdyb3VwU3RhdGVDaGFuZ2VTY05vdGlmeRIpChBncm91", + "cF9zdGF0ZV9pbmZvGAYgASgLMg8uR3JvdXBTdGF0ZUluZm9CHqoCG0VnZ0xp", + "bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GroupStateInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GroupStateChangeScNotify), global::EggLink.DanhengServer.Proto.GroupStateChangeScNotify.Parser, new[]{ "GroupStateInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GroupStateChangeScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GroupStateChangeScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GroupStateChangeScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupStateChangeScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupStateChangeScNotify(GroupStateChangeScNotify other) : this() { + groupStateInfo_ = other.groupStateInfo_ != null ? other.groupStateInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupStateChangeScNotify Clone() { + return new GroupStateChangeScNotify(this); + } + + /// Field number for the "group_state_info" field. + public const int GroupStateInfoFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.GroupStateInfo groupStateInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.GroupStateInfo GroupStateInfo { + get { return groupStateInfo_; } + set { + groupStateInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GroupStateChangeScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GroupStateChangeScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GroupStateInfo, other.GroupStateInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (groupStateInfo_ != null) hash ^= GroupStateInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (groupStateInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(GroupStateInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (groupStateInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(GroupStateInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (groupStateInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GroupStateInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GroupStateChangeScNotify other) { + if (other == null) { + return; + } + if (other.groupStateInfo_ != null) { + if (groupStateInfo_ == null) { + GroupStateInfo = new global::EggLink.DanhengServer.Proto.GroupStateInfo(); + } + GroupStateInfo.MergeFrom(other.GroupStateInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: { + if (groupStateInfo_ == null) { + GroupStateInfo = new global::EggLink.DanhengServer.Proto.GroupStateInfo(); + } + input.ReadMessage(GroupStateInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: { + if (groupStateInfo_ == null) { + GroupStateInfo = new global::EggLink.DanhengServer.Proto.GroupStateInfo(); + } + input.ReadMessage(GroupStateInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GroupStateChangeScRsp.cs b/Common/Proto/GroupStateChangeScRsp.cs new file mode 100644 index 00000000..09757628 --- /dev/null +++ b/Common/Proto/GroupStateChangeScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GroupStateChangeScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GroupStateChangeScRsp.proto + public static partial class GroupStateChangeScRspReflection { + + #region Descriptor + /// File descriptor for GroupStateChangeScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GroupStateChangeScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtHcm91cFN0YXRlQ2hhbmdlU2NSc3AucHJvdG8aFEdyb3VwU3RhdGVJbmZv", + "LnByb3RvIlMKFUdyb3VwU3RhdGVDaGFuZ2VTY1JzcBIpChBncm91cF9zdGF0", + "ZV9pbmZvGAMgASgLMg8uR3JvdXBTdGF0ZUluZm8SDwoHcmV0Y29kZRgKIAEo", + "DUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GroupStateInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GroupStateChangeScRsp), global::EggLink.DanhengServer.Proto.GroupStateChangeScRsp.Parser, new[]{ "GroupStateInfo", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GroupStateChangeScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GroupStateChangeScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GroupStateChangeScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupStateChangeScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupStateChangeScRsp(GroupStateChangeScRsp other) : this() { + groupStateInfo_ = other.groupStateInfo_ != null ? other.groupStateInfo_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupStateChangeScRsp Clone() { + return new GroupStateChangeScRsp(this); + } + + /// Field number for the "group_state_info" field. + public const int GroupStateInfoFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.GroupStateInfo groupStateInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.GroupStateInfo GroupStateInfo { + get { return groupStateInfo_; } + set { + groupStateInfo_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 10; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GroupStateChangeScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GroupStateChangeScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GroupStateInfo, other.GroupStateInfo)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (groupStateInfo_ != null) hash ^= GroupStateInfo.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (groupStateInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(GroupStateInfo); + } + if (Retcode != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (groupStateInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(GroupStateInfo); + } + if (Retcode != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (groupStateInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GroupStateInfo); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GroupStateChangeScRsp other) { + if (other == null) { + return; + } + if (other.groupStateInfo_ != null) { + if (groupStateInfo_ == null) { + GroupStateInfo = new global::EggLink.DanhengServer.Proto.GroupStateInfo(); + } + GroupStateInfo.MergeFrom(other.GroupStateInfo); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + if (groupStateInfo_ == null) { + GroupStateInfo = new global::EggLink.DanhengServer.Proto.GroupStateInfo(); + } + input.ReadMessage(GroupStateInfo); + break; + } + case 80: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + if (groupStateInfo_ == null) { + GroupStateInfo = new global::EggLink.DanhengServer.Proto.GroupStateInfo(); + } + input.ReadMessage(GroupStateInfo); + break; + } + case 80: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/GroupStateInfo.cs b/Common/Proto/GroupStateInfo.cs new file mode 100644 index 00000000..df612861 --- /dev/null +++ b/Common/Proto/GroupStateInfo.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GroupStateInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from GroupStateInfo.proto + public static partial class GroupStateInfoReflection { + + #region Descriptor + /// File descriptor for GroupStateInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GroupStateInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRHcm91cFN0YXRlSW5mby5wcm90byJeCg5Hcm91cFN0YXRlSW5mbxITCgtn", + "cm91cF9zdGF0ZRgOIAEoDRIQCghlbnRyeV9pZBgDIAEoDRITCgtJSk1GS0tH", + "T1BKRhgIIAEoDRIQCghncm91cF9pZBgBIAEoDUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GroupStateInfo), global::EggLink.DanhengServer.Proto.GroupStateInfo.Parser, new[]{ "GroupState", "EntryId", "IJMFKKGOPJF", "GroupId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GroupStateInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GroupStateInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.GroupStateInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupStateInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupStateInfo(GroupStateInfo other) : this() { + groupState_ = other.groupState_; + entryId_ = other.entryId_; + iJMFKKGOPJF_ = other.iJMFKKGOPJF_; + groupId_ = other.groupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GroupStateInfo Clone() { + return new GroupStateInfo(this); + } + + /// Field number for the "group_state" field. + public const int GroupStateFieldNumber = 14; + private uint groupState_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupState { + get { return groupState_; } + set { + groupState_ = value; + } + } + + /// Field number for the "entry_id" field. + public const int EntryIdFieldNumber = 3; + private uint entryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntryId { + get { return entryId_; } + set { + entryId_ = value; + } + } + + /// Field number for the "IJMFKKGOPJF" field. + public const int IJMFKKGOPJFFieldNumber = 8; + private uint iJMFKKGOPJF_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint IJMFKKGOPJF { + get { return iJMFKKGOPJF_; } + set { + iJMFKKGOPJF_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 1; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GroupStateInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GroupStateInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupState != other.GroupState) return false; + if (EntryId != other.EntryId) return false; + if (IJMFKKGOPJF != other.IJMFKKGOPJF) return false; + if (GroupId != other.GroupId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GroupState != 0) hash ^= GroupState.GetHashCode(); + if (EntryId != 0) hash ^= EntryId.GetHashCode(); + if (IJMFKKGOPJF != 0) hash ^= IJMFKKGOPJF.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteUInt32(GroupId); + } + if (EntryId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(EntryId); + } + if (IJMFKKGOPJF != 0) { + output.WriteRawTag(64); + output.WriteUInt32(IJMFKKGOPJF); + } + if (GroupState != 0) { + output.WriteRawTag(112); + output.WriteUInt32(GroupState); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteUInt32(GroupId); + } + if (EntryId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(EntryId); + } + if (IJMFKKGOPJF != 0) { + output.WriteRawTag(64); + output.WriteUInt32(IJMFKKGOPJF); + } + if (GroupState != 0) { + output.WriteRawTag(112); + output.WriteUInt32(GroupState); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GroupState != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GroupState); + } + if (EntryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntryId); + } + if (IJMFKKGOPJF != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(IJMFKKGOPJF); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GroupStateInfo other) { + if (other == null) { + return; + } + if (other.GroupState != 0) { + GroupState = other.GroupState; + } + if (other.EntryId != 0) { + EntryId = other.EntryId; + } + if (other.IJMFKKGOPJF != 0) { + IJMFKKGOPJF = other.IJMFKKGOPJF; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + GroupId = input.ReadUInt32(); + break; + } + case 24: { + EntryId = input.ReadUInt32(); + break; + } + case 64: { + IJMFKKGOPJF = input.ReadUInt32(); + break; + } + case 112: { + GroupState = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + GroupId = input.ReadUInt32(); + break; + } + case 24: { + EntryId = input.ReadUInt32(); + break; + } + case 64: { + IJMFKKGOPJF = input.ReadUInt32(); + break; + } + case 112: { + GroupState = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/HandleFriendCsReq.cs b/Common/Proto/HandleFriendCsReq.cs new file mode 100644 index 00000000..b7d5d90e --- /dev/null +++ b/Common/Proto/HandleFriendCsReq.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HandleFriendCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from HandleFriendCsReq.proto + public static partial class HandleFriendCsReqReflection { + + #region Descriptor + /// File descriptor for HandleFriendCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HandleFriendCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdIYW5kbGVGcmllbmRDc1JlcS5wcm90byI3ChFIYW5kbGVGcmllbmRDc1Jl", + "cRILCgN1aWQYAiABKA0SFQoNaGFuZGxlX3Jlc3VsdBgMIAEoCEIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.HandleFriendCsReq), global::EggLink.DanhengServer.Proto.HandleFriendCsReq.Parser, new[]{ "Uid", "HandleResult" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HandleFriendCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleFriendCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.HandleFriendCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleFriendCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleFriendCsReq(HandleFriendCsReq other) : this() { + uid_ = other.uid_; + handleResult_ = other.handleResult_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleFriendCsReq Clone() { + return new HandleFriendCsReq(this); + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 2; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + /// Field number for the "handle_result" field. + public const int HandleResultFieldNumber = 12; + private bool handleResult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HandleResult { + get { return handleResult_; } + set { + handleResult_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HandleFriendCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleFriendCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uid != other.Uid) return false; + if (HandleResult != other.HandleResult) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Uid != 0) hash ^= Uid.GetHashCode(); + if (HandleResult != false) hash ^= HandleResult.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Uid != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Uid); + } + if (HandleResult != false) { + output.WriteRawTag(96); + output.WriteBool(HandleResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Uid != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Uid); + } + if (HandleResult != false) { + output.WriteRawTag(96); + output.WriteBool(HandleResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (HandleResult != 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(HandleFriendCsReq other) { + if (other == null) { + return; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + if (other.HandleResult != false) { + HandleResult = other.HandleResult; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + Uid = input.ReadUInt32(); + break; + } + case 96: { + HandleResult = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + Uid = input.ReadUInt32(); + break; + } + case 96: { + HandleResult = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/HandleFriendScRsp.cs b/Common/Proto/HandleFriendScRsp.cs new file mode 100644 index 00000000..60d40d91 --- /dev/null +++ b/Common/Proto/HandleFriendScRsp.cs @@ -0,0 +1,356 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HandleFriendScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from HandleFriendScRsp.proto + public static partial class HandleFriendScRspReflection { + + #region Descriptor + /// File descriptor for HandleFriendScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HandleFriendScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdIYW5kbGVGcmllbmRTY1JzcC5wcm90bxoURnJpZW5kTGlzdEluZm8ucHJv", + "dG8idQoRSGFuZGxlRnJpZW5kU2NSc3ASFQoNaGFuZGxlX3Jlc3VsdBgFIAEo", + "CBIPCgdyZXRjb2RlGA8gASgNEgsKA3VpZBgGIAEoDRIrChJoYW5kbGVfZnJp", + "ZW5kX2luZm8YAyABKAsyDy5GcmllbmRMaXN0SW5mb0IeqgIbRWdnTGluay5E", + "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.FriendListInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.HandleFriendScRsp), global::EggLink.DanhengServer.Proto.HandleFriendScRsp.Parser, new[]{ "HandleResult", "Retcode", "Uid", "HandleFriendInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HandleFriendScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleFriendScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.HandleFriendScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleFriendScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleFriendScRsp(HandleFriendScRsp other) : this() { + handleResult_ = other.handleResult_; + retcode_ = other.retcode_; + uid_ = other.uid_; + handleFriendInfo_ = other.handleFriendInfo_ != null ? other.handleFriendInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleFriendScRsp Clone() { + return new HandleFriendScRsp(this); + } + + /// Field number for the "handle_result" field. + public const int HandleResultFieldNumber = 5; + private bool handleResult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HandleResult { + get { return handleResult_; } + set { + handleResult_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 15; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 6; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + /// Field number for the "handle_friend_info" field. + public const int HandleFriendInfoFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.FriendListInfo handleFriendInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.FriendListInfo HandleFriendInfo { + get { return handleFriendInfo_; } + set { + handleFriendInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HandleFriendScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleFriendScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (HandleResult != other.HandleResult) return false; + if (Retcode != other.Retcode) return false; + if (Uid != other.Uid) return false; + if (!object.Equals(HandleFriendInfo, other.HandleFriendInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HandleResult != false) hash ^= HandleResult.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (Uid != 0) hash ^= Uid.GetHashCode(); + if (handleFriendInfo_ != null) hash ^= HandleFriendInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (handleFriendInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(HandleFriendInfo); + } + if (HandleResult != false) { + output.WriteRawTag(40); + output.WriteBool(HandleResult); + } + if (Uid != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Uid); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (handleFriendInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(HandleFriendInfo); + } + if (HandleResult != false) { + output.WriteRawTag(40); + output.WriteBool(HandleResult); + } + if (Uid != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Uid); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HandleResult != false) { + size += 1 + 1; + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (handleFriendInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HandleFriendInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HandleFriendScRsp other) { + if (other == null) { + return; + } + if (other.HandleResult != false) { + HandleResult = other.HandleResult; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + if (other.handleFriendInfo_ != null) { + if (handleFriendInfo_ == null) { + HandleFriendInfo = new global::EggLink.DanhengServer.Proto.FriendListInfo(); + } + HandleFriendInfo.MergeFrom(other.HandleFriendInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + if (handleFriendInfo_ == null) { + HandleFriendInfo = new global::EggLink.DanhengServer.Proto.FriendListInfo(); + } + input.ReadMessage(HandleFriendInfo); + break; + } + case 40: { + HandleResult = input.ReadBool(); + break; + } + case 48: { + Uid = input.ReadUInt32(); + break; + } + case 120: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + if (handleFriendInfo_ == null) { + HandleFriendInfo = new global::EggLink.DanhengServer.Proto.FriendListInfo(); + } + input.ReadMessage(HandleFriendInfo); + break; + } + case 40: { + HandleResult = input.ReadBool(); + break; + } + case 48: { + Uid = input.ReadUInt32(); + break; + } + case 120: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/HandleRogueCommonPendingActionCsReq.cs b/Common/Proto/HandleRogueCommonPendingActionCsReq.cs new file mode 100644 index 00000000..953f773b --- /dev/null +++ b/Common/Proto/HandleRogueCommonPendingActionCsReq.cs @@ -0,0 +1,454 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HandleRogueCommonPendingActionCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from HandleRogueCommonPendingActionCsReq.proto + public static partial class HandleRogueCommonPendingActionCsReqReflection { + + #region Descriptor + /// File descriptor for HandleRogueCommonPendingActionCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HandleRogueCommonPendingActionCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CilIYW5kbGVSb2d1ZUNvbW1vblBlbmRpbmdBY3Rpb25Dc1JlcS5wcm90bxoh", + "Um9ndWVDb21tb25CdWZmU2VsZWN0UmVzdWx0LnByb3RvGhdSb2d1ZUJ1ZmZS", + "b2xsSW5mby5wcm90bxoeUm9ndWVNaXJhY2xlU2VsZWN0UmVzdWx0LnByb3Rv", + "GhxSb2d1ZUJvbnVzU2VsZWN0UmVzdWx0LnByb3RvIowCCiNIYW5kbGVSb2d1", + "ZUNvbW1vblBlbmRpbmdBY3Rpb25Dc1JlcRI7ChJidWZmX3NlbGVjdF9yZXN1", + "bHQY7QkgASgLMhwuUm9ndWVDb21tb25CdWZmU2VsZWN0UmVzdWx0SAASKAoJ", + "cm9sbF9idWZmGKMHIAEoCzISLlJvZ3VlQnVmZlJvbGxJbmZvSAASOwoVbWly", + "YWNsZV9zZWxlY3RfcmVzdWx0GPsFIAEoCzIZLlJvZ3VlTWlyYWNsZVNlbGVj", + "dFJlc3VsdEgAEjcKE2JvbnVzX3NlbGVjdF9yZXN1bHQYrQYgASgLMhcuUm9n", + "dWVCb251c1NlbGVjdFJlc3VsdEgAQggKBkFjdGlvbkIeqgIbRWdnTGluay5E", + "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectResultReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueBuffRollInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueMiracleSelectResultReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueBonusSelectResultReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.HandleRogueCommonPendingActionCsReq), global::EggLink.DanhengServer.Proto.HandleRogueCommonPendingActionCsReq.Parser, new[]{ "BuffSelectResult", "RollBuff", "MiracleSelectResult", "BonusSelectResult" }, new[]{ "Action" }, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HandleRogueCommonPendingActionCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleRogueCommonPendingActionCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.HandleRogueCommonPendingActionCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleRogueCommonPendingActionCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleRogueCommonPendingActionCsReq(HandleRogueCommonPendingActionCsReq other) : this() { + switch (other.ActionCase) { + case ActionOneofCase.BuffSelectResult: + BuffSelectResult = other.BuffSelectResult.Clone(); + break; + case ActionOneofCase.RollBuff: + RollBuff = other.RollBuff.Clone(); + break; + case ActionOneofCase.MiracleSelectResult: + MiracleSelectResult = other.MiracleSelectResult.Clone(); + break; + case ActionOneofCase.BonusSelectResult: + BonusSelectResult = other.BonusSelectResult.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleRogueCommonPendingActionCsReq Clone() { + return new HandleRogueCommonPendingActionCsReq(this); + } + + /// Field number for the "buff_select_result" field. + public const int BuffSelectResultFieldNumber = 1261; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectResult BuffSelectResult { + get { return actionCase_ == ActionOneofCase.BuffSelectResult ? (global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectResult) action_ : null; } + set { + action_ = value; + actionCase_ = value == null ? ActionOneofCase.None : ActionOneofCase.BuffSelectResult; + } + } + + /// Field number for the "roll_buff" field. + public const int RollBuffFieldNumber = 931; + /// + ///KINJFMEPCKE LIIGPIFDPLK = 1157; + ///CKGDDAIDEMO OECLKHEGBFM = 1521; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBuffRollInfo RollBuff { + get { return actionCase_ == ActionOneofCase.RollBuff ? (global::EggLink.DanhengServer.Proto.RogueBuffRollInfo) action_ : null; } + set { + action_ = value; + actionCase_ = value == null ? ActionOneofCase.None : ActionOneofCase.RollBuff; + } + } + + /// Field number for the "miracle_select_result" field. + public const int MiracleSelectResultFieldNumber = 763; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueMiracleSelectResult MiracleSelectResult { + get { return actionCase_ == ActionOneofCase.MiracleSelectResult ? (global::EggLink.DanhengServer.Proto.RogueMiracleSelectResult) action_ : null; } + set { + action_ = value; + actionCase_ = value == null ? ActionOneofCase.None : ActionOneofCase.MiracleSelectResult; + } + } + + /// Field number for the "bonus_select_result" field. + public const int BonusSelectResultFieldNumber = 813; + /// + ///PHDCDDGMOJD MKNBOHDIBMC = 1285; + ///LNKCIHHBMCN LMGOMLNGOCL = 1618; + ///ECNFHANMIJD PCEFILHFHDH = 368; + ///GOGIJMPCNAO FBDCGDPCBNL = 569; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBonusSelectResult BonusSelectResult { + get { return actionCase_ == ActionOneofCase.BonusSelectResult ? (global::EggLink.DanhengServer.Proto.RogueBonusSelectResult) action_ : null; } + set { + action_ = value; + actionCase_ = value == null ? ActionOneofCase.None : ActionOneofCase.BonusSelectResult; + } + } + + private object action_; + /// Enum of possible cases for the "Action" oneof. + public enum ActionOneofCase { + None = 0, + BuffSelectResult = 1261, + RollBuff = 931, + MiracleSelectResult = 763, + BonusSelectResult = 813, + } + private ActionOneofCase actionCase_ = ActionOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActionOneofCase ActionCase { + get { return actionCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAction() { + actionCase_ = ActionOneofCase.None; + action_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HandleRogueCommonPendingActionCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleRogueCommonPendingActionCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BuffSelectResult, other.BuffSelectResult)) return false; + if (!object.Equals(RollBuff, other.RollBuff)) return false; + if (!object.Equals(MiracleSelectResult, other.MiracleSelectResult)) return false; + if (!object.Equals(BonusSelectResult, other.BonusSelectResult)) return false; + if (ActionCase != other.ActionCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (actionCase_ == ActionOneofCase.BuffSelectResult) hash ^= BuffSelectResult.GetHashCode(); + if (actionCase_ == ActionOneofCase.RollBuff) hash ^= RollBuff.GetHashCode(); + if (actionCase_ == ActionOneofCase.MiracleSelectResult) hash ^= MiracleSelectResult.GetHashCode(); + if (actionCase_ == ActionOneofCase.BonusSelectResult) hash ^= BonusSelectResult.GetHashCode(); + hash ^= (int) actionCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (actionCase_ == ActionOneofCase.MiracleSelectResult) { + output.WriteRawTag(218, 47); + output.WriteMessage(MiracleSelectResult); + } + if (actionCase_ == ActionOneofCase.BonusSelectResult) { + output.WriteRawTag(234, 50); + output.WriteMessage(BonusSelectResult); + } + if (actionCase_ == ActionOneofCase.RollBuff) { + output.WriteRawTag(154, 58); + output.WriteMessage(RollBuff); + } + if (actionCase_ == ActionOneofCase.BuffSelectResult) { + output.WriteRawTag(234, 78); + output.WriteMessage(BuffSelectResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (actionCase_ == ActionOneofCase.MiracleSelectResult) { + output.WriteRawTag(218, 47); + output.WriteMessage(MiracleSelectResult); + } + if (actionCase_ == ActionOneofCase.BonusSelectResult) { + output.WriteRawTag(234, 50); + output.WriteMessage(BonusSelectResult); + } + if (actionCase_ == ActionOneofCase.RollBuff) { + output.WriteRawTag(154, 58); + output.WriteMessage(RollBuff); + } + if (actionCase_ == ActionOneofCase.BuffSelectResult) { + output.WriteRawTag(234, 78); + output.WriteMessage(BuffSelectResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (actionCase_ == ActionOneofCase.BuffSelectResult) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(BuffSelectResult); + } + if (actionCase_ == ActionOneofCase.RollBuff) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RollBuff); + } + if (actionCase_ == ActionOneofCase.MiracleSelectResult) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MiracleSelectResult); + } + if (actionCase_ == ActionOneofCase.BonusSelectResult) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(BonusSelectResult); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HandleRogueCommonPendingActionCsReq other) { + if (other == null) { + return; + } + switch (other.ActionCase) { + case ActionOneofCase.BuffSelectResult: + if (BuffSelectResult == null) { + BuffSelectResult = new global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectResult(); + } + BuffSelectResult.MergeFrom(other.BuffSelectResult); + break; + case ActionOneofCase.RollBuff: + if (RollBuff == null) { + RollBuff = new global::EggLink.DanhengServer.Proto.RogueBuffRollInfo(); + } + RollBuff.MergeFrom(other.RollBuff); + break; + case ActionOneofCase.MiracleSelectResult: + if (MiracleSelectResult == null) { + MiracleSelectResult = new global::EggLink.DanhengServer.Proto.RogueMiracleSelectResult(); + } + MiracleSelectResult.MergeFrom(other.MiracleSelectResult); + break; + case ActionOneofCase.BonusSelectResult: + if (BonusSelectResult == null) { + BonusSelectResult = new global::EggLink.DanhengServer.Proto.RogueBonusSelectResult(); + } + BonusSelectResult.MergeFrom(other.BonusSelectResult); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 6106: { + global::EggLink.DanhengServer.Proto.RogueMiracleSelectResult subBuilder = new global::EggLink.DanhengServer.Proto.RogueMiracleSelectResult(); + if (actionCase_ == ActionOneofCase.MiracleSelectResult) { + subBuilder.MergeFrom(MiracleSelectResult); + } + input.ReadMessage(subBuilder); + MiracleSelectResult = subBuilder; + break; + } + case 6506: { + global::EggLink.DanhengServer.Proto.RogueBonusSelectResult subBuilder = new global::EggLink.DanhengServer.Proto.RogueBonusSelectResult(); + if (actionCase_ == ActionOneofCase.BonusSelectResult) { + subBuilder.MergeFrom(BonusSelectResult); + } + input.ReadMessage(subBuilder); + BonusSelectResult = subBuilder; + break; + } + case 7450: { + global::EggLink.DanhengServer.Proto.RogueBuffRollInfo subBuilder = new global::EggLink.DanhengServer.Proto.RogueBuffRollInfo(); + if (actionCase_ == ActionOneofCase.RollBuff) { + subBuilder.MergeFrom(RollBuff); + } + input.ReadMessage(subBuilder); + RollBuff = subBuilder; + break; + } + case 10090: { + global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectResult subBuilder = new global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectResult(); + if (actionCase_ == ActionOneofCase.BuffSelectResult) { + subBuilder.MergeFrom(BuffSelectResult); + } + input.ReadMessage(subBuilder); + BuffSelectResult = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 6106: { + global::EggLink.DanhengServer.Proto.RogueMiracleSelectResult subBuilder = new global::EggLink.DanhengServer.Proto.RogueMiracleSelectResult(); + if (actionCase_ == ActionOneofCase.MiracleSelectResult) { + subBuilder.MergeFrom(MiracleSelectResult); + } + input.ReadMessage(subBuilder); + MiracleSelectResult = subBuilder; + break; + } + case 6506: { + global::EggLink.DanhengServer.Proto.RogueBonusSelectResult subBuilder = new global::EggLink.DanhengServer.Proto.RogueBonusSelectResult(); + if (actionCase_ == ActionOneofCase.BonusSelectResult) { + subBuilder.MergeFrom(BonusSelectResult); + } + input.ReadMessage(subBuilder); + BonusSelectResult = subBuilder; + break; + } + case 7450: { + global::EggLink.DanhengServer.Proto.RogueBuffRollInfo subBuilder = new global::EggLink.DanhengServer.Proto.RogueBuffRollInfo(); + if (actionCase_ == ActionOneofCase.RollBuff) { + subBuilder.MergeFrom(RollBuff); + } + input.ReadMessage(subBuilder); + RollBuff = subBuilder; + break; + } + case 10090: { + global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectResult subBuilder = new global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectResult(); + if (actionCase_ == ActionOneofCase.BuffSelectResult) { + subBuilder.MergeFrom(BuffSelectResult); + } + input.ReadMessage(subBuilder); + BuffSelectResult = subBuilder; + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/HandleRogueCommonPendingActionScRsp.cs b/Common/Proto/HandleRogueCommonPendingActionScRsp.cs new file mode 100644 index 00000000..97bacb6b --- /dev/null +++ b/Common/Proto/HandleRogueCommonPendingActionScRsp.cs @@ -0,0 +1,555 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HandleRogueCommonPendingActionScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from HandleRogueCommonPendingActionScRsp.proto + public static partial class HandleRogueCommonPendingActionScRspReflection { + + #region Descriptor + /// File descriptor for HandleRogueCommonPendingActionScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HandleRogueCommonPendingActionScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CilIYW5kbGVSb2d1ZUNvbW1vblBlbmRpbmdBY3Rpb25TY1JzcC5wcm90bxoV", + "Um9ndWVCdWZmU2VsZWN0LnByb3RvGhVSb2d1ZVJlcm9sbEJ1ZmYucHJvdG8a", + "GFJvZ3VlTWlyYWNsZVNlbGVjdC5wcm90bxoWUm9ndWVCb251c1NlbGVjdC5w", + "cm90byKgAgojSGFuZGxlUm9ndWVDb21tb25QZW5kaW5nQWN0aW9uU2NSc3AS", + "EwoLS0dPRE5BR0xIT0gYDCABKA0SDwoHcmV0Y29kZRgDIAEoDRINCgV0aW1l", + "cxgKIAEoDRIuChFyb2d1ZV9idWZmX3NlbGVjdBizDyABKAsyEC5Sb2d1ZUJ1", + "ZmZTZWxlY3RIABIuChFyb2d1ZV9yZXJvbGxfYnVmZhigCSABKAsyEC5Sb2d1", + "ZVJlcm9sbEJ1ZmZIABIuCg5taXJhY2xlX3NlbGVjdBjKASABKAsyEy5Sb2d1", + "ZU1pcmFjbGVTZWxlY3RIABIqCgxib251c19zZWxlY3QY/Q0gASgLMhEuUm9n", + "dWVCb251c1NlbGVjdEgAQggKBkFjdGlvbkIeqgIbRWdnTGluay5EYW5oZW5n", + "U2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueBuffSelectReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueRerollBuffReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueMiracleSelectReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueBonusSelectReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.HandleRogueCommonPendingActionScRsp), global::EggLink.DanhengServer.Proto.HandleRogueCommonPendingActionScRsp.Parser, new[]{ "KGODNAGLHOH", "Retcode", "Times", "RogueBuffSelect", "RogueRerollBuff", "MiracleSelect", "BonusSelect" }, new[]{ "Action" }, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HandleRogueCommonPendingActionScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleRogueCommonPendingActionScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.HandleRogueCommonPendingActionScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleRogueCommonPendingActionScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleRogueCommonPendingActionScRsp(HandleRogueCommonPendingActionScRsp other) : this() { + kGODNAGLHOH_ = other.kGODNAGLHOH_; + retcode_ = other.retcode_; + times_ = other.times_; + switch (other.ActionCase) { + case ActionOneofCase.RogueBuffSelect: + RogueBuffSelect = other.RogueBuffSelect.Clone(); + break; + case ActionOneofCase.RogueRerollBuff: + RogueRerollBuff = other.RogueRerollBuff.Clone(); + break; + case ActionOneofCase.MiracleSelect: + MiracleSelect = other.MiracleSelect.Clone(); + break; + case ActionOneofCase.BonusSelect: + BonusSelect = other.BonusSelect.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HandleRogueCommonPendingActionScRsp Clone() { + return new HandleRogueCommonPendingActionScRsp(this); + } + + /// Field number for the "KGODNAGLHOH" field. + public const int KGODNAGLHOHFieldNumber = 12; + private uint kGODNAGLHOH_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint KGODNAGLHOH { + get { return kGODNAGLHOH_; } + set { + kGODNAGLHOH_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "times" field. + public const int TimesFieldNumber = 10; + private uint times_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Times { + get { return times_; } + set { + times_ = value; + } + } + + /// Field number for the "rogue_buff_select" field. + public const int RogueBuffSelectFieldNumber = 1971; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBuffSelect RogueBuffSelect { + get { return actionCase_ == ActionOneofCase.RogueBuffSelect ? (global::EggLink.DanhengServer.Proto.RogueBuffSelect) action_ : null; } + set { + action_ = value; + actionCase_ = value == null ? ActionOneofCase.None : ActionOneofCase.RogueBuffSelect; + } + } + + /// Field number for the "rogue_reroll_buff" field. + public const int RogueRerollBuffFieldNumber = 1184; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueRerollBuff RogueRerollBuff { + get { return actionCase_ == ActionOneofCase.RogueRerollBuff ? (global::EggLink.DanhengServer.Proto.RogueRerollBuff) action_ : null; } + set { + action_ = value; + actionCase_ = value == null ? ActionOneofCase.None : ActionOneofCase.RogueRerollBuff; + } + } + + /// Field number for the "miracle_select" field. + public const int MiracleSelectFieldNumber = 202; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueMiracleSelect MiracleSelect { + get { return actionCase_ == ActionOneofCase.MiracleSelect ? (global::EggLink.DanhengServer.Proto.RogueMiracleSelect) action_ : null; } + set { + action_ = value; + actionCase_ = value == null ? ActionOneofCase.None : ActionOneofCase.MiracleSelect; + } + } + + /// Field number for the "bonus_select" field. + public const int BonusSelectFieldNumber = 1789; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBonusSelect BonusSelect { + get { return actionCase_ == ActionOneofCase.BonusSelect ? (global::EggLink.DanhengServer.Proto.RogueBonusSelect) action_ : null; } + set { + action_ = value; + actionCase_ = value == null ? ActionOneofCase.None : ActionOneofCase.BonusSelect; + } + } + + private object action_; + /// Enum of possible cases for the "Action" oneof. + public enum ActionOneofCase { + None = 0, + RogueBuffSelect = 1971, + RogueRerollBuff = 1184, + MiracleSelect = 202, + BonusSelect = 1789, + } + private ActionOneofCase actionCase_ = ActionOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActionOneofCase ActionCase { + get { return actionCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAction() { + actionCase_ = ActionOneofCase.None; + action_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HandleRogueCommonPendingActionScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HandleRogueCommonPendingActionScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KGODNAGLHOH != other.KGODNAGLHOH) return false; + if (Retcode != other.Retcode) return false; + if (Times != other.Times) return false; + if (!object.Equals(RogueBuffSelect, other.RogueBuffSelect)) return false; + if (!object.Equals(RogueRerollBuff, other.RogueRerollBuff)) return false; + if (!object.Equals(MiracleSelect, other.MiracleSelect)) return false; + if (!object.Equals(BonusSelect, other.BonusSelect)) return false; + if (ActionCase != other.ActionCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (KGODNAGLHOH != 0) hash ^= KGODNAGLHOH.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (Times != 0) hash ^= Times.GetHashCode(); + if (actionCase_ == ActionOneofCase.RogueBuffSelect) hash ^= RogueBuffSelect.GetHashCode(); + if (actionCase_ == ActionOneofCase.RogueRerollBuff) hash ^= RogueRerollBuff.GetHashCode(); + if (actionCase_ == ActionOneofCase.MiracleSelect) hash ^= MiracleSelect.GetHashCode(); + if (actionCase_ == ActionOneofCase.BonusSelect) hash ^= BonusSelect.GetHashCode(); + hash ^= (int) actionCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (Times != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Times); + } + if (KGODNAGLHOH != 0) { + output.WriteRawTag(96); + output.WriteUInt32(KGODNAGLHOH); + } + if (actionCase_ == ActionOneofCase.MiracleSelect) { + output.WriteRawTag(210, 12); + output.WriteMessage(MiracleSelect); + } + if (actionCase_ == ActionOneofCase.RogueRerollBuff) { + output.WriteRawTag(130, 74); + output.WriteMessage(RogueRerollBuff); + } + if (actionCase_ == ActionOneofCase.BonusSelect) { + output.WriteRawTag(234, 111); + output.WriteMessage(BonusSelect); + } + if (actionCase_ == ActionOneofCase.RogueBuffSelect) { + output.WriteRawTag(154, 123); + output.WriteMessage(RogueBuffSelect); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (Times != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Times); + } + if (KGODNAGLHOH != 0) { + output.WriteRawTag(96); + output.WriteUInt32(KGODNAGLHOH); + } + if (actionCase_ == ActionOneofCase.MiracleSelect) { + output.WriteRawTag(210, 12); + output.WriteMessage(MiracleSelect); + } + if (actionCase_ == ActionOneofCase.RogueRerollBuff) { + output.WriteRawTag(130, 74); + output.WriteMessage(RogueRerollBuff); + } + if (actionCase_ == ActionOneofCase.BonusSelect) { + output.WriteRawTag(234, 111); + output.WriteMessage(BonusSelect); + } + if (actionCase_ == ActionOneofCase.RogueBuffSelect) { + output.WriteRawTag(154, 123); + output.WriteMessage(RogueBuffSelect); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (KGODNAGLHOH != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(KGODNAGLHOH); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (Times != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Times); + } + if (actionCase_ == ActionOneofCase.RogueBuffSelect) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RogueBuffSelect); + } + if (actionCase_ == ActionOneofCase.RogueRerollBuff) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RogueRerollBuff); + } + if (actionCase_ == ActionOneofCase.MiracleSelect) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MiracleSelect); + } + if (actionCase_ == ActionOneofCase.BonusSelect) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(BonusSelect); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HandleRogueCommonPendingActionScRsp other) { + if (other == null) { + return; + } + if (other.KGODNAGLHOH != 0) { + KGODNAGLHOH = other.KGODNAGLHOH; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.Times != 0) { + Times = other.Times; + } + switch (other.ActionCase) { + case ActionOneofCase.RogueBuffSelect: + if (RogueBuffSelect == null) { + RogueBuffSelect = new global::EggLink.DanhengServer.Proto.RogueBuffSelect(); + } + RogueBuffSelect.MergeFrom(other.RogueBuffSelect); + break; + case ActionOneofCase.RogueRerollBuff: + if (RogueRerollBuff == null) { + RogueRerollBuff = new global::EggLink.DanhengServer.Proto.RogueRerollBuff(); + } + RogueRerollBuff.MergeFrom(other.RogueRerollBuff); + break; + case ActionOneofCase.MiracleSelect: + if (MiracleSelect == null) { + MiracleSelect = new global::EggLink.DanhengServer.Proto.RogueMiracleSelect(); + } + MiracleSelect.MergeFrom(other.MiracleSelect); + break; + case ActionOneofCase.BonusSelect: + if (BonusSelect == null) { + BonusSelect = new global::EggLink.DanhengServer.Proto.RogueBonusSelect(); + } + BonusSelect.MergeFrom(other.BonusSelect); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 80: { + Times = input.ReadUInt32(); + break; + } + case 96: { + KGODNAGLHOH = input.ReadUInt32(); + break; + } + case 1618: { + global::EggLink.DanhengServer.Proto.RogueMiracleSelect subBuilder = new global::EggLink.DanhengServer.Proto.RogueMiracleSelect(); + if (actionCase_ == ActionOneofCase.MiracleSelect) { + subBuilder.MergeFrom(MiracleSelect); + } + input.ReadMessage(subBuilder); + MiracleSelect = subBuilder; + break; + } + case 9474: { + global::EggLink.DanhengServer.Proto.RogueRerollBuff subBuilder = new global::EggLink.DanhengServer.Proto.RogueRerollBuff(); + if (actionCase_ == ActionOneofCase.RogueRerollBuff) { + subBuilder.MergeFrom(RogueRerollBuff); + } + input.ReadMessage(subBuilder); + RogueRerollBuff = subBuilder; + break; + } + case 14314: { + global::EggLink.DanhengServer.Proto.RogueBonusSelect subBuilder = new global::EggLink.DanhengServer.Proto.RogueBonusSelect(); + if (actionCase_ == ActionOneofCase.BonusSelect) { + subBuilder.MergeFrom(BonusSelect); + } + input.ReadMessage(subBuilder); + BonusSelect = subBuilder; + break; + } + case 15770: { + global::EggLink.DanhengServer.Proto.RogueBuffSelect subBuilder = new global::EggLink.DanhengServer.Proto.RogueBuffSelect(); + if (actionCase_ == ActionOneofCase.RogueBuffSelect) { + subBuilder.MergeFrom(RogueBuffSelect); + } + input.ReadMessage(subBuilder); + RogueBuffSelect = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 80: { + Times = input.ReadUInt32(); + break; + } + case 96: { + KGODNAGLHOH = input.ReadUInt32(); + break; + } + case 1618: { + global::EggLink.DanhengServer.Proto.RogueMiracleSelect subBuilder = new global::EggLink.DanhengServer.Proto.RogueMiracleSelect(); + if (actionCase_ == ActionOneofCase.MiracleSelect) { + subBuilder.MergeFrom(MiracleSelect); + } + input.ReadMessage(subBuilder); + MiracleSelect = subBuilder; + break; + } + case 9474: { + global::EggLink.DanhengServer.Proto.RogueRerollBuff subBuilder = new global::EggLink.DanhengServer.Proto.RogueRerollBuff(); + if (actionCase_ == ActionOneofCase.RogueRerollBuff) { + subBuilder.MergeFrom(RogueRerollBuff); + } + input.ReadMessage(subBuilder); + RogueRerollBuff = subBuilder; + break; + } + case 14314: { + global::EggLink.DanhengServer.Proto.RogueBonusSelect subBuilder = new global::EggLink.DanhengServer.Proto.RogueBonusSelect(); + if (actionCase_ == ActionOneofCase.BonusSelect) { + subBuilder.MergeFrom(BonusSelect); + } + input.ReadMessage(subBuilder); + BonusSelect = subBuilder; + break; + } + case 15770: { + global::EggLink.DanhengServer.Proto.RogueBuffSelect subBuilder = new global::EggLink.DanhengServer.Proto.RogueBuffSelect(); + if (actionCase_ == ActionOneofCase.RogueBuffSelect) { + subBuilder.MergeFrom(RogueBuffSelect); + } + input.ReadMessage(subBuilder); + RogueBuffSelect = subBuilder; + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/HeadIcon.cs b/Common/Proto/HeadIcon.cs new file mode 100644 index 00000000..28809b5e --- /dev/null +++ b/Common/Proto/HeadIcon.cs @@ -0,0 +1,233 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HeadIcon.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from HeadIcon.proto + public static partial class HeadIconReflection { + + #region Descriptor + /// File descriptor for HeadIcon.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HeadIconReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5IZWFkSWNvbi5wcm90byIWCghIZWFkSWNvbhIKCgJpZBgKIAEoDUIeqgIb", + "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.HeadIcon), global::EggLink.DanhengServer.Proto.HeadIcon.Parser, new[]{ "Id" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HeadIcon : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeadIcon()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.HeadIconReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeadIcon() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeadIcon(HeadIcon other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeadIcon Clone() { + return new HeadIcon(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 10; + 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 HeadIcon); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HeadIcon other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (Id != 0) { + output.WriteRawTag(80); + 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 (Id != 0) { + output.WriteRawTag(80); + 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 (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(HeadIcon other) { + if (other == null) { + return; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 80: { + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 80: { + Id = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/HeroBasicType.cs b/Common/Proto/HeroBasicType.cs new file mode 100644 index 00000000..34c362e1 --- /dev/null +++ b/Common/Proto/HeroBasicType.cs @@ -0,0 +1,65 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HeroBasicType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from HeroBasicType.proto + public static partial class HeroBasicTypeReflection { + + #region Descriptor + /// File descriptor for HeroBasicType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HeroBasicTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNIZXJvQmFzaWNUeXBlLnByb3RvKv4BCg1IZXJvQmFzaWNUeXBlEggKBE5v", + "bmUQABIPCgpCb3lXYXJyaW9yEME+EhAKC0dpcmxXYXJyaW9yEMI+Eg4KCUJv", + "eUtuaWdodBDDPhIPCgpHaXJsS25pZ2h0EMQ+Eg0KCEJveVJvZ3VlEMU+Eg4K", + "CUdpcmxSb2d1ZRDGPhIMCgdCb3lNYWdlEMc+Eg0KCEdpcmxNYWdlEMg+Eg4K", + "CUJveVNoYW1hbhDJPhIPCgpHaXJsU2hhbWFuEMo+Eg8KCkJveVdhcmxvY2sQ", + "yz4SEAoLR2lybFdhcmxvY2sQzD4SDgoJQm95UHJpZXN0EM0+Eg8KCkdpcmxQ", + "cmllc3QQzj5CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.HeroBasicType), }, null, null)); + } + #endregion + + } + #region Enums + public enum HeroBasicType { + [pbr::OriginalName("None")] None = 0, + [pbr::OriginalName("BoyWarrior")] BoyWarrior = 8001, + [pbr::OriginalName("GirlWarrior")] GirlWarrior = 8002, + [pbr::OriginalName("BoyKnight")] BoyKnight = 8003, + [pbr::OriginalName("GirlKnight")] GirlKnight = 8004, + [pbr::OriginalName("BoyRogue")] BoyRogue = 8005, + [pbr::OriginalName("GirlRogue")] GirlRogue = 8006, + [pbr::OriginalName("BoyMage")] BoyMage = 8007, + [pbr::OriginalName("GirlMage")] GirlMage = 8008, + [pbr::OriginalName("BoyShaman")] BoyShaman = 8009, + [pbr::OriginalName("GirlShaman")] GirlShaman = 8010, + [pbr::OriginalName("BoyWarlock")] BoyWarlock = 8011, + [pbr::OriginalName("GirlWarlock")] GirlWarlock = 8012, + [pbr::OriginalName("BoyPriest")] BoyPriest = 8013, + [pbr::OriginalName("GirlPriest")] GirlPriest = 8014, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/HeroBasicTypeInfo.cs b/Common/Proto/HeroBasicTypeInfo.cs new file mode 100644 index 00000000..3fa1f93f --- /dev/null +++ b/Common/Proto/HeroBasicTypeInfo.cs @@ -0,0 +1,299 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HeroBasicTypeInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from HeroBasicTypeInfo.proto + public static partial class HeroBasicTypeInfoReflection { + + #region Descriptor + /// File descriptor for HeroBasicTypeInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static HeroBasicTypeInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdIZXJvQmFzaWNUeXBlSW5mby5wcm90bxoTSGVyb0Jhc2ljVHlwZS5wcm90", + "bxoVQXZhdGFyU2tpbGxUcmVlLnByb3RvInAKEUhlcm9CYXNpY1R5cGVJbmZv", + "EgwKBHJhbmsYCyABKA0SIgoKYmFzaWNfdHlwZRgCIAEoDjIOLkhlcm9CYXNp", + "Y1R5cGUSKQoPc2tpbGxfdHJlZV9saXN0GAwgAygLMhAuQXZhdGFyU2tpbGxU", + "cmVlQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.HeroBasicTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.AvatarSkillTreeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.HeroBasicTypeInfo), global::EggLink.DanhengServer.Proto.HeroBasicTypeInfo.Parser, new[]{ "Rank", "BasicType", "SkillTreeList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HeroBasicTypeInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeroBasicTypeInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.HeroBasicTypeInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeroBasicTypeInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeroBasicTypeInfo(HeroBasicTypeInfo other) : this() { + rank_ = other.rank_; + basicType_ = other.basicType_; + skillTreeList_ = other.skillTreeList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HeroBasicTypeInfo Clone() { + return new HeroBasicTypeInfo(this); + } + + /// Field number for the "rank" field. + public const int RankFieldNumber = 11; + private uint rank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Rank { + get { return rank_; } + set { + rank_ = value; + } + } + + /// Field number for the "basic_type" field. + public const int BasicTypeFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.HeroBasicType basicType_ = global::EggLink.DanhengServer.Proto.HeroBasicType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.HeroBasicType BasicType { + get { return basicType_; } + set { + basicType_ = value; + } + } + + /// Field number for the "skill_tree_list" field. + public const int SkillTreeListFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_skillTreeList_codec + = pb::FieldCodec.ForMessage(98, global::EggLink.DanhengServer.Proto.AvatarSkillTree.Parser); + private readonly pbc::RepeatedField skillTreeList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SkillTreeList { + get { return skillTreeList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HeroBasicTypeInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HeroBasicTypeInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Rank != other.Rank) return false; + if (BasicType != other.BasicType) return false; + if(!skillTreeList_.Equals(other.skillTreeList_)) return false; + 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 (BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) hash ^= BasicType.GetHashCode(); + hash ^= skillTreeList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + output.WriteRawTag(16); + output.WriteEnum((int) BasicType); + } + if (Rank != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Rank); + } + skillTreeList_.WriteTo(output, _repeated_skillTreeList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + output.WriteRawTag(16); + output.WriteEnum((int) BasicType); + } + if (Rank != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Rank); + } + skillTreeList_.WriteTo(ref output, _repeated_skillTreeList_codec); + if (_unknownFields != 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.ComputeUInt32Size(Rank); + } + if (BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BasicType); + } + size += skillTreeList_.CalculateSize(_repeated_skillTreeList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HeroBasicTypeInfo other) { + if (other == null) { + return; + } + if (other.Rank != 0) { + Rank = other.Rank; + } + if (other.BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + BasicType = other.BasicType; + } + skillTreeList_.Add(other.skillTreeList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + BasicType = (global::EggLink.DanhengServer.Proto.HeroBasicType) input.ReadEnum(); + break; + } + case 88: { + Rank = input.ReadUInt32(); + break; + } + case 98: { + skillTreeList_.AddEntriesFrom(input, _repeated_skillTreeList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + BasicType = (global::EggLink.DanhengServer.Proto.HeroBasicType) input.ReadEnum(); + break; + } + case 88: { + Rank = input.ReadUInt32(); + break; + } + case 98: { + skillTreeList_.AddEntriesFrom(ref input, _repeated_skillTreeList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/InteractChargerCsReq.cs b/Common/Proto/InteractChargerCsReq.cs new file mode 100644 index 00000000..d75db549 --- /dev/null +++ b/Common/Proto/InteractChargerCsReq.cs @@ -0,0 +1,247 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InteractChargerCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from InteractChargerCsReq.proto + public static partial class InteractChargerCsReqReflection { + + #region Descriptor + /// File descriptor for InteractChargerCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InteractChargerCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpJbnRlcmFjdENoYXJnZXJDc1JlcS5wcm90bxoRQ2hhcmdlckluZm8ucHJv", + "dG8iOgoUSW50ZXJhY3RDaGFyZ2VyQ3NSZXESIgoMY2hhcmdlcl9pbmZvGAgg", + "ASgLMgwuQ2hhcmdlckluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChargerInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.InteractChargerCsReq), global::EggLink.DanhengServer.Proto.InteractChargerCsReq.Parser, new[]{ "ChargerInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InteractChargerCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InteractChargerCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.InteractChargerCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractChargerCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractChargerCsReq(InteractChargerCsReq other) : this() { + chargerInfo_ = other.chargerInfo_ != null ? other.chargerInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractChargerCsReq Clone() { + return new InteractChargerCsReq(this); + } + + /// Field number for the "charger_info" field. + public const int ChargerInfoFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.ChargerInfo chargerInfo_; + /// + /// obf: GLOGIAFNKHA + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChargerInfo ChargerInfo { + get { return chargerInfo_; } + set { + chargerInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InteractChargerCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InteractChargerCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ChargerInfo, other.ChargerInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (chargerInfo_ != null) hash ^= ChargerInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (chargerInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ChargerInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (chargerInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ChargerInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (chargerInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChargerInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InteractChargerCsReq other) { + if (other == null) { + return; + } + if (other.chargerInfo_ != null) { + if (chargerInfo_ == null) { + ChargerInfo = new global::EggLink.DanhengServer.Proto.ChargerInfo(); + } + ChargerInfo.MergeFrom(other.ChargerInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + if (chargerInfo_ == null) { + ChargerInfo = new global::EggLink.DanhengServer.Proto.ChargerInfo(); + } + input.ReadMessage(ChargerInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: { + if (chargerInfo_ == null) { + ChargerInfo = new global::EggLink.DanhengServer.Proto.ChargerInfo(); + } + input.ReadMessage(ChargerInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/InteractChargerScRsp.cs b/Common/Proto/InteractChargerScRsp.cs new file mode 100644 index 00000000..c1fe150c --- /dev/null +++ b/Common/Proto/InteractChargerScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InteractChargerScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from InteractChargerScRsp.proto + public static partial class InteractChargerScRspReflection { + + #region Descriptor + /// File descriptor for InteractChargerScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InteractChargerScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpJbnRlcmFjdENoYXJnZXJTY1JzcC5wcm90bxoRQ2hhcmdlckluZm8ucHJv", + "dG8iSwoUSW50ZXJhY3RDaGFyZ2VyU2NSc3ASDwoHcmV0Y29kZRgMIAEoDRIi", + "CgxjaGFyZ2VyX2luZm8YDSABKAsyDC5DaGFyZ2VySW5mb0IeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChargerInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.InteractChargerScRsp), global::EggLink.DanhengServer.Proto.InteractChargerScRsp.Parser, new[]{ "Retcode", "ChargerInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InteractChargerScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InteractChargerScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.InteractChargerScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractChargerScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractChargerScRsp(InteractChargerScRsp other) : this() { + retcode_ = other.retcode_; + chargerInfo_ = other.chargerInfo_ != null ? other.chargerInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractChargerScRsp Clone() { + return new InteractChargerScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 12; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "charger_info" field. + public const int ChargerInfoFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.ChargerInfo chargerInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChargerInfo ChargerInfo { + get { return chargerInfo_; } + set { + chargerInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InteractChargerScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InteractChargerScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(ChargerInfo, other.ChargerInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (chargerInfo_ != null) hash ^= ChargerInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (chargerInfo_ != null) { + output.WriteRawTag(106); + output.WriteMessage(ChargerInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (chargerInfo_ != null) { + output.WriteRawTag(106); + output.WriteMessage(ChargerInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (chargerInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChargerInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InteractChargerScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.chargerInfo_ != null) { + if (chargerInfo_ == null) { + ChargerInfo = new global::EggLink.DanhengServer.Proto.ChargerInfo(); + } + ChargerInfo.MergeFrom(other.ChargerInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 96: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + if (chargerInfo_ == null) { + ChargerInfo = new global::EggLink.DanhengServer.Proto.ChargerInfo(); + } + input.ReadMessage(ChargerInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 96: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + if (chargerInfo_ == null) { + ChargerInfo = new global::EggLink.DanhengServer.Proto.ChargerInfo(); + } + input.ReadMessage(ChargerInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/InteractPropCsReq.cs b/Common/Proto/InteractPropCsReq.cs new file mode 100644 index 00000000..37d68ee0 --- /dev/null +++ b/Common/Proto/InteractPropCsReq.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InteractPropCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from InteractPropCsReq.proto + public static partial class InteractPropCsReqReflection { + + #region Descriptor + /// File descriptor for InteractPropCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InteractPropCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdJbnRlcmFjdFByb3BDc1JlcS5wcm90byJAChFJbnRlcmFjdFByb3BDc1Jl", + "cRITCgtpbnRlcmFjdF9pZBgPIAEoDRIWCg5wcm9wX2VudGl0eV9pZBgFIAEo", + "DUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.InteractPropCsReq), global::EggLink.DanhengServer.Proto.InteractPropCsReq.Parser, new[]{ "InteractId", "PropEntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InteractPropCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InteractPropCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.InteractPropCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractPropCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractPropCsReq(InteractPropCsReq other) : this() { + interactId_ = other.interactId_; + propEntityId_ = other.propEntityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractPropCsReq Clone() { + return new InteractPropCsReq(this); + } + + /// Field number for the "interact_id" field. + public const int InteractIdFieldNumber = 15; + private uint interactId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint InteractId { + get { return interactId_; } + set { + interactId_ = value; + } + } + + /// Field number for the "prop_entity_id" field. + public const int PropEntityIdFieldNumber = 5; + private uint propEntityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PropEntityId { + get { return propEntityId_; } + set { + propEntityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InteractPropCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InteractPropCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (InteractId != other.InteractId) return false; + if (PropEntityId != other.PropEntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (InteractId != 0) hash ^= InteractId.GetHashCode(); + if (PropEntityId != 0) hash ^= PropEntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PropEntityId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(PropEntityId); + } + if (InteractId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(InteractId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PropEntityId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(PropEntityId); + } + if (InteractId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(InteractId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (InteractId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(InteractId); + } + if (PropEntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PropEntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InteractPropCsReq other) { + if (other == null) { + return; + } + if (other.InteractId != 0) { + InteractId = other.InteractId; + } + if (other.PropEntityId != 0) { + PropEntityId = other.PropEntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + PropEntityId = input.ReadUInt32(); + break; + } + case 120: { + InteractId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + PropEntityId = input.ReadUInt32(); + break; + } + case 120: { + InteractId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/InteractPropScRsp.cs b/Common/Proto/InteractPropScRsp.cs new file mode 100644 index 00000000..033f3288 --- /dev/null +++ b/Common/Proto/InteractPropScRsp.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InteractPropScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from InteractPropScRsp.proto + public static partial class InteractPropScRspReflection { + + #region Descriptor + /// File descriptor for InteractPropScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InteractPropScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdJbnRlcmFjdFByb3BTY1JzcC5wcm90byJQChFJbnRlcmFjdFByb3BTY1Jz", + "cBIPCgdyZXRjb2RlGAcgASgNEhIKCnByb3Bfc3RhdGUYAiABKA0SFgoOcHJv", + "cF9lbnRpdHlfaWQYCSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.InteractPropScRsp), global::EggLink.DanhengServer.Proto.InteractPropScRsp.Parser, new[]{ "Retcode", "PropState", "PropEntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InteractPropScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InteractPropScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.InteractPropScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractPropScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractPropScRsp(InteractPropScRsp other) : this() { + retcode_ = other.retcode_; + propState_ = other.propState_; + propEntityId_ = other.propEntityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InteractPropScRsp Clone() { + return new InteractPropScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 7; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "prop_state" field. + public const int PropStateFieldNumber = 2; + private uint propState_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PropState { + get { return propState_; } + set { + propState_ = value; + } + } + + /// Field number for the "prop_entity_id" field. + public const int PropEntityIdFieldNumber = 9; + private uint propEntityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PropEntityId { + get { return propEntityId_; } + set { + propEntityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InteractPropScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InteractPropScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (PropState != other.PropState) return false; + if (PropEntityId != other.PropEntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (PropState != 0) hash ^= PropState.GetHashCode(); + if (PropEntityId != 0) hash ^= PropEntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PropState != 0) { + output.WriteRawTag(16); + output.WriteUInt32(PropState); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (PropEntityId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(PropEntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PropState != 0) { + output.WriteRawTag(16); + output.WriteUInt32(PropState); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (PropEntityId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(PropEntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (PropState != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PropState); + } + if (PropEntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PropEntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InteractPropScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.PropState != 0) { + PropState = other.PropState; + } + if (other.PropEntityId != 0) { + PropEntityId = other.PropEntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + PropState = input.ReadUInt32(); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 72: { + PropEntityId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + PropState = input.ReadUInt32(); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 72: { + PropEntityId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Item.cs b/Common/Proto/Item.cs new file mode 100644 index 00000000..f489f906 --- /dev/null +++ b/Common/Proto/Item.cs @@ -0,0 +1,457 @@ +// +// 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 EggLink.DanhengServer.Proto { + + /// 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( + "CgpJdGVtLnByb3RvIn4KBEl0ZW0SDwoHaXRlbV9pZBgGIAEoDRINCgVsZXZl", + "bBgNIAEoDRILCgNudW0YCyABKA0SFQoNbWFpbl9hZmZpeF9pZBgEIAEoDRIM", + "CgRyYW5rGA4gASgNEhEKCXByb21vdGlvbhgPIAEoDRIRCgl1bmlxdWVfaWQY", + "BSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Item), global::EggLink.DanhengServer.Proto.Item.Parser, new[]{ "ItemId", "Level", "Num", "MainAffixId", "Rank", "Promotion", "UniqueId" }, 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::EggLink.DanhengServer.Proto.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() { + itemId_ = other.itemId_; + level_ = other.level_; + num_ = other.num_; + mainAffixId_ = other.mainAffixId_; + rank_ = other.rank_; + promotion_ = other.promotion_; + uniqueId_ = other.uniqueId_; + _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 "item_id" field. + public const int ItemIdFieldNumber = 6; + private uint itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ItemId { + get { return itemId_; } + set { + itemId_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 13; + 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 "num" field. + public const int NumFieldNumber = 11; + private uint num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Num { + get { return num_; } + set { + num_ = value; + } + } + + /// Field number for the "main_affix_id" field. + public const int MainAffixIdFieldNumber = 4; + private uint mainAffixId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MainAffixId { + get { return mainAffixId_; } + set { + mainAffixId_ = value; + } + } + + /// Field number for the "rank" field. + public const int RankFieldNumber = 14; + private uint rank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Rank { + get { return rank_; } + set { + rank_ = value; + } + } + + /// Field number for the "promotion" field. + public const int PromotionFieldNumber = 15; + private uint promotion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Promotion { + get { return promotion_; } + set { + promotion_ = value; + } + } + + /// Field number for the "unique_id" field. + public const int UniqueIdFieldNumber = 5; + private uint uniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UniqueId { + get { return uniqueId_; } + set { + uniqueId_ = 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 (ItemId != other.ItemId) return false; + if (Level != other.Level) return false; + if (Num != other.Num) return false; + if (MainAffixId != other.MainAffixId) return false; + if (Rank != other.Rank) return false; + if (Promotion != other.Promotion) return false; + if (UniqueId != other.UniqueId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ItemId != 0) hash ^= ItemId.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (Num != 0) hash ^= Num.GetHashCode(); + if (MainAffixId != 0) hash ^= MainAffixId.GetHashCode(); + if (Rank != 0) hash ^= Rank.GetHashCode(); + if (Promotion != 0) hash ^= Promotion.GetHashCode(); + if (UniqueId != 0) hash ^= UniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MainAffixId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(MainAffixId); + } + if (UniqueId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(UniqueId); + } + if (ItemId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ItemId); + } + if (Num != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Num); + } + if (Level != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Level); + } + if (Rank != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Rank); + } + if (Promotion != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Promotion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MainAffixId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(MainAffixId); + } + if (UniqueId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(UniqueId); + } + if (ItemId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ItemId); + } + if (Num != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Num); + } + if (Level != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Level); + } + if (Rank != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Rank); + } + if (Promotion != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Promotion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ItemId); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (Num != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Num); + } + if (MainAffixId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MainAffixId); + } + if (Rank != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rank); + } + if (Promotion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Promotion); + } + if (UniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UniqueId); + } + 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.ItemId != 0) { + ItemId = other.ItemId; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.Num != 0) { + Num = other.Num; + } + if (other.MainAffixId != 0) { + MainAffixId = other.MainAffixId; + } + if (other.Rank != 0) { + Rank = other.Rank; + } + if (other.Promotion != 0) { + Promotion = other.Promotion; + } + if (other.UniqueId != 0) { + UniqueId = other.UniqueId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + MainAffixId = input.ReadUInt32(); + break; + } + case 40: { + UniqueId = input.ReadUInt32(); + break; + } + case 48: { + ItemId = input.ReadUInt32(); + break; + } + case 88: { + Num = input.ReadUInt32(); + break; + } + case 104: { + Level = input.ReadUInt32(); + break; + } + case 112: { + Rank = input.ReadUInt32(); + break; + } + case 120: { + Promotion = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + MainAffixId = input.ReadUInt32(); + break; + } + case 40: { + UniqueId = input.ReadUInt32(); + break; + } + case 48: { + ItemId = input.ReadUInt32(); + break; + } + case 88: { + Num = input.ReadUInt32(); + break; + } + case 104: { + Level = input.ReadUInt32(); + break; + } + case 112: { + Rank = input.ReadUInt32(); + break; + } + case 120: { + Promotion = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ItemCost.cs b/Common/Proto/ItemCost.cs new file mode 100644 index 00000000..23706d2a --- /dev/null +++ b/Common/Proto/ItemCost.cs @@ -0,0 +1,318 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ItemCost.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ItemCost.proto + public static partial class ItemCostReflection { + + #region Descriptor + /// File descriptor for ItemCost.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ItemCostReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5JdGVtQ29zdC5wcm90bxoOUGlsZUl0ZW0ucHJvdG8iXgoISXRlbUNvc3QS", + "HAoJcGlsZV9pdGVtGAwgASgLMgkuUGlsZUl0ZW0SGwoTZXF1aXBtZW50X3Vu", + "aXF1ZV9pZBgNIAEoDRIXCg9yZWxpY191bmlxdWVfaWQYAyABKA1CHqoCG0Vn", + "Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PileItemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ItemCost), global::EggLink.DanhengServer.Proto.ItemCost.Parser, new[]{ "PileItem", "EquipmentUniqueId", "RelicUniqueId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ItemCost : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemCost()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ItemCostReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemCost() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemCost(ItemCost other) : this() { + pileItem_ = other.pileItem_ != null ? other.pileItem_.Clone() : null; + equipmentUniqueId_ = other.equipmentUniqueId_; + relicUniqueId_ = other.relicUniqueId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemCost Clone() { + return new ItemCost(this); + } + + /// Field number for the "pile_item" field. + public const int PileItemFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.PileItem pileItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.PileItem PileItem { + get { return pileItem_; } + set { + pileItem_ = value; + } + } + + /// Field number for the "equipment_unique_id" field. + public const int EquipmentUniqueIdFieldNumber = 13; + private uint equipmentUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EquipmentUniqueId { + get { return equipmentUniqueId_; } + set { + equipmentUniqueId_ = value; + } + } + + /// Field number for the "relic_unique_id" field. + public const int RelicUniqueIdFieldNumber = 3; + private uint relicUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RelicUniqueId { + get { return relicUniqueId_; } + set { + relicUniqueId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemCost); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemCost other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(PileItem, other.PileItem)) return false; + if (EquipmentUniqueId != other.EquipmentUniqueId) return false; + if (RelicUniqueId != other.RelicUniqueId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (pileItem_ != null) hash ^= PileItem.GetHashCode(); + if (EquipmentUniqueId != 0) hash ^= EquipmentUniqueId.GetHashCode(); + if (RelicUniqueId != 0) hash ^= RelicUniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RelicUniqueId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(RelicUniqueId); + } + if (pileItem_ != null) { + output.WriteRawTag(98); + output.WriteMessage(PileItem); + } + if (EquipmentUniqueId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(EquipmentUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RelicUniqueId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(RelicUniqueId); + } + if (pileItem_ != null) { + output.WriteRawTag(98); + output.WriteMessage(PileItem); + } + if (EquipmentUniqueId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(EquipmentUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (pileItem_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PileItem); + } + if (EquipmentUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EquipmentUniqueId); + } + if (RelicUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelicUniqueId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemCost other) { + if (other == null) { + return; + } + if (other.pileItem_ != null) { + if (pileItem_ == null) { + PileItem = new global::EggLink.DanhengServer.Proto.PileItem(); + } + PileItem.MergeFrom(other.PileItem); + } + if (other.EquipmentUniqueId != 0) { + EquipmentUniqueId = other.EquipmentUniqueId; + } + if (other.RelicUniqueId != 0) { + RelicUniqueId = other.RelicUniqueId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + RelicUniqueId = input.ReadUInt32(); + break; + } + case 98: { + if (pileItem_ == null) { + PileItem = new global::EggLink.DanhengServer.Proto.PileItem(); + } + input.ReadMessage(PileItem); + break; + } + case 104: { + EquipmentUniqueId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + RelicUniqueId = input.ReadUInt32(); + break; + } + case 98: { + if (pileItem_ == null) { + PileItem = new global::EggLink.DanhengServer.Proto.PileItem(); + } + input.ReadMessage(PileItem); + break; + } + case 104: { + EquipmentUniqueId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ItemCostList.cs b/Common/Proto/ItemCostList.cs new file mode 100644 index 00000000..fed8ddc9 --- /dev/null +++ b/Common/Proto/ItemCostList.cs @@ -0,0 +1,223 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ItemCostList.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ItemCostList.proto + public static partial class ItemCostListReflection { + + #region Descriptor + /// File descriptor for ItemCostList.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ItemCostListReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJJdGVtQ29zdExpc3QucHJvdG8aDkl0ZW1Db3N0LnByb3RvIiwKDEl0ZW1D", + "b3N0TGlzdBIcCglpdGVtX2xpc3QYDyADKAsyCS5JdGVtQ29zdEIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ItemCostList), global::EggLink.DanhengServer.Proto.ItemCostList.Parser, new[]{ "ItemList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ItemCostList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemCostList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemCostList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemCostList(ItemCostList other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemCostList Clone() { + return new ItemCostList(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(122, global::EggLink.DanhengServer.Proto.ItemCost.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemCostList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemCostList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemCostList other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 122: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 122: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ItemList.cs b/Common/Proto/ItemList.cs new file mode 100644 index 00000000..5e546117 --- /dev/null +++ b/Common/Proto/ItemList.cs @@ -0,0 +1,223 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ItemList.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ItemList.proto + public static partial class ItemListReflection { + + #region Descriptor + /// File descriptor for ItemList.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ItemListReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5JdGVtTGlzdC5wcm90bxoKSXRlbS5wcm90byIkCghJdGVtTGlzdBIYCglp", + "dGVtX2xpc3QYDiADKAsyBS5JdGVtQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2", + "ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ItemList), global::EggLink.DanhengServer.Proto.ItemList.Parser, new[]{ "ItemList_" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ItemList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemList(ItemList other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemList Clone() { + return new ItemList(this); + } + + /// Field number for the "item_list" field. + public const int ItemList_FieldNumber = 14; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.Item.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList_ { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemList other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/JoinLineupCsReq.cs b/Common/Proto/JoinLineupCsReq.cs new file mode 100644 index 00000000..f309b32e --- /dev/null +++ b/Common/Proto/JoinLineupCsReq.cs @@ -0,0 +1,460 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: JoinLineupCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from JoinLineupCsReq.proto + public static partial class JoinLineupCsReqReflection { + + #region Descriptor + /// File descriptor for JoinLineupCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static JoinLineupCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVKb2luTGluZXVwQ3NSZXEucHJvdG8aFUV4dHJhTGluZXVwVHlwZS5wcm90", + "bxoQQXZhdGFyVHlwZS5wcm90byK7AQoPSm9pbkxpbmV1cENzUmVxEiAKC2F2", + "YXRhcl90eXBlGA4gASgOMgsuQXZhdGFyVHlwZRISCgppc192aXJ0dWFsGA8g", + "ASgIEhYKDmJhc2VfYXZhdGFyX2lkGAsgASgNEg0KBWluZGV4GAEgASgNEisK", + "EWV4dHJhX2xpbmV1cF90eXBlGAMgASgOMhAuRXh0cmFMaW5ldXBUeXBlEhAK", + "CHBsYW5lX2lkGAogASgNEgwKBHNsb3QYByABKA1CHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ExtraLineupTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.AvatarTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.JoinLineupCsReq), global::EggLink.DanhengServer.Proto.JoinLineupCsReq.Parser, new[]{ "AvatarType", "IsVirtual", "BaseAvatarId", "Index", "ExtraLineupType", "PlaneId", "Slot" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class JoinLineupCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JoinLineupCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.JoinLineupCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JoinLineupCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JoinLineupCsReq(JoinLineupCsReq other) : this() { + avatarType_ = other.avatarType_; + isVirtual_ = other.isVirtual_; + baseAvatarId_ = other.baseAvatarId_; + index_ = other.index_; + extraLineupType_ = other.extraLineupType_; + planeId_ = other.planeId_; + slot_ = other.slot_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JoinLineupCsReq Clone() { + return new JoinLineupCsReq(this); + } + + /// Field number for the "avatar_type" field. + public const int AvatarTypeFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.AvatarType avatarType_ = global::EggLink.DanhengServer.Proto.AvatarType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.AvatarType AvatarType { + get { return avatarType_; } + set { + avatarType_ = value; + } + } + + /// Field number for the "is_virtual" field. + public const int IsVirtualFieldNumber = 15; + private bool isVirtual_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsVirtual { + get { return isVirtual_; } + set { + isVirtual_ = value; + } + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 11; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 1; + private uint index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "extra_lineup_type" field. + public const int ExtraLineupTypeFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.ExtraLineupType extraLineupType_ = global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ExtraLineupType ExtraLineupType { + get { return extraLineupType_; } + set { + extraLineupType_ = value; + } + } + + /// Field number for the "plane_id" field. + public const int PlaneIdFieldNumber = 10; + private uint planeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PlaneId { + get { return planeId_; } + set { + planeId_ = value; + } + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 7; + private uint slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Slot { + get { return slot_; } + set { + slot_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as JoinLineupCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(JoinLineupCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AvatarType != other.AvatarType) return false; + if (IsVirtual != other.IsVirtual) return false; + if (BaseAvatarId != other.BaseAvatarId) return false; + if (Index != other.Index) return false; + if (ExtraLineupType != other.ExtraLineupType) return false; + if (PlaneId != other.PlaneId) return false; + if (Slot != other.Slot) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) hash ^= AvatarType.GetHashCode(); + if (IsVirtual != false) hash ^= IsVirtual.GetHashCode(); + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (Index != 0) hash ^= Index.GetHashCode(); + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) hash ^= ExtraLineupType.GetHashCode(); + if (PlaneId != 0) hash ^= PlaneId.GetHashCode(); + if (Slot != 0) hash ^= Slot.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteUInt32(Index); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(24); + output.WriteEnum((int) ExtraLineupType); + } + if (Slot != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Slot); + } + if (PlaneId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(PlaneId); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(BaseAvatarId); + } + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(112); + output.WriteEnum((int) AvatarType); + } + if (IsVirtual != false) { + output.WriteRawTag(120); + output.WriteBool(IsVirtual); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteUInt32(Index); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(24); + output.WriteEnum((int) ExtraLineupType); + } + if (Slot != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Slot); + } + if (PlaneId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(PlaneId); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(BaseAvatarId); + } + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(112); + output.WriteEnum((int) AvatarType); + } + if (IsVirtual != false) { + output.WriteRawTag(120); + output.WriteBool(IsVirtual); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AvatarType); + } + if (IsVirtual != false) { + size += 1 + 1; + } + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Index); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtraLineupType); + } + if (PlaneId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlaneId); + } + if (Slot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(JoinLineupCsReq other) { + if (other == null) { + return; + } + if (other.AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + AvatarType = other.AvatarType; + } + if (other.IsVirtual != false) { + IsVirtual = other.IsVirtual; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + if (other.Index != 0) { + Index = other.Index; + } + if (other.ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + ExtraLineupType = other.ExtraLineupType; + } + if (other.PlaneId != 0) { + PlaneId = other.PlaneId; + } + if (other.Slot != 0) { + Slot = other.Slot; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Index = input.ReadUInt32(); + break; + } + case 24: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + case 56: { + Slot = input.ReadUInt32(); + break; + } + case 80: { + PlaneId = input.ReadUInt32(); + break; + } + case 88: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 112: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 120: { + IsVirtual = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Index = input.ReadUInt32(); + break; + } + case 24: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + case 56: { + Slot = input.ReadUInt32(); + break; + } + case 80: { + PlaneId = input.ReadUInt32(); + break; + } + case 88: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 112: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 120: { + IsVirtual = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/LANBPBBAJLM.cs b/Common/Proto/LANBPBBAJLM.cs new file mode 100644 index 00000000..aa39e19c --- /dev/null +++ b/Common/Proto/LANBPBBAJLM.cs @@ -0,0 +1,243 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LANBPBBAJLM.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from LANBPBBAJLM.proto + public static partial class LANBPBBAJLMReflection { + + #region Descriptor + /// File descriptor for LANBPBBAJLM.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LANBPBBAJLMReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFMQU5CUEJCQUpMTS5wcm90bxoOSXRlbUxpc3QucHJvdG8iKwoLTEFOQlBC", + "QkFKTE0SHAoJaXRlbV9saXN0GAggASgLMgkuSXRlbUxpc3RCHqoCG0VnZ0xp", + "bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LANBPBBAJLM), global::EggLink.DanhengServer.Proto.LANBPBBAJLM.Parser, new[]{ "ItemList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LANBPBBAJLM : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LANBPBBAJLM()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.LANBPBBAJLMReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LANBPBBAJLM() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LANBPBBAJLM(LANBPBBAJLM other) : this() { + itemList_ = other.itemList_ != null ? other.itemList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LANBPBBAJLM Clone() { + return new LANBPBBAJLM(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.ItemList itemList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList ItemList { + get { return itemList_; } + set { + itemList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LANBPBBAJLM); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LANBPBBAJLM other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ItemList, other.ItemList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (itemList_ != null) hash ^= ItemList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (itemList_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ItemList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (itemList_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ItemList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (itemList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LANBPBBAJLM other) { + if (other == null) { + return; + } + if (other.itemList_ != null) { + if (itemList_ == null) { + ItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + ItemList.MergeFrom(other.ItemList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + if (itemList_ == null) { + ItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ItemList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: { + if (itemList_ == null) { + ItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ItemList); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/LLJFPKKLGAK.cs b/Common/Proto/LLJFPKKLGAK.cs new file mode 100644 index 00000000..8b7c4e1a --- /dev/null +++ b/Common/Proto/LLJFPKKLGAK.cs @@ -0,0 +1,291 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LLJFPKKLGAK.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from LLJFPKKLGAK.proto + public static partial class LLJFPKKLGAKReflection { + + #region Descriptor + /// File descriptor for LLJFPKKLGAK.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LLJFPKKLGAKReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFMTEpGUEtLTEdBSy5wcm90bxoRTEFOQlBCQkFKTE0ucHJvdG8aIFJvZ3Vl", + "U3luY0NvbnRleHRCb2FyZEV2ZW50LnByb3RvImIKC0xMSkZQS0tMR0FLEiEK", + "C09MTUNHSEJES0lFGAEgASgLMgwuTEFOQlBCQkFKTE0SMAoLUEpBTEpGRUpH", + "REQYCSABKAsyGy5Sb2d1ZVN5bmNDb250ZXh0Qm9hcmRFdmVudEIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.LANBPBBAJLMReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueSyncContextBoardEventReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LLJFPKKLGAK), global::EggLink.DanhengServer.Proto.LLJFPKKLGAK.Parser, new[]{ "OLMCGHBDKIE", "PJALJFEJGDD" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LLJFPKKLGAK : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LLJFPKKLGAK()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.LLJFPKKLGAKReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LLJFPKKLGAK() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LLJFPKKLGAK(LLJFPKKLGAK other) : this() { + oLMCGHBDKIE_ = other.oLMCGHBDKIE_ != null ? other.oLMCGHBDKIE_.Clone() : null; + pJALJFEJGDD_ = other.pJALJFEJGDD_ != null ? other.pJALJFEJGDD_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LLJFPKKLGAK Clone() { + return new LLJFPKKLGAK(this); + } + + /// Field number for the "OLMCGHBDKIE" field. + public const int OLMCGHBDKIEFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.LANBPBBAJLM oLMCGHBDKIE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.LANBPBBAJLM OLMCGHBDKIE { + get { return oLMCGHBDKIE_; } + set { + oLMCGHBDKIE_ = value; + } + } + + /// Field number for the "PJALJFEJGDD" field. + public const int PJALJFEJGDDFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.RogueSyncContextBoardEvent pJALJFEJGDD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueSyncContextBoardEvent PJALJFEJGDD { + get { return pJALJFEJGDD_; } + set { + pJALJFEJGDD_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LLJFPKKLGAK); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LLJFPKKLGAK other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OLMCGHBDKIE, other.OLMCGHBDKIE)) return false; + if (!object.Equals(PJALJFEJGDD, other.PJALJFEJGDD)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (oLMCGHBDKIE_ != null) hash ^= OLMCGHBDKIE.GetHashCode(); + if (pJALJFEJGDD_ != null) hash ^= PJALJFEJGDD.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (oLMCGHBDKIE_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OLMCGHBDKIE); + } + if (pJALJFEJGDD_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PJALJFEJGDD); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (oLMCGHBDKIE_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OLMCGHBDKIE); + } + if (pJALJFEJGDD_ != null) { + output.WriteRawTag(74); + output.WriteMessage(PJALJFEJGDD); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (oLMCGHBDKIE_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OLMCGHBDKIE); + } + if (pJALJFEJGDD_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PJALJFEJGDD); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LLJFPKKLGAK other) { + if (other == null) { + return; + } + if (other.oLMCGHBDKIE_ != null) { + if (oLMCGHBDKIE_ == null) { + OLMCGHBDKIE = new global::EggLink.DanhengServer.Proto.LANBPBBAJLM(); + } + OLMCGHBDKIE.MergeFrom(other.OLMCGHBDKIE); + } + if (other.pJALJFEJGDD_ != null) { + if (pJALJFEJGDD_ == null) { + PJALJFEJGDD = new global::EggLink.DanhengServer.Proto.RogueSyncContextBoardEvent(); + } + PJALJFEJGDD.MergeFrom(other.PJALJFEJGDD); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (oLMCGHBDKIE_ == null) { + OLMCGHBDKIE = new global::EggLink.DanhengServer.Proto.LANBPBBAJLM(); + } + input.ReadMessage(OLMCGHBDKIE); + break; + } + case 74: { + if (pJALJFEJGDD_ == null) { + PJALJFEJGDD = new global::EggLink.DanhengServer.Proto.RogueSyncContextBoardEvent(); + } + input.ReadMessage(PJALJFEJGDD); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (oLMCGHBDKIE_ == null) { + OLMCGHBDKIE = new global::EggLink.DanhengServer.Proto.LANBPBBAJLM(); + } + input.ReadMessage(OLMCGHBDKIE); + break; + } + case 74: { + if (pJALJFEJGDD_ == null) { + PJALJFEJGDD = new global::EggLink.DanhengServer.Proto.RogueSyncContextBoardEvent(); + } + input.ReadMessage(PJALJFEJGDD); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/LMDFPHAHJGL.cs b/Common/Proto/LMDFPHAHJGL.cs new file mode 100644 index 00000000..83d88e8d --- /dev/null +++ b/Common/Proto/LMDFPHAHJGL.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LMDFPHAHJGL.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from LMDFPHAHJGL.proto + public static partial class LMDFPHAHJGLReflection { + + #region Descriptor + /// File descriptor for LMDFPHAHJGL.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LMDFPHAHJGLReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFMTURGUEhBSEpHTC5wcm90byIiCgtMTURGUEhBSEpHTBITCgtQRk9JTUVK", + "UENJUBgMIAMoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LMDFPHAHJGL), global::EggLink.DanhengServer.Proto.LMDFPHAHJGL.Parser, new[]{ "PFOIMEJPCIP" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LMDFPHAHJGL : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LMDFPHAHJGL()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.LMDFPHAHJGLReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LMDFPHAHJGL() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LMDFPHAHJGL(LMDFPHAHJGL other) : this() { + pFOIMEJPCIP_ = other.pFOIMEJPCIP_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LMDFPHAHJGL Clone() { + return new LMDFPHAHJGL(this); + } + + /// Field number for the "PFOIMEJPCIP" field. + public const int PFOIMEJPCIPFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_pFOIMEJPCIP_codec + = pb::FieldCodec.ForUInt32(98); + private readonly pbc::RepeatedField pFOIMEJPCIP_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PFOIMEJPCIP { + get { return pFOIMEJPCIP_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LMDFPHAHJGL); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LMDFPHAHJGL other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!pFOIMEJPCIP_.Equals(other.pFOIMEJPCIP_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= pFOIMEJPCIP_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + pFOIMEJPCIP_.WriteTo(output, _repeated_pFOIMEJPCIP_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + pFOIMEJPCIP_.WriteTo(ref output, _repeated_pFOIMEJPCIP_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += pFOIMEJPCIP_.CalculateSize(_repeated_pFOIMEJPCIP_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LMDFPHAHJGL other) { + if (other == null) { + return; + } + pFOIMEJPCIP_.Add(other.pFOIMEJPCIP_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 98: + case 96: { + pFOIMEJPCIP_.AddEntriesFrom(input, _repeated_pFOIMEJPCIP_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 98: + case 96: { + pFOIMEJPCIP_.AddEntriesFrom(ref input, _repeated_pFOIMEJPCIP_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/LanguageType.cs b/Common/Proto/LanguageType.cs new file mode 100644 index 00000000..245d8a26 --- /dev/null +++ b/Common/Proto/LanguageType.cs @@ -0,0 +1,64 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LanguageType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from LanguageType.proto + public static partial class LanguageTypeReflection { + + #region Descriptor + /// File descriptor for LanguageType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LanguageTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJMYW5ndWFnZVR5cGUucHJvdG8q/gEKDExhbmd1YWdlVHlwZRIRCg1MQU5H", + "VUFHRV9OT05FEAASDwoLTEFOR1VBR0VfU0MQARIPCgtMQU5HVUFHRV9UQxAC", + "Eg8KC0xBTkdVQUdFX0VOEAMSDwoLTEFOR1VBR0VfS1IQBBIPCgtMQU5HVUFH", + "RV9KUBAFEg8KC0xBTkdVQUdFX0ZSEAYSDwoLTEFOR1VBR0VfREUQBxIPCgtM", + "QU5HVUFHRV9FUxAIEg8KC0xBTkdVQUdFX1BUEAkSDwoLTEFOR1VBR0VfUlUQ", + "ChIPCgtMQU5HVUFHRV9USBALEg8KC0xBTkdVQUdFX1ZJEAwSDwoLTEFOR1VB", + "R0VfSUQQDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.LanguageType), }, null, null)); + } + #endregion + + } + #region Enums + public enum LanguageType { + [pbr::OriginalName("LANGUAGE_NONE")] LanguageNone = 0, + [pbr::OriginalName("LANGUAGE_SC")] LanguageSc = 1, + [pbr::OriginalName("LANGUAGE_TC")] LanguageTc = 2, + [pbr::OriginalName("LANGUAGE_EN")] LanguageEn = 3, + [pbr::OriginalName("LANGUAGE_KR")] LanguageKr = 4, + [pbr::OriginalName("LANGUAGE_JP")] LanguageJp = 5, + [pbr::OriginalName("LANGUAGE_FR")] LanguageFr = 6, + [pbr::OriginalName("LANGUAGE_DE")] LanguageDe = 7, + [pbr::OriginalName("LANGUAGE_ES")] LanguageEs = 8, + [pbr::OriginalName("LANGUAGE_PT")] LanguagePt = 9, + [pbr::OriginalName("LANGUAGE_RU")] LanguageRu = 10, + [pbr::OriginalName("LANGUAGE_TH")] LanguageTh = 11, + [pbr::OriginalName("LANGUAGE_VI")] LanguageVi = 12, + [pbr::OriginalName("LANGUAGE_ID")] LanguageId = 13, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/LeaveRogueScRsp.cs b/Common/Proto/LeaveRogueScRsp.cs new file mode 100644 index 00000000..9f0899b2 --- /dev/null +++ b/Common/Proto/LeaveRogueScRsp.cs @@ -0,0 +1,375 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LeaveRogueScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from LeaveRogueScRsp.proto + public static partial class LeaveRogueScRspReflection { + + #region Descriptor + /// File descriptor for LeaveRogueScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LeaveRogueScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVMZWF2ZVJvZ3VlU2NSc3AucHJvdG8aD1JvZ3VlSW5mby5wcm90bxoQTGlu", + "ZXVwSW5mby5wcm90bxoPU2NlbmVJbmZvLnByb3RvInoKD0xlYXZlUm9ndWVT", + "Y1JzcBIPCgdyZXRjb2RlGAIgASgNEh4KCnJvZ3VlX2luZm8YBiABKAsyCi5S", + "b2d1ZUluZm8SGwoGbGluZXVwGAwgASgLMgsuTGluZXVwSW5mbxIZCgVzY2Vu", + "ZRgPIAEoCzIKLlNjZW5lSW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy", + "LlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.LineupInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LeaveRogueScRsp), global::EggLink.DanhengServer.Proto.LeaveRogueScRsp.Parser, new[]{ "Retcode", "RogueInfo", "Lineup", "Scene" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LeaveRogueScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LeaveRogueScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.LeaveRogueScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LeaveRogueScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LeaveRogueScRsp(LeaveRogueScRsp other) : this() { + retcode_ = other.retcode_; + rogueInfo_ = other.rogueInfo_ != null ? other.rogueInfo_.Clone() : null; + lineup_ = other.lineup_ != null ? other.lineup_.Clone() : null; + scene_ = other.scene_ != null ? other.scene_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LeaveRogueScRsp Clone() { + return new LeaveRogueScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 2; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "rogue_info" field. + public const int RogueInfoFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.RogueInfo rogueInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueInfo RogueInfo { + get { return rogueInfo_; } + set { + rogueInfo_ = value; + } + } + + /// Field number for the "lineup" field. + public const int LineupFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.LineupInfo lineup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.LineupInfo Lineup { + get { return lineup_; } + set { + lineup_ = value; + } + } + + /// Field number for the "scene" field. + public const int SceneFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.SceneInfo scene_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneInfo Scene { + get { return scene_; } + set { + scene_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LeaveRogueScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LeaveRogueScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(RogueInfo, other.RogueInfo)) return false; + if (!object.Equals(Lineup, other.Lineup)) return false; + if (!object.Equals(Scene, other.Scene)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (rogueInfo_ != null) hash ^= RogueInfo.GetHashCode(); + if (lineup_ != null) hash ^= Lineup.GetHashCode(); + if (scene_ != null) hash ^= Scene.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + if (rogueInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(RogueInfo); + } + if (lineup_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Lineup); + } + if (scene_ != null) { + output.WriteRawTag(122); + output.WriteMessage(Scene); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + if (rogueInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(RogueInfo); + } + if (lineup_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Lineup); + } + if (scene_ != null) { + output.WriteRawTag(122); + output.WriteMessage(Scene); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (rogueInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueInfo); + } + if (lineup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lineup); + } + if (scene_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scene); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LeaveRogueScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.rogueInfo_ != null) { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.RogueInfo(); + } + RogueInfo.MergeFrom(other.RogueInfo); + } + if (other.lineup_ != null) { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + Lineup.MergeFrom(other.Lineup); + } + if (other.scene_ != null) { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + Scene.MergeFrom(other.Scene); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 50: { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.RogueInfo(); + } + input.ReadMessage(RogueInfo); + break; + } + case 98: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 122: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 50: { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.RogueInfo(); + } + input.ReadMessage(RogueInfo); + break; + } + case 98: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 122: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/LineupAvatar.cs b/Common/Proto/LineupAvatar.cs new file mode 100644 index 00000000..fd03237b --- /dev/null +++ b/Common/Proto/LineupAvatar.cs @@ -0,0 +1,431 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LineupAvatar.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from LineupAvatar.proto + public static partial class LineupAvatarReflection { + + #region Descriptor + /// File descriptor for LineupAvatar.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LineupAvatarReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJMaW5ldXBBdmF0YXIucHJvdG8aEEF2YXRhclR5cGUucHJvdG8aD1NwQmFy", + "SW5mby5wcm90byKDAQoMTGluZXVwQXZhdGFyEiAKC2F2YXRhcl90eXBlGAwg", + "ASgOMgsuQXZhdGFyVHlwZRIMCgRzbG90GAYgASgNEg8KB3NhdGlldHkYByAB", + "KA0SCgoCaHAYDyABKA0SCgoCaWQYAyABKA0SGgoGc3BfYmFyGAkgASgLMgou", + "U3BCYXJJbmZvQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AvatarTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.SpBarInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LineupAvatar), global::EggLink.DanhengServer.Proto.LineupAvatar.Parser, new[]{ "AvatarType", "Slot", "Satiety", "Hp", "Id", "SpBar" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LineupAvatar : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LineupAvatar()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.LineupAvatarReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LineupAvatar() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LineupAvatar(LineupAvatar other) : this() { + avatarType_ = other.avatarType_; + slot_ = other.slot_; + satiety_ = other.satiety_; + hp_ = other.hp_; + id_ = other.id_; + spBar_ = other.spBar_ != null ? other.spBar_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LineupAvatar Clone() { + return new LineupAvatar(this); + } + + /// Field number for the "avatar_type" field. + public const int AvatarTypeFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.AvatarType avatarType_ = global::EggLink.DanhengServer.Proto.AvatarType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.AvatarType AvatarType { + get { return avatarType_; } + set { + avatarType_ = value; + } + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 6; + private uint slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Slot { + get { return slot_; } + set { + slot_ = value; + } + } + + /// Field number for the "satiety" field. + public const int SatietyFieldNumber = 7; + private uint satiety_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Satiety { + get { return satiety_; } + set { + satiety_ = value; + } + } + + /// Field number for the "hp" field. + public const int HpFieldNumber = 15; + private uint hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Hp { + get { return hp_; } + set { + hp_ = 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 "sp_bar" field. + public const int SpBarFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.SpBarInfo spBar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SpBarInfo SpBar { + get { return spBar_; } + set { + spBar_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LineupAvatar); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LineupAvatar other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AvatarType != other.AvatarType) return false; + if (Slot != other.Slot) return false; + if (Satiety != other.Satiety) return false; + if (Hp != other.Hp) return false; + if (Id != other.Id) return false; + if (!object.Equals(SpBar, other.SpBar)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) hash ^= AvatarType.GetHashCode(); + if (Slot != 0) hash ^= Slot.GetHashCode(); + if (Satiety != 0) hash ^= Satiety.GetHashCode(); + if (Hp != 0) hash ^= Hp.GetHashCode(); + if (Id != 0) hash ^= Id.GetHashCode(); + if (spBar_ != null) hash ^= SpBar.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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(24); + output.WriteUInt32(Id); + } + if (Slot != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Slot); + } + if (Satiety != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Satiety); + } + if (spBar_ != null) { + output.WriteRawTag(74); + output.WriteMessage(SpBar); + } + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(96); + output.WriteEnum((int) AvatarType); + } + if (Hp != 0) { + output.WriteRawTag(120); + output.WriteUInt32(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 (Id != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Id); + } + if (Slot != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Slot); + } + if (Satiety != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Satiety); + } + if (spBar_ != null) { + output.WriteRawTag(74); + output.WriteMessage(SpBar); + } + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(96); + output.WriteEnum((int) AvatarType); + } + if (Hp != 0) { + output.WriteRawTag(120); + output.WriteUInt32(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 (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AvatarType); + } + if (Slot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); + } + if (Satiety != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Satiety); + } + if (Hp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Hp); + } + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (spBar_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpBar); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LineupAvatar other) { + if (other == null) { + return; + } + if (other.AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + AvatarType = other.AvatarType; + } + if (other.Slot != 0) { + Slot = other.Slot; + } + if (other.Satiety != 0) { + Satiety = other.Satiety; + } + if (other.Hp != 0) { + Hp = other.Hp; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.spBar_ != null) { + if (spBar_ == null) { + SpBar = new global::EggLink.DanhengServer.Proto.SpBarInfo(); + } + SpBar.MergeFrom(other.SpBar); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Id = input.ReadUInt32(); + break; + } + case 48: { + Slot = input.ReadUInt32(); + break; + } + case 56: { + Satiety = input.ReadUInt32(); + break; + } + case 74: { + if (spBar_ == null) { + SpBar = new global::EggLink.DanhengServer.Proto.SpBarInfo(); + } + input.ReadMessage(SpBar); + break; + } + case 96: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 120: { + Hp = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Id = input.ReadUInt32(); + break; + } + case 48: { + Slot = input.ReadUInt32(); + break; + } + case 56: { + Satiety = input.ReadUInt32(); + break; + } + case 74: { + if (spBar_ == null) { + SpBar = new global::EggLink.DanhengServer.Proto.SpBarInfo(); + } + input.ReadMessage(SpBar); + break; + } + case 96: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 120: { + Hp = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/LineupInfo.cs b/Common/Proto/LineupInfo.cs new file mode 100644 index 00000000..794d0272 --- /dev/null +++ b/Common/Proto/LineupInfo.cs @@ -0,0 +1,523 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LineupInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from LineupInfo.proto + public static partial class LineupInfoReflection { + + #region Descriptor + /// File descriptor for LineupInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LineupInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBMaW5ldXBJbmZvLnByb3RvGhVFeHRyYUxpbmV1cFR5cGUucHJvdG8aEkxp", + "bmV1cEF2YXRhci5wcm90byLRAQoKTGluZXVwSW5mbxISCgppc192aXJ0dWFs", + "GAIgASgIEhMKC2xlYWRlcl9zbG90GA0gASgNEiIKC2F2YXRhcl9saXN0GA8g", + "AygLMg0uTGluZXVwQXZhdGFyEg0KBWluZGV4GAwgASgNEisKEWV4dHJhX2xp", + "bmV1cF90eXBlGAYgASgOMhAuRXh0cmFMaW5ldXBUeXBlEg4KBm1heF9tcBgI", + "IAEoDRIKCgJtcBgHIAEoDRIMCgRuYW1lGAUgASgJEhAKCHBsYW5lX2lkGAog", + "ASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ExtraLineupTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.LineupAvatarReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LineupInfo), global::EggLink.DanhengServer.Proto.LineupInfo.Parser, new[]{ "IsVirtual", "LeaderSlot", "AvatarList", "Index", "ExtraLineupType", "MaxMp", "Mp", "Name", "PlaneId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LineupInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LineupInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.LineupInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LineupInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LineupInfo(LineupInfo other) : this() { + isVirtual_ = other.isVirtual_; + leaderSlot_ = other.leaderSlot_; + avatarList_ = other.avatarList_.Clone(); + index_ = other.index_; + extraLineupType_ = other.extraLineupType_; + maxMp_ = other.maxMp_; + mp_ = other.mp_; + name_ = other.name_; + planeId_ = other.planeId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LineupInfo Clone() { + return new LineupInfo(this); + } + + /// Field number for the "is_virtual" field. + public const int IsVirtualFieldNumber = 2; + private bool isVirtual_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsVirtual { + get { return isVirtual_; } + set { + isVirtual_ = value; + } + } + + /// Field number for the "leader_slot" field. + public const int LeaderSlotFieldNumber = 13; + private uint leaderSlot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint LeaderSlot { + get { return leaderSlot_; } + set { + leaderSlot_ = value; + } + } + + /// Field number for the "avatar_list" field. + public const int AvatarListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_avatarList_codec + = pb::FieldCodec.ForMessage(122, global::EggLink.DanhengServer.Proto.LineupAvatar.Parser); + private readonly pbc::RepeatedField avatarList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AvatarList { + get { return avatarList_; } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 12; + private uint index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "extra_lineup_type" field. + public const int ExtraLineupTypeFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.ExtraLineupType extraLineupType_ = global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ExtraLineupType ExtraLineupType { + get { return extraLineupType_; } + set { + extraLineupType_ = value; + } + } + + /// Field number for the "max_mp" field. + public const int MaxMpFieldNumber = 8; + private uint maxMp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxMp { + get { return maxMp_; } + set { + maxMp_ = value; + } + } + + /// Field number for the "mp" field. + public const int MpFieldNumber = 7; + private uint mp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Mp { + get { return mp_; } + set { + mp_ = 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 "plane_id" field. + public const int PlaneIdFieldNumber = 10; + private uint planeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PlaneId { + get { return planeId_; } + set { + planeId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LineupInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LineupInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsVirtual != other.IsVirtual) return false; + if (LeaderSlot != other.LeaderSlot) return false; + if(!avatarList_.Equals(other.avatarList_)) return false; + if (Index != other.Index) return false; + if (ExtraLineupType != other.ExtraLineupType) return false; + if (MaxMp != other.MaxMp) return false; + if (Mp != other.Mp) return false; + if (Name != other.Name) return false; + if (PlaneId != other.PlaneId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (IsVirtual != false) hash ^= IsVirtual.GetHashCode(); + if (LeaderSlot != 0) hash ^= LeaderSlot.GetHashCode(); + hash ^= avatarList_.GetHashCode(); + if (Index != 0) hash ^= Index.GetHashCode(); + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) hash ^= ExtraLineupType.GetHashCode(); + if (MaxMp != 0) hash ^= MaxMp.GetHashCode(); + if (Mp != 0) hash ^= Mp.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (PlaneId != 0) hash ^= PlaneId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (IsVirtual != false) { + output.WriteRawTag(16); + output.WriteBool(IsVirtual); + } + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(48); + output.WriteEnum((int) ExtraLineupType); + } + if (Mp != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Mp); + } + if (MaxMp != 0) { + output.WriteRawTag(64); + output.WriteUInt32(MaxMp); + } + if (PlaneId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(PlaneId); + } + if (Index != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Index); + } + if (LeaderSlot != 0) { + output.WriteRawTag(104); + output.WriteUInt32(LeaderSlot); + } + avatarList_.WriteTo(output, _repeated_avatarList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (IsVirtual != false) { + output.WriteRawTag(16); + output.WriteBool(IsVirtual); + } + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(48); + output.WriteEnum((int) ExtraLineupType); + } + if (Mp != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Mp); + } + if (MaxMp != 0) { + output.WriteRawTag(64); + output.WriteUInt32(MaxMp); + } + if (PlaneId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(PlaneId); + } + if (Index != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Index); + } + if (LeaderSlot != 0) { + output.WriteRawTag(104); + output.WriteUInt32(LeaderSlot); + } + avatarList_.WriteTo(ref output, _repeated_avatarList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (IsVirtual != false) { + size += 1 + 1; + } + if (LeaderSlot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LeaderSlot); + } + size += avatarList_.CalculateSize(_repeated_avatarList_codec); + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Index); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtraLineupType); + } + if (MaxMp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxMp); + } + if (Mp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Mp); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (PlaneId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlaneId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LineupInfo other) { + if (other == null) { + return; + } + if (other.IsVirtual != false) { + IsVirtual = other.IsVirtual; + } + if (other.LeaderSlot != 0) { + LeaderSlot = other.LeaderSlot; + } + avatarList_.Add(other.avatarList_); + if (other.Index != 0) { + Index = other.Index; + } + if (other.ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + ExtraLineupType = other.ExtraLineupType; + } + if (other.MaxMp != 0) { + MaxMp = other.MaxMp; + } + if (other.Mp != 0) { + Mp = other.Mp; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.PlaneId != 0) { + PlaneId = other.PlaneId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + IsVirtual = input.ReadBool(); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + case 48: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + case 56: { + Mp = input.ReadUInt32(); + break; + } + case 64: { + MaxMp = input.ReadUInt32(); + break; + } + case 80: { + PlaneId = input.ReadUInt32(); + break; + } + case 96: { + Index = input.ReadUInt32(); + break; + } + case 104: { + LeaderSlot = input.ReadUInt32(); + break; + } + case 122: { + avatarList_.AddEntriesFrom(input, _repeated_avatarList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + IsVirtual = input.ReadBool(); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + case 48: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + case 56: { + Mp = input.ReadUInt32(); + break; + } + case 64: { + MaxMp = input.ReadUInt32(); + break; + } + case 80: { + PlaneId = input.ReadUInt32(); + break; + } + case 96: { + Index = input.ReadUInt32(); + break; + } + case 104: { + LeaderSlot = input.ReadUInt32(); + break; + } + case 122: { + avatarList_.AddEntriesFrom(ref input, _repeated_avatarList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/LineupSlotData.cs b/Common/Proto/LineupSlotData.cs new file mode 100644 index 00000000..7c277a70 --- /dev/null +++ b/Common/Proto/LineupSlotData.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LineupSlotData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from LineupSlotData.proto + public static partial class LineupSlotDataReflection { + + #region Descriptor + /// File descriptor for LineupSlotData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LineupSlotDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRMaW5ldXBTbG90RGF0YS5wcm90bxoQQXZhdGFyVHlwZS5wcm90byJMCg5M", + "aW5ldXBTbG90RGF0YRIKCgJpZBgGIAEoDRIgCgthdmF0YXJfdHlwZRgPIAEo", + "DjILLkF2YXRhclR5cGUSDAoEc2xvdBgIIAEoDUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AvatarTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LineupSlotData), global::EggLink.DanhengServer.Proto.LineupSlotData.Parser, new[]{ "Id", "AvatarType", "Slot" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LineupSlotData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LineupSlotData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.LineupSlotDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LineupSlotData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LineupSlotData(LineupSlotData other) : this() { + id_ = other.id_; + avatarType_ = other.avatarType_; + slot_ = other.slot_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LineupSlotData Clone() { + return new LineupSlotData(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 6; + 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 "avatar_type" field. + public const int AvatarTypeFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.AvatarType avatarType_ = global::EggLink.DanhengServer.Proto.AvatarType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.AvatarType AvatarType { + get { return avatarType_; } + set { + avatarType_ = value; + } + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 8; + private uint slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Slot { + get { return slot_; } + set { + slot_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LineupSlotData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LineupSlotData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AvatarType != other.AvatarType) return false; + if (Slot != other.Slot) return false; + 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 (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) hash ^= AvatarType.GetHashCode(); + if (Slot != 0) hash ^= Slot.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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(48); + output.WriteUInt32(Id); + } + if (Slot != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Slot); + } + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(120); + output.WriteEnum((int) AvatarType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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(48); + output.WriteUInt32(Id); + } + if (Slot != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Slot); + } + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(120); + output.WriteEnum((int) AvatarType); + } + if (_unknownFields != 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 (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AvatarType); + } + if (Slot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LineupSlotData other) { + if (other == null) { + return; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + AvatarType = other.AvatarType; + } + if (other.Slot != 0) { + Slot = other.Slot; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 48: { + Id = input.ReadUInt32(); + break; + } + case 64: { + Slot = input.ReadUInt32(); + break; + } + case 120: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 48: { + Id = input.ReadUInt32(); + break; + } + case 64: { + Slot = input.ReadUInt32(); + break; + } + case 120: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/LockEquipmentCsReq.cs b/Common/Proto/LockEquipmentCsReq.cs new file mode 100644 index 00000000..387b1785 --- /dev/null +++ b/Common/Proto/LockEquipmentCsReq.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LockEquipmentCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from LockEquipmentCsReq.proto + public static partial class LockEquipmentCsReqReflection { + + #region Descriptor + /// File descriptor for LockEquipmentCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LockEquipmentCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhMb2NrRXF1aXBtZW50Q3NSZXEucHJvdG8iRwoSTG9ja0VxdWlwbWVudENz", + "UmVxEhQKDGlzX3Byb3RlY3RlZBgLIAEoCBIbChNlcXVpcG1lbnRfdW5pcXVl", + "X2lkGAQgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LockEquipmentCsReq), global::EggLink.DanhengServer.Proto.LockEquipmentCsReq.Parser, new[]{ "IsProtected", "EquipmentUniqueId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LockEquipmentCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LockEquipmentCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.LockEquipmentCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockEquipmentCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockEquipmentCsReq(LockEquipmentCsReq other) : this() { + isProtected_ = other.isProtected_; + equipmentUniqueId_ = other.equipmentUniqueId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockEquipmentCsReq Clone() { + return new LockEquipmentCsReq(this); + } + + /// Field number for the "is_protected" field. + public const int IsProtectedFieldNumber = 11; + private bool isProtected_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsProtected { + get { return isProtected_; } + set { + isProtected_ = value; + } + } + + /// Field number for the "equipment_unique_id" field. + public const int EquipmentUniqueIdFieldNumber = 4; + private uint equipmentUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EquipmentUniqueId { + get { return equipmentUniqueId_; } + set { + equipmentUniqueId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LockEquipmentCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LockEquipmentCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsProtected != other.IsProtected) return false; + if (EquipmentUniqueId != other.EquipmentUniqueId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (IsProtected != false) hash ^= IsProtected.GetHashCode(); + if (EquipmentUniqueId != 0) hash ^= EquipmentUniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EquipmentUniqueId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(EquipmentUniqueId); + } + if (IsProtected != false) { + output.WriteRawTag(88); + output.WriteBool(IsProtected); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EquipmentUniqueId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(EquipmentUniqueId); + } + if (IsProtected != false) { + output.WriteRawTag(88); + output.WriteBool(IsProtected); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (IsProtected != false) { + size += 1 + 1; + } + if (EquipmentUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EquipmentUniqueId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LockEquipmentCsReq other) { + if (other == null) { + return; + } + if (other.IsProtected != false) { + IsProtected = other.IsProtected; + } + if (other.EquipmentUniqueId != 0) { + EquipmentUniqueId = other.EquipmentUniqueId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + EquipmentUniqueId = input.ReadUInt32(); + break; + } + case 88: { + IsProtected = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + EquipmentUniqueId = input.ReadUInt32(); + break; + } + case 88: { + IsProtected = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/LockEquipmentScRsp.cs b/Common/Proto/LockEquipmentScRsp.cs new file mode 100644 index 00000000..a3324152 --- /dev/null +++ b/Common/Proto/LockEquipmentScRsp.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LockEquipmentScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from LockEquipmentScRsp.proto + public static partial class LockEquipmentScRspReflection { + + #region Descriptor + /// File descriptor for LockEquipmentScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LockEquipmentScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhMb2NrRXF1aXBtZW50U2NSc3AucHJvdG8iQgoSTG9ja0VxdWlwbWVudFNj", + "UnNwEg8KB3JldGNvZGUYDSABKA0SGwoTZXF1aXBtZW50X3VuaXF1ZV9pZBgD", + "IAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LockEquipmentScRsp), global::EggLink.DanhengServer.Proto.LockEquipmentScRsp.Parser, new[]{ "Retcode", "EquipmentUniqueId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LockEquipmentScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LockEquipmentScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.LockEquipmentScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockEquipmentScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockEquipmentScRsp(LockEquipmentScRsp other) : this() { + retcode_ = other.retcode_; + equipmentUniqueId_ = other.equipmentUniqueId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockEquipmentScRsp Clone() { + return new LockEquipmentScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 13; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "equipment_unique_id" field. + public const int EquipmentUniqueIdFieldNumber = 3; + private uint equipmentUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EquipmentUniqueId { + get { return equipmentUniqueId_; } + set { + equipmentUniqueId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LockEquipmentScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LockEquipmentScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (EquipmentUniqueId != other.EquipmentUniqueId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (EquipmentUniqueId != 0) hash ^= EquipmentUniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EquipmentUniqueId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(EquipmentUniqueId); + } + if (Retcode != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EquipmentUniqueId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(EquipmentUniqueId); + } + if (Retcode != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (EquipmentUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EquipmentUniqueId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LockEquipmentScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.EquipmentUniqueId != 0) { + EquipmentUniqueId = other.EquipmentUniqueId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + EquipmentUniqueId = input.ReadUInt32(); + break; + } + case 104: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + EquipmentUniqueId = input.ReadUInt32(); + break; + } + case 104: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/LockRelicCsReq.cs b/Common/Proto/LockRelicCsReq.cs new file mode 100644 index 00000000..5cfee6a6 --- /dev/null +++ b/Common/Proto/LockRelicCsReq.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LockRelicCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from LockRelicCsReq.proto + public static partial class LockRelicCsReqReflection { + + #region Descriptor + /// File descriptor for LockRelicCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LockRelicCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRMb2NrUmVsaWNDc1JlcS5wcm90byI/Cg5Mb2NrUmVsaWNDc1JlcRIXCg9y", + "ZWxpY191bmlxdWVfaWQYASABKA0SFAoMaXNfcHJvdGVjdGVkGAogASgIQh6q", + "AhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LockRelicCsReq), global::EggLink.DanhengServer.Proto.LockRelicCsReq.Parser, new[]{ "RelicUniqueId", "IsProtected" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LockRelicCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LockRelicCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.LockRelicCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockRelicCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockRelicCsReq(LockRelicCsReq other) : this() { + relicUniqueId_ = other.relicUniqueId_; + isProtected_ = other.isProtected_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockRelicCsReq Clone() { + return new LockRelicCsReq(this); + } + + /// Field number for the "relic_unique_id" field. + public const int RelicUniqueIdFieldNumber = 1; + private uint relicUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RelicUniqueId { + get { return relicUniqueId_; } + set { + relicUniqueId_ = value; + } + } + + /// Field number for the "is_protected" field. + public const int IsProtectedFieldNumber = 10; + private bool isProtected_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsProtected { + get { return isProtected_; } + set { + isProtected_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LockRelicCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LockRelicCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RelicUniqueId != other.RelicUniqueId) return false; + if (IsProtected != other.IsProtected) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RelicUniqueId != 0) hash ^= RelicUniqueId.GetHashCode(); + if (IsProtected != false) hash ^= IsProtected.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RelicUniqueId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(RelicUniqueId); + } + if (IsProtected != false) { + output.WriteRawTag(80); + output.WriteBool(IsProtected); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RelicUniqueId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(RelicUniqueId); + } + if (IsProtected != false) { + output.WriteRawTag(80); + output.WriteBool(IsProtected); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RelicUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelicUniqueId); + } + if (IsProtected != 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(LockRelicCsReq other) { + if (other == null) { + return; + } + if (other.RelicUniqueId != 0) { + RelicUniqueId = other.RelicUniqueId; + } + if (other.IsProtected != false) { + IsProtected = other.IsProtected; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RelicUniqueId = input.ReadUInt32(); + break; + } + case 80: { + IsProtected = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RelicUniqueId = input.ReadUInt32(); + break; + } + case 80: { + IsProtected = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/LockRelicScRsp.cs b/Common/Proto/LockRelicScRsp.cs new file mode 100644 index 00000000..c3ba9ce6 --- /dev/null +++ b/Common/Proto/LockRelicScRsp.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LockRelicScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from LockRelicScRsp.proto + public static partial class LockRelicScRspReflection { + + #region Descriptor + /// File descriptor for LockRelicScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LockRelicScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRMb2NrUmVsaWNTY1JzcC5wcm90byI6Cg5Mb2NrUmVsaWNTY1JzcBIPCgdy", + "ZXRjb2RlGAcgASgNEhcKD3JlbGljX3VuaXF1ZV9pZBgEIAEoDUIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LockRelicScRsp), global::EggLink.DanhengServer.Proto.LockRelicScRsp.Parser, new[]{ "Retcode", "RelicUniqueId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LockRelicScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LockRelicScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.LockRelicScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockRelicScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockRelicScRsp(LockRelicScRsp other) : this() { + retcode_ = other.retcode_; + relicUniqueId_ = other.relicUniqueId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LockRelicScRsp Clone() { + return new LockRelicScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 7; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "relic_unique_id" field. + public const int RelicUniqueIdFieldNumber = 4; + private uint relicUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RelicUniqueId { + get { return relicUniqueId_; } + set { + relicUniqueId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LockRelicScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LockRelicScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (RelicUniqueId != other.RelicUniqueId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (RelicUniqueId != 0) hash ^= RelicUniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RelicUniqueId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(RelicUniqueId); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RelicUniqueId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(RelicUniqueId); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (RelicUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelicUniqueId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LockRelicScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.RelicUniqueId != 0) { + RelicUniqueId = other.RelicUniqueId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + RelicUniqueId = input.ReadUInt32(); + break; + } + case 56: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + RelicUniqueId = input.ReadUInt32(); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MECNPEEJJDE.cs b/Common/Proto/MECNPEEJJDE.cs new file mode 100644 index 00000000..6d2c06b1 --- /dev/null +++ b/Common/Proto/MECNPEEJJDE.cs @@ -0,0 +1,237 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MECNPEEJJDE.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MECNPEEJJDE.proto + public static partial class MECNPEEJJDEReflection { + + #region Descriptor + /// File descriptor for MECNPEEJJDE.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MECNPEEJJDEReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFNRUNOUEVFSkpERS5wcm90byIiCgtNRUNOUEVFSkpERRITCgtHTEZESEFK", + "UEpERhgDIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MECNPEEJJDE), global::EggLink.DanhengServer.Proto.MECNPEEJJDE.Parser, new[]{ "GLFDHAJPJDF" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MECNPEEJJDE : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MECNPEEJJDE()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MECNPEEJJDEReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MECNPEEJJDE() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MECNPEEJJDE(MECNPEEJJDE other) : this() { + gLFDHAJPJDF_ = other.gLFDHAJPJDF_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MECNPEEJJDE Clone() { + return new MECNPEEJJDE(this); + } + + /// Field number for the "GLFDHAJPJDF" field. + public const int GLFDHAJPJDFFieldNumber = 3; + private uint gLFDHAJPJDF_; + /// + ///LJABGHIILFI DHJPHJOBLLB = 7; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GLFDHAJPJDF { + get { return gLFDHAJPJDF_; } + set { + gLFDHAJPJDF_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MECNPEEJJDE); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MECNPEEJJDE other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GLFDHAJPJDF != other.GLFDHAJPJDF) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GLFDHAJPJDF != 0) hash ^= GLFDHAJPJDF.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (GLFDHAJPJDF != 0) { + output.WriteRawTag(24); + output.WriteUInt32(GLFDHAJPJDF); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (GLFDHAJPJDF != 0) { + output.WriteRawTag(24); + output.WriteUInt32(GLFDHAJPJDF); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GLFDHAJPJDF != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GLFDHAJPJDF); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MECNPEEJJDE other) { + if (other == null) { + return; + } + if (other.GLFDHAJPJDF != 0) { + GLFDHAJPJDF = other.GLFDHAJPJDF; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + GLFDHAJPJDF = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + GLFDHAJPJDF = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MailType.cs b/Common/Proto/MailType.cs new file mode 100644 index 00000000..f1e75101 --- /dev/null +++ b/Common/Proto/MailType.cs @@ -0,0 +1,47 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MailType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MailType.proto + public static partial class MailTypeReflection { + + #region Descriptor + /// File descriptor for MailType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MailTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5NYWlsVHlwZS5wcm90byo0CghNYWlsVHlwZRIUChBNQUlMX1RZUEVfTk9S", + "TUFMEAASEgoOTUFJTF9UWVBFX1NUQVIQAUIeqgIbRWdnTGluay5EYW5oZW5n", + "U2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.MailType), }, null, null)); + } + #endregion + + } + #region Enums + public enum MailType { + [pbr::OriginalName("MAIL_TYPE_NORMAL")] Normal = 0, + [pbr::OriginalName("MAIL_TYPE_STAR")] Star = 1, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MapInfoChestType.cs b/Common/Proto/MapInfoChestType.cs new file mode 100644 index 00000000..58424bbd --- /dev/null +++ b/Common/Proto/MapInfoChestType.cs @@ -0,0 +1,51 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MapInfoChestType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MapInfoChestType.proto + public static partial class MapInfoChestTypeReflection { + + #region Descriptor + /// File descriptor for MapInfoChestType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MapInfoChestTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZNYXBJbmZvQ2hlc3RUeXBlLnByb3RvKpMBChBNYXBJbmZvQ2hlc3RUeXBl", + "EhwKGE1BUF9JTkZPX0NIRVNUX1RZUEVfTk9ORRAAEh4KGk1BUF9JTkZPX0NI", + "RVNUX1RZUEVfTk9STUFMEGUSIQodTUFQX0lORk9fQ0hFU1RfVFlQRV9DSEFM", + "TEVOR0UQZhIeChpNQVBfSU5GT19DSEVTVF9UWVBFX1BVWlpMRRBoQh6qAhtF", + "Z2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.MapInfoChestType), }, null, null)); + } + #endregion + + } + #region Enums + public enum MapInfoChestType { + [pbr::OriginalName("MAP_INFO_CHEST_TYPE_NONE")] None = 0, + [pbr::OriginalName("MAP_INFO_CHEST_TYPE_NORMAL")] Normal = 101, + [pbr::OriginalName("MAP_INFO_CHEST_TYPE_CHALLENGE")] Challenge = 102, + [pbr::OriginalName("MAP_INFO_CHEST_TYPE_PUZZLE")] Puzzle = 104, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MarkReadMailCsReq.cs b/Common/Proto/MarkReadMailCsReq.cs new file mode 100644 index 00000000..62f462b8 --- /dev/null +++ b/Common/Proto/MarkReadMailCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MarkReadMailCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MarkReadMailCsReq.proto + public static partial class MarkReadMailCsReqReflection { + + #region Descriptor + /// File descriptor for MarkReadMailCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MarkReadMailCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdNYXJrUmVhZE1haWxDc1JlcS5wcm90byIfChFNYXJrUmVhZE1haWxDc1Jl", + "cRIKCgJpZBgGIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MarkReadMailCsReq), global::EggLink.DanhengServer.Proto.MarkReadMailCsReq.Parser, new[]{ "Id" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MarkReadMailCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MarkReadMailCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MarkReadMailCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MarkReadMailCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MarkReadMailCsReq(MarkReadMailCsReq other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MarkReadMailCsReq Clone() { + return new MarkReadMailCsReq(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 6; + 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 MarkReadMailCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MarkReadMailCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (Id != 0) { + output.WriteRawTag(48); + 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 (Id != 0) { + output.WriteRawTag(48); + 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 (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(MarkReadMailCsReq other) { + if (other == null) { + return; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 48: { + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 48: { + Id = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MarkReadMailScRsp.cs b/Common/Proto/MarkReadMailScRsp.cs new file mode 100644 index 00000000..86cb2b93 --- /dev/null +++ b/Common/Proto/MarkReadMailScRsp.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MarkReadMailScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MarkReadMailScRsp.proto + public static partial class MarkReadMailScRspReflection { + + #region Descriptor + /// File descriptor for MarkReadMailScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MarkReadMailScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdNYXJrUmVhZE1haWxTY1JzcC5wcm90byIwChFNYXJrUmVhZE1haWxTY1Jz", + "cBIPCgdyZXRjb2RlGAMgASgNEgoKAmlkGAUgASgNQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MarkReadMailScRsp), global::EggLink.DanhengServer.Proto.MarkReadMailScRsp.Parser, new[]{ "Retcode", "Id" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MarkReadMailScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MarkReadMailScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MarkReadMailScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MarkReadMailScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MarkReadMailScRsp(MarkReadMailScRsp other) : this() { + retcode_ = other.retcode_; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MarkReadMailScRsp Clone() { + return new MarkReadMailScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 5; + 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 MarkReadMailScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MarkReadMailScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) 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 (Retcode != 0) hash ^= Retcode.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 (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (Id != 0) { + output.WriteRawTag(40); + 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 (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + if (Id != 0) { + output.WriteRawTag(40); + 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 (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + 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(MarkReadMailScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 40: { + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 40: { + Id = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Material.cs b/Common/Proto/Material.cs new file mode 100644 index 00000000..bdf54d9d --- /dev/null +++ b/Common/Proto/Material.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Material.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from Material.proto + public static partial class MaterialReflection { + + #region Descriptor + /// File descriptor for Material.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MaterialReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5NYXRlcmlhbC5wcm90byIkCghNYXRlcmlhbBILCgN0aWQYCiABKA0SCwoD", + "bnVtGAQgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Material), global::EggLink.DanhengServer.Proto.Material.Parser, new[]{ "Tid", "Num" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Material : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Material()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MaterialReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Material() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Material(Material other) : this() { + tid_ = other.tid_; + num_ = other.num_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Material Clone() { + return new Material(this); + } + + /// Field number for the "tid" field. + public const int TidFieldNumber = 10; + private uint tid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Tid { + get { return tid_; } + set { + tid_ = value; + } + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private uint num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Num { + get { return num_; } + set { + num_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Material); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Material other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Tid != other.Tid) 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 (Tid != 0) hash ^= Tid.GetHashCode(); + if (Num != 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 (Num != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Num); + } + if (Tid != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Tid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Num != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Num); + } + if (Tid != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Tid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Tid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Tid); + } + if (Num != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Num); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Material other) { + if (other == null) { + return; + } + if (other.Tid != 0) { + Tid = other.Tid; + } + if (other.Num != 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + Num = input.ReadUInt32(); + break; + } + case 80: { + Tid = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + Num = input.ReadUInt32(); + break; + } + case 80: { + Tid = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MazeChest.cs b/Common/Proto/MazeChest.cs new file mode 100644 index 00000000..4e3f0761 --- /dev/null +++ b/Common/Proto/MazeChest.cs @@ -0,0 +1,310 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MazeChest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MazeChest.proto + public static partial class MazeChestReflection { + + #region Descriptor + /// File descriptor for MazeChest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MazeChestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9NYXplQ2hlc3QucHJvdG8aFk1hcEluZm9DaGVzdFR5cGUucHJvdG8idAoJ", + "TWF6ZUNoZXN0Ei4KE21hcF9pbmZvX2NoZXN0X3R5cGUYDiABKA4yES5NYXBJ", + "bmZvQ2hlc3RUeXBlEhkKEXRvdGFsX2Ftb3VudF9saXN0GAQgASgNEhwKFHVu", + "bG9ja2VkX2Ftb3VudF9saXN0GAEgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MapInfoChestTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MazeChest), global::EggLink.DanhengServer.Proto.MazeChest.Parser, new[]{ "MapInfoChestType", "TotalAmountList", "UnlockedAmountList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MazeChest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MazeChest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MazeChestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MazeChest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MazeChest(MazeChest other) : this() { + mapInfoChestType_ = other.mapInfoChestType_; + totalAmountList_ = other.totalAmountList_; + unlockedAmountList_ = other.unlockedAmountList_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MazeChest Clone() { + return new MazeChest(this); + } + + /// Field number for the "map_info_chest_type" field. + public const int MapInfoChestTypeFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.MapInfoChestType mapInfoChestType_ = global::EggLink.DanhengServer.Proto.MapInfoChestType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MapInfoChestType MapInfoChestType { + get { return mapInfoChestType_; } + set { + mapInfoChestType_ = value; + } + } + + /// Field number for the "total_amount_list" field. + public const int TotalAmountListFieldNumber = 4; + private uint totalAmountList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalAmountList { + get { return totalAmountList_; } + set { + totalAmountList_ = value; + } + } + + /// Field number for the "unlocked_amount_list" field. + public const int UnlockedAmountListFieldNumber = 1; + private uint unlockedAmountList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UnlockedAmountList { + get { return unlockedAmountList_; } + set { + unlockedAmountList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MazeChest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MazeChest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MapInfoChestType != other.MapInfoChestType) return false; + if (TotalAmountList != other.TotalAmountList) return false; + if (UnlockedAmountList != other.UnlockedAmountList) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MapInfoChestType != global::EggLink.DanhengServer.Proto.MapInfoChestType.None) hash ^= MapInfoChestType.GetHashCode(); + if (TotalAmountList != 0) hash ^= TotalAmountList.GetHashCode(); + if (UnlockedAmountList != 0) hash ^= UnlockedAmountList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (UnlockedAmountList != 0) { + output.WriteRawTag(8); + output.WriteUInt32(UnlockedAmountList); + } + if (TotalAmountList != 0) { + output.WriteRawTag(32); + output.WriteUInt32(TotalAmountList); + } + if (MapInfoChestType != global::EggLink.DanhengServer.Proto.MapInfoChestType.None) { + output.WriteRawTag(112); + output.WriteEnum((int) MapInfoChestType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (UnlockedAmountList != 0) { + output.WriteRawTag(8); + output.WriteUInt32(UnlockedAmountList); + } + if (TotalAmountList != 0) { + output.WriteRawTag(32); + output.WriteUInt32(TotalAmountList); + } + if (MapInfoChestType != global::EggLink.DanhengServer.Proto.MapInfoChestType.None) { + output.WriteRawTag(112); + output.WriteEnum((int) MapInfoChestType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MapInfoChestType != global::EggLink.DanhengServer.Proto.MapInfoChestType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MapInfoChestType); + } + if (TotalAmountList != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalAmountList); + } + if (UnlockedAmountList != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UnlockedAmountList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MazeChest other) { + if (other == null) { + return; + } + if (other.MapInfoChestType != global::EggLink.DanhengServer.Proto.MapInfoChestType.None) { + MapInfoChestType = other.MapInfoChestType; + } + if (other.TotalAmountList != 0) { + TotalAmountList = other.TotalAmountList; + } + if (other.UnlockedAmountList != 0) { + UnlockedAmountList = other.UnlockedAmountList; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UnlockedAmountList = input.ReadUInt32(); + break; + } + case 32: { + TotalAmountList = input.ReadUInt32(); + break; + } + case 112: { + MapInfoChestType = (global::EggLink.DanhengServer.Proto.MapInfoChestType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UnlockedAmountList = input.ReadUInt32(); + break; + } + case 32: { + TotalAmountList = input.ReadUInt32(); + break; + } + case 112: { + MapInfoChestType = (global::EggLink.DanhengServer.Proto.MapInfoChestType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MazeGroup.cs b/Common/Proto/MazeGroup.cs new file mode 100644 index 00000000..ddbc0c13 --- /dev/null +++ b/Common/Proto/MazeGroup.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MazeGroup.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MazeGroup.proto + public static partial class MazeGroupReflection { + + #region Descriptor + /// File descriptor for MazeGroup.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MazeGroupReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9NYXplR3JvdXAucHJvdG8iMgoJTWF6ZUdyb3VwEhAKCGdyb3VwX2lkGAYg", + "ASgNEhMKC21vZGlmeV90aW1lGAIgASgDQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MazeGroup), global::EggLink.DanhengServer.Proto.MazeGroup.Parser, new[]{ "GroupId", "ModifyTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MazeGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MazeGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MazeGroupReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MazeGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MazeGroup(MazeGroup other) : this() { + groupId_ = other.groupId_; + modifyTime_ = other.modifyTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MazeGroup Clone() { + return new MazeGroup(this); + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 6; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "modify_time" field. + public const int ModifyTimeFieldNumber = 2; + private long modifyTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ModifyTime { + get { return modifyTime_; } + set { + modifyTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MazeGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MazeGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupId != other.GroupId) return false; + if (ModifyTime != other.ModifyTime) return false; + 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 (ModifyTime != 0L) hash ^= ModifyTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ModifyTime != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ModifyTime); + } + if (GroupId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ModifyTime != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ModifyTime); + } + if (GroupId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(GroupId); + } + if (_unknownFields != 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.ComputeUInt32Size(GroupId); + } + if (ModifyTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ModifyTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MazeGroup other) { + if (other == null) { + return; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.ModifyTime != 0L) { + ModifyTime = other.ModifyTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + ModifyTime = input.ReadInt64(); + break; + } + case 48: { + GroupId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + ModifyTime = input.ReadInt64(); + break; + } + case 48: { + GroupId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MazeMapData.cs b/Common/Proto/MazeMapData.cs new file mode 100644 index 00000000..bac8741a --- /dev/null +++ b/Common/Proto/MazeMapData.cs @@ -0,0 +1,448 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MazeMapData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MazeMapData.proto + public static partial class MazeMapDataReflection { + + #region Descriptor + /// File descriptor for MazeMapData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MazeMapDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFNYXplTWFwRGF0YS5wcm90bxoPTWF6ZUdyb3VwLnByb3RvGg9NYXplQ2hl", + "c3QucHJvdG8aDk1hemVQcm9wLnByb3RvIvkBCgtNYXplTWFwRGF0YRInChN1", + "bmxvY2tlZF9jaGVzdF9saXN0GAIgAygLMgouTWF6ZUNoZXN0EiMKD21hemVf", + "Z3JvdXBfbGlzdBgMIAMoCzIKLk1hemVHcm91cBIPCgdyZXRjb2RlGAEgASgN", + "EiEKDm1hemVfcHJvcF9saXN0GA4gAygLMgkuTWF6ZVByb3ASHAoUbGlnaHRl", + "bl9zZWN0aW9uX2xpc3QYCSADKA0SHgoWdW5sb2NrZWRfdGVsZXBvcnRfbGlz", + "dBgFIAMoDRIYChBjdXJfbWFwX2VudHJ5X2lkGAggASgNEhAKCGVudHJ5X2lk", + "GAcgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MazeGroupReflection.Descriptor, global::EggLink.DanhengServer.Proto.MazeChestReflection.Descriptor, global::EggLink.DanhengServer.Proto.MazePropReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MazeMapData), global::EggLink.DanhengServer.Proto.MazeMapData.Parser, new[]{ "UnlockedChestList", "MazeGroupList", "Retcode", "MazePropList", "LightenSectionList", "UnlockedTeleportList", "CurMapEntryId", "EntryId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MazeMapData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MazeMapData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MazeMapDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MazeMapData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MazeMapData(MazeMapData other) : this() { + unlockedChestList_ = other.unlockedChestList_.Clone(); + mazeGroupList_ = other.mazeGroupList_.Clone(); + retcode_ = other.retcode_; + mazePropList_ = other.mazePropList_.Clone(); + lightenSectionList_ = other.lightenSectionList_.Clone(); + unlockedTeleportList_ = other.unlockedTeleportList_.Clone(); + curMapEntryId_ = other.curMapEntryId_; + entryId_ = other.entryId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MazeMapData Clone() { + return new MazeMapData(this); + } + + /// Field number for the "unlocked_chest_list" field. + public const int UnlockedChestListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_unlockedChestList_codec + = pb::FieldCodec.ForMessage(18, global::EggLink.DanhengServer.Proto.MazeChest.Parser); + private readonly pbc::RepeatedField unlockedChestList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnlockedChestList { + get { return unlockedChestList_; } + } + + /// Field number for the "maze_group_list" field. + public const int MazeGroupListFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_mazeGroupList_codec + = pb::FieldCodec.ForMessage(98, global::EggLink.DanhengServer.Proto.MazeGroup.Parser); + private readonly pbc::RepeatedField mazeGroupList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MazeGroupList { + get { return mazeGroupList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "maze_prop_list" field. + public const int MazePropListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_mazePropList_codec + = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.MazeProp.Parser); + private readonly pbc::RepeatedField mazePropList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MazePropList { + get { return mazePropList_; } + } + + /// Field number for the "lighten_section_list" field. + public const int LightenSectionListFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_lightenSectionList_codec + = pb::FieldCodec.ForUInt32(74); + private readonly pbc::RepeatedField lightenSectionList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LightenSectionList { + get { return lightenSectionList_; } + } + + /// Field number for the "unlocked_teleport_list" field. + public const int UnlockedTeleportListFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_unlockedTeleportList_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField unlockedTeleportList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnlockedTeleportList { + get { return unlockedTeleportList_; } + } + + /// Field number for the "cur_map_entry_id" field. + public const int CurMapEntryIdFieldNumber = 8; + private uint curMapEntryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurMapEntryId { + get { return curMapEntryId_; } + set { + curMapEntryId_ = value; + } + } + + /// Field number for the "entry_id" field. + public const int EntryIdFieldNumber = 7; + private uint entryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntryId { + get { return entryId_; } + set { + entryId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MazeMapData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MazeMapData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!unlockedChestList_.Equals(other.unlockedChestList_)) return false; + if(!mazeGroupList_.Equals(other.mazeGroupList_)) return false; + if (Retcode != other.Retcode) return false; + if(!mazePropList_.Equals(other.mazePropList_)) return false; + if(!lightenSectionList_.Equals(other.lightenSectionList_)) return false; + if(!unlockedTeleportList_.Equals(other.unlockedTeleportList_)) return false; + if (CurMapEntryId != other.CurMapEntryId) return false; + if (EntryId != other.EntryId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= unlockedChestList_.GetHashCode(); + hash ^= mazeGroupList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + hash ^= mazePropList_.GetHashCode(); + hash ^= lightenSectionList_.GetHashCode(); + hash ^= unlockedTeleportList_.GetHashCode(); + if (CurMapEntryId != 0) hash ^= CurMapEntryId.GetHashCode(); + if (EntryId != 0) hash ^= EntryId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + unlockedChestList_.WriteTo(output, _repeated_unlockedChestList_codec); + unlockedTeleportList_.WriteTo(output, _repeated_unlockedTeleportList_codec); + if (EntryId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(EntryId); + } + if (CurMapEntryId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(CurMapEntryId); + } + lightenSectionList_.WriteTo(output, _repeated_lightenSectionList_codec); + mazeGroupList_.WriteTo(output, _repeated_mazeGroupList_codec); + mazePropList_.WriteTo(output, _repeated_mazePropList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + unlockedChestList_.WriteTo(ref output, _repeated_unlockedChestList_codec); + unlockedTeleportList_.WriteTo(ref output, _repeated_unlockedTeleportList_codec); + if (EntryId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(EntryId); + } + if (CurMapEntryId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(CurMapEntryId); + } + lightenSectionList_.WriteTo(ref output, _repeated_lightenSectionList_codec); + mazeGroupList_.WriteTo(ref output, _repeated_mazeGroupList_codec); + mazePropList_.WriteTo(ref output, _repeated_mazePropList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += unlockedChestList_.CalculateSize(_repeated_unlockedChestList_codec); + size += mazeGroupList_.CalculateSize(_repeated_mazeGroupList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + size += mazePropList_.CalculateSize(_repeated_mazePropList_codec); + size += lightenSectionList_.CalculateSize(_repeated_lightenSectionList_codec); + size += unlockedTeleportList_.CalculateSize(_repeated_unlockedTeleportList_codec); + if (CurMapEntryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurMapEntryId); + } + if (EntryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntryId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MazeMapData other) { + if (other == null) { + return; + } + unlockedChestList_.Add(other.unlockedChestList_); + mazeGroupList_.Add(other.mazeGroupList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + mazePropList_.Add(other.mazePropList_); + lightenSectionList_.Add(other.lightenSectionList_); + unlockedTeleportList_.Add(other.unlockedTeleportList_); + if (other.CurMapEntryId != 0) { + CurMapEntryId = other.CurMapEntryId; + } + if (other.EntryId != 0) { + EntryId = other.EntryId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 18: { + unlockedChestList_.AddEntriesFrom(input, _repeated_unlockedChestList_codec); + break; + } + case 42: + case 40: { + unlockedTeleportList_.AddEntriesFrom(input, _repeated_unlockedTeleportList_codec); + break; + } + case 56: { + EntryId = input.ReadUInt32(); + break; + } + case 64: { + CurMapEntryId = input.ReadUInt32(); + break; + } + case 74: + case 72: { + lightenSectionList_.AddEntriesFrom(input, _repeated_lightenSectionList_codec); + break; + } + case 98: { + mazeGroupList_.AddEntriesFrom(input, _repeated_mazeGroupList_codec); + break; + } + case 114: { + mazePropList_.AddEntriesFrom(input, _repeated_mazePropList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 18: { + unlockedChestList_.AddEntriesFrom(ref input, _repeated_unlockedChestList_codec); + break; + } + case 42: + case 40: { + unlockedTeleportList_.AddEntriesFrom(ref input, _repeated_unlockedTeleportList_codec); + break; + } + case 56: { + EntryId = input.ReadUInt32(); + break; + } + case 64: { + CurMapEntryId = input.ReadUInt32(); + break; + } + case 74: + case 72: { + lightenSectionList_.AddEntriesFrom(ref input, _repeated_lightenSectionList_codec); + break; + } + case 98: { + mazeGroupList_.AddEntriesFrom(ref input, _repeated_mazeGroupList_codec); + break; + } + case 114: { + mazePropList_.AddEntriesFrom(ref input, _repeated_mazePropList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MazeProp.cs b/Common/Proto/MazeProp.cs new file mode 100644 index 00000000..93beaafd --- /dev/null +++ b/Common/Proto/MazeProp.cs @@ -0,0 +1,308 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MazeProp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MazeProp.proto + public static partial class MazePropReflection { + + #region Descriptor + /// File descriptor for MazeProp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MazePropReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5NYXplUHJvcC5wcm90byI+CghNYXplUHJvcBINCgVzdGF0ZRgOIAEoDRIQ", + "Cghncm91cF9pZBgPIAEoDRIRCgljb25maWdfaWQYCCABKA1CHqoCG0VnZ0xp", + "bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MazeProp), global::EggLink.DanhengServer.Proto.MazeProp.Parser, new[]{ "State", "GroupId", "ConfigId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MazeProp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MazeProp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MazePropReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MazeProp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MazeProp(MazeProp other) : this() { + state_ = other.state_; + groupId_ = other.groupId_; + configId_ = other.configId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MazeProp Clone() { + return new MazeProp(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 14; + private uint state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 15; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "config_id" field. + public const int ConfigIdFieldNumber = 8; + private uint configId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ConfigId { + get { return configId_; } + set { + configId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MazeProp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MazeProp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (State != other.State) return false; + if (GroupId != other.GroupId) return false; + if (ConfigId != other.ConfigId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (State != 0) hash ^= State.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (ConfigId != 0) hash ^= ConfigId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ConfigId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ConfigId); + } + if (State != 0) { + output.WriteRawTag(112); + output.WriteUInt32(State); + } + if (GroupId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ConfigId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(ConfigId); + } + if (State != 0) { + output.WriteRawTag(112); + output.WriteUInt32(State); + } + if (GroupId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (State != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(State); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GroupId); + } + if (ConfigId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ConfigId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MazeProp other) { + if (other == null) { + return; + } + if (other.State != 0) { + State = other.State; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.ConfigId != 0) { + ConfigId = other.ConfigId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + ConfigId = input.ReadUInt32(); + break; + } + case 112: { + State = input.ReadUInt32(); + break; + } + case 120: { + GroupId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + ConfigId = input.ReadUInt32(); + break; + } + case 112: { + State = input.ReadUInt32(); + break; + } + case 120: { + GroupId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Mission.cs b/Common/Proto/Mission.cs new file mode 100644 index 00000000..35357858 --- /dev/null +++ b/Common/Proto/Mission.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Mission.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from Mission.proto + public static partial class MissionReflection { + + #region Descriptor + /// File descriptor for Mission.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MissionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg1NaXNzaW9uLnByb3RvGhNNaXNzaW9uU3RhdHVzLnByb3RvIkcKB01pc3Np", + "b24SEAoIcHJvZ3Jlc3MYBCABKA0SCgoCaWQYDiABKA0SHgoGc3RhdHVzGAgg", + "ASgOMg4uTWlzc2lvblN0YXR1c0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy", + "LlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MissionStatusReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Mission), global::EggLink.DanhengServer.Proto.Mission.Parser, new[]{ "Progress", "Id", "Status" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Mission : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Mission()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MissionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Mission() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Mission(Mission other) : this() { + progress_ = other.progress_; + id_ = other.id_; + status_ = other.status_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Mission Clone() { + return new Mission(this); + } + + /// Field number for the "progress" field. + public const int ProgressFieldNumber = 4; + private uint progress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Progress { + get { return progress_; } + set { + progress_ = value; + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 14; + 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 "status" field. + public const int StatusFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.MissionStatus status_ = global::EggLink.DanhengServer.Proto.MissionStatus.MissionNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MissionStatus Status { + get { return status_; } + set { + status_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Mission); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Mission other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Progress != other.Progress) return false; + if (Id != other.Id) return false; + if (Status != other.Status) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Progress != 0) hash ^= Progress.GetHashCode(); + if (Id != 0) hash ^= Id.GetHashCode(); + if (Status != global::EggLink.DanhengServer.Proto.MissionStatus.MissionNone) hash ^= Status.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Progress != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Progress); + } + if (Status != global::EggLink.DanhengServer.Proto.MissionStatus.MissionNone) { + output.WriteRawTag(64); + output.WriteEnum((int) Status); + } + if (Id != 0) { + output.WriteRawTag(112); + 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 (Progress != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Progress); + } + if (Status != global::EggLink.DanhengServer.Proto.MissionStatus.MissionNone) { + output.WriteRawTag(64); + output.WriteEnum((int) Status); + } + if (Id != 0) { + output.WriteRawTag(112); + 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 (Progress != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Progress); + } + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (Status != global::EggLink.DanhengServer.Proto.MissionStatus.MissionNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Mission other) { + if (other == null) { + return; + } + if (other.Progress != 0) { + Progress = other.Progress; + } + if (other.Id != 0) { + Id = other.Id; + } + if (other.Status != global::EggLink.DanhengServer.Proto.MissionStatus.MissionNone) { + Status = other.Status; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + Progress = input.ReadUInt32(); + break; + } + case 64: { + Status = (global::EggLink.DanhengServer.Proto.MissionStatus) input.ReadEnum(); + break; + } + case 112: { + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + Progress = input.ReadUInt32(); + break; + } + case 64: { + Status = (global::EggLink.DanhengServer.Proto.MissionStatus) input.ReadEnum(); + break; + } + case 112: { + Id = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MissionAcceptScNotify.cs b/Common/Proto/MissionAcceptScNotify.cs new file mode 100644 index 00000000..1c9533e5 --- /dev/null +++ b/Common/Proto/MissionAcceptScNotify.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MissionAcceptScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MissionAcceptScNotify.proto + public static partial class MissionAcceptScNotifyReflection { + + #region Descriptor + /// File descriptor for MissionAcceptScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MissionAcceptScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtNaXNzaW9uQWNjZXB0U2NOb3RpZnkucHJvdG8iKgoVTWlzc2lvbkFjY2Vw", + "dFNjTm90aWZ5EhEKCW1pc3Npb25JZBgOIAMoDUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MissionAcceptScNotify), global::EggLink.DanhengServer.Proto.MissionAcceptScNotify.Parser, new[]{ "MissionId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MissionAcceptScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MissionAcceptScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MissionAcceptScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MissionAcceptScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MissionAcceptScNotify(MissionAcceptScNotify other) : this() { + missionId_ = other.missionId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MissionAcceptScNotify Clone() { + return new MissionAcceptScNotify(this); + } + + /// Field number for the "missionId" field. + public const int MissionIdFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_missionId_codec + = pb::FieldCodec.ForUInt32(114); + private readonly pbc::RepeatedField missionId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MissionId { + get { return missionId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MissionAcceptScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MissionAcceptScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!missionId_.Equals(other.missionId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= missionId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + missionId_.WriteTo(output, _repeated_missionId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + missionId_.WriteTo(ref output, _repeated_missionId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += missionId_.CalculateSize(_repeated_missionId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MissionAcceptScNotify other) { + if (other == null) { + return; + } + missionId_.Add(other.missionId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: + case 112: { + missionId_.AddEntriesFrom(input, _repeated_missionId_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: + case 112: { + missionId_.AddEntriesFrom(ref input, _repeated_missionId_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MissionStatus.cs b/Common/Proto/MissionStatus.cs new file mode 100644 index 00000000..a426f5d8 --- /dev/null +++ b/Common/Proto/MissionStatus.cs @@ -0,0 +1,50 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MissionStatus.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MissionStatus.proto + public static partial class MissionStatusReflection { + + #region Descriptor + /// File descriptor for MissionStatus.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MissionStatusReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNNaXNzaW9uU3RhdHVzLnByb3RvKl4KDU1pc3Npb25TdGF0dXMSEAoMTUlT", + "U0lPTl9OT05FEAASEQoNTUlTU0lPTl9ET0lORxABEhIKDk1JU1NJT05fRklO", + "SVNIEAISFAoQTUlTU0lPTl9QUkVQQVJFRBADQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.MissionStatus), }, null, null)); + } + #endregion + + } + #region Enums + public enum MissionStatus { + [pbr::OriginalName("MISSION_NONE")] MissionNone = 0, + [pbr::OriginalName("MISSION_DOING")] MissionDoing = 1, + [pbr::OriginalName("MISSION_FINISH")] MissionFinish = 2, + [pbr::OriginalName("MISSION_PREPARED")] MissionPrepared = 3, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MissionSync.cs b/Common/Proto/MissionSync.cs new file mode 100644 index 00000000..396daf51 --- /dev/null +++ b/Common/Proto/MissionSync.cs @@ -0,0 +1,227 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MissionSync.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MissionSync.proto + public static partial class MissionSyncReflection { + + #region Descriptor + /// File descriptor for MissionSync.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MissionSyncReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFNaXNzaW9uU3luYy5wcm90bxoNTWlzc2lvbi5wcm90byItCgtNaXNzaW9u", + "U3luYxIeCgxtaXNzaW9uX2xpc3QYCyADKAsyCC5NaXNzaW9uQh6qAhtFZ2dM", + "aW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MissionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MissionSync), global::EggLink.DanhengServer.Proto.MissionSync.Parser, new[]{ "MissionList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MissionSync : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MissionSync()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MissionSyncReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MissionSync() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MissionSync(MissionSync other) : this() { + missionList_ = other.missionList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MissionSync Clone() { + return new MissionSync(this); + } + + /// Field number for the "mission_list" field. + public const int MissionListFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_missionList_codec + = pb::FieldCodec.ForMessage(90, global::EggLink.DanhengServer.Proto.Mission.Parser); + private readonly pbc::RepeatedField missionList_ = new pbc::RepeatedField(); + /// + ///repeated DNEKHJIABEB CMOJINNDGEN = 4; + ///repeated uint32 FIONPAOLEPH = 7; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MissionList { + get { return missionList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MissionSync); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MissionSync other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!missionList_.Equals(other.missionList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= missionList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + missionList_.WriteTo(output, _repeated_missionList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + missionList_.WriteTo(ref output, _repeated_missionList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += missionList_.CalculateSize(_repeated_missionList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MissionSync other) { + if (other == null) { + return; + } + missionList_.Add(other.missionList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 90: { + missionList_.AddEntriesFrom(input, _repeated_missionList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 90: { + missionList_.AddEntriesFrom(ref input, _repeated_missionList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MonsterArchive.cs b/Common/Proto/MonsterArchive.cs new file mode 100644 index 00000000..838fbd69 --- /dev/null +++ b/Common/Proto/MonsterArchive.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MonsterArchive.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MonsterArchive.proto + public static partial class MonsterArchiveReflection { + + #region Descriptor + /// File descriptor for MonsterArchive.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MonsterArchiveReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRNb25zdGVyQXJjaGl2ZS5wcm90byIxCg5Nb25zdGVyQXJjaGl2ZRILCgNu", + "dW0YDSABKA0SEgoKbW9uc3Rlcl9pZBgBIAEoDUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MonsterArchive), global::EggLink.DanhengServer.Proto.MonsterArchive.Parser, new[]{ "Num", "MonsterId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MonsterArchive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonsterArchive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MonsterArchiveReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterArchive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterArchive(MonsterArchive other) : this() { + num_ = other.num_; + monsterId_ = other.monsterId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MonsterArchive Clone() { + return new MonsterArchive(this); + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 13; + private uint num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Num { + get { return num_; } + set { + num_ = value; + } + } + + /// Field number for the "monster_id" field. + public const int MonsterIdFieldNumber = 1; + private uint monsterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MonsterId { + get { return monsterId_; } + set { + monsterId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MonsterArchive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MonsterArchive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Num != other.Num) return false; + if (MonsterId != other.MonsterId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Num != 0) hash ^= Num.GetHashCode(); + if (MonsterId != 0) hash ^= MonsterId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MonsterId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(MonsterId); + } + if (Num != 0) { + output.WriteRawTag(104); + output.WriteUInt32(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 (MonsterId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(MonsterId); + } + if (Num != 0) { + output.WriteRawTag(104); + output.WriteUInt32(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 (Num != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Num); + } + if (MonsterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MonsterId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MonsterArchive other) { + if (other == null) { + return; + } + if (other.Num != 0) { + Num = other.Num; + } + if (other.MonsterId != 0) { + MonsterId = other.MonsterId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MonsterId = input.ReadUInt32(); + break; + } + case 104: { + Num = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MonsterId = input.ReadUInt32(); + break; + } + case 104: { + Num = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MotionInfo.cs b/Common/Proto/MotionInfo.cs new file mode 100644 index 00000000..a4358400 --- /dev/null +++ b/Common/Proto/MotionInfo.cs @@ -0,0 +1,289 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MotionInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MotionInfo.proto + public static partial class MotionInfoReflection { + + #region Descriptor + /// File descriptor for MotionInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MotionInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBNb3Rpb25JbmZvLnByb3RvGgxWZWN0b3IucHJvdG8iOAoKTW90aW9uSW5m", + "bxIUCgNwb3MYDSABKAsyBy5WZWN0b3ISFAoDcm90GAkgASgLMgcuVmVjdG9y", + "Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.VectorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MotionInfo), global::EggLink.DanhengServer.Proto.MotionInfo.Parser, new[]{ "Pos", "Rot" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MotionInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MotionInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.MotionInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MotionInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MotionInfo(MotionInfo other) : this() { + pos_ = other.pos_ != null ? other.pos_.Clone() : null; + rot_ = other.rot_ != null ? other.rot_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MotionInfo Clone() { + return new MotionInfo(this); + } + + /// Field number for the "pos" field. + public const int PosFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.Vector pos_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.Vector Pos { + get { return pos_; } + set { + pos_ = value; + } + } + + /// Field number for the "rot" field. + public const int RotFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.Vector rot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.Vector Rot { + get { return rot_; } + set { + rot_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MotionInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MotionInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Pos, other.Pos)) return false; + if (!object.Equals(Rot, other.Rot)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (pos_ != null) hash ^= Pos.GetHashCode(); + if (rot_ != null) hash ^= Rot.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rot_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Rot); + } + if (pos_ != null) { + output.WriteRawTag(106); + output.WriteMessage(Pos); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rot_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Rot); + } + if (pos_ != null) { + output.WriteRawTag(106); + output.WriteMessage(Pos); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (pos_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Pos); + } + if (rot_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rot); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MotionInfo other) { + if (other == null) { + return; + } + if (other.pos_ != null) { + if (pos_ == null) { + Pos = new global::EggLink.DanhengServer.Proto.Vector(); + } + Pos.MergeFrom(other.Pos); + } + if (other.rot_ != null) { + if (rot_ == null) { + Rot = new global::EggLink.DanhengServer.Proto.Vector(); + } + Rot.MergeFrom(other.Rot); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 74: { + if (rot_ == null) { + Rot = new global::EggLink.DanhengServer.Proto.Vector(); + } + input.ReadMessage(Rot); + break; + } + case 106: { + if (pos_ == null) { + Pos = new global::EggLink.DanhengServer.Proto.Vector(); + } + input.ReadMessage(Pos); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 74: { + if (rot_ == null) { + Rot = new global::EggLink.DanhengServer.Proto.Vector(); + } + input.ReadMessage(Rot); + break; + } + case 106: { + if (pos_ == null) { + Pos = new global::EggLink.DanhengServer.Proto.Vector(); + } + input.ReadMessage(Pos); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/MsgType.cs b/Common/Proto/MsgType.cs new file mode 100644 index 00000000..aea372fb --- /dev/null +++ b/Common/Proto/MsgType.cs @@ -0,0 +1,48 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MsgType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from MsgType.proto + public static partial class MsgTypeReflection { + + #region Descriptor + /// File descriptor for MsgType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MsgTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg1Nc2dUeXBlLnByb3RvKkoKB01zZ1R5cGUSEQoNTVNHX1RZUEVfTk9ORRAA", + "EhgKFE1TR19UWVBFX0NVU1RPTV9URVhUEAESEgoOTVNHX1RZUEVfRU1PSkkQ", + "AkIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.MsgType), }, null, null)); + } + #endregion + + } + #region Enums + public enum MsgType { + [pbr::OriginalName("MSG_TYPE_NONE")] None = 0, + [pbr::OriginalName("MSG_TYPE_CUSTOM_TEXT")] CustomText = 1, + [pbr::OriginalName("MSG_TYPE_EMOJI")] Emoji = 2, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/NewMailScNotify.cs b/Common/Proto/NewMailScNotify.cs new file mode 100644 index 00000000..b266e2a9 --- /dev/null +++ b/Common/Proto/NewMailScNotify.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: NewMailScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from NewMailScNotify.proto + public static partial class NewMailScNotifyReflection { + + #region Descriptor + /// File descriptor for NewMailScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static NewMailScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVOZXdNYWlsU2NOb3RpZnkucHJvdG8iJwoPTmV3TWFpbFNjTm90aWZ5EhQK", + "DG1haWxfaWRfbGlzdBgBIAMoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy", + "LlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.NewMailScNotify), global::EggLink.DanhengServer.Proto.NewMailScNotify.Parser, new[]{ "MailIdList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NewMailScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewMailScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.NewMailScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NewMailScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NewMailScNotify(NewMailScNotify other) : this() { + mailIdList_ = other.mailIdList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NewMailScNotify Clone() { + return new NewMailScNotify(this); + } + + /// Field number for the "mail_id_list" field. + public const int MailIdListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_mailIdList_codec + = pb::FieldCodec.ForUInt32(10); + private readonly pbc::RepeatedField mailIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MailIdList { + get { return mailIdList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NewMailScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NewMailScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!mailIdList_.Equals(other.mailIdList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= mailIdList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + mailIdList_.WriteTo(output, _repeated_mailIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + mailIdList_.WriteTo(ref output, _repeated_mailIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += mailIdList_.CalculateSize(_repeated_mailIdList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NewMailScNotify other) { + if (other == null) { + return; + } + mailIdList_.Add(other.mailIdList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + mailIdList_.AddEntriesFrom(input, _repeated_mailIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + mailIdList_.AddEntriesFrom(ref input, _repeated_mailIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/NpcExtraInfo.cs b/Common/Proto/NpcExtraInfo.cs new file mode 100644 index 00000000..a4a613b5 --- /dev/null +++ b/Common/Proto/NpcExtraInfo.cs @@ -0,0 +1,243 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: NpcExtraInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from NpcExtraInfo.proto + public static partial class NpcExtraInfoReflection { + + #region Descriptor + /// File descriptor for NpcExtraInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static NpcExtraInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJOcGNFeHRyYUluZm8ucHJvdG8aEk5wY1JvZ3VlSW5mby5wcm90byIxCgxO", + "cGNFeHRyYUluZm8SIQoKcm9ndWVfaW5mbxgIIAEoCzINLk5wY1JvZ3VlSW5m", + "b0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.NpcRogueInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.NpcExtraInfo), global::EggLink.DanhengServer.Proto.NpcExtraInfo.Parser, new[]{ "RogueInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NpcExtraInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NpcExtraInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.NpcExtraInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcExtraInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcExtraInfo(NpcExtraInfo other) : this() { + rogueInfo_ = other.rogueInfo_ != null ? other.rogueInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcExtraInfo Clone() { + return new NpcExtraInfo(this); + } + + /// Field number for the "rogue_info" field. + public const int RogueInfoFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.NpcRogueInfo rogueInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.NpcRogueInfo RogueInfo { + get { return rogueInfo_; } + set { + rogueInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NpcExtraInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NpcExtraInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueInfo, other.RogueInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueInfo_ != null) hash ^= RogueInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rogueInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(RogueInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rogueInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(RogueInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NpcExtraInfo other) { + if (other == null) { + return; + } + if (other.rogueInfo_ != null) { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.NpcRogueInfo(); + } + RogueInfo.MergeFrom(other.RogueInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.NpcRogueInfo(); + } + input.ReadMessage(RogueInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.NpcRogueInfo(); + } + input.ReadMessage(RogueInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/NpcRogueInfo.cs b/Common/Proto/NpcRogueInfo.cs new file mode 100644 index 00000000..0d14a770 --- /dev/null +++ b/Common/Proto/NpcRogueInfo.cs @@ -0,0 +1,490 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: NpcRogueInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from NpcRogueInfo.proto + public static partial class NpcRogueInfoReflection { + + #region Descriptor + /// File descriptor for NpcRogueInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static NpcRogueInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJOcGNSb2d1ZUluZm8ucHJvdG8ijQIKDE5wY1JvZ3VlSW5mbxIzCgtIQ0dP", + "RUhMUENNRBgBIAMoCzIeLk5wY1JvZ3VlSW5mby5IQ0dPRUhMUENNREVudHJ5", + "EhMKC0FHQkZESUlLUEtGGA0gASgIEhcKD2ZpbmlzaF9kaWFsb2d1ZRgFIAEo", + "CBIUCgxyb2d1ZV9ucGNfaWQYBiABKA0SEQoJdW5pcXVlX2lkGA8gASgNEhMK", + "C0lOSlBGQUxNREhKGAwgASgNEhMKC0dFTk1JRk9DTUpBGBUgASgNEhMKC01O", + "SU5EQk1BSktMGAcgASgIGjIKEEhDR09FSExQQ01ERW50cnkSCwoDa2V5GAEg", + "ASgNEg0KBXZhbHVlGAIgASgNOgI4AUIeqgIbRWdnTGluay5EYW5oZW5nU2Vy", + "dmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.NpcRogueInfo), global::EggLink.DanhengServer.Proto.NpcRogueInfo.Parser, new[]{ "HCGOEHLPCMD", "AGBFDIIKPKF", "FinishDialogue", "RogueNpcId", "UniqueId", "INJPFALMDHJ", "GENMIFOCMJA", "MNINDBMAJKL" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NpcRogueInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NpcRogueInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.NpcRogueInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcRogueInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcRogueInfo(NpcRogueInfo other) : this() { + hCGOEHLPCMD_ = other.hCGOEHLPCMD_.Clone(); + aGBFDIIKPKF_ = other.aGBFDIIKPKF_; + finishDialogue_ = other.finishDialogue_; + rogueNpcId_ = other.rogueNpcId_; + uniqueId_ = other.uniqueId_; + iNJPFALMDHJ_ = other.iNJPFALMDHJ_; + gENMIFOCMJA_ = other.gENMIFOCMJA_; + mNINDBMAJKL_ = other.mNINDBMAJKL_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcRogueInfo Clone() { + return new NpcRogueInfo(this); + } + + /// Field number for the "HCGOEHLPCMD" field. + public const int HCGOEHLPCMDFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_hCGOEHLPCMD_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 10); + private readonly pbc::MapField hCGOEHLPCMD_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField HCGOEHLPCMD { + get { return hCGOEHLPCMD_; } + } + + /// Field number for the "AGBFDIIKPKF" field. + public const int AGBFDIIKPKFFieldNumber = 13; + private bool aGBFDIIKPKF_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AGBFDIIKPKF { + get { return aGBFDIIKPKF_; } + set { + aGBFDIIKPKF_ = value; + } + } + + /// Field number for the "finish_dialogue" field. + public const int FinishDialogueFieldNumber = 5; + private bool finishDialogue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool FinishDialogue { + get { return finishDialogue_; } + set { + finishDialogue_ = value; + } + } + + /// Field number for the "rogue_npc_id" field. + public const int RogueNpcIdFieldNumber = 6; + private uint rogueNpcId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RogueNpcId { + get { return rogueNpcId_; } + set { + rogueNpcId_ = value; + } + } + + /// Field number for the "unique_id" field. + public const int UniqueIdFieldNumber = 15; + private uint uniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UniqueId { + get { return uniqueId_; } + set { + uniqueId_ = value; + } + } + + /// Field number for the "INJPFALMDHJ" field. + public const int INJPFALMDHJFieldNumber = 12; + private uint iNJPFALMDHJ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint INJPFALMDHJ { + get { return iNJPFALMDHJ_; } + set { + iNJPFALMDHJ_ = value; + } + } + + /// Field number for the "GENMIFOCMJA" field. + public const int GENMIFOCMJAFieldNumber = 21; + private uint gENMIFOCMJA_; + /// + ///repeated KELFICDMDDG CEEFGPGODAA = 9; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GENMIFOCMJA { + get { return gENMIFOCMJA_; } + set { + gENMIFOCMJA_ = value; + } + } + + /// Field number for the "MNINDBMAJKL" field. + public const int MNINDBMAJKLFieldNumber = 7; + private bool mNINDBMAJKL_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool MNINDBMAJKL { + get { return mNINDBMAJKL_; } + set { + mNINDBMAJKL_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NpcRogueInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NpcRogueInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!HCGOEHLPCMD.Equals(other.HCGOEHLPCMD)) return false; + if (AGBFDIIKPKF != other.AGBFDIIKPKF) return false; + if (FinishDialogue != other.FinishDialogue) return false; + if (RogueNpcId != other.RogueNpcId) return false; + if (UniqueId != other.UniqueId) return false; + if (INJPFALMDHJ != other.INJPFALMDHJ) return false; + if (GENMIFOCMJA != other.GENMIFOCMJA) return false; + if (MNINDBMAJKL != other.MNINDBMAJKL) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= HCGOEHLPCMD.GetHashCode(); + if (AGBFDIIKPKF != false) hash ^= AGBFDIIKPKF.GetHashCode(); + if (FinishDialogue != false) hash ^= FinishDialogue.GetHashCode(); + if (RogueNpcId != 0) hash ^= RogueNpcId.GetHashCode(); + if (UniqueId != 0) hash ^= UniqueId.GetHashCode(); + if (INJPFALMDHJ != 0) hash ^= INJPFALMDHJ.GetHashCode(); + if (GENMIFOCMJA != 0) hash ^= GENMIFOCMJA.GetHashCode(); + if (MNINDBMAJKL != false) hash ^= MNINDBMAJKL.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + hCGOEHLPCMD_.WriteTo(output, _map_hCGOEHLPCMD_codec); + if (FinishDialogue != false) { + output.WriteRawTag(40); + output.WriteBool(FinishDialogue); + } + if (RogueNpcId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(RogueNpcId); + } + if (MNINDBMAJKL != false) { + output.WriteRawTag(56); + output.WriteBool(MNINDBMAJKL); + } + if (INJPFALMDHJ != 0) { + output.WriteRawTag(96); + output.WriteUInt32(INJPFALMDHJ); + } + if (AGBFDIIKPKF != false) { + output.WriteRawTag(104); + output.WriteBool(AGBFDIIKPKF); + } + if (UniqueId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(UniqueId); + } + if (GENMIFOCMJA != 0) { + output.WriteRawTag(168, 1); + output.WriteUInt32(GENMIFOCMJA); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + hCGOEHLPCMD_.WriteTo(ref output, _map_hCGOEHLPCMD_codec); + if (FinishDialogue != false) { + output.WriteRawTag(40); + output.WriteBool(FinishDialogue); + } + if (RogueNpcId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(RogueNpcId); + } + if (MNINDBMAJKL != false) { + output.WriteRawTag(56); + output.WriteBool(MNINDBMAJKL); + } + if (INJPFALMDHJ != 0) { + output.WriteRawTag(96); + output.WriteUInt32(INJPFALMDHJ); + } + if (AGBFDIIKPKF != false) { + output.WriteRawTag(104); + output.WriteBool(AGBFDIIKPKF); + } + if (UniqueId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(UniqueId); + } + if (GENMIFOCMJA != 0) { + output.WriteRawTag(168, 1); + output.WriteUInt32(GENMIFOCMJA); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += hCGOEHLPCMD_.CalculateSize(_map_hCGOEHLPCMD_codec); + if (AGBFDIIKPKF != false) { + size += 1 + 1; + } + if (FinishDialogue != false) { + size += 1 + 1; + } + if (RogueNpcId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RogueNpcId); + } + if (UniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UniqueId); + } + if (INJPFALMDHJ != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(INJPFALMDHJ); + } + if (GENMIFOCMJA != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GENMIFOCMJA); + } + if (MNINDBMAJKL != 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(NpcRogueInfo other) { + if (other == null) { + return; + } + hCGOEHLPCMD_.MergeFrom(other.hCGOEHLPCMD_); + if (other.AGBFDIIKPKF != false) { + AGBFDIIKPKF = other.AGBFDIIKPKF; + } + if (other.FinishDialogue != false) { + FinishDialogue = other.FinishDialogue; + } + if (other.RogueNpcId != 0) { + RogueNpcId = other.RogueNpcId; + } + if (other.UniqueId != 0) { + UniqueId = other.UniqueId; + } + if (other.INJPFALMDHJ != 0) { + INJPFALMDHJ = other.INJPFALMDHJ; + } + if (other.GENMIFOCMJA != 0) { + GENMIFOCMJA = other.GENMIFOCMJA; + } + if (other.MNINDBMAJKL != false) { + MNINDBMAJKL = other.MNINDBMAJKL; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + hCGOEHLPCMD_.AddEntriesFrom(input, _map_hCGOEHLPCMD_codec); + break; + } + case 40: { + FinishDialogue = input.ReadBool(); + break; + } + case 48: { + RogueNpcId = input.ReadUInt32(); + break; + } + case 56: { + MNINDBMAJKL = input.ReadBool(); + break; + } + case 96: { + INJPFALMDHJ = input.ReadUInt32(); + break; + } + case 104: { + AGBFDIIKPKF = input.ReadBool(); + break; + } + case 120: { + UniqueId = input.ReadUInt32(); + break; + } + case 168: { + GENMIFOCMJA = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + hCGOEHLPCMD_.AddEntriesFrom(ref input, _map_hCGOEHLPCMD_codec); + break; + } + case 40: { + FinishDialogue = input.ReadBool(); + break; + } + case 48: { + RogueNpcId = input.ReadUInt32(); + break; + } + case 56: { + MNINDBMAJKL = input.ReadBool(); + break; + } + case 96: { + INJPFALMDHJ = input.ReadUInt32(); + break; + } + case 104: { + AGBFDIIKPKF = input.ReadBool(); + break; + } + case 120: { + UniqueId = input.ReadUInt32(); + break; + } + case 168: { + GENMIFOCMJA = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/NpcTalkInfo.cs b/Common/Proto/NpcTalkInfo.cs new file mode 100644 index 00000000..c86eb9d3 --- /dev/null +++ b/Common/Proto/NpcTalkInfo.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: NpcTalkInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from NpcTalkInfo.proto + public static partial class NpcTalkInfoReflection { + + #region Descriptor + /// File descriptor for NpcTalkInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static NpcTalkInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFOcGNUYWxrSW5mby5wcm90byIiCgtOcGNUYWxrSW5mbxITCgtucGNfdGFs", + "a19pZBgDIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.NpcTalkInfo), global::EggLink.DanhengServer.Proto.NpcTalkInfo.Parser, new[]{ "NpcTalkId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NpcTalkInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NpcTalkInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.NpcTalkInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcTalkInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcTalkInfo(NpcTalkInfo other) : this() { + npcTalkId_ = other.npcTalkId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcTalkInfo Clone() { + return new NpcTalkInfo(this); + } + + /// Field number for the "npc_talk_id" field. + public const int NpcTalkIdFieldNumber = 3; + private uint npcTalkId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NpcTalkId { + get { return npcTalkId_; } + set { + npcTalkId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NpcTalkInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NpcTalkInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NpcTalkId != other.NpcTalkId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (NpcTalkId != 0) hash ^= NpcTalkId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (NpcTalkId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(NpcTalkId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (NpcTalkId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(NpcTalkId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (NpcTalkId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NpcTalkId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NpcTalkInfo other) { + if (other == null) { + return; + } + if (other.NpcTalkId != 0) { + NpcTalkId = other.NpcTalkId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + NpcTalkId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + NpcTalkId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/OFHBFINPHAG.cs b/Common/Proto/OFHBFINPHAG.cs new file mode 100644 index 00000000..686e3aae --- /dev/null +++ b/Common/Proto/OFHBFINPHAG.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: OFHBFINPHAG.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from OFHBFINPHAG.proto + public static partial class OFHBFINPHAGReflection { + + #region Descriptor + /// File descriptor for OFHBFINPHAG.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static OFHBFINPHAGReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFPRkhCRklOUEhBRy5wcm90byIiCgtPRkhCRklOUEhBRxITCgtBQUxMQ09C", + "S0lEQhgOIAMoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.OFHBFINPHAG), global::EggLink.DanhengServer.Proto.OFHBFINPHAG.Parser, new[]{ "AALLCOBKIDB" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OFHBFINPHAG : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OFHBFINPHAG()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.OFHBFINPHAGReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OFHBFINPHAG() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OFHBFINPHAG(OFHBFINPHAG other) : this() { + aALLCOBKIDB_ = other.aALLCOBKIDB_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OFHBFINPHAG Clone() { + return new OFHBFINPHAG(this); + } + + /// Field number for the "AALLCOBKIDB" field. + public const int AALLCOBKIDBFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_aALLCOBKIDB_codec + = pb::FieldCodec.ForUInt32(114); + private readonly pbc::RepeatedField aALLCOBKIDB_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AALLCOBKIDB { + get { return aALLCOBKIDB_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OFHBFINPHAG); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OFHBFINPHAG other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!aALLCOBKIDB_.Equals(other.aALLCOBKIDB_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= aALLCOBKIDB_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + aALLCOBKIDB_.WriteTo(output, _repeated_aALLCOBKIDB_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + aALLCOBKIDB_.WriteTo(ref output, _repeated_aALLCOBKIDB_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += aALLCOBKIDB_.CalculateSize(_repeated_aALLCOBKIDB_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OFHBFINPHAG other) { + if (other == null) { + return; + } + aALLCOBKIDB_.Add(other.aALLCOBKIDB_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: + case 112: { + aALLCOBKIDB_.AddEntriesFrom(input, _repeated_aALLCOBKIDB_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: + case 112: { + aALLCOBKIDB_.AddEntriesFrom(ref input, _repeated_aALLCOBKIDB_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PVEBattleResultCsReq.cs b/Common/Proto/PVEBattleResultCsReq.cs new file mode 100644 index 00000000..b6723313 --- /dev/null +++ b/Common/Proto/PVEBattleResultCsReq.cs @@ -0,0 +1,534 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PVEBattleResultCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PVEBattleResultCsReq.proto + public static partial class PVEBattleResultCsReqReflection { + + #region Descriptor + /// File descriptor for PVEBattleResultCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PVEBattleResultCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpQVkVCYXR0bGVSZXN1bHRDc1JlcS5wcm90bxoVQmF0dGxlRW5kU3RhdHVz", + "LnByb3RvGg5CYXR0bGVPcC5wcm90bxoWQmF0dGxlU3RhdGlzdGljcy5wcm90", + "byKMAgoUUFZFQmF0dGxlUmVzdWx0Q3NSZXESGgoSdHVybl9zbmFwc2hvdF9o", + "YXNoGA0gASgMEhoKEmNsaWVudF9yZXNfdmVyc2lvbhgCIAEoDRIeCgNzdHQY", + "CCABKAsyES5CYXR0bGVTdGF0aXN0aWNzEhAKCHN0YWdlX2lkGAsgASgNEhEK", + "CWJhdHRsZV9pZBgDIAEoDRIkCgplbmRfc3RhdHVzGAwgASgOMhAuQmF0dGxl", + "RW5kU3RhdHVzEiIKGmlzX2FpX2NvbnNpZGVyX3VsdHJhX3NraWxsGA8gASgI", + "EhEKCWNvc3RfdGltZRgOIAEoDRIaCgdvcF9saXN0GAEgAygLMgkuQmF0dGxl", + "T3BCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BattleEndStatusReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleOpReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleStatisticsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PVEBattleResultCsReq), global::EggLink.DanhengServer.Proto.PVEBattleResultCsReq.Parser, new[]{ "TurnSnapshotHash", "ClientResVersion", "Stt", "StageId", "BattleId", "EndStatus", "IsAiConsiderUltraSkill", "CostTime", "OpList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PVEBattleResultCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PVEBattleResultCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PVEBattleResultCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PVEBattleResultCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PVEBattleResultCsReq(PVEBattleResultCsReq other) : this() { + turnSnapshotHash_ = other.turnSnapshotHash_; + clientResVersion_ = other.clientResVersion_; + stt_ = other.stt_ != null ? other.stt_.Clone() : null; + stageId_ = other.stageId_; + battleId_ = other.battleId_; + endStatus_ = other.endStatus_; + isAiConsiderUltraSkill_ = other.isAiConsiderUltraSkill_; + costTime_ = other.costTime_; + opList_ = other.opList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PVEBattleResultCsReq Clone() { + return new PVEBattleResultCsReq(this); + } + + /// Field number for the "turn_snapshot_hash" field. + public const int TurnSnapshotHashFieldNumber = 13; + private pb::ByteString turnSnapshotHash_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString TurnSnapshotHash { + get { return turnSnapshotHash_; } + set { + turnSnapshotHash_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "client_res_version" field. + public const int ClientResVersionFieldNumber = 2; + private uint clientResVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClientResVersion { + get { return clientResVersion_; } + set { + clientResVersion_ = value; + } + } + + /// Field number for the "stt" field. + public const int SttFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.BattleStatistics stt_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.BattleStatistics Stt { + get { return stt_; } + set { + stt_ = value; + } + } + + /// Field number for the "stage_id" field. + public const int StageIdFieldNumber = 11; + private uint stageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StageId { + get { return stageId_; } + set { + stageId_ = value; + } + } + + /// Field number for the "battle_id" field. + public const int BattleIdFieldNumber = 3; + private uint battleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BattleId { + get { return battleId_; } + set { + battleId_ = value; + } + } + + /// Field number for the "end_status" field. + public const int EndStatusFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.BattleEndStatus endStatus_ = global::EggLink.DanhengServer.Proto.BattleEndStatus.BattleEndNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.BattleEndStatus EndStatus { + get { return endStatus_; } + set { + endStatus_ = value; + } + } + + /// Field number for the "is_ai_consider_ultra_skill" field. + public const int IsAiConsiderUltraSkillFieldNumber = 15; + private bool isAiConsiderUltraSkill_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAiConsiderUltraSkill { + get { return isAiConsiderUltraSkill_; } + set { + isAiConsiderUltraSkill_ = value; + } + } + + /// Field number for the "cost_time" field. + public const int CostTimeFieldNumber = 14; + private uint costTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CostTime { + get { return costTime_; } + set { + costTime_ = value; + } + } + + /// Field number for the "op_list" field. + public const int OpListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_opList_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.BattleOp.Parser); + private readonly pbc::RepeatedField opList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OpList { + get { return opList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PVEBattleResultCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PVEBattleResultCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TurnSnapshotHash != other.TurnSnapshotHash) return false; + if (ClientResVersion != other.ClientResVersion) return false; + if (!object.Equals(Stt, other.Stt)) return false; + if (StageId != other.StageId) return false; + if (BattleId != other.BattleId) return false; + if (EndStatus != other.EndStatus) return false; + if (IsAiConsiderUltraSkill != other.IsAiConsiderUltraSkill) return false; + if (CostTime != other.CostTime) return false; + if(!opList_.Equals(other.opList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TurnSnapshotHash.Length != 0) hash ^= TurnSnapshotHash.GetHashCode(); + if (ClientResVersion != 0) hash ^= ClientResVersion.GetHashCode(); + if (stt_ != null) hash ^= Stt.GetHashCode(); + if (StageId != 0) hash ^= StageId.GetHashCode(); + if (BattleId != 0) hash ^= BattleId.GetHashCode(); + if (EndStatus != global::EggLink.DanhengServer.Proto.BattleEndStatus.BattleEndNone) hash ^= EndStatus.GetHashCode(); + if (IsAiConsiderUltraSkill != false) hash ^= IsAiConsiderUltraSkill.GetHashCode(); + if (CostTime != 0) hash ^= CostTime.GetHashCode(); + hash ^= opList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + opList_.WriteTo(output, _repeated_opList_codec); + if (ClientResVersion != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ClientResVersion); + } + if (BattleId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(BattleId); + } + if (stt_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Stt); + } + if (StageId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(StageId); + } + if (EndStatus != global::EggLink.DanhengServer.Proto.BattleEndStatus.BattleEndNone) { + output.WriteRawTag(96); + output.WriteEnum((int) EndStatus); + } + if (TurnSnapshotHash.Length != 0) { + output.WriteRawTag(106); + output.WriteBytes(TurnSnapshotHash); + } + if (CostTime != 0) { + output.WriteRawTag(112); + output.WriteUInt32(CostTime); + } + if (IsAiConsiderUltraSkill != false) { + output.WriteRawTag(120); + output.WriteBool(IsAiConsiderUltraSkill); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + opList_.WriteTo(ref output, _repeated_opList_codec); + if (ClientResVersion != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ClientResVersion); + } + if (BattleId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(BattleId); + } + if (stt_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Stt); + } + if (StageId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(StageId); + } + if (EndStatus != global::EggLink.DanhengServer.Proto.BattleEndStatus.BattleEndNone) { + output.WriteRawTag(96); + output.WriteEnum((int) EndStatus); + } + if (TurnSnapshotHash.Length != 0) { + output.WriteRawTag(106); + output.WriteBytes(TurnSnapshotHash); + } + if (CostTime != 0) { + output.WriteRawTag(112); + output.WriteUInt32(CostTime); + } + if (IsAiConsiderUltraSkill != false) { + output.WriteRawTag(120); + output.WriteBool(IsAiConsiderUltraSkill); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TurnSnapshotHash.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(TurnSnapshotHash); + } + if (ClientResVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClientResVersion); + } + if (stt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stt); + } + if (StageId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StageId); + } + if (BattleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BattleId); + } + if (EndStatus != global::EggLink.DanhengServer.Proto.BattleEndStatus.BattleEndNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EndStatus); + } + if (IsAiConsiderUltraSkill != false) { + size += 1 + 1; + } + if (CostTime != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CostTime); + } + size += opList_.CalculateSize(_repeated_opList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PVEBattleResultCsReq other) { + if (other == null) { + return; + } + if (other.TurnSnapshotHash.Length != 0) { + TurnSnapshotHash = other.TurnSnapshotHash; + } + if (other.ClientResVersion != 0) { + ClientResVersion = other.ClientResVersion; + } + if (other.stt_ != null) { + if (stt_ == null) { + Stt = new global::EggLink.DanhengServer.Proto.BattleStatistics(); + } + Stt.MergeFrom(other.Stt); + } + if (other.StageId != 0) { + StageId = other.StageId; + } + if (other.BattleId != 0) { + BattleId = other.BattleId; + } + if (other.EndStatus != global::EggLink.DanhengServer.Proto.BattleEndStatus.BattleEndNone) { + EndStatus = other.EndStatus; + } + if (other.IsAiConsiderUltraSkill != false) { + IsAiConsiderUltraSkill = other.IsAiConsiderUltraSkill; + } + if (other.CostTime != 0) { + CostTime = other.CostTime; + } + opList_.Add(other.opList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + opList_.AddEntriesFrom(input, _repeated_opList_codec); + break; + } + case 16: { + ClientResVersion = input.ReadUInt32(); + break; + } + case 24: { + BattleId = input.ReadUInt32(); + break; + } + case 66: { + if (stt_ == null) { + Stt = new global::EggLink.DanhengServer.Proto.BattleStatistics(); + } + input.ReadMessage(Stt); + break; + } + case 88: { + StageId = input.ReadUInt32(); + break; + } + case 96: { + EndStatus = (global::EggLink.DanhengServer.Proto.BattleEndStatus) input.ReadEnum(); + break; + } + case 106: { + TurnSnapshotHash = input.ReadBytes(); + break; + } + case 112: { + CostTime = input.ReadUInt32(); + break; + } + case 120: { + IsAiConsiderUltraSkill = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + opList_.AddEntriesFrom(ref input, _repeated_opList_codec); + break; + } + case 16: { + ClientResVersion = input.ReadUInt32(); + break; + } + case 24: { + BattleId = input.ReadUInt32(); + break; + } + case 66: { + if (stt_ == null) { + Stt = new global::EggLink.DanhengServer.Proto.BattleStatistics(); + } + input.ReadMessage(Stt); + break; + } + case 88: { + StageId = input.ReadUInt32(); + break; + } + case 96: { + EndStatus = (global::EggLink.DanhengServer.Proto.BattleEndStatus) input.ReadEnum(); + break; + } + case 106: { + TurnSnapshotHash = input.ReadBytes(); + break; + } + case 112: { + CostTime = input.ReadUInt32(); + break; + } + case 120: { + IsAiConsiderUltraSkill = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PVEBattleResultScRsp.cs b/Common/Proto/PVEBattleResultScRsp.cs new file mode 100644 index 00000000..78e11541 --- /dev/null +++ b/Common/Proto/PVEBattleResultScRsp.cs @@ -0,0 +1,749 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PVEBattleResultScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PVEBattleResultScRsp.proto + public static partial class PVEBattleResultScRspReflection { + + #region Descriptor + /// File descriptor for PVEBattleResultScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PVEBattleResultScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpQVkVCYXR0bGVSZXN1bHRTY1JzcC5wcm90bxoVQmF0dGxlRW5kU3RhdHVz", + "LnByb3RvGhJCYXR0bGVBdmF0YXIucHJvdG8aDkl0ZW1MaXN0LnByb3RvIvkC", + "ChRQVkVCYXR0bGVSZXN1bHRTY1JzcBIpChJiYXR0bGVfYXZhdGFyX2xpc3QY", + "CCADKAsyDS5CYXR0bGVBdmF0YXISEAoIZXZlbnRfaWQYBCABKA0SFwoPY2hl", + "Y2tfaWRlbnRpY2FsGAwgASgIEhsKE21pc21hdGNoX3R1cm5fY291bnQYDyAB", + "KA0SDwoHcmV0Y29kZRgFIAEoDRIRCgliYXR0bGVfaWQYBiABKA0SEwoLYmlu", + "X3ZlcnNpb24YDiABKAkSEwoLcmVzX3ZlcnNpb24YAyABKAkSJAoKZW5kX3N0", + "YXR1cxgHIAEoDjIQLkJhdHRsZUVuZFN0YXR1cxIQCghzdGFnZV9pZBgBIAEo", + "DRIcCglkcm9wX2RhdGEYAiABKAsyCS5JdGVtTGlzdBIXCgR1bmsxGAkgASgL", + "MgkuSXRlbUxpc3QSFwoEdW5rMhgNIAEoCzIJLkl0ZW1MaXN0EhgKBHVuazMY", + "jAQgASgLMgkuSXRlbUxpc3RCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BattleEndStatusReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleAvatarReflection.Descriptor, global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PVEBattleResultScRsp), global::EggLink.DanhengServer.Proto.PVEBattleResultScRsp.Parser, new[]{ "BattleAvatarList", "EventId", "CheckIdentical", "MismatchTurnCount", "Retcode", "BattleId", "BinVersion", "ResVersion", "EndStatus", "StageId", "DropData", "Unk1", "Unk2", "Unk3" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PVEBattleResultScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PVEBattleResultScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PVEBattleResultScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PVEBattleResultScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PVEBattleResultScRsp(PVEBattleResultScRsp other) : this() { + battleAvatarList_ = other.battleAvatarList_.Clone(); + eventId_ = other.eventId_; + checkIdentical_ = other.checkIdentical_; + mismatchTurnCount_ = other.mismatchTurnCount_; + retcode_ = other.retcode_; + battleId_ = other.battleId_; + binVersion_ = other.binVersion_; + resVersion_ = other.resVersion_; + endStatus_ = other.endStatus_; + stageId_ = other.stageId_; + dropData_ = other.dropData_ != null ? other.dropData_.Clone() : null; + unk1_ = other.unk1_ != null ? other.unk1_.Clone() : null; + unk2_ = other.unk2_ != null ? other.unk2_.Clone() : null; + unk3_ = other.unk3_ != null ? other.unk3_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PVEBattleResultScRsp Clone() { + return new PVEBattleResultScRsp(this); + } + + /// Field number for the "battle_avatar_list" field. + public const int BattleAvatarListFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_battleAvatarList_codec + = pb::FieldCodec.ForMessage(66, global::EggLink.DanhengServer.Proto.BattleAvatar.Parser); + private readonly pbc::RepeatedField battleAvatarList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BattleAvatarList { + get { return battleAvatarList_; } + } + + /// Field number for the "event_id" field. + public const int EventIdFieldNumber = 4; + private uint eventId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EventId { + get { return eventId_; } + set { + eventId_ = value; + } + } + + /// Field number for the "check_identical" field. + public const int CheckIdenticalFieldNumber = 12; + private bool checkIdentical_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CheckIdentical { + get { return checkIdentical_; } + set { + checkIdentical_ = value; + } + } + + /// Field number for the "mismatch_turn_count" field. + public const int MismatchTurnCountFieldNumber = 15; + private uint mismatchTurnCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MismatchTurnCount { + get { return mismatchTurnCount_; } + set { + mismatchTurnCount_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 5; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "battle_id" field. + public const int BattleIdFieldNumber = 6; + private uint battleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BattleId { + get { return battleId_; } + set { + battleId_ = value; + } + } + + /// Field number for the "bin_version" field. + public const int BinVersionFieldNumber = 14; + private string binVersion_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BinVersion { + get { return binVersion_; } + set { + binVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "res_version" field. + public const int ResVersionFieldNumber = 3; + private string resVersion_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResVersion { + get { return resVersion_; } + set { + resVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "end_status" field. + public const int EndStatusFieldNumber = 7; + private global::EggLink.DanhengServer.Proto.BattleEndStatus endStatus_ = global::EggLink.DanhengServer.Proto.BattleEndStatus.BattleEndNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.BattleEndStatus EndStatus { + get { return endStatus_; } + set { + endStatus_ = value; + } + } + + /// Field number for the "stage_id" field. + public const int StageIdFieldNumber = 1; + private uint stageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StageId { + get { return stageId_; } + set { + stageId_ = value; + } + } + + /// Field number for the "drop_data" field. + public const int DropDataFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.ItemList dropData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList DropData { + get { return dropData_; } + set { + dropData_ = value; + } + } + + /// Field number for the "unk1" field. + public const int Unk1FieldNumber = 9; + private global::EggLink.DanhengServer.Proto.ItemList unk1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList Unk1 { + get { return unk1_; } + set { + unk1_ = value; + } + } + + /// Field number for the "unk2" field. + public const int Unk2FieldNumber = 13; + private global::EggLink.DanhengServer.Proto.ItemList unk2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList Unk2 { + get { return unk2_; } + set { + unk2_ = value; + } + } + + /// Field number for the "unk3" field. + public const int Unk3FieldNumber = 524; + private global::EggLink.DanhengServer.Proto.ItemList unk3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList Unk3 { + get { return unk3_; } + set { + unk3_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PVEBattleResultScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PVEBattleResultScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!battleAvatarList_.Equals(other.battleAvatarList_)) return false; + if (EventId != other.EventId) return false; + if (CheckIdentical != other.CheckIdentical) return false; + if (MismatchTurnCount != other.MismatchTurnCount) return false; + if (Retcode != other.Retcode) return false; + if (BattleId != other.BattleId) return false; + if (BinVersion != other.BinVersion) return false; + if (ResVersion != other.ResVersion) return false; + if (EndStatus != other.EndStatus) return false; + if (StageId != other.StageId) return false; + if (!object.Equals(DropData, other.DropData)) return false; + if (!object.Equals(Unk1, other.Unk1)) return false; + if (!object.Equals(Unk2, other.Unk2)) return false; + if (!object.Equals(Unk3, other.Unk3)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= battleAvatarList_.GetHashCode(); + if (EventId != 0) hash ^= EventId.GetHashCode(); + if (CheckIdentical != false) hash ^= CheckIdentical.GetHashCode(); + if (MismatchTurnCount != 0) hash ^= MismatchTurnCount.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (BattleId != 0) hash ^= BattleId.GetHashCode(); + if (BinVersion.Length != 0) hash ^= BinVersion.GetHashCode(); + if (ResVersion.Length != 0) hash ^= ResVersion.GetHashCode(); + if (EndStatus != global::EggLink.DanhengServer.Proto.BattleEndStatus.BattleEndNone) hash ^= EndStatus.GetHashCode(); + if (StageId != 0) hash ^= StageId.GetHashCode(); + if (dropData_ != null) hash ^= DropData.GetHashCode(); + if (unk1_ != null) hash ^= Unk1.GetHashCode(); + if (unk2_ != null) hash ^= Unk2.GetHashCode(); + if (unk3_ != null) hash ^= Unk3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StageId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(StageId); + } + if (dropData_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DropData); + } + if (ResVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResVersion); + } + if (EventId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(EventId); + } + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (BattleId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(BattleId); + } + if (EndStatus != global::EggLink.DanhengServer.Proto.BattleEndStatus.BattleEndNone) { + output.WriteRawTag(56); + output.WriteEnum((int) EndStatus); + } + battleAvatarList_.WriteTo(output, _repeated_battleAvatarList_codec); + if (unk1_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Unk1); + } + if (CheckIdentical != false) { + output.WriteRawTag(96); + output.WriteBool(CheckIdentical); + } + if (unk2_ != null) { + output.WriteRawTag(106); + output.WriteMessage(Unk2); + } + if (BinVersion.Length != 0) { + output.WriteRawTag(114); + output.WriteString(BinVersion); + } + if (MismatchTurnCount != 0) { + output.WriteRawTag(120); + output.WriteUInt32(MismatchTurnCount); + } + if (unk3_ != null) { + output.WriteRawTag(226, 32); + output.WriteMessage(Unk3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (StageId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(StageId); + } + if (dropData_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DropData); + } + if (ResVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResVersion); + } + if (EventId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(EventId); + } + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (BattleId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(BattleId); + } + if (EndStatus != global::EggLink.DanhengServer.Proto.BattleEndStatus.BattleEndNone) { + output.WriteRawTag(56); + output.WriteEnum((int) EndStatus); + } + battleAvatarList_.WriteTo(ref output, _repeated_battleAvatarList_codec); + if (unk1_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Unk1); + } + if (CheckIdentical != false) { + output.WriteRawTag(96); + output.WriteBool(CheckIdentical); + } + if (unk2_ != null) { + output.WriteRawTag(106); + output.WriteMessage(Unk2); + } + if (BinVersion.Length != 0) { + output.WriteRawTag(114); + output.WriteString(BinVersion); + } + if (MismatchTurnCount != 0) { + output.WriteRawTag(120); + output.WriteUInt32(MismatchTurnCount); + } + if (unk3_ != null) { + output.WriteRawTag(226, 32); + output.WriteMessage(Unk3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += battleAvatarList_.CalculateSize(_repeated_battleAvatarList_codec); + if (EventId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EventId); + } + if (CheckIdentical != false) { + size += 1 + 1; + } + if (MismatchTurnCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MismatchTurnCount); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (BattleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BattleId); + } + if (BinVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BinVersion); + } + if (ResVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResVersion); + } + if (EndStatus != global::EggLink.DanhengServer.Proto.BattleEndStatus.BattleEndNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EndStatus); + } + if (StageId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StageId); + } + if (dropData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DropData); + } + if (unk1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unk1); + } + if (unk2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unk2); + } + if (unk3_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Unk3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PVEBattleResultScRsp other) { + if (other == null) { + return; + } + battleAvatarList_.Add(other.battleAvatarList_); + if (other.EventId != 0) { + EventId = other.EventId; + } + if (other.CheckIdentical != false) { + CheckIdentical = other.CheckIdentical; + } + if (other.MismatchTurnCount != 0) { + MismatchTurnCount = other.MismatchTurnCount; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.BattleId != 0) { + BattleId = other.BattleId; + } + if (other.BinVersion.Length != 0) { + BinVersion = other.BinVersion; + } + if (other.ResVersion.Length != 0) { + ResVersion = other.ResVersion; + } + if (other.EndStatus != global::EggLink.DanhengServer.Proto.BattleEndStatus.BattleEndNone) { + EndStatus = other.EndStatus; + } + if (other.StageId != 0) { + StageId = other.StageId; + } + if (other.dropData_ != null) { + if (dropData_ == null) { + DropData = new global::EggLink.DanhengServer.Proto.ItemList(); + } + DropData.MergeFrom(other.DropData); + } + if (other.unk1_ != null) { + if (unk1_ == null) { + Unk1 = new global::EggLink.DanhengServer.Proto.ItemList(); + } + Unk1.MergeFrom(other.Unk1); + } + if (other.unk2_ != null) { + if (unk2_ == null) { + Unk2 = new global::EggLink.DanhengServer.Proto.ItemList(); + } + Unk2.MergeFrom(other.Unk2); + } + if (other.unk3_ != null) { + if (unk3_ == null) { + Unk3 = new global::EggLink.DanhengServer.Proto.ItemList(); + } + Unk3.MergeFrom(other.Unk3); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StageId = input.ReadUInt32(); + break; + } + case 18: { + if (dropData_ == null) { + DropData = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(DropData); + break; + } + case 26: { + ResVersion = input.ReadString(); + break; + } + case 32: { + EventId = input.ReadUInt32(); + break; + } + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 48: { + BattleId = input.ReadUInt32(); + break; + } + case 56: { + EndStatus = (global::EggLink.DanhengServer.Proto.BattleEndStatus) input.ReadEnum(); + break; + } + case 66: { + battleAvatarList_.AddEntriesFrom(input, _repeated_battleAvatarList_codec); + break; + } + case 74: { + if (unk1_ == null) { + Unk1 = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Unk1); + break; + } + case 96: { + CheckIdentical = input.ReadBool(); + break; + } + case 106: { + if (unk2_ == null) { + Unk2 = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Unk2); + break; + } + case 114: { + BinVersion = input.ReadString(); + break; + } + case 120: { + MismatchTurnCount = input.ReadUInt32(); + break; + } + case 4194: { + if (unk3_ == null) { + Unk3 = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Unk3); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + StageId = input.ReadUInt32(); + break; + } + case 18: { + if (dropData_ == null) { + DropData = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(DropData); + break; + } + case 26: { + ResVersion = input.ReadString(); + break; + } + case 32: { + EventId = input.ReadUInt32(); + break; + } + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 48: { + BattleId = input.ReadUInt32(); + break; + } + case 56: { + EndStatus = (global::EggLink.DanhengServer.Proto.BattleEndStatus) input.ReadEnum(); + break; + } + case 66: { + battleAvatarList_.AddEntriesFrom(ref input, _repeated_battleAvatarList_codec); + break; + } + case 74: { + if (unk1_ == null) { + Unk1 = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Unk1); + break; + } + case 96: { + CheckIdentical = input.ReadBool(); + break; + } + case 106: { + if (unk2_ == null) { + Unk2 = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Unk2); + break; + } + case 114: { + BinVersion = input.ReadString(); + break; + } + case 120: { + MismatchTurnCount = input.ReadUInt32(); + break; + } + case 4194: { + if (unk3_ == null) { + Unk3 = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Unk3); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PickRogueAvatarCsReq.cs b/Common/Proto/PickRogueAvatarCsReq.cs new file mode 100644 index 00000000..fec17482 --- /dev/null +++ b/Common/Proto/PickRogueAvatarCsReq.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PickRogueAvatarCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PickRogueAvatarCsReq.proto + public static partial class PickRogueAvatarCsReqReflection { + + #region Descriptor + /// File descriptor for PickRogueAvatarCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PickRogueAvatarCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpQaWNrUm9ndWVBdmF0YXJDc1JlcS5wcm90byIwChRQaWNrUm9ndWVBdmF0", + "YXJDc1JlcRIYChBiYXNlX2F2YXRhcl9saXN0GAkgAygNQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PickRogueAvatarCsReq), global::EggLink.DanhengServer.Proto.PickRogueAvatarCsReq.Parser, new[]{ "BaseAvatarList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PickRogueAvatarCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PickRogueAvatarCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PickRogueAvatarCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PickRogueAvatarCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PickRogueAvatarCsReq(PickRogueAvatarCsReq other) : this() { + baseAvatarList_ = other.baseAvatarList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PickRogueAvatarCsReq Clone() { + return new PickRogueAvatarCsReq(this); + } + + /// Field number for the "base_avatar_list" field. + public const int BaseAvatarListFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_baseAvatarList_codec + = pb::FieldCodec.ForUInt32(74); + private readonly pbc::RepeatedField baseAvatarList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BaseAvatarList { + get { return baseAvatarList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PickRogueAvatarCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PickRogueAvatarCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!baseAvatarList_.Equals(other.baseAvatarList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= baseAvatarList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + baseAvatarList_.WriteTo(output, _repeated_baseAvatarList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + baseAvatarList_.WriteTo(ref output, _repeated_baseAvatarList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += baseAvatarList_.CalculateSize(_repeated_baseAvatarList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PickRogueAvatarCsReq other) { + if (other == null) { + return; + } + baseAvatarList_.Add(other.baseAvatarList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 74: + case 72: { + baseAvatarList_.AddEntriesFrom(input, _repeated_baseAvatarList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 74: + case 72: { + baseAvatarList_.AddEntriesFrom(ref input, _repeated_baseAvatarList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PickRogueAvatarScRsp.cs b/Common/Proto/PickRogueAvatarScRsp.cs new file mode 100644 index 00000000..89d1881d --- /dev/null +++ b/Common/Proto/PickRogueAvatarScRsp.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PickRogueAvatarScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PickRogueAvatarScRsp.proto + public static partial class PickRogueAvatarScRspReflection { + + #region Descriptor + /// File descriptor for PickRogueAvatarScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PickRogueAvatarScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpQaWNrUm9ndWVBdmF0YXJTY1JzcC5wcm90byIwChRQaWNrUm9ndWVBdmF0", + "YXJTY1JzcBIYChBiYXNlX2F2YXRhcl9saXN0GA4gAygNQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PickRogueAvatarScRsp), global::EggLink.DanhengServer.Proto.PickRogueAvatarScRsp.Parser, new[]{ "BaseAvatarList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PickRogueAvatarScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PickRogueAvatarScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PickRogueAvatarScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PickRogueAvatarScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PickRogueAvatarScRsp(PickRogueAvatarScRsp other) : this() { + baseAvatarList_ = other.baseAvatarList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PickRogueAvatarScRsp Clone() { + return new PickRogueAvatarScRsp(this); + } + + /// Field number for the "base_avatar_list" field. + public const int BaseAvatarListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_baseAvatarList_codec + = pb::FieldCodec.ForUInt32(114); + private readonly pbc::RepeatedField baseAvatarList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BaseAvatarList { + get { return baseAvatarList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PickRogueAvatarScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PickRogueAvatarScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!baseAvatarList_.Equals(other.baseAvatarList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= baseAvatarList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + baseAvatarList_.WriteTo(output, _repeated_baseAvatarList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + baseAvatarList_.WriteTo(ref output, _repeated_baseAvatarList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += baseAvatarList_.CalculateSize(_repeated_baseAvatarList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PickRogueAvatarScRsp other) { + if (other == null) { + return; + } + baseAvatarList_.Add(other.baseAvatarList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: + case 112: { + baseAvatarList_.AddEntriesFrom(input, _repeated_baseAvatarList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: + case 112: { + baseAvatarList_.AddEntriesFrom(ref input, _repeated_baseAvatarList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PileItem.cs b/Common/Proto/PileItem.cs new file mode 100644 index 00000000..623891f8 --- /dev/null +++ b/Common/Proto/PileItem.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PileItem.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PileItem.proto + public static partial class PileItemReflection { + + #region Descriptor + /// File descriptor for PileItem.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PileItemReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5QaWxlSXRlbS5wcm90byItCghQaWxlSXRlbRIQCghpdGVtX251bRgOIAEo", + "DRIPCgdpdGVtX2lkGAQgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu", + "UHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PileItem), global::EggLink.DanhengServer.Proto.PileItem.Parser, new[]{ "ItemNum", "ItemId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PileItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PileItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PileItemReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PileItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PileItem(PileItem other) : this() { + itemNum_ = other.itemNum_; + itemId_ = other.itemId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PileItem Clone() { + return new PileItem(this); + } + + /// Field number for the "item_num" field. + public const int ItemNumFieldNumber = 14; + private uint itemNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ItemNum { + get { return itemNum_; } + set { + itemNum_ = value; + } + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 4; + private uint itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 PileItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PileItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemNum != other.ItemNum) 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 (ItemNum != 0) hash ^= ItemNum.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 (ItemId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ItemId); + } + if (ItemNum != 0) { + output.WriteRawTag(112); + output.WriteUInt32(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 (ItemId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ItemId); + } + if (ItemNum != 0) { + output.WriteRawTag(112); + output.WriteUInt32(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 (ItemNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ItemNum); + } + if (ItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ItemId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PileItem other) { + if (other == null) { + return; + } + if (other.ItemNum != 0) { + ItemNum = other.ItemNum; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + ItemId = input.ReadUInt32(); + break; + } + case 112: { + ItemNum = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + ItemId = input.ReadUInt32(); + break; + } + case 112: { + ItemNum = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PlatformType.cs b/Common/Proto/PlatformType.cs new file mode 100644 index 00000000..7d61a533 --- /dev/null +++ b/Common/Proto/PlatformType.cs @@ -0,0 +1,71 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlatformType.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PlatformType.proto + public static partial class PlatformTypeReflection { + + #region Descriptor + /// File descriptor for PlatformType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlatformTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJQbGF0Zm9ybVR5cGUucHJvdG8qrgIKDFBsYXRmb3JtVHlwZRIKCgZFRElU", + "T1IQABIHCgNJT1MQARILCgdBTkRST0lEEAISBgoCUEMQAxIHCgNXRUIQBBIH", + "CgNXQVAQBRIHCgNQUzQQBhIMCghOSU5URU5ETxAHEhEKDUNMT1VEX0FORFJP", + "SUQQCBIMCghDTE9VRF9QQxAJEg0KCUNMT1VEX0lPUxAKEgcKA1BTNRALEgcK", + "A01BQxAMEg0KCUNMT1VEX01BQxANEhUKEUNMT1VEX1dFQl9BTkRST0lEEBQS", + "EQoNQ0xPVURfV0VCX0lPUxAVEhAKDENMT1VEX1dFQl9QQxAWEhEKDUNMT1VE", + "X1dFQl9NQUMQFxITCg9DTE9VRF9XRUJfVE9VQ0gQGBIWChJDTE9VRF9XRUJf", + "S0VZQk9BUkQQGUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.PlatformType), }, null, null)); + } + #endregion + + } + #region Enums + public enum PlatformType { + [pbr::OriginalName("EDITOR")] Editor = 0, + [pbr::OriginalName("IOS")] Ios = 1, + [pbr::OriginalName("ANDROID")] Android = 2, + [pbr::OriginalName("PC")] Pc = 3, + [pbr::OriginalName("WEB")] Web = 4, + [pbr::OriginalName("WAP")] Wap = 5, + [pbr::OriginalName("PS4")] Ps4 = 6, + [pbr::OriginalName("NINTENDO")] Nintendo = 7, + [pbr::OriginalName("CLOUD_ANDROID")] CloudAndroid = 8, + [pbr::OriginalName("CLOUD_PC")] CloudPc = 9, + [pbr::OriginalName("CLOUD_IOS")] CloudIos = 10, + [pbr::OriginalName("PS5")] Ps5 = 11, + [pbr::OriginalName("MAC")] Mac = 12, + [pbr::OriginalName("CLOUD_MAC")] CloudMac = 13, + [pbr::OriginalName("CLOUD_WEB_ANDROID")] CloudWebAndroid = 20, + [pbr::OriginalName("CLOUD_WEB_IOS")] CloudWebIos = 21, + [pbr::OriginalName("CLOUD_WEB_PC")] CloudWebPc = 22, + [pbr::OriginalName("CLOUD_WEB_MAC")] CloudWebMac = 23, + [pbr::OriginalName("CLOUD_WEB_TOUCH")] CloudWebTouch = 24, + [pbr::OriginalName("CLOUD_WEB_KEYBOARD")] CloudWebKeyboard = 25, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PlayBackGroundMusicCsReq.cs b/Common/Proto/PlayBackGroundMusicCsReq.cs new file mode 100644 index 00000000..935ad93b --- /dev/null +++ b/Common/Proto/PlayBackGroundMusicCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayBackGroundMusicCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PlayBackGroundMusicCsReq.proto + public static partial class PlayBackGroundMusicCsReqReflection { + + #region Descriptor + /// File descriptor for PlayBackGroundMusicCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayBackGroundMusicCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5QbGF5QmFja0dyb3VuZE11c2ljQ3NSZXEucHJvdG8iMQoYUGxheUJhY2tH", + "cm91bmRNdXNpY0NzUmVxEhUKDXBsYXlfbXVzaWNfaWQYCiABKA1CHqoCG0Vn", + "Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PlayBackGroundMusicCsReq), global::EggLink.DanhengServer.Proto.PlayBackGroundMusicCsReq.Parser, new[]{ "PlayMusicId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlayBackGroundMusicCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayBackGroundMusicCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PlayBackGroundMusicCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayBackGroundMusicCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayBackGroundMusicCsReq(PlayBackGroundMusicCsReq other) : this() { + playMusicId_ = other.playMusicId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayBackGroundMusicCsReq Clone() { + return new PlayBackGroundMusicCsReq(this); + } + + /// Field number for the "play_music_id" field. + public const int PlayMusicIdFieldNumber = 10; + private uint playMusicId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PlayMusicId { + get { return playMusicId_; } + set { + playMusicId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlayBackGroundMusicCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayBackGroundMusicCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PlayMusicId != other.PlayMusicId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PlayMusicId != 0) hash ^= PlayMusicId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PlayMusicId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(PlayMusicId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PlayMusicId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(PlayMusicId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PlayMusicId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlayMusicId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayBackGroundMusicCsReq other) { + if (other == null) { + return; + } + if (other.PlayMusicId != 0) { + PlayMusicId = other.PlayMusicId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 80: { + PlayMusicId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 80: { + PlayMusicId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PlayBackGroundMusicScRsp.cs b/Common/Proto/PlayBackGroundMusicScRsp.cs new file mode 100644 index 00000000..2700d6c3 --- /dev/null +++ b/Common/Proto/PlayBackGroundMusicScRsp.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayBackGroundMusicScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PlayBackGroundMusicScRsp.proto + public static partial class PlayBackGroundMusicScRspReflection { + + #region Descriptor + /// File descriptor for PlayBackGroundMusicScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayBackGroundMusicScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5QbGF5QmFja0dyb3VuZE11c2ljU2NSc3AucHJvdG8iVgoYUGxheUJhY2tH", + "cm91bmRNdXNpY1NjUnNwEhUKDXBsYXlfbXVzaWNfaWQYBiABKA0SDwoHcmV0", + "Y29kZRgPIAEoDRISCgpwbGF5aW5nX2lkGAQgASgNQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PlayBackGroundMusicScRsp), global::EggLink.DanhengServer.Proto.PlayBackGroundMusicScRsp.Parser, new[]{ "PlayMusicId", "Retcode", "PlayingId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlayBackGroundMusicScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayBackGroundMusicScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PlayBackGroundMusicScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayBackGroundMusicScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayBackGroundMusicScRsp(PlayBackGroundMusicScRsp other) : this() { + playMusicId_ = other.playMusicId_; + retcode_ = other.retcode_; + playingId_ = other.playingId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayBackGroundMusicScRsp Clone() { + return new PlayBackGroundMusicScRsp(this); + } + + /// Field number for the "play_music_id" field. + public const int PlayMusicIdFieldNumber = 6; + private uint playMusicId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PlayMusicId { + get { return playMusicId_; } + set { + playMusicId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 15; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "playing_id" field. + public const int PlayingIdFieldNumber = 4; + private uint playingId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PlayingId { + get { return playingId_; } + set { + playingId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlayBackGroundMusicScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayBackGroundMusicScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PlayMusicId != other.PlayMusicId) return false; + if (Retcode != other.Retcode) return false; + if (PlayingId != other.PlayingId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PlayMusicId != 0) hash ^= PlayMusicId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (PlayingId != 0) hash ^= PlayingId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PlayingId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(PlayingId); + } + if (PlayMusicId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(PlayMusicId); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PlayingId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(PlayingId); + } + if (PlayMusicId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(PlayMusicId); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PlayMusicId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlayMusicId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (PlayingId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlayingId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayBackGroundMusicScRsp other) { + if (other == null) { + return; + } + if (other.PlayMusicId != 0) { + PlayMusicId = other.PlayMusicId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.PlayingId != 0) { + PlayingId = other.PlayingId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + PlayingId = input.ReadUInt32(); + break; + } + case 48: { + PlayMusicId = input.ReadUInt32(); + break; + } + case 120: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + PlayingId = input.ReadUInt32(); + break; + } + case 48: { + PlayMusicId = input.ReadUInt32(); + break; + } + case 120: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PlayerBasicInfo.cs b/Common/Proto/PlayerBasicInfo.cs new file mode 100644 index 00000000..7cba9b61 --- /dev/null +++ b/Common/Proto/PlayerBasicInfo.cs @@ -0,0 +1,495 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayerBasicInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PlayerBasicInfo.proto + public static partial class PlayerBasicInfoReflection { + + #region Descriptor + /// File descriptor for PlayerBasicInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayerBasicInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVQbGF5ZXJCYXNpY0luZm8ucHJvdG8ikgEKD1BsYXllckJhc2ljSW5mbxIQ", + "CghuaWNrbmFtZRgBIAEoCRINCgVsZXZlbBgCIAEoDRILCgNleHAYAyABKA0S", + "DwoHc3RhbWluYRgEIAEoDRINCgVtY29pbhgFIAEoDRINCgVoY29pbhgGIAEo", + "DRINCgVzY29pbhgHIAEoDRITCgt3b3JsZF9sZXZlbBgIIAEoDUIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PlayerBasicInfo), global::EggLink.DanhengServer.Proto.PlayerBasicInfo.Parser, new[]{ "Nickname", "Level", "Exp", "Stamina", "Mcoin", "Hcoin", "Scoin", "WorldLevel" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlayerBasicInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerBasicInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PlayerBasicInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerBasicInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerBasicInfo(PlayerBasicInfo other) : this() { + nickname_ = other.nickname_; + level_ = other.level_; + exp_ = other.exp_; + stamina_ = other.stamina_; + mcoin_ = other.mcoin_; + hcoin_ = other.hcoin_; + scoin_ = other.scoin_; + worldLevel_ = other.worldLevel_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerBasicInfo Clone() { + return new PlayerBasicInfo(this); + } + + /// Field number for the "nickname" field. + public const int NicknameFieldNumber = 1; + private string nickname_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Nickname { + get { return nickname_; } + set { + nickname_ = pb::ProtoPreconditions.CheckNotNull(value, "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 "exp" field. + public const int ExpFieldNumber = 3; + private uint exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + /// Field number for the "stamina" field. + public const int StaminaFieldNumber = 4; + private uint stamina_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Stamina { + get { return stamina_; } + set { + stamina_ = value; + } + } + + /// Field number for the "mcoin" field. + public const int McoinFieldNumber = 5; + private uint mcoin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Mcoin { + get { return mcoin_; } + set { + mcoin_ = value; + } + } + + /// Field number for the "hcoin" field. + public const int HcoinFieldNumber = 6; + private uint hcoin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Hcoin { + get { return hcoin_; } + set { + hcoin_ = value; + } + } + + /// Field number for the "scoin" field. + public const int ScoinFieldNumber = 7; + private uint scoin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Scoin { + get { return scoin_; } + set { + scoin_ = value; + } + } + + /// Field number for the "world_level" field. + public const int WorldLevelFieldNumber = 8; + private uint worldLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WorldLevel { + get { return worldLevel_; } + set { + worldLevel_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlayerBasicInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerBasicInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Nickname != other.Nickname) return false; + if (Level != other.Level) return false; + if (Exp != other.Exp) return false; + if (Stamina != other.Stamina) return false; + if (Mcoin != other.Mcoin) return false; + if (Hcoin != other.Hcoin) return false; + if (Scoin != other.Scoin) return false; + if (WorldLevel != other.WorldLevel) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Nickname.Length != 0) hash ^= Nickname.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (Stamina != 0) hash ^= Stamina.GetHashCode(); + if (Mcoin != 0) hash ^= Mcoin.GetHashCode(); + if (Hcoin != 0) hash ^= Hcoin.GetHashCode(); + if (Scoin != 0) hash ^= Scoin.GetHashCode(); + if (WorldLevel != 0) hash ^= WorldLevel.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Nickname.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Nickname); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Level); + } + if (Exp != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Exp); + } + if (Stamina != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Stamina); + } + if (Mcoin != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Mcoin); + } + if (Hcoin != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Hcoin); + } + if (Scoin != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Scoin); + } + if (WorldLevel != 0) { + output.WriteRawTag(64); + output.WriteUInt32(WorldLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Nickname.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Nickname); + } + if (Level != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Level); + } + if (Exp != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Exp); + } + if (Stamina != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Stamina); + } + if (Mcoin != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Mcoin); + } + if (Hcoin != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Hcoin); + } + if (Scoin != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Scoin); + } + if (WorldLevel != 0) { + output.WriteRawTag(64); + output.WriteUInt32(WorldLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Nickname.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Nickname); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Exp); + } + if (Stamina != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Stamina); + } + if (Mcoin != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Mcoin); + } + if (Hcoin != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Hcoin); + } + if (Scoin != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Scoin); + } + if (WorldLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldLevel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerBasicInfo other) { + if (other == null) { + return; + } + if (other.Nickname.Length != 0) { + Nickname = other.Nickname; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.Exp != 0) { + Exp = other.Exp; + } + if (other.Stamina != 0) { + Stamina = other.Stamina; + } + if (other.Mcoin != 0) { + Mcoin = other.Mcoin; + } + if (other.Hcoin != 0) { + Hcoin = other.Hcoin; + } + if (other.Scoin != 0) { + Scoin = other.Scoin; + } + if (other.WorldLevel != 0) { + WorldLevel = other.WorldLevel; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Nickname = input.ReadString(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + case 24: { + Exp = input.ReadUInt32(); + break; + } + case 32: { + Stamina = input.ReadUInt32(); + break; + } + case 40: { + Mcoin = input.ReadUInt32(); + break; + } + case 48: { + Hcoin = input.ReadUInt32(); + break; + } + case 56: { + Scoin = input.ReadUInt32(); + break; + } + case 64: { + WorldLevel = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Nickname = input.ReadString(); + break; + } + case 16: { + Level = input.ReadUInt32(); + break; + } + case 24: { + Exp = input.ReadUInt32(); + break; + } + case 32: { + Stamina = input.ReadUInt32(); + break; + } + case 40: { + Mcoin = input.ReadUInt32(); + break; + } + case 48: { + Hcoin = input.ReadUInt32(); + break; + } + case 56: { + Scoin = input.ReadUInt32(); + break; + } + case 64: { + WorldLevel = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PlayerDetailInfo.cs b/Common/Proto/PlayerDetailInfo.cs new file mode 100644 index 00000000..8c2d1d41 --- /dev/null +++ b/Common/Proto/PlayerDetailInfo.cs @@ -0,0 +1,537 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayerDetailInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PlayerDetailInfo.proto + public static partial class PlayerDetailInfoReflection { + + #region Descriptor + /// File descriptor for PlayerDetailInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayerDetailInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZQbGF5ZXJEZXRhaWxJbmZvLnByb3RvGhJQbGF0Zm9ybVR5cGUucHJvdG8i", + "0wEKEFBsYXllckRldGFpbEluZm8SEwoLd29ybGRfbGV2ZWwYCiABKA0SEQoJ", + "c2lnbmF0dXJlGAIgASgJEiQKDXBsYXRmb3JtX3R5cGUYBCABKA4yDS5QbGF0", + "Zm9ybVR5cGUSDQoFbGV2ZWwYCSABKA0SEQoJaGVhZF9pY29uGAcgASgNEgsK", + "A3VpZBgNIAEoDRIQCghuaWNrbmFtZRgGIAEoCRIbChNkaXNwbGF5X2F2YXRh", + "cl9pbmZvGA4gASgJEhMKC3JlY29yZF9pbmZvGA8gASgJQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PlatformTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PlayerDetailInfo), global::EggLink.DanhengServer.Proto.PlayerDetailInfo.Parser, new[]{ "WorldLevel", "Signature", "PlatformType", "Level", "HeadIcon", "Uid", "Nickname", "DisplayAvatarInfo", "RecordInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlayerDetailInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerDetailInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PlayerDetailInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerDetailInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerDetailInfo(PlayerDetailInfo other) : this() { + worldLevel_ = other.worldLevel_; + signature_ = other.signature_; + platformType_ = other.platformType_; + level_ = other.level_; + headIcon_ = other.headIcon_; + uid_ = other.uid_; + nickname_ = other.nickname_; + displayAvatarInfo_ = other.displayAvatarInfo_; + recordInfo_ = other.recordInfo_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerDetailInfo Clone() { + return new PlayerDetailInfo(this); + } + + /// Field number for the "world_level" field. + public const int WorldLevelFieldNumber = 10; + private uint worldLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WorldLevel { + get { return worldLevel_; } + set { + worldLevel_ = value; + } + } + + /// Field number for the "signature" field. + public const int SignatureFieldNumber = 2; + private string signature_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Signature { + get { return signature_; } + set { + signature_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "platform_type" field. + public const int PlatformTypeFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.PlatformType platformType_ = global::EggLink.DanhengServer.Proto.PlatformType.Editor; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.PlatformType PlatformType { + get { return platformType_; } + set { + platformType_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 9; + 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 "head_icon" field. + public const int HeadIconFieldNumber = 7; + private uint headIcon_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint HeadIcon { + get { return headIcon_; } + set { + headIcon_ = value; + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 13; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + /// Field number for the "nickname" field. + public const int NicknameFieldNumber = 6; + private string nickname_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Nickname { + get { return nickname_; } + set { + nickname_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_avatar_info" field. + public const int DisplayAvatarInfoFieldNumber = 14; + private string displayAvatarInfo_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayAvatarInfo { + get { return displayAvatarInfo_; } + set { + displayAvatarInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "record_info" field. + public const int RecordInfoFieldNumber = 15; + private string recordInfo_ = ""; + /// + ///DisplayAvatarDetailInfo display_avatar_info = 14; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RecordInfo { + get { return recordInfo_; } + set { + recordInfo_ = 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 PlayerDetailInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerDetailInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (WorldLevel != other.WorldLevel) return false; + if (Signature != other.Signature) return false; + if (PlatformType != other.PlatformType) return false; + if (Level != other.Level) return false; + if (HeadIcon != other.HeadIcon) return false; + if (Uid != other.Uid) return false; + if (Nickname != other.Nickname) return false; + if (DisplayAvatarInfo != other.DisplayAvatarInfo) return false; + if (RecordInfo != other.RecordInfo) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (WorldLevel != 0) hash ^= WorldLevel.GetHashCode(); + if (Signature.Length != 0) hash ^= Signature.GetHashCode(); + if (PlatformType != global::EggLink.DanhengServer.Proto.PlatformType.Editor) hash ^= PlatformType.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (HeadIcon != 0) hash ^= HeadIcon.GetHashCode(); + if (Uid != 0) hash ^= Uid.GetHashCode(); + if (Nickname.Length != 0) hash ^= Nickname.GetHashCode(); + if (DisplayAvatarInfo.Length != 0) hash ^= DisplayAvatarInfo.GetHashCode(); + if (RecordInfo.Length != 0) hash ^= RecordInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Signature.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Signature); + } + if (PlatformType != global::EggLink.DanhengServer.Proto.PlatformType.Editor) { + output.WriteRawTag(32); + output.WriteEnum((int) PlatformType); + } + if (Nickname.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Nickname); + } + if (HeadIcon != 0) { + output.WriteRawTag(56); + output.WriteUInt32(HeadIcon); + } + if (Level != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Level); + } + if (WorldLevel != 0) { + output.WriteRawTag(80); + output.WriteUInt32(WorldLevel); + } + if (Uid != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Uid); + } + if (DisplayAvatarInfo.Length != 0) { + output.WriteRawTag(114); + output.WriteString(DisplayAvatarInfo); + } + if (RecordInfo.Length != 0) { + output.WriteRawTag(122); + output.WriteString(RecordInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Signature.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Signature); + } + if (PlatformType != global::EggLink.DanhengServer.Proto.PlatformType.Editor) { + output.WriteRawTag(32); + output.WriteEnum((int) PlatformType); + } + if (Nickname.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Nickname); + } + if (HeadIcon != 0) { + output.WriteRawTag(56); + output.WriteUInt32(HeadIcon); + } + if (Level != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Level); + } + if (WorldLevel != 0) { + output.WriteRawTag(80); + output.WriteUInt32(WorldLevel); + } + if (Uid != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Uid); + } + if (DisplayAvatarInfo.Length != 0) { + output.WriteRawTag(114); + output.WriteString(DisplayAvatarInfo); + } + if (RecordInfo.Length != 0) { + output.WriteRawTag(122); + output.WriteString(RecordInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (WorldLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldLevel); + } + if (Signature.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Signature); + } + if (PlatformType != global::EggLink.DanhengServer.Proto.PlatformType.Editor) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlatformType); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (HeadIcon != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(HeadIcon); + } + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (Nickname.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Nickname); + } + if (DisplayAvatarInfo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayAvatarInfo); + } + if (RecordInfo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RecordInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerDetailInfo other) { + if (other == null) { + return; + } + if (other.WorldLevel != 0) { + WorldLevel = other.WorldLevel; + } + if (other.Signature.Length != 0) { + Signature = other.Signature; + } + if (other.PlatformType != global::EggLink.DanhengServer.Proto.PlatformType.Editor) { + PlatformType = other.PlatformType; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.HeadIcon != 0) { + HeadIcon = other.HeadIcon; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + if (other.Nickname.Length != 0) { + Nickname = other.Nickname; + } + if (other.DisplayAvatarInfo.Length != 0) { + DisplayAvatarInfo = other.DisplayAvatarInfo; + } + if (other.RecordInfo.Length != 0) { + RecordInfo = other.RecordInfo; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + Signature = input.ReadString(); + break; + } + case 32: { + PlatformType = (global::EggLink.DanhengServer.Proto.PlatformType) input.ReadEnum(); + break; + } + case 50: { + Nickname = input.ReadString(); + break; + } + case 56: { + HeadIcon = input.ReadUInt32(); + break; + } + case 72: { + Level = input.ReadUInt32(); + break; + } + case 80: { + WorldLevel = input.ReadUInt32(); + break; + } + case 104: { + Uid = input.ReadUInt32(); + break; + } + case 114: { + DisplayAvatarInfo = input.ReadString(); + break; + } + case 122: { + RecordInfo = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + Signature = input.ReadString(); + break; + } + case 32: { + PlatformType = (global::EggLink.DanhengServer.Proto.PlatformType) input.ReadEnum(); + break; + } + case 50: { + Nickname = input.ReadString(); + break; + } + case 56: { + HeadIcon = input.ReadUInt32(); + break; + } + case 72: { + Level = input.ReadUInt32(); + break; + } + case 80: { + WorldLevel = input.ReadUInt32(); + break; + } + case 104: { + Uid = input.ReadUInt32(); + break; + } + case 114: { + DisplayAvatarInfo = input.ReadString(); + break; + } + case 122: { + RecordInfo = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PlayerGetTokenCsReq.cs b/Common/Proto/PlayerGetTokenCsReq.cs new file mode 100644 index 00000000..16a536d8 --- /dev/null +++ b/Common/Proto/PlayerGetTokenCsReq.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayerGetTokenCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PlayerGetTokenCsReq.proto + public static partial class PlayerGetTokenCsReqReflection { + + #region Descriptor + /// File descriptor for PlayerGetTokenCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayerGetTokenCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlQbGF5ZXJHZXRUb2tlbkNzUmVxLnByb3RvIlAKE1BsYXllckdldFRva2Vu", + "Q3NSZXESEwoLYWNjb3VudF91aWQYDiABKAkSFQoNcGxhdGZvcm1fdHlwZRgH", + "IAEoDRINCgV0b2tlbhgLIAEoCUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy", + "LlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PlayerGetTokenCsReq), global::EggLink.DanhengServer.Proto.PlayerGetTokenCsReq.Parser, new[]{ "AccountUid", "PlatformType", "Token" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlayerGetTokenCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerGetTokenCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PlayerGetTokenCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerGetTokenCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerGetTokenCsReq(PlayerGetTokenCsReq other) : this() { + accountUid_ = other.accountUid_; + platformType_ = other.platformType_; + token_ = other.token_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerGetTokenCsReq Clone() { + return new PlayerGetTokenCsReq(this); + } + + /// Field number for the "account_uid" field. + public const int AccountUidFieldNumber = 14; + private string accountUid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AccountUid { + get { return accountUid_; } + set { + accountUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "platform_type" field. + public const int PlatformTypeFieldNumber = 7; + private uint platformType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PlatformType { + get { return platformType_; } + set { + platformType_ = value; + } + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 11; + private string token_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Token { + get { return token_; } + set { + token_ = 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 PlayerGetTokenCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerGetTokenCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AccountUid != other.AccountUid) return false; + if (PlatformType != other.PlatformType) return false; + if (Token != other.Token) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AccountUid.Length != 0) hash ^= AccountUid.GetHashCode(); + if (PlatformType != 0) hash ^= PlatformType.GetHashCode(); + if (Token.Length != 0) hash ^= Token.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PlatformType != 0) { + output.WriteRawTag(56); + output.WriteUInt32(PlatformType); + } + if (Token.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Token); + } + if (AccountUid.Length != 0) { + output.WriteRawTag(114); + output.WriteString(AccountUid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PlatformType != 0) { + output.WriteRawTag(56); + output.WriteUInt32(PlatformType); + } + if (Token.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Token); + } + if (AccountUid.Length != 0) { + output.WriteRawTag(114); + output.WriteString(AccountUid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AccountUid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AccountUid); + } + if (PlatformType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlatformType); + } + if (Token.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerGetTokenCsReq other) { + if (other == null) { + return; + } + if (other.AccountUid.Length != 0) { + AccountUid = other.AccountUid; + } + if (other.PlatformType != 0) { + PlatformType = other.PlatformType; + } + if (other.Token.Length != 0) { + Token = other.Token; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 56: { + PlatformType = input.ReadUInt32(); + break; + } + case 90: { + Token = input.ReadString(); + break; + } + case 114: { + AccountUid = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 56: { + PlatformType = input.ReadUInt32(); + break; + } + case 90: { + Token = input.ReadString(); + break; + } + case 114: { + AccountUid = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PlayerGetTokenScRsp.cs b/Common/Proto/PlayerGetTokenScRsp.cs new file mode 100644 index 00000000..5a3c18c9 --- /dev/null +++ b/Common/Proto/PlayerGetTokenScRsp.cs @@ -0,0 +1,393 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayerGetTokenScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PlayerGetTokenScRsp.proto + public static partial class PlayerGetTokenScRspReflection { + + #region Descriptor + /// File descriptor for PlayerGetTokenScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayerGetTokenScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlQbGF5ZXJHZXRUb2tlblNjUnNwLnByb3RvGg9CbGFja0luZm8ucHJvdG8i", + "eQoTUGxheWVyR2V0VG9rZW5TY1JzcBIXCg9zZWNyZXRfa2V5X3NlZWQYCiAB", + "KAQSHgoKYmxhY2tfaW5mbxgHIAEoCzIKLkJsYWNrSW5mbxILCgN1aWQYAyAB", + "KA0SCwoDbXNnGAggASgJEg8KB3JldGNvZGUYASABKA1CHqoCG0VnZ0xpbmsu", + "RGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BlackInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PlayerGetTokenScRsp), global::EggLink.DanhengServer.Proto.PlayerGetTokenScRsp.Parser, new[]{ "SecretKeySeed", "BlackInfo", "Uid", "Msg", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlayerGetTokenScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerGetTokenScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PlayerGetTokenScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerGetTokenScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerGetTokenScRsp(PlayerGetTokenScRsp other) : this() { + secretKeySeed_ = other.secretKeySeed_; + blackInfo_ = other.blackInfo_ != null ? other.blackInfo_.Clone() : null; + uid_ = other.uid_; + msg_ = other.msg_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerGetTokenScRsp Clone() { + return new PlayerGetTokenScRsp(this); + } + + /// Field number for the "secret_key_seed" field. + public const int SecretKeySeedFieldNumber = 10; + private ulong secretKeySeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong SecretKeySeed { + get { return secretKeySeed_; } + set { + secretKeySeed_ = value; + } + } + + /// Field number for the "black_info" field. + public const int BlackInfoFieldNumber = 7; + private global::EggLink.DanhengServer.Proto.BlackInfo blackInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.BlackInfo BlackInfo { + get { return blackInfo_; } + set { + blackInfo_ = value; + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 3; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + /// Field number for the "msg" field. + public const int MsgFieldNumber = 8; + private string msg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Msg { + get { return msg_; } + set { + msg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlayerGetTokenScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerGetTokenScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SecretKeySeed != other.SecretKeySeed) return false; + if (!object.Equals(BlackInfo, other.BlackInfo)) return false; + if (Uid != other.Uid) return false; + if (Msg != other.Msg) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (SecretKeySeed != 0UL) hash ^= SecretKeySeed.GetHashCode(); + if (blackInfo_ != null) hash ^= BlackInfo.GetHashCode(); + if (Uid != 0) hash ^= Uid.GetHashCode(); + if (Msg.Length != 0) hash ^= Msg.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (Uid != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Uid); + } + if (blackInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BlackInfo); + } + if (Msg.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Msg); + } + if (SecretKeySeed != 0UL) { + output.WriteRawTag(80); + output.WriteUInt64(SecretKeySeed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (Uid != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Uid); + } + if (blackInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BlackInfo); + } + if (Msg.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Msg); + } + if (SecretKeySeed != 0UL) { + output.WriteRawTag(80); + output.WriteUInt64(SecretKeySeed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SecretKeySeed != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SecretKeySeed); + } + if (blackInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlackInfo); + } + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (Msg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Msg); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerGetTokenScRsp other) { + if (other == null) { + return; + } + if (other.SecretKeySeed != 0UL) { + SecretKeySeed = other.SecretKeySeed; + } + if (other.blackInfo_ != null) { + if (blackInfo_ == null) { + BlackInfo = new global::EggLink.DanhengServer.Proto.BlackInfo(); + } + BlackInfo.MergeFrom(other.BlackInfo); + } + if (other.Uid != 0) { + Uid = other.Uid; + } + if (other.Msg.Length != 0) { + Msg = other.Msg; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 24: { + Uid = input.ReadUInt32(); + break; + } + case 58: { + if (blackInfo_ == null) { + BlackInfo = new global::EggLink.DanhengServer.Proto.BlackInfo(); + } + input.ReadMessage(BlackInfo); + break; + } + case 66: { + Msg = input.ReadString(); + break; + } + case 80: { + SecretKeySeed = input.ReadUInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 24: { + Uid = input.ReadUInt32(); + break; + } + case 58: { + if (blackInfo_ == null) { + BlackInfo = new global::EggLink.DanhengServer.Proto.BlackInfo(); + } + input.ReadMessage(BlackInfo); + break; + } + case 66: { + Msg = input.ReadString(); + break; + } + case 80: { + SecretKeySeed = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PlayerHeartbeatCsReq.cs b/Common/Proto/PlayerHeartbeatCsReq.cs new file mode 100644 index 00000000..84c2803e --- /dev/null +++ b/Common/Proto/PlayerHeartbeatCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayerHeartbeatCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PlayerHeartbeatCsReq.proto + public static partial class PlayerHeartbeatCsReqReflection { + + #region Descriptor + /// File descriptor for PlayerHeartbeatCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayerHeartbeatCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpQbGF5ZXJIZWFydGJlYXRDc1JlcS5wcm90byIuChRQbGF5ZXJIZWFydGJl", + "YXRDc1JlcRIWCg5jbGllbnRfdGltZV9tcxgEIAEoBEIeqgIbRWdnTGluay5E", + "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PlayerHeartbeatCsReq), global::EggLink.DanhengServer.Proto.PlayerHeartbeatCsReq.Parser, new[]{ "ClientTimeMs" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlayerHeartbeatCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerHeartbeatCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PlayerHeartbeatCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerHeartbeatCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerHeartbeatCsReq(PlayerHeartbeatCsReq other) : this() { + clientTimeMs_ = other.clientTimeMs_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerHeartbeatCsReq Clone() { + return new PlayerHeartbeatCsReq(this); + } + + /// Field number for the "client_time_ms" field. + public const int ClientTimeMsFieldNumber = 4; + private ulong clientTimeMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ClientTimeMs { + get { return clientTimeMs_; } + set { + clientTimeMs_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlayerHeartbeatCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerHeartbeatCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClientTimeMs != other.ClientTimeMs) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ClientTimeMs != 0UL) hash ^= ClientTimeMs.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ClientTimeMs != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(ClientTimeMs); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ClientTimeMs != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(ClientTimeMs); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ClientTimeMs != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClientTimeMs); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerHeartbeatCsReq other) { + if (other == null) { + return; + } + if (other.ClientTimeMs != 0UL) { + ClientTimeMs = other.ClientTimeMs; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + ClientTimeMs = input.ReadUInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + ClientTimeMs = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PlayerHeartbeatScRsp.cs b/Common/Proto/PlayerHeartbeatScRsp.cs new file mode 100644 index 00000000..35714e2a --- /dev/null +++ b/Common/Proto/PlayerHeartbeatScRsp.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayerHeartbeatScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PlayerHeartbeatScRsp.proto + public static partial class PlayerHeartbeatScRspReflection { + + #region Descriptor + /// File descriptor for PlayerHeartbeatScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayerHeartbeatScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpQbGF5ZXJIZWFydGJlYXRTY1JzcC5wcm90byJXChRQbGF5ZXJIZWFydGJl", + "YXRTY1JzcBIPCgdyZXRjb2RlGAEgASgNEhYKDmNsaWVudF90aW1lX21zGA0g", + "ASgEEhYKDnNlcnZlcl90aW1lX21zGAsgASgEQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PlayerHeartbeatScRsp), global::EggLink.DanhengServer.Proto.PlayerHeartbeatScRsp.Parser, new[]{ "Retcode", "ClientTimeMs", "ServerTimeMs" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlayerHeartbeatScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerHeartbeatScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PlayerHeartbeatScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerHeartbeatScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerHeartbeatScRsp(PlayerHeartbeatScRsp other) : this() { + retcode_ = other.retcode_; + clientTimeMs_ = other.clientTimeMs_; + serverTimeMs_ = other.serverTimeMs_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerHeartbeatScRsp Clone() { + return new PlayerHeartbeatScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "client_time_ms" field. + public const int ClientTimeMsFieldNumber = 13; + private ulong clientTimeMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ClientTimeMs { + get { return clientTimeMs_; } + set { + clientTimeMs_ = value; + } + } + + /// Field number for the "server_time_ms" field. + public const int ServerTimeMsFieldNumber = 11; + private ulong serverTimeMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ServerTimeMs { + get { return serverTimeMs_; } + set { + serverTimeMs_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlayerHeartbeatScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerHeartbeatScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (ClientTimeMs != other.ClientTimeMs) return false; + if (ServerTimeMs != other.ServerTimeMs) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (ClientTimeMs != 0UL) hash ^= ClientTimeMs.GetHashCode(); + if (ServerTimeMs != 0UL) hash ^= ServerTimeMs.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (ServerTimeMs != 0UL) { + output.WriteRawTag(88); + output.WriteUInt64(ServerTimeMs); + } + if (ClientTimeMs != 0UL) { + output.WriteRawTag(104); + output.WriteUInt64(ClientTimeMs); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (ServerTimeMs != 0UL) { + output.WriteRawTag(88); + output.WriteUInt64(ServerTimeMs); + } + if (ClientTimeMs != 0UL) { + output.WriteRawTag(104); + output.WriteUInt64(ClientTimeMs); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (ClientTimeMs != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClientTimeMs); + } + if (ServerTimeMs != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ServerTimeMs); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerHeartbeatScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.ClientTimeMs != 0UL) { + ClientTimeMs = other.ClientTimeMs; + } + if (other.ServerTimeMs != 0UL) { + ServerTimeMs = other.ServerTimeMs; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 88: { + ServerTimeMs = input.ReadUInt64(); + break; + } + case 104: { + ClientTimeMs = input.ReadUInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 88: { + ServerTimeMs = input.ReadUInt64(); + break; + } + case 104: { + ClientTimeMs = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PlayerLoginScRsp.cs b/Common/Proto/PlayerLoginScRsp.cs new file mode 100644 index 00000000..4f3afc4d --- /dev/null +++ b/Common/Proto/PlayerLoginScRsp.cs @@ -0,0 +1,431 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayerLoginScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PlayerLoginScRsp.proto + public static partial class PlayerLoginScRspReflection { + + #region Descriptor + /// File descriptor for PlayerLoginScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayerLoginScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZQbGF5ZXJMb2dpblNjUnNwLnByb3RvGhVQbGF5ZXJCYXNpY0luZm8ucHJv", + "dG8iowEKEFBsYXllckxvZ2luU2NSc3ASDwoHcmV0Y29kZRgCIAEoDRIbChNz", + "ZXJ2ZXJfdGltZXN0YW1wX21zGAQgASgEEhQKDGxvZ2luX3JhbmRvbRgNIAEo", + "BBIkCgpiYXNpY19pbmZvGAYgASgLMhAuUGxheWVyQmFzaWNJbmZvEg8KB3N0", + "YW1pbmEYDyABKA0SFAoMY3VyX3RpbWV6b25lGAcgASgRQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PlayerBasicInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PlayerLoginScRsp), global::EggLink.DanhengServer.Proto.PlayerLoginScRsp.Parser, new[]{ "Retcode", "ServerTimestampMs", "LoginRandom", "BasicInfo", "Stamina", "CurTimezone" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlayerLoginScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerLoginScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PlayerLoginScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerLoginScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerLoginScRsp(PlayerLoginScRsp other) : this() { + retcode_ = other.retcode_; + serverTimestampMs_ = other.serverTimestampMs_; + loginRandom_ = other.loginRandom_; + basicInfo_ = other.basicInfo_ != null ? other.basicInfo_.Clone() : null; + stamina_ = other.stamina_; + curTimezone_ = other.curTimezone_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerLoginScRsp Clone() { + return new PlayerLoginScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 2; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "server_timestamp_ms" field. + public const int ServerTimestampMsFieldNumber = 4; + private ulong serverTimestampMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ServerTimestampMs { + get { return serverTimestampMs_; } + set { + serverTimestampMs_ = value; + } + } + + /// Field number for the "login_random" field. + public const int LoginRandomFieldNumber = 13; + private ulong loginRandom_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong LoginRandom { + get { return loginRandom_; } + set { + loginRandom_ = value; + } + } + + /// Field number for the "basic_info" field. + public const int BasicInfoFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.PlayerBasicInfo basicInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.PlayerBasicInfo BasicInfo { + get { return basicInfo_; } + set { + basicInfo_ = value; + } + } + + /// Field number for the "stamina" field. + public const int StaminaFieldNumber = 15; + private uint stamina_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Stamina { + get { return stamina_; } + set { + stamina_ = value; + } + } + + /// Field number for the "cur_timezone" field. + public const int CurTimezoneFieldNumber = 7; + private int curTimezone_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CurTimezone { + get { return curTimezone_; } + set { + curTimezone_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlayerLoginScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerLoginScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (ServerTimestampMs != other.ServerTimestampMs) return false; + if (LoginRandom != other.LoginRandom) return false; + if (!object.Equals(BasicInfo, other.BasicInfo)) return false; + if (Stamina != other.Stamina) return false; + if (CurTimezone != other.CurTimezone) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (ServerTimestampMs != 0UL) hash ^= ServerTimestampMs.GetHashCode(); + if (LoginRandom != 0UL) hash ^= LoginRandom.GetHashCode(); + if (basicInfo_ != null) hash ^= BasicInfo.GetHashCode(); + if (Stamina != 0) hash ^= Stamina.GetHashCode(); + if (CurTimezone != 0) hash ^= CurTimezone.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + if (ServerTimestampMs != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(ServerTimestampMs); + } + if (basicInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(BasicInfo); + } + if (CurTimezone != 0) { + output.WriteRawTag(56); + output.WriteSInt32(CurTimezone); + } + if (LoginRandom != 0UL) { + output.WriteRawTag(104); + output.WriteUInt64(LoginRandom); + } + if (Stamina != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Stamina); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + if (ServerTimestampMs != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(ServerTimestampMs); + } + if (basicInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(BasicInfo); + } + if (CurTimezone != 0) { + output.WriteRawTag(56); + output.WriteSInt32(CurTimezone); + } + if (LoginRandom != 0UL) { + output.WriteRawTag(104); + output.WriteUInt64(LoginRandom); + } + if (Stamina != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Stamina); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (ServerTimestampMs != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ServerTimestampMs); + } + if (LoginRandom != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LoginRandom); + } + if (basicInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BasicInfo); + } + if (Stamina != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Stamina); + } + if (CurTimezone != 0) { + size += 1 + pb::CodedOutputStream.ComputeSInt32Size(CurTimezone); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerLoginScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.ServerTimestampMs != 0UL) { + ServerTimestampMs = other.ServerTimestampMs; + } + if (other.LoginRandom != 0UL) { + LoginRandom = other.LoginRandom; + } + if (other.basicInfo_ != null) { + if (basicInfo_ == null) { + BasicInfo = new global::EggLink.DanhengServer.Proto.PlayerBasicInfo(); + } + BasicInfo.MergeFrom(other.BasicInfo); + } + if (other.Stamina != 0) { + Stamina = other.Stamina; + } + if (other.CurTimezone != 0) { + CurTimezone = other.CurTimezone; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 32: { + ServerTimestampMs = input.ReadUInt64(); + break; + } + case 50: { + if (basicInfo_ == null) { + BasicInfo = new global::EggLink.DanhengServer.Proto.PlayerBasicInfo(); + } + input.ReadMessage(BasicInfo); + break; + } + case 56: { + CurTimezone = input.ReadSInt32(); + break; + } + case 104: { + LoginRandom = input.ReadUInt64(); + break; + } + case 120: { + Stamina = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 32: { + ServerTimestampMs = input.ReadUInt64(); + break; + } + case 50: { + if (basicInfo_ == null) { + BasicInfo = new global::EggLink.DanhengServer.Proto.PlayerBasicInfo(); + } + input.ReadMessage(BasicInfo); + break; + } + case 56: { + CurTimezone = input.ReadSInt32(); + break; + } + case 104: { + LoginRandom = input.ReadUInt64(); + break; + } + case 120: { + Stamina = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PlayerSettingInfo.cs b/Common/Proto/PlayerSettingInfo.cs new file mode 100644 index 00000000..8aa5a8c5 --- /dev/null +++ b/Common/Proto/PlayerSettingInfo.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayerSettingInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PlayerSettingInfo.proto + public static partial class PlayerSettingInfoReflection { + + #region Descriptor + /// File descriptor for PlayerSettingInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayerSettingInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdQbGF5ZXJTZXR0aW5nSW5mby5wcm90byJSChFQbGF5ZXJTZXR0aW5nSW5m", + "bxITCgtOT0RITEtDRkxQQRgIIAEoCBITCgtITUFNR0ZKQU5HTxgOIAEoCBIT", + "CgtQTUJCRUlFSEJNTBgHIAEoCEIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy", + "LlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PlayerSettingInfo), global::EggLink.DanhengServer.Proto.PlayerSettingInfo.Parser, new[]{ "NODHLKCFLPA", "HMAMGFJANGO", "PMBBEIEHBML" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlayerSettingInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerSettingInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PlayerSettingInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerSettingInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerSettingInfo(PlayerSettingInfo other) : this() { + nODHLKCFLPA_ = other.nODHLKCFLPA_; + hMAMGFJANGO_ = other.hMAMGFJANGO_; + pMBBEIEHBML_ = other.pMBBEIEHBML_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerSettingInfo Clone() { + return new PlayerSettingInfo(this); + } + + /// Field number for the "NODHLKCFLPA" field. + public const int NODHLKCFLPAFieldNumber = 8; + private bool nODHLKCFLPA_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool NODHLKCFLPA { + get { return nODHLKCFLPA_; } + set { + nODHLKCFLPA_ = value; + } + } + + /// Field number for the "HMAMGFJANGO" field. + public const int HMAMGFJANGOFieldNumber = 14; + private bool hMAMGFJANGO_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HMAMGFJANGO { + get { return hMAMGFJANGO_; } + set { + hMAMGFJANGO_ = value; + } + } + + /// Field number for the "PMBBEIEHBML" field. + public const int PMBBEIEHBMLFieldNumber = 7; + private bool pMBBEIEHBML_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PMBBEIEHBML { + get { return pMBBEIEHBML_; } + set { + pMBBEIEHBML_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlayerSettingInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerSettingInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NODHLKCFLPA != other.NODHLKCFLPA) return false; + if (HMAMGFJANGO != other.HMAMGFJANGO) return false; + if (PMBBEIEHBML != other.PMBBEIEHBML) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (NODHLKCFLPA != false) hash ^= NODHLKCFLPA.GetHashCode(); + if (HMAMGFJANGO != false) hash ^= HMAMGFJANGO.GetHashCode(); + if (PMBBEIEHBML != false) hash ^= PMBBEIEHBML.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PMBBEIEHBML != false) { + output.WriteRawTag(56); + output.WriteBool(PMBBEIEHBML); + } + if (NODHLKCFLPA != false) { + output.WriteRawTag(64); + output.WriteBool(NODHLKCFLPA); + } + if (HMAMGFJANGO != false) { + output.WriteRawTag(112); + output.WriteBool(HMAMGFJANGO); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PMBBEIEHBML != false) { + output.WriteRawTag(56); + output.WriteBool(PMBBEIEHBML); + } + if (NODHLKCFLPA != false) { + output.WriteRawTag(64); + output.WriteBool(NODHLKCFLPA); + } + if (HMAMGFJANGO != false) { + output.WriteRawTag(112); + output.WriteBool(HMAMGFJANGO); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (NODHLKCFLPA != false) { + size += 1 + 1; + } + if (HMAMGFJANGO != false) { + size += 1 + 1; + } + if (PMBBEIEHBML != 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(PlayerSettingInfo other) { + if (other == null) { + return; + } + if (other.NODHLKCFLPA != false) { + NODHLKCFLPA = other.NODHLKCFLPA; + } + if (other.HMAMGFJANGO != false) { + HMAMGFJANGO = other.HMAMGFJANGO; + } + if (other.PMBBEIEHBML != false) { + PMBBEIEHBML = other.PMBBEIEHBML; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 56: { + PMBBEIEHBML = input.ReadBool(); + break; + } + case 64: { + NODHLKCFLPA = input.ReadBool(); + break; + } + case 112: { + HMAMGFJANGO = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 56: { + PMBBEIEHBML = input.ReadBool(); + break; + } + case 64: { + NODHLKCFLPA = input.ReadBool(); + break; + } + case 112: { + HMAMGFJANGO = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PlayerSyncScNotify.cs b/Common/Proto/PlayerSyncScNotify.cs new file mode 100644 index 00000000..1e102765 --- /dev/null +++ b/Common/Proto/PlayerSyncScNotify.cs @@ -0,0 +1,504 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PlayerSyncScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PlayerSyncScNotify.proto + public static partial class PlayerSyncScNotifyReflection { + + #region Descriptor + /// File descriptor for PlayerSyncScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayerSyncScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhQbGF5ZXJTeW5jU2NOb3RpZnkucHJvdG8aC1JlbGljLnByb3RvGg9FcXVp", + "cG1lbnQucHJvdG8aFVBsYXllckJhc2ljSW5mby5wcm90bxoTQm9hcmREYXRh", + "U3luYy5wcm90bxoOTWF0ZXJpYWwucHJvdG8aEEF2YXRhclN5bmMucHJvdG8a", + "F0hlcm9CYXNpY1R5cGVJbmZvLnByb3RvIs4CChJQbGF5ZXJTeW5jU2NOb3Rp", + "ZnkSIAoNbWF0ZXJpYWxfbGlzdBgPIAMoCzIJLk1hdGVyaWFsEiIKDmVxdWlw", + "bWVudF9saXN0GAYgAygLMgouRXF1aXBtZW50EigKD2JvYXJkX2RhdGFfc3lu", + "YxjbDCABKAsyDi5Cb2FyZERhdGFTeW5jEiAKC2F2YXRhcl9zeW5jGAMgASgL", + "MgsuQXZhdGFyU3luYxIkCgpiYXNpY19pbmZvGAQgASgLMhAuUGxheWVyQmFz", + "aWNJbmZvEhoKCnJlbGljX2xpc3QYASADKAsyBi5SZWxpYxIwChRiYXNpY190", + "eXBlX2luZm9fbGlzdBgLIAMoCzISLkhlcm9CYXNpY1R5cGVJbmZvEhYKDmRl", + "bF9yZWxpY19saXN0GAggAygNEhoKEmRlbF9lcXVpcG1lbnRfbGlzdBgNIAMo", + "DUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RelicReflection.Descriptor, global::EggLink.DanhengServer.Proto.EquipmentReflection.Descriptor, global::EggLink.DanhengServer.Proto.PlayerBasicInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.BoardDataSyncReflection.Descriptor, global::EggLink.DanhengServer.Proto.MaterialReflection.Descriptor, global::EggLink.DanhengServer.Proto.AvatarSyncReflection.Descriptor, global::EggLink.DanhengServer.Proto.HeroBasicTypeInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PlayerSyncScNotify), global::EggLink.DanhengServer.Proto.PlayerSyncScNotify.Parser, new[]{ "MaterialList", "EquipmentList", "BoardDataSync", "AvatarSync", "BasicInfo", "RelicList", "BasicTypeInfoList", "DelRelicList", "DelEquipmentList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlayerSyncScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerSyncScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PlayerSyncScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerSyncScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerSyncScNotify(PlayerSyncScNotify other) : this() { + materialList_ = other.materialList_.Clone(); + equipmentList_ = other.equipmentList_.Clone(); + boardDataSync_ = other.boardDataSync_ != null ? other.boardDataSync_.Clone() : null; + avatarSync_ = other.avatarSync_ != null ? other.avatarSync_.Clone() : null; + basicInfo_ = other.basicInfo_ != null ? other.basicInfo_.Clone() : null; + relicList_ = other.relicList_.Clone(); + basicTypeInfoList_ = other.basicTypeInfoList_.Clone(); + delRelicList_ = other.delRelicList_.Clone(); + delEquipmentList_ = other.delEquipmentList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerSyncScNotify Clone() { + return new PlayerSyncScNotify(this); + } + + /// Field number for the "material_list" field. + public const int MaterialListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_materialList_codec + = pb::FieldCodec.ForMessage(122, global::EggLink.DanhengServer.Proto.Material.Parser); + private readonly pbc::RepeatedField materialList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MaterialList { + get { return materialList_; } + } + + /// Field number for the "equipment_list" field. + public const int EquipmentListFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_equipmentList_codec + = pb::FieldCodec.ForMessage(50, global::EggLink.DanhengServer.Proto.Equipment.Parser); + private readonly pbc::RepeatedField equipmentList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EquipmentList { + get { return equipmentList_; } + } + + /// Field number for the "board_data_sync" field. + public const int BoardDataSyncFieldNumber = 1627; + private global::EggLink.DanhengServer.Proto.BoardDataSync boardDataSync_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.BoardDataSync BoardDataSync { + get { return boardDataSync_; } + set { + boardDataSync_ = value; + } + } + + /// Field number for the "avatar_sync" field. + public const int AvatarSyncFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.AvatarSync avatarSync_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.AvatarSync AvatarSync { + get { return avatarSync_; } + set { + avatarSync_ = value; + } + } + + /// Field number for the "basic_info" field. + public const int BasicInfoFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.PlayerBasicInfo basicInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.PlayerBasicInfo BasicInfo { + get { return basicInfo_; } + set { + basicInfo_ = value; + } + } + + /// Field number for the "relic_list" field. + public const int RelicListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_relicList_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.Relic.Parser); + private readonly pbc::RepeatedField relicList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RelicList { + get { return relicList_; } + } + + /// Field number for the "basic_type_info_list" field. + public const int BasicTypeInfoListFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_basicTypeInfoList_codec + = pb::FieldCodec.ForMessage(90, global::EggLink.DanhengServer.Proto.HeroBasicTypeInfo.Parser); + private readonly pbc::RepeatedField basicTypeInfoList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BasicTypeInfoList { + get { return basicTypeInfoList_; } + } + + /// Field number for the "del_relic_list" field. + public const int DelRelicListFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_delRelicList_codec + = pb::FieldCodec.ForUInt32(66); + private readonly pbc::RepeatedField delRelicList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DelRelicList { + get { return delRelicList_; } + } + + /// Field number for the "del_equipment_list" field. + public const int DelEquipmentListFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_delEquipmentList_codec + = pb::FieldCodec.ForUInt32(106); + private readonly pbc::RepeatedField delEquipmentList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DelEquipmentList { + get { return delEquipmentList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlayerSyncScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerSyncScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!materialList_.Equals(other.materialList_)) return false; + if(!equipmentList_.Equals(other.equipmentList_)) return false; + if (!object.Equals(BoardDataSync, other.BoardDataSync)) return false; + if (!object.Equals(AvatarSync, other.AvatarSync)) return false; + if (!object.Equals(BasicInfo, other.BasicInfo)) return false; + if(!relicList_.Equals(other.relicList_)) return false; + if(!basicTypeInfoList_.Equals(other.basicTypeInfoList_)) return false; + if(!delRelicList_.Equals(other.delRelicList_)) return false; + if(!delEquipmentList_.Equals(other.delEquipmentList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= materialList_.GetHashCode(); + hash ^= equipmentList_.GetHashCode(); + if (boardDataSync_ != null) hash ^= BoardDataSync.GetHashCode(); + if (avatarSync_ != null) hash ^= AvatarSync.GetHashCode(); + if (basicInfo_ != null) hash ^= BasicInfo.GetHashCode(); + hash ^= relicList_.GetHashCode(); + hash ^= basicTypeInfoList_.GetHashCode(); + hash ^= delRelicList_.GetHashCode(); + hash ^= delEquipmentList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + relicList_.WriteTo(output, _repeated_relicList_codec); + if (avatarSync_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AvatarSync); + } + if (basicInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(BasicInfo); + } + equipmentList_.WriteTo(output, _repeated_equipmentList_codec); + delRelicList_.WriteTo(output, _repeated_delRelicList_codec); + basicTypeInfoList_.WriteTo(output, _repeated_basicTypeInfoList_codec); + delEquipmentList_.WriteTo(output, _repeated_delEquipmentList_codec); + materialList_.WriteTo(output, _repeated_materialList_codec); + if (boardDataSync_ != null) { + output.WriteRawTag(218, 101); + output.WriteMessage(BoardDataSync); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + relicList_.WriteTo(ref output, _repeated_relicList_codec); + if (avatarSync_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AvatarSync); + } + if (basicInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(BasicInfo); + } + equipmentList_.WriteTo(ref output, _repeated_equipmentList_codec); + delRelicList_.WriteTo(ref output, _repeated_delRelicList_codec); + basicTypeInfoList_.WriteTo(ref output, _repeated_basicTypeInfoList_codec); + delEquipmentList_.WriteTo(ref output, _repeated_delEquipmentList_codec); + materialList_.WriteTo(ref output, _repeated_materialList_codec); + if (boardDataSync_ != null) { + output.WriteRawTag(218, 101); + output.WriteMessage(BoardDataSync); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += materialList_.CalculateSize(_repeated_materialList_codec); + size += equipmentList_.CalculateSize(_repeated_equipmentList_codec); + if (boardDataSync_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(BoardDataSync); + } + if (avatarSync_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AvatarSync); + } + if (basicInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BasicInfo); + } + size += relicList_.CalculateSize(_repeated_relicList_codec); + size += basicTypeInfoList_.CalculateSize(_repeated_basicTypeInfoList_codec); + size += delRelicList_.CalculateSize(_repeated_delRelicList_codec); + size += delEquipmentList_.CalculateSize(_repeated_delEquipmentList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerSyncScNotify other) { + if (other == null) { + return; + } + materialList_.Add(other.materialList_); + equipmentList_.Add(other.equipmentList_); + if (other.boardDataSync_ != null) { + if (boardDataSync_ == null) { + BoardDataSync = new global::EggLink.DanhengServer.Proto.BoardDataSync(); + } + BoardDataSync.MergeFrom(other.BoardDataSync); + } + if (other.avatarSync_ != null) { + if (avatarSync_ == null) { + AvatarSync = new global::EggLink.DanhengServer.Proto.AvatarSync(); + } + AvatarSync.MergeFrom(other.AvatarSync); + } + if (other.basicInfo_ != null) { + if (basicInfo_ == null) { + BasicInfo = new global::EggLink.DanhengServer.Proto.PlayerBasicInfo(); + } + BasicInfo.MergeFrom(other.BasicInfo); + } + relicList_.Add(other.relicList_); + basicTypeInfoList_.Add(other.basicTypeInfoList_); + delRelicList_.Add(other.delRelicList_); + delEquipmentList_.Add(other.delEquipmentList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + relicList_.AddEntriesFrom(input, _repeated_relicList_codec); + break; + } + case 26: { + if (avatarSync_ == null) { + AvatarSync = new global::EggLink.DanhengServer.Proto.AvatarSync(); + } + input.ReadMessage(AvatarSync); + break; + } + case 34: { + if (basicInfo_ == null) { + BasicInfo = new global::EggLink.DanhengServer.Proto.PlayerBasicInfo(); + } + input.ReadMessage(BasicInfo); + break; + } + case 50: { + equipmentList_.AddEntriesFrom(input, _repeated_equipmentList_codec); + break; + } + case 66: + case 64: { + delRelicList_.AddEntriesFrom(input, _repeated_delRelicList_codec); + break; + } + case 90: { + basicTypeInfoList_.AddEntriesFrom(input, _repeated_basicTypeInfoList_codec); + break; + } + case 106: + case 104: { + delEquipmentList_.AddEntriesFrom(input, _repeated_delEquipmentList_codec); + break; + } + case 122: { + materialList_.AddEntriesFrom(input, _repeated_materialList_codec); + break; + } + case 13018: { + if (boardDataSync_ == null) { + BoardDataSync = new global::EggLink.DanhengServer.Proto.BoardDataSync(); + } + input.ReadMessage(BoardDataSync); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + relicList_.AddEntriesFrom(ref input, _repeated_relicList_codec); + break; + } + case 26: { + if (avatarSync_ == null) { + AvatarSync = new global::EggLink.DanhengServer.Proto.AvatarSync(); + } + input.ReadMessage(AvatarSync); + break; + } + case 34: { + if (basicInfo_ == null) { + BasicInfo = new global::EggLink.DanhengServer.Proto.PlayerBasicInfo(); + } + input.ReadMessage(BasicInfo); + break; + } + case 50: { + equipmentList_.AddEntriesFrom(ref input, _repeated_equipmentList_codec); + break; + } + case 66: + case 64: { + delRelicList_.AddEntriesFrom(ref input, _repeated_delRelicList_codec); + break; + } + case 90: { + basicTypeInfoList_.AddEntriesFrom(ref input, _repeated_basicTypeInfoList_codec); + break; + } + case 106: + case 104: { + delEquipmentList_.AddEntriesFrom(ref input, _repeated_delEquipmentList_codec); + break; + } + case 122: { + materialList_.AddEntriesFrom(ref input, _repeated_materialList_codec); + break; + } + case 13018: { + if (boardDataSync_ == null) { + BoardDataSync = new global::EggLink.DanhengServer.Proto.BoardDataSync(); + } + input.ReadMessage(BoardDataSync); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PromoteAvatarCsReq.cs b/Common/Proto/PromoteAvatarCsReq.cs new file mode 100644 index 00000000..fdd65799 --- /dev/null +++ b/Common/Proto/PromoteAvatarCsReq.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PromoteAvatarCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PromoteAvatarCsReq.proto + public static partial class PromoteAvatarCsReqReflection { + + #region Descriptor + /// File descriptor for PromoteAvatarCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PromoteAvatarCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhQcm9tb3RlQXZhdGFyQ3NSZXEucHJvdG8aDkl0ZW1Db3N0LnByb3RvIkoK", + "ElByb21vdGVBdmF0YXJDc1JlcRIWCg5iYXNlX2F2YXRhcl9pZBgHIAEoDRIc", + "CglpdGVtX2xpc3QYDSADKAsyCS5JdGVtQ29zdEIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PromoteAvatarCsReq), global::EggLink.DanhengServer.Proto.PromoteAvatarCsReq.Parser, new[]{ "BaseAvatarId", "ItemList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PromoteAvatarCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PromoteAvatarCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PromoteAvatarCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PromoteAvatarCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PromoteAvatarCsReq(PromoteAvatarCsReq other) : this() { + baseAvatarId_ = other.baseAvatarId_; + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PromoteAvatarCsReq Clone() { + return new PromoteAvatarCsReq(this); + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 7; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(106, global::EggLink.DanhengServer.Proto.ItemCost.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PromoteAvatarCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PromoteAvatarCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BaseAvatarId != other.BaseAvatarId) return false; + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BaseAvatarId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(BaseAvatarId); + } + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BaseAvatarId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(BaseAvatarId); + } + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PromoteAvatarCsReq other) { + if (other == null) { + return; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 56: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 106: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 56: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 106: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PromoteEquipmentCsReq.cs b/Common/Proto/PromoteEquipmentCsReq.cs new file mode 100644 index 00000000..b713e988 --- /dev/null +++ b/Common/Proto/PromoteEquipmentCsReq.cs @@ -0,0 +1,282 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PromoteEquipmentCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PromoteEquipmentCsReq.proto + public static partial class PromoteEquipmentCsReqReflection { + + #region Descriptor + /// File descriptor for PromoteEquipmentCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PromoteEquipmentCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtQcm9tb3RlRXF1aXBtZW50Q3NSZXEucHJvdG8aEkl0ZW1Db3N0TGlzdC5w", + "cm90byJbChVQcm9tb3RlRXF1aXBtZW50Q3NSZXESJQoOaXRlbV9jb3N0X2xp", + "c3QYDCABKAsyDS5JdGVtQ29zdExpc3QSGwoTZXF1aXBtZW50X3VuaXF1ZV9p", + "ZBgNIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PromoteEquipmentCsReq), global::EggLink.DanhengServer.Proto.PromoteEquipmentCsReq.Parser, new[]{ "ItemCostList", "EquipmentUniqueId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PromoteEquipmentCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PromoteEquipmentCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PromoteEquipmentCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PromoteEquipmentCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PromoteEquipmentCsReq(PromoteEquipmentCsReq other) : this() { + itemCostList_ = other.itemCostList_ != null ? other.itemCostList_.Clone() : null; + equipmentUniqueId_ = other.equipmentUniqueId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PromoteEquipmentCsReq Clone() { + return new PromoteEquipmentCsReq(this); + } + + /// Field number for the "item_cost_list" field. + public const int ItemCostListFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.ItemCostList itemCostList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList ItemCostList { + get { return itemCostList_; } + set { + itemCostList_ = value; + } + } + + /// Field number for the "equipment_unique_id" field. + public const int EquipmentUniqueIdFieldNumber = 13; + private uint equipmentUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EquipmentUniqueId { + get { return equipmentUniqueId_; } + set { + equipmentUniqueId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PromoteEquipmentCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PromoteEquipmentCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ItemCostList, other.ItemCostList)) return false; + if (EquipmentUniqueId != other.EquipmentUniqueId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (itemCostList_ != null) hash ^= ItemCostList.GetHashCode(); + if (EquipmentUniqueId != 0) hash ^= EquipmentUniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (itemCostList_ != null) { + output.WriteRawTag(98); + output.WriteMessage(ItemCostList); + } + if (EquipmentUniqueId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(EquipmentUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (itemCostList_ != null) { + output.WriteRawTag(98); + output.WriteMessage(ItemCostList); + } + if (EquipmentUniqueId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(EquipmentUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (itemCostList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemCostList); + } + if (EquipmentUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EquipmentUniqueId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PromoteEquipmentCsReq other) { + if (other == null) { + return; + } + if (other.itemCostList_ != null) { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + ItemCostList.MergeFrom(other.ItemCostList); + } + if (other.EquipmentUniqueId != 0) { + EquipmentUniqueId = other.EquipmentUniqueId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 98: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + case 104: { + EquipmentUniqueId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 98: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + case 104: { + EquipmentUniqueId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PropAeonInfo.cs b/Common/Proto/PropAeonInfo.cs new file mode 100644 index 00000000..53a25a03 --- /dev/null +++ b/Common/Proto/PropAeonInfo.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PropAeonInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PropAeonInfo.proto + public static partial class PropAeonInfoReflection { + + #region Descriptor + /// File descriptor for PropAeonInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PropAeonInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJQcm9wQWVvbkluZm8ucHJvdG8iSwoMUHJvcEFlb25JbmZvEhkKEWRpYWxv", + "Z3VlX2dyb3VwX2lkGA4gASgNEg8KB2Flb25faWQYByABKA0SDwoHYWRkX2V4", + "cBgNIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PropAeonInfo), global::EggLink.DanhengServer.Proto.PropAeonInfo.Parser, new[]{ "DialogueGroupId", "AeonId", "AddExp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PropAeonInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropAeonInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PropAeonInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PropAeonInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PropAeonInfo(PropAeonInfo other) : this() { + dialogueGroupId_ = other.dialogueGroupId_; + aeonId_ = other.aeonId_; + addExp_ = other.addExp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PropAeonInfo Clone() { + return new PropAeonInfo(this); + } + + /// Field number for the "dialogue_group_id" field. + public const int DialogueGroupIdFieldNumber = 14; + private uint dialogueGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DialogueGroupId { + get { return dialogueGroupId_; } + set { + dialogueGroupId_ = value; + } + } + + /// Field number for the "aeon_id" field. + public const int AeonIdFieldNumber = 7; + private uint aeonId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AeonId { + get { return aeonId_; } + set { + aeonId_ = value; + } + } + + /// Field number for the "add_exp" field. + public const int AddExpFieldNumber = 13; + private uint addExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AddExp { + get { return addExp_; } + set { + addExp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PropAeonInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PropAeonInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DialogueGroupId != other.DialogueGroupId) return false; + if (AeonId != other.AeonId) return false; + if (AddExp != other.AddExp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (DialogueGroupId != 0) hash ^= DialogueGroupId.GetHashCode(); + if (AeonId != 0) hash ^= AeonId.GetHashCode(); + if (AddExp != 0) hash ^= AddExp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AeonId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(AeonId); + } + if (AddExp != 0) { + output.WriteRawTag(104); + output.WriteUInt32(AddExp); + } + if (DialogueGroupId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(DialogueGroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AeonId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(AeonId); + } + if (AddExp != 0) { + output.WriteRawTag(104); + output.WriteUInt32(AddExp); + } + if (DialogueGroupId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(DialogueGroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (DialogueGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DialogueGroupId); + } + if (AeonId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AeonId); + } + if (AddExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AddExp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PropAeonInfo other) { + if (other == null) { + return; + } + if (other.DialogueGroupId != 0) { + DialogueGroupId = other.DialogueGroupId; + } + if (other.AeonId != 0) { + AeonId = other.AeonId; + } + if (other.AddExp != 0) { + AddExp = other.AddExp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 56: { + AeonId = input.ReadUInt32(); + break; + } + case 104: { + AddExp = input.ReadUInt32(); + break; + } + case 112: { + DialogueGroupId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 56: { + AeonId = input.ReadUInt32(); + break; + } + case 104: { + AddExp = input.ReadUInt32(); + break; + } + case 112: { + DialogueGroupId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PropExtraInfo.cs b/Common/Proto/PropExtraInfo.cs new file mode 100644 index 00000000..a3cef71a --- /dev/null +++ b/Common/Proto/PropExtraInfo.cs @@ -0,0 +1,243 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PropExtraInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PropExtraInfo.proto + public static partial class PropExtraInfoReflection { + + #region Descriptor + /// File descriptor for PropExtraInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PropExtraInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNQcm9wRXh0cmFJbmZvLnByb3RvGhNQcm9wUm9ndWVJbmZvLnByb3RvIjMK", + "DVByb3BFeHRyYUluZm8SIgoKcm9ndWVfaW5mbxgCIAEoCzIOLlByb3BSb2d1", + "ZUluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PropRogueInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PropExtraInfo), global::EggLink.DanhengServer.Proto.PropExtraInfo.Parser, new[]{ "RogueInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PropExtraInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropExtraInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PropExtraInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PropExtraInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PropExtraInfo(PropExtraInfo other) : this() { + rogueInfo_ = other.rogueInfo_ != null ? other.rogueInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PropExtraInfo Clone() { + return new PropExtraInfo(this); + } + + /// Field number for the "rogue_info" field. + public const int RogueInfoFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.PropRogueInfo rogueInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.PropRogueInfo RogueInfo { + get { return rogueInfo_; } + set { + rogueInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PropExtraInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PropExtraInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueInfo, other.RogueInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueInfo_ != null) hash ^= RogueInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rogueInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RogueInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rogueInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RogueInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PropExtraInfo other) { + if (other == null) { + return; + } + if (other.rogueInfo_ != null) { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.PropRogueInfo(); + } + RogueInfo.MergeFrom(other.RogueInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.PropRogueInfo(); + } + input.ReadMessage(RogueInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.PropRogueInfo(); + } + input.ReadMessage(RogueInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/PropRogueInfo.cs b/Common/Proto/PropRogueInfo.cs new file mode 100644 index 00000000..d49b1a9b --- /dev/null +++ b/Common/Proto/PropRogueInfo.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PropRogueInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from PropRogueInfo.proto + public static partial class PropRogueInfoReflection { + + #region Descriptor + /// File descriptor for PropRogueInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PropRogueInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNQcm9wUm9ndWVJbmZvLnByb3RvIjEKDVByb3BSb2d1ZUluZm8SDwoHcm9v", + "bV9pZBgMIAEoDRIPCgdzaXRlX2lkGAsgASgNQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PropRogueInfo), global::EggLink.DanhengServer.Proto.PropRogueInfo.Parser, new[]{ "RoomId", "SiteId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PropRogueInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropRogueInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.PropRogueInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PropRogueInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PropRogueInfo(PropRogueInfo other) : this() { + roomId_ = other.roomId_; + siteId_ = other.siteId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PropRogueInfo Clone() { + return new PropRogueInfo(this); + } + + /// Field number for the "room_id" field. + public const int RoomIdFieldNumber = 12; + private uint roomId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RoomId { + get { return roomId_; } + set { + roomId_ = value; + } + } + + /// Field number for the "site_id" field. + public const int SiteIdFieldNumber = 11; + private uint siteId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SiteId { + get { return siteId_; } + set { + siteId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PropRogueInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PropRogueInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomId != other.RoomId) return false; + if (SiteId != other.SiteId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RoomId != 0) hash ^= RoomId.GetHashCode(); + if (SiteId != 0) hash ^= SiteId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SiteId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(SiteId); + } + if (RoomId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RoomId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SiteId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(SiteId); + } + if (RoomId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RoomId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RoomId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoomId); + } + if (SiteId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SiteId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PropRogueInfo other) { + if (other == null) { + return; + } + if (other.RoomId != 0) { + RoomId = other.RoomId; + } + if (other.SiteId != 0) { + SiteId = other.SiteId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 88: { + SiteId = input.ReadUInt32(); + break; + } + case 96: { + RoomId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 88: { + SiteId = input.ReadUInt32(); + break; + } + case 96: { + RoomId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Quest.cs b/Common/Proto/Quest.cs new file mode 100644 index 00000000..78bacf05 --- /dev/null +++ b/Common/Proto/Quest.cs @@ -0,0 +1,375 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Quest.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from Quest.proto + public static partial class QuestReflection { + + #region Descriptor + /// File descriptor for Quest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static QuestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtRdWVzdC5wcm90bxoRUXVlc3RTdGF0dXMucHJvdG8ibQoFUXVlc3QSEwoL", + "ZmluaXNoX3RpbWUYBCABKAMSCgoCaWQYBSABKA0SEwoLSU9JUEpLSklISkIY", + "DyADKA0SEAoIcHJvZ3Jlc3MYBiABKA0SHAoGc3RhdHVzGA0gASgOMgwuUXVl", + "c3RTdGF0dXNCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.QuestStatusReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Quest), global::EggLink.DanhengServer.Proto.Quest.Parser, new[]{ "FinishTime", "Id", "IOIPJKJIHJB", "Progress", "Status" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Quest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Quest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.QuestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Quest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Quest(Quest other) : this() { + finishTime_ = other.finishTime_; + id_ = other.id_; + iOIPJKJIHJB_ = other.iOIPJKJIHJB_.Clone(); + progress_ = other.progress_; + status_ = other.status_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Quest Clone() { + return new Quest(this); + } + + /// Field number for the "finish_time" field. + public const int FinishTimeFieldNumber = 4; + private long finishTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long FinishTime { + get { return finishTime_; } + set { + finishTime_ = value; + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 5; + 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 "IOIPJKJIHJB" field. + public const int IOIPJKJIHJBFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_iOIPJKJIHJB_codec + = pb::FieldCodec.ForUInt32(122); + private readonly pbc::RepeatedField iOIPJKJIHJB_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField IOIPJKJIHJB { + get { return iOIPJKJIHJB_; } + } + + /// Field number for the "progress" field. + public const int ProgressFieldNumber = 6; + private uint progress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Progress { + get { return progress_; } + set { + progress_ = value; + } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.QuestStatus status_ = global::EggLink.DanhengServer.Proto.QuestStatus.QuestNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.QuestStatus Status { + get { return status_; } + set { + status_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Quest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Quest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FinishTime != other.FinishTime) return false; + if (Id != other.Id) return false; + if(!iOIPJKJIHJB_.Equals(other.iOIPJKJIHJB_)) return false; + if (Progress != other.Progress) return false; + if (Status != other.Status) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FinishTime != 0L) hash ^= FinishTime.GetHashCode(); + if (Id != 0) hash ^= Id.GetHashCode(); + hash ^= iOIPJKJIHJB_.GetHashCode(); + if (Progress != 0) hash ^= Progress.GetHashCode(); + if (Status != global::EggLink.DanhengServer.Proto.QuestStatus.QuestNone) hash ^= Status.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FinishTime != 0L) { + output.WriteRawTag(32); + output.WriteInt64(FinishTime); + } + if (Id != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Id); + } + if (Progress != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Progress); + } + if (Status != global::EggLink.DanhengServer.Proto.QuestStatus.QuestNone) { + output.WriteRawTag(104); + output.WriteEnum((int) Status); + } + iOIPJKJIHJB_.WriteTo(output, _repeated_iOIPJKJIHJB_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FinishTime != 0L) { + output.WriteRawTag(32); + output.WriteInt64(FinishTime); + } + if (Id != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Id); + } + if (Progress != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Progress); + } + if (Status != global::EggLink.DanhengServer.Proto.QuestStatus.QuestNone) { + output.WriteRawTag(104); + output.WriteEnum((int) Status); + } + iOIPJKJIHJB_.WriteTo(ref output, _repeated_iOIPJKJIHJB_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FinishTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(FinishTime); + } + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + size += iOIPJKJIHJB_.CalculateSize(_repeated_iOIPJKJIHJB_codec); + if (Progress != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Progress); + } + if (Status != global::EggLink.DanhengServer.Proto.QuestStatus.QuestNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Quest other) { + if (other == null) { + return; + } + if (other.FinishTime != 0L) { + FinishTime = other.FinishTime; + } + if (other.Id != 0) { + Id = other.Id; + } + iOIPJKJIHJB_.Add(other.iOIPJKJIHJB_); + if (other.Progress != 0) { + Progress = other.Progress; + } + if (other.Status != global::EggLink.DanhengServer.Proto.QuestStatus.QuestNone) { + Status = other.Status; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + FinishTime = input.ReadInt64(); + break; + } + case 40: { + Id = input.ReadUInt32(); + break; + } + case 48: { + Progress = input.ReadUInt32(); + break; + } + case 104: { + Status = (global::EggLink.DanhengServer.Proto.QuestStatus) input.ReadEnum(); + break; + } + case 122: + case 120: { + iOIPJKJIHJB_.AddEntriesFrom(input, _repeated_iOIPJKJIHJB_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + FinishTime = input.ReadInt64(); + break; + } + case 40: { + Id = input.ReadUInt32(); + break; + } + case 48: { + Progress = input.ReadUInt32(); + break; + } + case 104: { + Status = (global::EggLink.DanhengServer.Proto.QuestStatus) input.ReadEnum(); + break; + } + case 122: + case 120: { + iOIPJKJIHJB_.AddEntriesFrom(ref input, _repeated_iOIPJKJIHJB_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/QuestStatus.cs b/Common/Proto/QuestStatus.cs new file mode 100644 index 00000000..0963ad69 --- /dev/null +++ b/Common/Proto/QuestStatus.cs @@ -0,0 +1,51 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: QuestStatus.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from QuestStatus.proto + public static partial class QuestStatusReflection { + + #region Descriptor + /// File descriptor for QuestStatus.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static QuestStatusReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFRdWVzdFN0YXR1cy5wcm90bypjCgtRdWVzdFN0YXR1cxIOCgpRVUVTVF9O", + "T05FEAASDwoLUVVFU1RfRE9JTkcQARIQCgxRVUVTVF9GSU5JU0gQAhIPCgtR", + "VUVTVF9DTE9TRRADEhAKDFFVRVNUX0RFTEVURRAEQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.QuestStatus), }, null, null)); + } + #endregion + + } + #region Enums + public enum QuestStatus { + [pbr::OriginalName("QUEST_NONE")] QuestNone = 0, + [pbr::OriginalName("QUEST_DOING")] QuestDoing = 1, + [pbr::OriginalName("QUEST_FINISH")] QuestFinish = 2, + [pbr::OriginalName("QUEST_CLOSE")] QuestClose = 3, + [pbr::OriginalName("QUEST_DELETE")] QuestDelete = 4, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/QuitLineupCsReq.cs b/Common/Proto/QuitLineupCsReq.cs new file mode 100644 index 00000000..d571fccf --- /dev/null +++ b/Common/Proto/QuitLineupCsReq.cs @@ -0,0 +1,423 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: QuitLineupCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from QuitLineupCsReq.proto + public static partial class QuitLineupCsReqReflection { + + #region Descriptor + /// File descriptor for QuitLineupCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static QuitLineupCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVRdWl0TGluZXVwQ3NSZXEucHJvdG8aFUV4dHJhTGluZXVwVHlwZS5wcm90", + "bxoQQXZhdGFyVHlwZS5wcm90byKtAQoPUXVpdExpbmV1cENzUmVxEisKEWV4", + "dHJhX2xpbmV1cF90eXBlGA4gASgOMhAuRXh0cmFMaW5ldXBUeXBlEg0KBWlu", + "ZGV4GA0gASgNEiAKC2F2YXRhcl90eXBlGAggASgOMgsuQXZhdGFyVHlwZRIS", + "Cgppc192aXJ0dWFsGAUgASgIEhAKCHBsYW5lX2lkGAcgASgNEhYKDmJhc2Vf", + "YXZhdGFyX2lkGAIgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJv", + "dG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ExtraLineupTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.AvatarTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.QuitLineupCsReq), global::EggLink.DanhengServer.Proto.QuitLineupCsReq.Parser, new[]{ "ExtraLineupType", "Index", "AvatarType", "IsVirtual", "PlaneId", "BaseAvatarId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class QuitLineupCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QuitLineupCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.QuitLineupCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public QuitLineupCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public QuitLineupCsReq(QuitLineupCsReq other) : this() { + extraLineupType_ = other.extraLineupType_; + index_ = other.index_; + avatarType_ = other.avatarType_; + isVirtual_ = other.isVirtual_; + planeId_ = other.planeId_; + baseAvatarId_ = other.baseAvatarId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public QuitLineupCsReq Clone() { + return new QuitLineupCsReq(this); + } + + /// Field number for the "extra_lineup_type" field. + public const int ExtraLineupTypeFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.ExtraLineupType extraLineupType_ = global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ExtraLineupType ExtraLineupType { + get { return extraLineupType_; } + set { + extraLineupType_ = value; + } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 13; + private uint index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "avatar_type" field. + public const int AvatarTypeFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.AvatarType avatarType_ = global::EggLink.DanhengServer.Proto.AvatarType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.AvatarType AvatarType { + get { return avatarType_; } + set { + avatarType_ = value; + } + } + + /// Field number for the "is_virtual" field. + public const int IsVirtualFieldNumber = 5; + private bool isVirtual_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsVirtual { + get { return isVirtual_; } + set { + isVirtual_ = value; + } + } + + /// Field number for the "plane_id" field. + public const int PlaneIdFieldNumber = 7; + private uint planeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PlaneId { + get { return planeId_; } + set { + planeId_ = value; + } + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 2; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as QuitLineupCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(QuitLineupCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ExtraLineupType != other.ExtraLineupType) return false; + if (Index != other.Index) return false; + if (AvatarType != other.AvatarType) return false; + if (IsVirtual != other.IsVirtual) return false; + if (PlaneId != other.PlaneId) return false; + if (BaseAvatarId != other.BaseAvatarId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) hash ^= ExtraLineupType.GetHashCode(); + if (Index != 0) hash ^= Index.GetHashCode(); + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) hash ^= AvatarType.GetHashCode(); + if (IsVirtual != false) hash ^= IsVirtual.GetHashCode(); + if (PlaneId != 0) hash ^= PlaneId.GetHashCode(); + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BaseAvatarId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(BaseAvatarId); + } + if (IsVirtual != false) { + output.WriteRawTag(40); + output.WriteBool(IsVirtual); + } + if (PlaneId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(PlaneId); + } + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(64); + output.WriteEnum((int) AvatarType); + } + if (Index != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Index); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(112); + output.WriteEnum((int) ExtraLineupType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BaseAvatarId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(BaseAvatarId); + } + if (IsVirtual != false) { + output.WriteRawTag(40); + output.WriteBool(IsVirtual); + } + if (PlaneId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(PlaneId); + } + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(64); + output.WriteEnum((int) AvatarType); + } + if (Index != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Index); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(112); + output.WriteEnum((int) ExtraLineupType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtraLineupType); + } + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Index); + } + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AvatarType); + } + if (IsVirtual != false) { + size += 1 + 1; + } + if (PlaneId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlaneId); + } + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(QuitLineupCsReq other) { + if (other == null) { + return; + } + if (other.ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + ExtraLineupType = other.ExtraLineupType; + } + if (other.Index != 0) { + Index = other.Index; + } + if (other.AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + AvatarType = other.AvatarType; + } + if (other.IsVirtual != false) { + IsVirtual = other.IsVirtual; + } + if (other.PlaneId != 0) { + PlaneId = other.PlaneId; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 40: { + IsVirtual = input.ReadBool(); + break; + } + case 56: { + PlaneId = input.ReadUInt32(); + break; + } + case 64: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 104: { + Index = input.ReadUInt32(); + break; + } + case 112: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 40: { + IsVirtual = input.ReadBool(); + break; + } + case 56: { + PlaneId = input.ReadUInt32(); + break; + } + case 64: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 104: { + Index = input.ReadUInt32(); + break; + } + case 112: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RankUpAvatarCsReq.cs b/Common/Proto/RankUpAvatarCsReq.cs new file mode 100644 index 00000000..b35159ae --- /dev/null +++ b/Common/Proto/RankUpAvatarCsReq.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RankUpAvatarCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RankUpAvatarCsReq.proto + public static partial class RankUpAvatarCsReqReflection { + + #region Descriptor + /// File descriptor for RankUpAvatarCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RankUpAvatarCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdSYW5rVXBBdmF0YXJDc1JlcS5wcm90bxoSSXRlbUNvc3RMaXN0LnByb3Rv", + "ImAKEVJhbmtVcEF2YXRhckNzUmVxEiUKDml0ZW1fY29zdF9saXN0GAggASgL", + "Mg0uSXRlbUNvc3RMaXN0EhYKDmJhc2VfYXZhdGFyX2lkGA8gASgNEgwKBHJh", + "bmsYCiABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RankUpAvatarCsReq), global::EggLink.DanhengServer.Proto.RankUpAvatarCsReq.Parser, new[]{ "ItemCostList", "BaseAvatarId", "Rank" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RankUpAvatarCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RankUpAvatarCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RankUpAvatarCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RankUpAvatarCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RankUpAvatarCsReq(RankUpAvatarCsReq other) : this() { + itemCostList_ = other.itemCostList_ != null ? other.itemCostList_.Clone() : null; + baseAvatarId_ = other.baseAvatarId_; + rank_ = other.rank_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RankUpAvatarCsReq Clone() { + return new RankUpAvatarCsReq(this); + } + + /// Field number for the "item_cost_list" field. + public const int ItemCostListFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.ItemCostList itemCostList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList ItemCostList { + get { return itemCostList_; } + set { + itemCostList_ = value; + } + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 15; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + /// Field number for the "rank" field. + public const int RankFieldNumber = 10; + private uint rank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Rank { + get { return rank_; } + set { + rank_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RankUpAvatarCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RankUpAvatarCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ItemCostList, other.ItemCostList)) return false; + if (BaseAvatarId != other.BaseAvatarId) return false; + if (Rank != other.Rank) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (itemCostList_ != null) hash ^= ItemCostList.GetHashCode(); + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (Rank != 0) hash ^= Rank.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (itemCostList_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ItemCostList); + } + if (Rank != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Rank); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (itemCostList_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ItemCostList); + } + if (Rank != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Rank); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (itemCostList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemCostList); + } + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (Rank != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rank); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RankUpAvatarCsReq other) { + if (other == null) { + return; + } + if (other.itemCostList_ != null) { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + ItemCostList.MergeFrom(other.ItemCostList); + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + if (other.Rank != 0) { + Rank = other.Rank; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + case 80: { + Rank = input.ReadUInt32(); + break; + } + case 120: { + BaseAvatarId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + case 80: { + Rank = input.ReadUInt32(); + break; + } + case 120: { + BaseAvatarId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RankUpEquipmentCsReq.cs b/Common/Proto/RankUpEquipmentCsReq.cs new file mode 100644 index 00000000..9137b78d --- /dev/null +++ b/Common/Proto/RankUpEquipmentCsReq.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RankUpEquipmentCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RankUpEquipmentCsReq.proto + public static partial class RankUpEquipmentCsReqReflection { + + #region Descriptor + /// File descriptor for RankUpEquipmentCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RankUpEquipmentCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpSYW5rVXBFcXVpcG1lbnRDc1JlcS5wcm90bxoSSXRlbUNvc3RMaXN0LnBy", + "b3RvIloKFFJhbmtVcEVxdWlwbWVudENzUmVxEiUKDml0ZW1fY29zdF9saXN0", + "GAQgASgLMg0uSXRlbUNvc3RMaXN0EhsKE2VxdWlwbWVudF91bmlxdWVfaWQY", + "CiABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RankUpEquipmentCsReq), global::EggLink.DanhengServer.Proto.RankUpEquipmentCsReq.Parser, new[]{ "ItemCostList", "EquipmentUniqueId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RankUpEquipmentCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RankUpEquipmentCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RankUpEquipmentCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RankUpEquipmentCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RankUpEquipmentCsReq(RankUpEquipmentCsReq other) : this() { + itemCostList_ = other.itemCostList_ != null ? other.itemCostList_.Clone() : null; + equipmentUniqueId_ = other.equipmentUniqueId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RankUpEquipmentCsReq Clone() { + return new RankUpEquipmentCsReq(this); + } + + /// Field number for the "item_cost_list" field. + public const int ItemCostListFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.ItemCostList itemCostList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList ItemCostList { + get { return itemCostList_; } + set { + itemCostList_ = value; + } + } + + /// Field number for the "equipment_unique_id" field. + public const int EquipmentUniqueIdFieldNumber = 10; + private uint equipmentUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EquipmentUniqueId { + get { return equipmentUniqueId_; } + set { + equipmentUniqueId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RankUpEquipmentCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RankUpEquipmentCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ItemCostList, other.ItemCostList)) return false; + if (EquipmentUniqueId != other.EquipmentUniqueId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (itemCostList_ != null) hash ^= ItemCostList.GetHashCode(); + if (EquipmentUniqueId != 0) hash ^= EquipmentUniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (itemCostList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ItemCostList); + } + if (EquipmentUniqueId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(EquipmentUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (itemCostList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ItemCostList); + } + if (EquipmentUniqueId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(EquipmentUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (itemCostList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemCostList); + } + if (EquipmentUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EquipmentUniqueId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RankUpEquipmentCsReq other) { + if (other == null) { + return; + } + if (other.itemCostList_ != null) { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + ItemCostList.MergeFrom(other.ItemCostList); + } + if (other.EquipmentUniqueId != 0) { + EquipmentUniqueId = other.EquipmentUniqueId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + case 80: { + EquipmentUniqueId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + case 80: { + EquipmentUniqueId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ReEnterLastElementStageCsReq.cs b/Common/Proto/ReEnterLastElementStageCsReq.cs new file mode 100644 index 00000000..4054fbec --- /dev/null +++ b/Common/Proto/ReEnterLastElementStageCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ReEnterLastElementStageCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ReEnterLastElementStageCsReq.proto + public static partial class ReEnterLastElementStageCsReqReflection { + + #region Descriptor + /// File descriptor for ReEnterLastElementStageCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ReEnterLastElementStageCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJSZUVudGVyTGFzdEVsZW1lbnRTdGFnZUNzUmVxLnByb3RvIjAKHFJlRW50", + "ZXJMYXN0RWxlbWVudFN0YWdlQ3NSZXESEAoIc3RhZ2VfaWQYDCABKA1CHqoC", + "G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ReEnterLastElementStageCsReq), global::EggLink.DanhengServer.Proto.ReEnterLastElementStageCsReq.Parser, new[]{ "StageId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ReEnterLastElementStageCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReEnterLastElementStageCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ReEnterLastElementStageCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEnterLastElementStageCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEnterLastElementStageCsReq(ReEnterLastElementStageCsReq other) : this() { + stageId_ = other.stageId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEnterLastElementStageCsReq Clone() { + return new ReEnterLastElementStageCsReq(this); + } + + /// Field number for the "stage_id" field. + public const int StageIdFieldNumber = 12; + private uint stageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StageId { + get { return stageId_; } + set { + stageId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReEnterLastElementStageCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReEnterLastElementStageCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StageId != other.StageId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (StageId != 0) hash ^= StageId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StageId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(StageId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (StageId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(StageId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (StageId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StageId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReEnterLastElementStageCsReq other) { + if (other == null) { + return; + } + if (other.StageId != 0) { + StageId = other.StageId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 96: { + StageId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 96: { + StageId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ReEnterLastElementStageScRsp.cs b/Common/Proto/ReEnterLastElementStageScRsp.cs new file mode 100644 index 00000000..3567b1db --- /dev/null +++ b/Common/Proto/ReEnterLastElementStageScRsp.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ReEnterLastElementStageScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ReEnterLastElementStageScRsp.proto + public static partial class ReEnterLastElementStageScRspReflection { + + #region Descriptor + /// File descriptor for ReEnterLastElementStageScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ReEnterLastElementStageScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiJSZUVudGVyTGFzdEVsZW1lbnRTdGFnZVNjUnNwLnByb3RvGhVTY2VuZUJh", + "dHRsZUluZm8ucHJvdG8iaAocUmVFbnRlckxhc3RFbGVtZW50U3RhZ2VTY1Jz", + "cBIQCghzdGFnZV9pZBgDIAEoDRIPCgdyZXRjb2RlGAcgASgNEiUKC2JhdHRs", + "ZV9pbmZvGAsgASgLMhAuU2NlbmVCYXR0bGVJbmZvQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneBattleInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ReEnterLastElementStageScRsp), global::EggLink.DanhengServer.Proto.ReEnterLastElementStageScRsp.Parser, new[]{ "StageId", "Retcode", "BattleInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ReEnterLastElementStageScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReEnterLastElementStageScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ReEnterLastElementStageScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEnterLastElementStageScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEnterLastElementStageScRsp(ReEnterLastElementStageScRsp other) : this() { + stageId_ = other.stageId_; + retcode_ = other.retcode_; + battleInfo_ = other.battleInfo_ != null ? other.battleInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReEnterLastElementStageScRsp Clone() { + return new ReEnterLastElementStageScRsp(this); + } + + /// Field number for the "stage_id" field. + public const int StageIdFieldNumber = 3; + private uint stageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StageId { + get { return stageId_; } + set { + stageId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 7; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "battle_info" field. + public const int BattleInfoFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.SceneBattleInfo battleInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneBattleInfo BattleInfo { + get { return battleInfo_; } + set { + battleInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReEnterLastElementStageScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReEnterLastElementStageScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StageId != other.StageId) return false; + if (Retcode != other.Retcode) return false; + if (!object.Equals(BattleInfo, other.BattleInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (StageId != 0) hash ^= StageId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (battleInfo_ != null) hash ^= BattleInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StageId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(StageId); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (battleInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(BattleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (StageId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(StageId); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (battleInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(BattleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (StageId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StageId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (battleInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BattleInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReEnterLastElementStageScRsp other) { + if (other == null) { + return; + } + if (other.StageId != 0) { + StageId = other.StageId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.battleInfo_ != null) { + if (battleInfo_ == null) { + BattleInfo = new global::EggLink.DanhengServer.Proto.SceneBattleInfo(); + } + BattleInfo.MergeFrom(other.BattleInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + StageId = input.ReadUInt32(); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 90: { + if (battleInfo_ == null) { + BattleInfo = new global::EggLink.DanhengServer.Proto.SceneBattleInfo(); + } + input.ReadMessage(BattleInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + StageId = input.ReadUInt32(); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 90: { + if (battleInfo_ == null) { + BattleInfo = new global::EggLink.DanhengServer.Proto.SceneBattleInfo(); + } + input.ReadMessage(BattleInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RefreshTriggerByClientCsReq.cs b/Common/Proto/RefreshTriggerByClientCsReq.cs new file mode 100644 index 00000000..25b77117 --- /dev/null +++ b/Common/Proto/RefreshTriggerByClientCsReq.cs @@ -0,0 +1,348 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RefreshTriggerByClientCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RefreshTriggerByClientCsReq.proto + public static partial class RefreshTriggerByClientCsReqReflection { + + #region Descriptor + /// File descriptor for RefreshTriggerByClientCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RefreshTriggerByClientCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFSZWZyZXNoVHJpZ2dlckJ5Q2xpZW50Q3NSZXEucHJvdG8aEE1vdGlvbklu", + "Zm8ucHJvdG8ikwEKG1JlZnJlc2hUcmlnZ2VyQnlDbGllbnRDc1JlcRIjCg50", + "cmlnZ2VyX21vdGlvbhgGIAEoCzILLk1vdGlvbkluZm8SHgoWdHJpZ2dlcl90", + "YXJnZXRfaWRfbGlzdBgPIAMoDRIUCgx0cmlnZ2VyX25hbWUYBCABKAkSGQoR", + "dHJpZ2dlcl9lbnRpdHlfaWQYDiABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl", + "cnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MotionInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RefreshTriggerByClientCsReq), global::EggLink.DanhengServer.Proto.RefreshTriggerByClientCsReq.Parser, new[]{ "TriggerMotion", "TriggerTargetIdList", "TriggerName", "TriggerEntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RefreshTriggerByClientCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RefreshTriggerByClientCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RefreshTriggerByClientCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RefreshTriggerByClientCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RefreshTriggerByClientCsReq(RefreshTriggerByClientCsReq other) : this() { + triggerMotion_ = other.triggerMotion_ != null ? other.triggerMotion_.Clone() : null; + triggerTargetIdList_ = other.triggerTargetIdList_.Clone(); + triggerName_ = other.triggerName_; + triggerEntityId_ = other.triggerEntityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RefreshTriggerByClientCsReq Clone() { + return new RefreshTriggerByClientCsReq(this); + } + + /// Field number for the "trigger_motion" field. + public const int TriggerMotionFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.MotionInfo triggerMotion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MotionInfo TriggerMotion { + get { return triggerMotion_; } + set { + triggerMotion_ = value; + } + } + + /// Field number for the "trigger_target_id_list" field. + public const int TriggerTargetIdListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_triggerTargetIdList_codec + = pb::FieldCodec.ForUInt32(122); + private readonly pbc::RepeatedField triggerTargetIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TriggerTargetIdList { + get { return triggerTargetIdList_; } + } + + /// Field number for the "trigger_name" field. + public const int TriggerNameFieldNumber = 4; + private string triggerName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerName { + get { return triggerName_; } + set { + triggerName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "trigger_entity_id" field. + public const int TriggerEntityIdFieldNumber = 14; + private uint triggerEntityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TriggerEntityId { + get { return triggerEntityId_; } + set { + triggerEntityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RefreshTriggerByClientCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RefreshTriggerByClientCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TriggerMotion, other.TriggerMotion)) return false; + if(!triggerTargetIdList_.Equals(other.triggerTargetIdList_)) return false; + if (TriggerName != other.TriggerName) return false; + if (TriggerEntityId != other.TriggerEntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (triggerMotion_ != null) hash ^= TriggerMotion.GetHashCode(); + hash ^= triggerTargetIdList_.GetHashCode(); + if (TriggerName.Length != 0) hash ^= TriggerName.GetHashCode(); + if (TriggerEntityId != 0) hash ^= TriggerEntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TriggerName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TriggerName); + } + if (triggerMotion_ != null) { + output.WriteRawTag(50); + output.WriteMessage(TriggerMotion); + } + if (TriggerEntityId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(TriggerEntityId); + } + triggerTargetIdList_.WriteTo(output, _repeated_triggerTargetIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TriggerName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TriggerName); + } + if (triggerMotion_ != null) { + output.WriteRawTag(50); + output.WriteMessage(TriggerMotion); + } + if (TriggerEntityId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(TriggerEntityId); + } + triggerTargetIdList_.WriteTo(ref output, _repeated_triggerTargetIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (triggerMotion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TriggerMotion); + } + size += triggerTargetIdList_.CalculateSize(_repeated_triggerTargetIdList_codec); + if (TriggerName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerName); + } + if (TriggerEntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TriggerEntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RefreshTriggerByClientCsReq other) { + if (other == null) { + return; + } + if (other.triggerMotion_ != null) { + if (triggerMotion_ == null) { + TriggerMotion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + TriggerMotion.MergeFrom(other.TriggerMotion); + } + triggerTargetIdList_.Add(other.triggerTargetIdList_); + if (other.TriggerName.Length != 0) { + TriggerName = other.TriggerName; + } + if (other.TriggerEntityId != 0) { + TriggerEntityId = other.TriggerEntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + TriggerName = input.ReadString(); + break; + } + case 50: { + if (triggerMotion_ == null) { + TriggerMotion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(TriggerMotion); + break; + } + case 112: { + TriggerEntityId = input.ReadUInt32(); + break; + } + case 122: + case 120: { + triggerTargetIdList_.AddEntriesFrom(input, _repeated_triggerTargetIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + TriggerName = input.ReadString(); + break; + } + case 50: { + if (triggerMotion_ == null) { + TriggerMotion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(TriggerMotion); + break; + } + case 112: { + TriggerEntityId = input.ReadUInt32(); + break; + } + case 122: + case 120: { + triggerTargetIdList_.AddEntriesFrom(ref input, _repeated_triggerTargetIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RefreshTriggerByClientScNotify.cs b/Common/Proto/RefreshTriggerByClientScNotify.cs new file mode 100644 index 00000000..ea7aafba --- /dev/null +++ b/Common/Proto/RefreshTriggerByClientScNotify.cs @@ -0,0 +1,301 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RefreshTriggerByClientScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RefreshTriggerByClientScNotify.proto + public static partial class RefreshTriggerByClientScNotifyReflection { + + #region Descriptor + /// File descriptor for RefreshTriggerByClientScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RefreshTriggerByClientScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiRSZWZyZXNoVHJpZ2dlckJ5Q2xpZW50U2NOb3RpZnkucHJvdG8icQoeUmVm", + "cmVzaFRyaWdnZXJCeUNsaWVudFNjTm90aWZ5EhQKDHRyaWdnZXJfbmFtZRgB", + "IAEoCRIeChZ0cmlnZ2VyX3RhcmdldF9pZF9saXN0GAUgAygNEhkKEXRyaWdn", + "ZXJfZW50aXR5X2lkGAcgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu", + "UHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RefreshTriggerByClientScNotify), global::EggLink.DanhengServer.Proto.RefreshTriggerByClientScNotify.Parser, new[]{ "TriggerName", "TriggerTargetIdList", "TriggerEntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RefreshTriggerByClientScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RefreshTriggerByClientScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RefreshTriggerByClientScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RefreshTriggerByClientScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RefreshTriggerByClientScNotify(RefreshTriggerByClientScNotify other) : this() { + triggerName_ = other.triggerName_; + triggerTargetIdList_ = other.triggerTargetIdList_.Clone(); + triggerEntityId_ = other.triggerEntityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RefreshTriggerByClientScNotify Clone() { + return new RefreshTriggerByClientScNotify(this); + } + + /// Field number for the "trigger_name" field. + public const int TriggerNameFieldNumber = 1; + private string triggerName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerName { + get { return triggerName_; } + set { + triggerName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "trigger_target_id_list" field. + public const int TriggerTargetIdListFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_triggerTargetIdList_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField triggerTargetIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TriggerTargetIdList { + get { return triggerTargetIdList_; } + } + + /// Field number for the "trigger_entity_id" field. + public const int TriggerEntityIdFieldNumber = 7; + private uint triggerEntityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TriggerEntityId { + get { return triggerEntityId_; } + set { + triggerEntityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RefreshTriggerByClientScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RefreshTriggerByClientScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TriggerName != other.TriggerName) return false; + if(!triggerTargetIdList_.Equals(other.triggerTargetIdList_)) return false; + if (TriggerEntityId != other.TriggerEntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TriggerName.Length != 0) hash ^= TriggerName.GetHashCode(); + hash ^= triggerTargetIdList_.GetHashCode(); + if (TriggerEntityId != 0) hash ^= TriggerEntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TriggerName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TriggerName); + } + triggerTargetIdList_.WriteTo(output, _repeated_triggerTargetIdList_codec); + if (TriggerEntityId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(TriggerEntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TriggerName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TriggerName); + } + triggerTargetIdList_.WriteTo(ref output, _repeated_triggerTargetIdList_codec); + if (TriggerEntityId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(TriggerEntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TriggerName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerName); + } + size += triggerTargetIdList_.CalculateSize(_repeated_triggerTargetIdList_codec); + if (TriggerEntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TriggerEntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RefreshTriggerByClientScNotify other) { + if (other == null) { + return; + } + if (other.TriggerName.Length != 0) { + TriggerName = other.TriggerName; + } + triggerTargetIdList_.Add(other.triggerTargetIdList_); + if (other.TriggerEntityId != 0) { + TriggerEntityId = other.TriggerEntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + TriggerName = input.ReadString(); + break; + } + case 42: + case 40: { + triggerTargetIdList_.AddEntriesFrom(input, _repeated_triggerTargetIdList_codec); + break; + } + case 56: { + TriggerEntityId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TriggerName = input.ReadString(); + break; + } + case 42: + case 40: { + triggerTargetIdList_.AddEntriesFrom(ref input, _repeated_triggerTargetIdList_codec); + break; + } + case 56: { + TriggerEntityId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RefreshTriggerByClientScRsp.cs b/Common/Proto/RefreshTriggerByClientScRsp.cs new file mode 100644 index 00000000..227d07f5 --- /dev/null +++ b/Common/Proto/RefreshTriggerByClientScRsp.cs @@ -0,0 +1,347 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RefreshTriggerByClientScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RefreshTriggerByClientScRsp.proto + public static partial class RefreshTriggerByClientScRspReflection { + + #region Descriptor + /// File descriptor for RefreshTriggerByClientScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RefreshTriggerByClientScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFSZWZyZXNoVHJpZ2dlckJ5Q2xpZW50U2NSc3AucHJvdG8ieAobUmVmcmVz", + "aFRyaWdnZXJCeUNsaWVudFNjUnNwEhkKEXRyaWdnZXJfZW50aXR5X2lkGAUg", + "ASgNEhQKDHRyaWdnZXJfbmFtZRgJIAEoCRIXCg9yZWZyZXNoX3RyaWdnZXIY", + "CyABKAgSDwoHcmV0Y29kZRgGIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2Vy", + "dmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RefreshTriggerByClientScRsp), global::EggLink.DanhengServer.Proto.RefreshTriggerByClientScRsp.Parser, new[]{ "TriggerEntityId", "TriggerName", "RefreshTrigger", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RefreshTriggerByClientScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RefreshTriggerByClientScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RefreshTriggerByClientScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RefreshTriggerByClientScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RefreshTriggerByClientScRsp(RefreshTriggerByClientScRsp other) : this() { + triggerEntityId_ = other.triggerEntityId_; + triggerName_ = other.triggerName_; + refreshTrigger_ = other.refreshTrigger_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RefreshTriggerByClientScRsp Clone() { + return new RefreshTriggerByClientScRsp(this); + } + + /// Field number for the "trigger_entity_id" field. + public const int TriggerEntityIdFieldNumber = 5; + private uint triggerEntityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TriggerEntityId { + get { return triggerEntityId_; } + set { + triggerEntityId_ = value; + } + } + + /// Field number for the "trigger_name" field. + public const int TriggerNameFieldNumber = 9; + private string triggerName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerName { + get { return triggerName_; } + set { + triggerName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "refresh_trigger" field. + public const int RefreshTriggerFieldNumber = 11; + private bool refreshTrigger_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool RefreshTrigger { + get { return refreshTrigger_; } + set { + refreshTrigger_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 6; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RefreshTriggerByClientScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RefreshTriggerByClientScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TriggerEntityId != other.TriggerEntityId) return false; + if (TriggerName != other.TriggerName) return false; + if (RefreshTrigger != other.RefreshTrigger) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TriggerEntityId != 0) hash ^= TriggerEntityId.GetHashCode(); + if (TriggerName.Length != 0) hash ^= TriggerName.GetHashCode(); + if (RefreshTrigger != false) hash ^= RefreshTrigger.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TriggerEntityId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(TriggerEntityId); + } + if (Retcode != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Retcode); + } + if (TriggerName.Length != 0) { + output.WriteRawTag(74); + output.WriteString(TriggerName); + } + if (RefreshTrigger != false) { + output.WriteRawTag(88); + output.WriteBool(RefreshTrigger); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TriggerEntityId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(TriggerEntityId); + } + if (Retcode != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Retcode); + } + if (TriggerName.Length != 0) { + output.WriteRawTag(74); + output.WriteString(TriggerName); + } + if (RefreshTrigger != false) { + output.WriteRawTag(88); + output.WriteBool(RefreshTrigger); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TriggerEntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TriggerEntityId); + } + if (TriggerName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerName); + } + if (RefreshTrigger != false) { + size += 1 + 1; + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RefreshTriggerByClientScRsp other) { + if (other == null) { + return; + } + if (other.TriggerEntityId != 0) { + TriggerEntityId = other.TriggerEntityId; + } + if (other.TriggerName.Length != 0) { + TriggerName = other.TriggerName; + } + if (other.RefreshTrigger != false) { + RefreshTrigger = other.RefreshTrigger; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + TriggerEntityId = input.ReadUInt32(); + break; + } + case 48: { + Retcode = input.ReadUInt32(); + break; + } + case 74: { + TriggerName = input.ReadString(); + break; + } + case 88: { + RefreshTrigger = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + TriggerEntityId = input.ReadUInt32(); + break; + } + case 48: { + Retcode = input.ReadUInt32(); + break; + } + case 74: { + TriggerName = input.ReadString(); + break; + } + case 88: { + RefreshTrigger = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RegionEntry.cs b/Common/Proto/RegionEntry.cs new file mode 100644 index 00000000..782cd25c --- /dev/null +++ b/Common/Proto/RegionEntry.cs @@ -0,0 +1,420 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RegionEntry.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RegionEntry.proto + public static partial class RegionEntryReflection { + + #region Descriptor + /// File descriptor for RegionEntry.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RegionEntryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFSZWdpb25FbnRyeS5wcm90byJ1CgtSZWdpb25FbnRyeRIMCgRuYW1lGAEg", + "ASgJEg0KBXRpdGxlGAIgASgJEhQKDGRpc3BhdGNoX3VybBgDIAEoCRIQCghl", + "bnZfdHlwZRgEIAEoCRIUCgxkaXNwbGF5X25hbWUYBSABKAkSCwoDbXNnGAYg", + "ASgJQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RegionEntry), global::EggLink.DanhengServer.Proto.RegionEntry.Parser, new[]{ "Name", "Title", "DispatchUrl", "EnvType", "DisplayName", "Msg" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RegionEntry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegionEntry()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RegionEntryReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionEntry() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionEntry(RegionEntry other) : this() { + name_ = other.name_; + title_ = other.title_; + dispatchUrl_ = other.dispatchUrl_; + envType_ = other.envType_; + displayName_ = other.displayName_; + msg_ = other.msg_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegionEntry Clone() { + return new RegionEntry(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 "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 "dispatch_url" field. + public const int DispatchUrlFieldNumber = 3; + private string dispatchUrl_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DispatchUrl { + get { return dispatchUrl_; } + set { + dispatchUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "env_type" field. + public const int EnvTypeFieldNumber = 4; + private string envType_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnvType { + get { return envType_; } + set { + envType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 5; + private string displayName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "msg" field. + public const int MsgFieldNumber = 6; + private string msg_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Msg { + get { return msg_; } + set { + msg_ = 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 RegionEntry); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RegionEntry other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Title != other.Title) return false; + if (DispatchUrl != other.DispatchUrl) return false; + if (EnvType != other.EnvType) return false; + if (DisplayName != other.DisplayName) return false; + if (Msg != other.Msg) return false; + 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 (Title.Length != 0) hash ^= Title.GetHashCode(); + if (DispatchUrl.Length != 0) hash ^= DispatchUrl.GetHashCode(); + if (EnvType.Length != 0) hash ^= EnvType.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Msg.Length != 0) hash ^= Msg.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (DispatchUrl.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DispatchUrl); + } + if (EnvType.Length != 0) { + output.WriteRawTag(34); + output.WriteString(EnvType); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DisplayName); + } + if (Msg.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Msg); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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 (Title.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (DispatchUrl.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DispatchUrl); + } + if (EnvType.Length != 0) { + output.WriteRawTag(34); + output.WriteString(EnvType); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DisplayName); + } + if (Msg.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Msg); + } + if (_unknownFields != 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 (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (DispatchUrl.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DispatchUrl); + } + if (EnvType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnvType); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Msg.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Msg); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RegionEntry other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.DispatchUrl.Length != 0) { + DispatchUrl = other.DispatchUrl; + } + if (other.EnvType.Length != 0) { + EnvType = other.EnvType; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Msg.Length != 0) { + Msg = other.Msg; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + DispatchUrl = input.ReadString(); + break; + } + case 34: { + EnvType = input.ReadString(); + break; + } + case 42: { + DisplayName = input.ReadString(); + break; + } + case 50: { + Msg = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + DispatchUrl = input.ReadString(); + break; + } + case 34: { + EnvType = input.ReadString(); + break; + } + case 42: { + DisplayName = input.ReadString(); + break; + } + case 50: { + Msg = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Relic.cs b/Common/Proto/Relic.cs new file mode 100644 index 00000000..6495651b --- /dev/null +++ b/Common/Proto/Relic.cs @@ -0,0 +1,522 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Relic.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from Relic.proto + public static partial class RelicReflection { + + #region Descriptor + /// File descriptor for Relic.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RelicReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtSZWxpYy5wcm90bxoQUmVsaWNBZmZpeC5wcm90byLDAQoFUmVsaWMSCwoD", + "dGlkGAIgASgNEhQKDGlzX2Rpc2NhcmRlZBgEIAEoCBIjCg5zdWJfYWZmaXhf", + "bGlzdBgIIAMoCzILLlJlbGljQWZmaXgSFgoOYmFzZV9hdmF0YXJfaWQYByAB", + "KA0SEQoJdW5pcXVlX2lkGAUgASgNEg0KBWxldmVsGAMgASgNEhQKDGlzX3By", + "b3RlY3RlZBgLIAEoCBIVCg1tYWluX2FmZml4X2lkGA4gASgNEgsKA2V4cBgK", + "IAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RelicAffixReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Relic), global::EggLink.DanhengServer.Proto.Relic.Parser, new[]{ "Tid", "IsDiscarded", "SubAffixList", "BaseAvatarId", "UniqueId", "Level", "IsProtected", "MainAffixId", "Exp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Relic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Relic()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RelicReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Relic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Relic(Relic other) : this() { + tid_ = other.tid_; + isDiscarded_ = other.isDiscarded_; + subAffixList_ = other.subAffixList_.Clone(); + baseAvatarId_ = other.baseAvatarId_; + uniqueId_ = other.uniqueId_; + level_ = other.level_; + isProtected_ = other.isProtected_; + mainAffixId_ = other.mainAffixId_; + exp_ = other.exp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Relic Clone() { + return new Relic(this); + } + + /// Field number for the "tid" field. + public const int TidFieldNumber = 2; + private uint tid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Tid { + get { return tid_; } + set { + tid_ = value; + } + } + + /// Field number for the "is_discarded" field. + public const int IsDiscardedFieldNumber = 4; + private bool isDiscarded_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsDiscarded { + get { return isDiscarded_; } + set { + isDiscarded_ = value; + } + } + + /// Field number for the "sub_affix_list" field. + public const int SubAffixListFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_subAffixList_codec + = pb::FieldCodec.ForMessage(66, global::EggLink.DanhengServer.Proto.RelicAffix.Parser); + private readonly pbc::RepeatedField subAffixList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SubAffixList { + get { return subAffixList_; } + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 7; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + /// Field number for the "unique_id" field. + public const int UniqueIdFieldNumber = 5; + private uint uniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UniqueId { + get { return uniqueId_; } + set { + uniqueId_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 3; + 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 "is_protected" field. + public const int IsProtectedFieldNumber = 11; + private bool isProtected_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsProtected { + get { return isProtected_; } + set { + isProtected_ = value; + } + } + + /// Field number for the "main_affix_id" field. + public const int MainAffixIdFieldNumber = 14; + private uint mainAffixId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MainAffixId { + get { return mainAffixId_; } + set { + mainAffixId_ = value; + } + } + + /// Field number for the "exp" field. + public const int ExpFieldNumber = 10; + private uint exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 Relic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Relic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Tid != other.Tid) return false; + if (IsDiscarded != other.IsDiscarded) return false; + if(!subAffixList_.Equals(other.subAffixList_)) return false; + if (BaseAvatarId != other.BaseAvatarId) return false; + if (UniqueId != other.UniqueId) return false; + if (Level != other.Level) return false; + if (IsProtected != other.IsProtected) return false; + if (MainAffixId != other.MainAffixId) 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 (Tid != 0) hash ^= Tid.GetHashCode(); + if (IsDiscarded != false) hash ^= IsDiscarded.GetHashCode(); + hash ^= subAffixList_.GetHashCode(); + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (UniqueId != 0) hash ^= UniqueId.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (IsProtected != false) hash ^= IsProtected.GetHashCode(); + if (MainAffixId != 0) hash ^= MainAffixId.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 (Tid != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Tid); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Level); + } + if (IsDiscarded != false) { + output.WriteRawTag(32); + output.WriteBool(IsDiscarded); + } + if (UniqueId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(UniqueId); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(BaseAvatarId); + } + subAffixList_.WriteTo(output, _repeated_subAffixList_codec); + if (Exp != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Exp); + } + if (IsProtected != false) { + output.WriteRawTag(88); + output.WriteBool(IsProtected); + } + if (MainAffixId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(MainAffixId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Tid != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Tid); + } + if (Level != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Level); + } + if (IsDiscarded != false) { + output.WriteRawTag(32); + output.WriteBool(IsDiscarded); + } + if (UniqueId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(UniqueId); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(BaseAvatarId); + } + subAffixList_.WriteTo(ref output, _repeated_subAffixList_codec); + if (Exp != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Exp); + } + if (IsProtected != false) { + output.WriteRawTag(88); + output.WriteBool(IsProtected); + } + if (MainAffixId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(MainAffixId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Tid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Tid); + } + if (IsDiscarded != false) { + size += 1 + 1; + } + size += subAffixList_.CalculateSize(_repeated_subAffixList_codec); + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (UniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UniqueId); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (IsProtected != false) { + size += 1 + 1; + } + if (MainAffixId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MainAffixId); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Exp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Relic other) { + if (other == null) { + return; + } + if (other.Tid != 0) { + Tid = other.Tid; + } + if (other.IsDiscarded != false) { + IsDiscarded = other.IsDiscarded; + } + subAffixList_.Add(other.subAffixList_); + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + if (other.UniqueId != 0) { + UniqueId = other.UniqueId; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.IsProtected != false) { + IsProtected = other.IsProtected; + } + if (other.MainAffixId != 0) { + MainAffixId = other.MainAffixId; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + Tid = input.ReadUInt32(); + break; + } + case 24: { + Level = input.ReadUInt32(); + break; + } + case 32: { + IsDiscarded = input.ReadBool(); + break; + } + case 40: { + UniqueId = input.ReadUInt32(); + break; + } + case 56: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 66: { + subAffixList_.AddEntriesFrom(input, _repeated_subAffixList_codec); + break; + } + case 80: { + Exp = input.ReadUInt32(); + break; + } + case 88: { + IsProtected = input.ReadBool(); + break; + } + case 112: { + MainAffixId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + Tid = input.ReadUInt32(); + break; + } + case 24: { + Level = input.ReadUInt32(); + break; + } + case 32: { + IsDiscarded = input.ReadBool(); + break; + } + case 40: { + UniqueId = input.ReadUInt32(); + break; + } + case 56: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 66: { + subAffixList_.AddEntriesFrom(ref input, _repeated_subAffixList_codec); + break; + } + case 80: { + Exp = input.ReadUInt32(); + break; + } + case 88: { + IsProtected = input.ReadBool(); + break; + } + case 112: { + MainAffixId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RelicAffix.cs b/Common/Proto/RelicAffix.cs new file mode 100644 index 00000000..e4309b67 --- /dev/null +++ b/Common/Proto/RelicAffix.cs @@ -0,0 +1,308 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RelicAffix.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RelicAffix.proto + public static partial class RelicAffixReflection { + + #region Descriptor + /// File descriptor for RelicAffix.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RelicAffixReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBSZWxpY0FmZml4LnByb3RvIjkKClJlbGljQWZmaXgSEAoIYWZmaXhfaWQY", + "ASABKA0SCwoDY250GAIgASgNEgwKBHN0ZXAYAyABKA1CHqoCG0VnZ0xpbmsu", + "RGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RelicAffix), global::EggLink.DanhengServer.Proto.RelicAffix.Parser, new[]{ "AffixId", "Cnt", "Step" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RelicAffix : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RelicAffix()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RelicAffixReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RelicAffix() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RelicAffix(RelicAffix other) : this() { + affixId_ = other.affixId_; + cnt_ = other.cnt_; + step_ = other.step_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RelicAffix Clone() { + return new RelicAffix(this); + } + + /// Field number for the "affix_id" field. + public const int AffixIdFieldNumber = 1; + private uint affixId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AffixId { + get { return affixId_; } + set { + affixId_ = value; + } + } + + /// Field number for the "cnt" field. + public const int CntFieldNumber = 2; + private uint cnt_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Cnt { + get { return cnt_; } + set { + cnt_ = value; + } + } + + /// Field number for the "step" field. + public const int StepFieldNumber = 3; + private uint step_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Step { + get { return step_; } + set { + step_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RelicAffix); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RelicAffix other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AffixId != other.AffixId) return false; + if (Cnt != other.Cnt) return false; + if (Step != other.Step) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AffixId != 0) hash ^= AffixId.GetHashCode(); + if (Cnt != 0) hash ^= Cnt.GetHashCode(); + if (Step != 0) hash ^= Step.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AffixId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(AffixId); + } + if (Cnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Cnt); + } + if (Step != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Step); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AffixId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(AffixId); + } + if (Cnt != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Cnt); + } + if (Step != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Step); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AffixId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AffixId); + } + if (Cnt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Cnt); + } + if (Step != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Step); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RelicAffix other) { + if (other == null) { + return; + } + if (other.AffixId != 0) { + AffixId = other.AffixId; + } + if (other.Cnt != 0) { + Cnt = other.Cnt; + } + if (other.Step != 0) { + Step = other.Step; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + AffixId = input.ReadUInt32(); + break; + } + case 16: { + Cnt = input.ReadUInt32(); + break; + } + case 24: { + Step = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + AffixId = input.ReadUInt32(); + break; + } + case 16: { + Cnt = input.ReadUInt32(); + break; + } + case 24: { + Step = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RelicArchive.cs b/Common/Proto/RelicArchive.cs new file mode 100644 index 00000000..3b7b8a2d --- /dev/null +++ b/Common/Proto/RelicArchive.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RelicArchive.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RelicArchive.proto + public static partial class RelicArchiveReflection { + + #region Descriptor + /// File descriptor for RelicArchive.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RelicArchiveReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJSZWxpY0FyY2hpdmUucHJvdG8iLgoMUmVsaWNBcmNoaXZlEgwKBHNsb3QY", + "ASABKA0SEAoIcmVsaWNfaWQYByABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl", + "cnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RelicArchive), global::EggLink.DanhengServer.Proto.RelicArchive.Parser, new[]{ "Slot", "RelicId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RelicArchive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RelicArchive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RelicArchiveReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RelicArchive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RelicArchive(RelicArchive other) : this() { + slot_ = other.slot_; + relicId_ = other.relicId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RelicArchive Clone() { + return new RelicArchive(this); + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 1; + private uint slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Slot { + get { return slot_; } + set { + slot_ = value; + } + } + + /// Field number for the "relic_id" field. + public const int RelicIdFieldNumber = 7; + private uint relicId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RelicId { + get { return relicId_; } + set { + relicId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RelicArchive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RelicArchive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Slot != other.Slot) return false; + if (RelicId != other.RelicId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Slot != 0) hash ^= Slot.GetHashCode(); + if (RelicId != 0) hash ^= RelicId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Slot != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Slot); + } + if (RelicId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(RelicId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Slot != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Slot); + } + if (RelicId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(RelicId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Slot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); + } + if (RelicId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelicId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RelicArchive other) { + if (other == null) { + return; + } + if (other.Slot != 0) { + Slot = other.Slot; + } + if (other.RelicId != 0) { + RelicId = other.RelicId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Slot = input.ReadUInt32(); + break; + } + case 56: { + RelicId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Slot = input.ReadUInt32(); + break; + } + case 56: { + RelicId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RelicParam.cs b/Common/Proto/RelicParam.cs new file mode 100644 index 00000000..3e5d54aa --- /dev/null +++ b/Common/Proto/RelicParam.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RelicParam.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RelicParam.proto + public static partial class RelicParamReflection { + + #region Descriptor + /// File descriptor for RelicParam.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RelicParamReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBSZWxpY1BhcmFtLnByb3RvIjMKClJlbGljUGFyYW0SDAoEc2xvdBgIIAEo", + "DRIXCg9yZWxpY191bmlxdWVfaWQYDSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVu", + "Z1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RelicParam), global::EggLink.DanhengServer.Proto.RelicParam.Parser, new[]{ "Slot", "RelicUniqueId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RelicParam : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RelicParam()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RelicParamReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RelicParam() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RelicParam(RelicParam other) : this() { + slot_ = other.slot_; + relicUniqueId_ = other.relicUniqueId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RelicParam Clone() { + return new RelicParam(this); + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 8; + private uint slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Slot { + get { return slot_; } + set { + slot_ = value; + } + } + + /// Field number for the "relic_unique_id" field. + public const int RelicUniqueIdFieldNumber = 13; + private uint relicUniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RelicUniqueId { + get { return relicUniqueId_; } + set { + relicUniqueId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RelicParam); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RelicParam other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Slot != other.Slot) return false; + if (RelicUniqueId != other.RelicUniqueId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Slot != 0) hash ^= Slot.GetHashCode(); + if (RelicUniqueId != 0) hash ^= RelicUniqueId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Slot != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Slot); + } + if (RelicUniqueId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(RelicUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Slot != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Slot); + } + if (RelicUniqueId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(RelicUniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Slot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); + } + if (RelicUniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelicUniqueId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RelicParam other) { + if (other == null) { + return; + } + if (other.Slot != 0) { + Slot = other.Slot; + } + if (other.RelicUniqueId != 0) { + RelicUniqueId = other.RelicUniqueId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + Slot = input.ReadUInt32(); + break; + } + case 104: { + RelicUniqueId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + Slot = input.ReadUInt32(); + break; + } + case 104: { + RelicUniqueId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ReplaceLineupCsReq.cs b/Common/Proto/ReplaceLineupCsReq.cs new file mode 100644 index 00000000..90763651 --- /dev/null +++ b/Common/Proto/ReplaceLineupCsReq.cs @@ -0,0 +1,412 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ReplaceLineupCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ReplaceLineupCsReq.proto + public static partial class ReplaceLineupCsReqReflection { + + #region Descriptor + /// File descriptor for ReplaceLineupCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ReplaceLineupCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhSZXBsYWNlTGluZXVwQ3NSZXEucHJvdG8aFUV4dHJhTGluZXVwVHlwZS5w", + "cm90bxoUTGluZXVwU2xvdERhdGEucHJvdG8iqwEKElJlcGxhY2VMaW5ldXBD", + "c1JlcRIQCghwbGFuZV9pZBgDIAEoDRIrChFleHRyYV9saW5ldXBfdHlwZRgE", + "IAEoDjIQLkV4dHJhTGluZXVwVHlwZRITCgtsZWFkZXJfc2xvdBgOIAEoDRIS", + "Cgppc192aXJ0dWFsGAggASgIEg0KBWluZGV4GAcgASgNEh4KBXNsb3RzGAEg", + "AygLMg8uTGluZXVwU2xvdERhdGFCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl", + "ci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ExtraLineupTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.LineupSlotDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ReplaceLineupCsReq), global::EggLink.DanhengServer.Proto.ReplaceLineupCsReq.Parser, new[]{ "PlaneId", "ExtraLineupType", "LeaderSlot", "IsVirtual", "Index", "Slots" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ReplaceLineupCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReplaceLineupCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ReplaceLineupCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplaceLineupCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplaceLineupCsReq(ReplaceLineupCsReq other) : this() { + planeId_ = other.planeId_; + extraLineupType_ = other.extraLineupType_; + leaderSlot_ = other.leaderSlot_; + isVirtual_ = other.isVirtual_; + index_ = other.index_; + slots_ = other.slots_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplaceLineupCsReq Clone() { + return new ReplaceLineupCsReq(this); + } + + /// Field number for the "plane_id" field. + public const int PlaneIdFieldNumber = 3; + private uint planeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PlaneId { + get { return planeId_; } + set { + planeId_ = value; + } + } + + /// Field number for the "extra_lineup_type" field. + public const int ExtraLineupTypeFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.ExtraLineupType extraLineupType_ = global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ExtraLineupType ExtraLineupType { + get { return extraLineupType_; } + set { + extraLineupType_ = value; + } + } + + /// Field number for the "leader_slot" field. + public const int LeaderSlotFieldNumber = 14; + private uint leaderSlot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint LeaderSlot { + get { return leaderSlot_; } + set { + leaderSlot_ = value; + } + } + + /// Field number for the "is_virtual" field. + public const int IsVirtualFieldNumber = 8; + private bool isVirtual_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsVirtual { + get { return isVirtual_; } + set { + isVirtual_ = value; + } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 7; + private uint index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "slots" field. + public const int SlotsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_slots_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.LineupSlotData.Parser); + private readonly pbc::RepeatedField slots_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Slots { + get { return slots_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReplaceLineupCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReplaceLineupCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PlaneId != other.PlaneId) return false; + if (ExtraLineupType != other.ExtraLineupType) return false; + if (LeaderSlot != other.LeaderSlot) return false; + if (IsVirtual != other.IsVirtual) return false; + if (Index != other.Index) return false; + if(!slots_.Equals(other.slots_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PlaneId != 0) hash ^= PlaneId.GetHashCode(); + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) hash ^= ExtraLineupType.GetHashCode(); + if (LeaderSlot != 0) hash ^= LeaderSlot.GetHashCode(); + if (IsVirtual != false) hash ^= IsVirtual.GetHashCode(); + if (Index != 0) hash ^= Index.GetHashCode(); + hash ^= slots_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + slots_.WriteTo(output, _repeated_slots_codec); + if (PlaneId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(PlaneId); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(32); + output.WriteEnum((int) ExtraLineupType); + } + if (Index != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Index); + } + if (IsVirtual != false) { + output.WriteRawTag(64); + output.WriteBool(IsVirtual); + } + if (LeaderSlot != 0) { + output.WriteRawTag(112); + output.WriteUInt32(LeaderSlot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + slots_.WriteTo(ref output, _repeated_slots_codec); + if (PlaneId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(PlaneId); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(32); + output.WriteEnum((int) ExtraLineupType); + } + if (Index != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Index); + } + if (IsVirtual != false) { + output.WriteRawTag(64); + output.WriteBool(IsVirtual); + } + if (LeaderSlot != 0) { + output.WriteRawTag(112); + output.WriteUInt32(LeaderSlot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PlaneId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlaneId); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtraLineupType); + } + if (LeaderSlot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LeaderSlot); + } + if (IsVirtual != false) { + size += 1 + 1; + } + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Index); + } + size += slots_.CalculateSize(_repeated_slots_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReplaceLineupCsReq other) { + if (other == null) { + return; + } + if (other.PlaneId != 0) { + PlaneId = other.PlaneId; + } + if (other.ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + ExtraLineupType = other.ExtraLineupType; + } + if (other.LeaderSlot != 0) { + LeaderSlot = other.LeaderSlot; + } + if (other.IsVirtual != false) { + IsVirtual = other.IsVirtual; + } + if (other.Index != 0) { + Index = other.Index; + } + slots_.Add(other.slots_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + slots_.AddEntriesFrom(input, _repeated_slots_codec); + break; + } + case 24: { + PlaneId = input.ReadUInt32(); + break; + } + case 32: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + case 56: { + Index = input.ReadUInt32(); + break; + } + case 64: { + IsVirtual = input.ReadBool(); + break; + } + case 112: { + LeaderSlot = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + slots_.AddEntriesFrom(ref input, _repeated_slots_codec); + break; + } + case 24: { + PlaneId = input.ReadUInt32(); + break; + } + case 32: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + case 56: { + Index = input.ReadUInt32(); + break; + } + case 64: { + IsVirtual = input.ReadBool(); + break; + } + case 112: { + LeaderSlot = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ReserveStaminaExchangeCsReq.cs b/Common/Proto/ReserveStaminaExchangeCsReq.cs new file mode 100644 index 00000000..2096cc1e --- /dev/null +++ b/Common/Proto/ReserveStaminaExchangeCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ReserveStaminaExchangeCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ReserveStaminaExchangeCsReq.proto + public static partial class ReserveStaminaExchangeCsReqReflection { + + #region Descriptor + /// File descriptor for ReserveStaminaExchangeCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ReserveStaminaExchangeCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFSZXNlcnZlU3RhbWluYUV4Y2hhbmdlQ3NSZXEucHJvdG8iKgobUmVzZXJ2", + "ZVN0YW1pbmFFeGNoYW5nZUNzUmVxEgsKA251bRgPIAEoDUIeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ReserveStaminaExchangeCsReq), global::EggLink.DanhengServer.Proto.ReserveStaminaExchangeCsReq.Parser, new[]{ "Num" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ReserveStaminaExchangeCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReserveStaminaExchangeCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ReserveStaminaExchangeCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReserveStaminaExchangeCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReserveStaminaExchangeCsReq(ReserveStaminaExchangeCsReq other) : this() { + num_ = other.num_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReserveStaminaExchangeCsReq Clone() { + return new ReserveStaminaExchangeCsReq(this); + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 15; + private uint num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Num { + get { return num_; } + set { + num_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReserveStaminaExchangeCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReserveStaminaExchangeCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (Num != 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 (Num != 0) { + output.WriteRawTag(120); + output.WriteUInt32(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 (Num != 0) { + output.WriteRawTag(120); + output.WriteUInt32(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 (Num != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Num); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReserveStaminaExchangeCsReq other) { + if (other == null) { + return; + } + if (other.Num != 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 120: { + Num = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 120: { + Num = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ReserveStaminaExchangeScRsp.cs b/Common/Proto/ReserveStaminaExchangeScRsp.cs new file mode 100644 index 00000000..0b90b4b7 --- /dev/null +++ b/Common/Proto/ReserveStaminaExchangeScRsp.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ReserveStaminaExchangeScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ReserveStaminaExchangeScRsp.proto + public static partial class ReserveStaminaExchangeScRspReflection { + + #region Descriptor + /// File descriptor for ReserveStaminaExchangeScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ReserveStaminaExchangeScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFSZXNlcnZlU3RhbWluYUV4Y2hhbmdlU2NSc3AucHJvdG8iOwobUmVzZXJ2", + "ZVN0YW1pbmFFeGNoYW5nZVNjUnNwEgsKA251bRgJIAEoDRIPCgdyZXRjb2Rl", + "GAUgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ReserveStaminaExchangeScRsp), global::EggLink.DanhengServer.Proto.ReserveStaminaExchangeScRsp.Parser, new[]{ "Num", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ReserveStaminaExchangeScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReserveStaminaExchangeScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ReserveStaminaExchangeScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReserveStaminaExchangeScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReserveStaminaExchangeScRsp(ReserveStaminaExchangeScRsp other) : this() { + num_ = other.num_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReserveStaminaExchangeScRsp Clone() { + return new ReserveStaminaExchangeScRsp(this); + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 9; + private uint num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Num { + get { return num_; } + set { + num_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 5; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReserveStaminaExchangeScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReserveStaminaExchangeScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Num != other.Num) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Num != 0) hash ^= Num.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (Num != 0) { + output.WriteRawTag(72); + output.WriteUInt32(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 (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (Num != 0) { + output.WriteRawTag(72); + output.WriteUInt32(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 (Num != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Num); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReserveStaminaExchangeScRsp other) { + if (other == null) { + return; + } + if (other.Num != 0) { + Num = other.Num; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 72: { + Num = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 72: { + Num = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RevcMsgScNotify.cs b/Common/Proto/RevcMsgScNotify.cs new file mode 100644 index 00000000..2b1fd279 --- /dev/null +++ b/Common/Proto/RevcMsgScNotify.cs @@ -0,0 +1,422 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RevcMsgScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RevcMsgScNotify.proto + public static partial class RevcMsgScNotifyReflection { + + #region Descriptor + /// File descriptor for RevcMsgScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RevcMsgScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSZXZjTXNnU2NOb3RpZnkucHJvdG8aDkNoYXRUeXBlLnByb3RvGg1Nc2dU", + "eXBlLnByb3RvIooBCg9SZXZjTXNnU2NOb3RpZnkSDgoGdG9fdWlkGAsgASgN", + "Eg0KBWVtb3RlGA4gASgNEgwKBHRleHQYCCABKAkSGgoIbXNnX3R5cGUYDyAB", + "KA4yCC5Nc2dUeXBlEhwKCWNoYXRfdHlwZRgNIAEoDjIJLkNoYXRUeXBlEhAK", + "CGZyb21fdWlkGAQgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJv", + "dG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChatTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.MsgTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RevcMsgScNotify), global::EggLink.DanhengServer.Proto.RevcMsgScNotify.Parser, new[]{ "ToUid", "Emote", "Text", "MsgType", "ChatType", "FromUid" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RevcMsgScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RevcMsgScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RevcMsgScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RevcMsgScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RevcMsgScNotify(RevcMsgScNotify other) : this() { + toUid_ = other.toUid_; + emote_ = other.emote_; + text_ = other.text_; + msgType_ = other.msgType_; + chatType_ = other.chatType_; + fromUid_ = other.fromUid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RevcMsgScNotify Clone() { + return new RevcMsgScNotify(this); + } + + /// Field number for the "to_uid" field. + public const int ToUidFieldNumber = 11; + private uint toUid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ToUid { + get { return toUid_; } + set { + toUid_ = value; + } + } + + /// Field number for the "emote" field. + public const int EmoteFieldNumber = 14; + private uint emote_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Emote { + get { return emote_; } + set { + emote_ = value; + } + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 8; + 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"); + } + } + + /// Field number for the "msg_type" field. + public const int MsgTypeFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.MsgType msgType_ = global::EggLink.DanhengServer.Proto.MsgType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MsgType MsgType { + get { return msgType_; } + set { + msgType_ = value; + } + } + + /// Field number for the "chat_type" field. + public const int ChatTypeFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.ChatType chatType_ = global::EggLink.DanhengServer.Proto.ChatType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChatType ChatType { + get { return chatType_; } + set { + chatType_ = value; + } + } + + /// Field number for the "from_uid" field. + public const int FromUidFieldNumber = 4; + private uint fromUid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FromUid { + get { return fromUid_; } + set { + fromUid_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RevcMsgScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RevcMsgScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ToUid != other.ToUid) return false; + if (Emote != other.Emote) return false; + if (Text != other.Text) return false; + if (MsgType != other.MsgType) return false; + if (ChatType != other.ChatType) return false; + if (FromUid != other.FromUid) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ToUid != 0) hash ^= ToUid.GetHashCode(); + if (Emote != 0) hash ^= Emote.GetHashCode(); + if (Text.Length != 0) hash ^= Text.GetHashCode(); + if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) hash ^= MsgType.GetHashCode(); + if (ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) hash ^= ChatType.GetHashCode(); + if (FromUid != 0) hash ^= FromUid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FromUid != 0) { + output.WriteRawTag(32); + output.WriteUInt32(FromUid); + } + if (Text.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Text); + } + if (ToUid != 0) { + output.WriteRawTag(88); + output.WriteUInt32(ToUid); + } + if (ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) { + output.WriteRawTag(104); + output.WriteEnum((int) ChatType); + } + if (Emote != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Emote); + } + if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) { + output.WriteRawTag(120); + output.WriteEnum((int) MsgType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FromUid != 0) { + output.WriteRawTag(32); + output.WriteUInt32(FromUid); + } + if (Text.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Text); + } + if (ToUid != 0) { + output.WriteRawTag(88); + output.WriteUInt32(ToUid); + } + if (ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) { + output.WriteRawTag(104); + output.WriteEnum((int) ChatType); + } + if (Emote != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Emote); + } + if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) { + output.WriteRawTag(120); + output.WriteEnum((int) MsgType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ToUid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ToUid); + } + if (Emote != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Emote); + } + if (Text.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MsgType); + } + if (ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ChatType); + } + if (FromUid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FromUid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RevcMsgScNotify other) { + if (other == null) { + return; + } + if (other.ToUid != 0) { + ToUid = other.ToUid; + } + if (other.Emote != 0) { + Emote = other.Emote; + } + if (other.Text.Length != 0) { + Text = other.Text; + } + if (other.MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) { + MsgType = other.MsgType; + } + if (other.ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) { + ChatType = other.ChatType; + } + if (other.FromUid != 0) { + FromUid = other.FromUid; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + FromUid = input.ReadUInt32(); + break; + } + case 66: { + Text = input.ReadString(); + break; + } + case 88: { + ToUid = input.ReadUInt32(); + break; + } + case 104: { + ChatType = (global::EggLink.DanhengServer.Proto.ChatType) input.ReadEnum(); + break; + } + case 112: { + Emote = input.ReadUInt32(); + break; + } + case 120: { + MsgType = (global::EggLink.DanhengServer.Proto.MsgType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + FromUid = input.ReadUInt32(); + break; + } + case 66: { + Text = input.ReadString(); + break; + } + case 88: { + ToUid = input.ReadUInt32(); + break; + } + case 104: { + ChatType = (global::EggLink.DanhengServer.Proto.ChatType) input.ReadEnum(); + break; + } + case 112: { + Emote = input.ReadUInt32(); + break; + } + case 120: { + MsgType = (global::EggLink.DanhengServer.Proto.MsgType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueAchivedMiracleInfo.cs b/Common/Proto/RogueAchivedMiracleInfo.cs new file mode 100644 index 00000000..d3910520 --- /dev/null +++ b/Common/Proto/RogueAchivedMiracleInfo.cs @@ -0,0 +1,299 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueAchivedMiracleInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueAchivedMiracleInfo.proto + public static partial class RogueAchivedMiracleInfoReflection { + + #region Descriptor + /// File descriptor for RogueAchivedMiracleInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueAchivedMiracleInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1Sb2d1ZUFjaGl2ZWRNaXJhY2xlSW5mby5wcm90bxoSUm9ndWVNaXJhY2xl", + "LnByb3RvInMKF1JvZ3VlQWNoaXZlZE1pcmFjbGVJbmZvEhgKEHRvdGFsX3Ns", + "b3RfY291bnQYCiABKA0SGQoRdW5sb2NrX3Nsb3RfY291bnQYCSABKA0SIwoM", + "bWlyYWNsZV9saXN0GA4gAygLMg0uUm9ndWVNaXJhY2xlQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueMiracleReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueAchivedMiracleInfo), global::EggLink.DanhengServer.Proto.RogueAchivedMiracleInfo.Parser, new[]{ "TotalSlotCount", "UnlockSlotCount", "MiracleList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueAchivedMiracleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueAchivedMiracleInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueAchivedMiracleInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAchivedMiracleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAchivedMiracleInfo(RogueAchivedMiracleInfo other) : this() { + totalSlotCount_ = other.totalSlotCount_; + unlockSlotCount_ = other.unlockSlotCount_; + miracleList_ = other.miracleList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAchivedMiracleInfo Clone() { + return new RogueAchivedMiracleInfo(this); + } + + /// Field number for the "total_slot_count" field. + public const int TotalSlotCountFieldNumber = 10; + private uint totalSlotCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalSlotCount { + get { return totalSlotCount_; } + set { + totalSlotCount_ = value; + } + } + + /// Field number for the "unlock_slot_count" field. + public const int UnlockSlotCountFieldNumber = 9; + private uint unlockSlotCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UnlockSlotCount { + get { return unlockSlotCount_; } + set { + unlockSlotCount_ = value; + } + } + + /// Field number for the "miracle_list" field. + public const int MiracleListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_miracleList_codec + = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.RogueMiracle.Parser); + private readonly pbc::RepeatedField miracleList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MiracleList { + get { return miracleList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueAchivedMiracleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueAchivedMiracleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TotalSlotCount != other.TotalSlotCount) return false; + if (UnlockSlotCount != other.UnlockSlotCount) return false; + if(!miracleList_.Equals(other.miracleList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TotalSlotCount != 0) hash ^= TotalSlotCount.GetHashCode(); + if (UnlockSlotCount != 0) hash ^= UnlockSlotCount.GetHashCode(); + hash ^= miracleList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (UnlockSlotCount != 0) { + output.WriteRawTag(72); + output.WriteUInt32(UnlockSlotCount); + } + if (TotalSlotCount != 0) { + output.WriteRawTag(80); + output.WriteUInt32(TotalSlotCount); + } + miracleList_.WriteTo(output, _repeated_miracleList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (UnlockSlotCount != 0) { + output.WriteRawTag(72); + output.WriteUInt32(UnlockSlotCount); + } + if (TotalSlotCount != 0) { + output.WriteRawTag(80); + output.WriteUInt32(TotalSlotCount); + } + miracleList_.WriteTo(ref output, _repeated_miracleList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TotalSlotCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalSlotCount); + } + if (UnlockSlotCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UnlockSlotCount); + } + size += miracleList_.CalculateSize(_repeated_miracleList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueAchivedMiracleInfo other) { + if (other == null) { + return; + } + if (other.TotalSlotCount != 0) { + TotalSlotCount = other.TotalSlotCount; + } + if (other.UnlockSlotCount != 0) { + UnlockSlotCount = other.UnlockSlotCount; + } + miracleList_.Add(other.miracleList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 72: { + UnlockSlotCount = input.ReadUInt32(); + break; + } + case 80: { + TotalSlotCount = input.ReadUInt32(); + break; + } + case 114: { + miracleList_.AddEntriesFrom(input, _repeated_miracleList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 72: { + UnlockSlotCount = input.ReadUInt32(); + break; + } + case 80: { + TotalSlotCount = input.ReadUInt32(); + break; + } + case 114: { + miracleList_.AddEntriesFrom(ref input, _repeated_miracleList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueAction.cs b/Common/Proto/RogueAction.cs new file mode 100644 index 00000000..3b755d03 --- /dev/null +++ b/Common/Proto/RogueAction.cs @@ -0,0 +1,399 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueAction.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueAction.proto + public static partial class RogueActionReflection { + + #region Descriptor + /// File descriptor for RogueAction.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueActionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFSb2d1ZUFjdGlvbi5wcm90bxofUm9ndWVDb21tb25CdWZmU2VsZWN0SW5m", + "by5wcm90bxocUm9ndWVNaXJhY2xlU2VsZWN0SW5mby5wcm90bxoaUm9ndWVC", + "b251c1NlbGVjdEluZm8ucHJvdG8ivgEKC1JvZ3VlQWN0aW9uEjcKEGJ1ZmZf", + "c2VsZWN0X2luZm8Y7AogASgLMhouUm9ndWVDb21tb25CdWZmU2VsZWN0SW5m", + "b0gAEjcKE21pcmFjbGVfc2VsZWN0X2luZm8Y+wggASgLMhcuUm9ndWVNaXJh", + "Y2xlU2VsZWN0SW5mb0gAEjMKEWJvbnVzX3NlbGVjdF9pbmZvGJQKIAEoCzIV", + "LlJvZ3VlQm9udXNTZWxlY3RJbmZvSABCCAoGYWN0aW9uQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueBonusSelectInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueAction), global::EggLink.DanhengServer.Proto.RogueAction.Parser, new[]{ "BuffSelectInfo", "MiracleSelectInfo", "BonusSelectInfo" }, new[]{ "Action" }, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueAction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueActionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAction(RogueAction other) : this() { + switch (other.ActionCase) { + case ActionOneofCase.BuffSelectInfo: + BuffSelectInfo = other.BuffSelectInfo.Clone(); + break; + case ActionOneofCase.MiracleSelectInfo: + MiracleSelectInfo = other.MiracleSelectInfo.Clone(); + break; + case ActionOneofCase.BonusSelectInfo: + BonusSelectInfo = other.BonusSelectInfo.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAction Clone() { + return new RogueAction(this); + } + + /// Field number for the "buff_select_info" field. + public const int BuffSelectInfoFieldNumber = 1388; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo BuffSelectInfo { + get { return actionCase_ == ActionOneofCase.BuffSelectInfo ? (global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo) action_ : null; } + set { + action_ = value; + actionCase_ = value == null ? ActionOneofCase.None : ActionOneofCase.BuffSelectInfo; + } + } + + /// Field number for the "miracle_select_info" field. + public const int MiracleSelectInfoFieldNumber = 1147; + /// + ///RogueBuffDropInfo BMIDONBKJNJ = 590; + ///RogueBuffEnhanceSelectInfo BDLINKPALNL = 1837; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo MiracleSelectInfo { + get { return actionCase_ == ActionOneofCase.MiracleSelectInfo ? (global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo) action_ : null; } + set { + action_ = value; + actionCase_ = value == null ? ActionOneofCase.None : ActionOneofCase.MiracleSelectInfo; + } + } + + /// Field number for the "bonus_select_info" field. + public const int BonusSelectInfoFieldNumber = 1300; + /// + ///CELLDKOCJIA DONMAOEJMEF = 618; + ///RogueMiracleRepairAction IJGDIIAMLOO = 1746; + ///RogueMiracleDestroyAction BAECAJOMOJM = 1403; + ///RogueMiracleDropAction CDLPPJNNBIM = 196; + ///RogueMiracleSelectDestroyedAction PKEFIKCMDOM = 1336; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBonusSelectInfo BonusSelectInfo { + get { return actionCase_ == ActionOneofCase.BonusSelectInfo ? (global::EggLink.DanhengServer.Proto.RogueBonusSelectInfo) action_ : null; } + set { + action_ = value; + actionCase_ = value == null ? ActionOneofCase.None : ActionOneofCase.BonusSelectInfo; + } + } + + private object action_; + /// Enum of possible cases for the "action" oneof. + public enum ActionOneofCase { + None = 0, + BuffSelectInfo = 1388, + MiracleSelectInfo = 1147, + BonusSelectInfo = 1300, + } + private ActionOneofCase actionCase_ = ActionOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActionOneofCase ActionCase { + get { return actionCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAction() { + actionCase_ = ActionOneofCase.None; + action_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BuffSelectInfo, other.BuffSelectInfo)) return false; + if (!object.Equals(MiracleSelectInfo, other.MiracleSelectInfo)) return false; + if (!object.Equals(BonusSelectInfo, other.BonusSelectInfo)) return false; + if (ActionCase != other.ActionCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (actionCase_ == ActionOneofCase.BuffSelectInfo) hash ^= BuffSelectInfo.GetHashCode(); + if (actionCase_ == ActionOneofCase.MiracleSelectInfo) hash ^= MiracleSelectInfo.GetHashCode(); + if (actionCase_ == ActionOneofCase.BonusSelectInfo) hash ^= BonusSelectInfo.GetHashCode(); + hash ^= (int) actionCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (actionCase_ == ActionOneofCase.MiracleSelectInfo) { + output.WriteRawTag(218, 71); + output.WriteMessage(MiracleSelectInfo); + } + if (actionCase_ == ActionOneofCase.BonusSelectInfo) { + output.WriteRawTag(162, 81); + output.WriteMessage(BonusSelectInfo); + } + if (actionCase_ == ActionOneofCase.BuffSelectInfo) { + output.WriteRawTag(226, 86); + output.WriteMessage(BuffSelectInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (actionCase_ == ActionOneofCase.MiracleSelectInfo) { + output.WriteRawTag(218, 71); + output.WriteMessage(MiracleSelectInfo); + } + if (actionCase_ == ActionOneofCase.BonusSelectInfo) { + output.WriteRawTag(162, 81); + output.WriteMessage(BonusSelectInfo); + } + if (actionCase_ == ActionOneofCase.BuffSelectInfo) { + output.WriteRawTag(226, 86); + output.WriteMessage(BuffSelectInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (actionCase_ == ActionOneofCase.BuffSelectInfo) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(BuffSelectInfo); + } + if (actionCase_ == ActionOneofCase.MiracleSelectInfo) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MiracleSelectInfo); + } + if (actionCase_ == ActionOneofCase.BonusSelectInfo) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(BonusSelectInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueAction other) { + if (other == null) { + return; + } + switch (other.ActionCase) { + case ActionOneofCase.BuffSelectInfo: + if (BuffSelectInfo == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo(); + } + BuffSelectInfo.MergeFrom(other.BuffSelectInfo); + break; + case ActionOneofCase.MiracleSelectInfo: + if (MiracleSelectInfo == null) { + MiracleSelectInfo = new global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo(); + } + MiracleSelectInfo.MergeFrom(other.MiracleSelectInfo); + break; + case ActionOneofCase.BonusSelectInfo: + if (BonusSelectInfo == null) { + BonusSelectInfo = new global::EggLink.DanhengServer.Proto.RogueBonusSelectInfo(); + } + BonusSelectInfo.MergeFrom(other.BonusSelectInfo); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 9178: { + global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo subBuilder = new global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo(); + if (actionCase_ == ActionOneofCase.MiracleSelectInfo) { + subBuilder.MergeFrom(MiracleSelectInfo); + } + input.ReadMessage(subBuilder); + MiracleSelectInfo = subBuilder; + break; + } + case 10402: { + global::EggLink.DanhengServer.Proto.RogueBonusSelectInfo subBuilder = new global::EggLink.DanhengServer.Proto.RogueBonusSelectInfo(); + if (actionCase_ == ActionOneofCase.BonusSelectInfo) { + subBuilder.MergeFrom(BonusSelectInfo); + } + input.ReadMessage(subBuilder); + BonusSelectInfo = subBuilder; + break; + } + case 11106: { + global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo subBuilder = new global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo(); + if (actionCase_ == ActionOneofCase.BuffSelectInfo) { + subBuilder.MergeFrom(BuffSelectInfo); + } + input.ReadMessage(subBuilder); + BuffSelectInfo = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 9178: { + global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo subBuilder = new global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo(); + if (actionCase_ == ActionOneofCase.MiracleSelectInfo) { + subBuilder.MergeFrom(MiracleSelectInfo); + } + input.ReadMessage(subBuilder); + MiracleSelectInfo = subBuilder; + break; + } + case 10402: { + global::EggLink.DanhengServer.Proto.RogueBonusSelectInfo subBuilder = new global::EggLink.DanhengServer.Proto.RogueBonusSelectInfo(); + if (actionCase_ == ActionOneofCase.BonusSelectInfo) { + subBuilder.MergeFrom(BonusSelectInfo); + } + input.ReadMessage(subBuilder); + BonusSelectInfo = subBuilder; + break; + } + case 11106: { + global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo subBuilder = new global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo(); + if (actionCase_ == ActionOneofCase.BuffSelectInfo) { + subBuilder.MergeFrom(BuffSelectInfo); + } + input.ReadMessage(subBuilder); + BuffSelectInfo = subBuilder; + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueActionResult.cs b/Common/Proto/RogueActionResult.cs new file mode 100644 index 00000000..d8808867 --- /dev/null +++ b/Common/Proto/RogueActionResult.cs @@ -0,0 +1,282 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueActionResult.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueActionResult.proto + public static partial class RogueActionResultReflection { + + #region Descriptor + /// File descriptor for RogueActionResult.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueActionResultReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdSb2d1ZUFjdGlvblJlc3VsdC5wcm90bxoVUm9ndWVCdWZmU291cmNlLnBy", + "b3RvGhtSb2d1ZUFjdGlvblJlc3VsdERhdGEucHJvdG8iYgoRUm9ndWVBY3Rp", + "b25SZXN1bHQSIAoGc291cmNlGAMgASgOMhAuUm9ndWVCdWZmU291cmNlEisK", + "C2FjdGlvbl9kYXRhGAsgASgLMhYuUm9ndWVBY3Rpb25SZXN1bHREYXRhQh6q", + "AhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueBuffSourceReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueActionResultDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueActionResult), global::EggLink.DanhengServer.Proto.RogueActionResult.Parser, new[]{ "Source", "ActionData" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueActionResult : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueActionResult()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueActionResultReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueActionResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueActionResult(RogueActionResult other) : this() { + source_ = other.source_; + actionData_ = other.actionData_ != null ? other.actionData_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueActionResult Clone() { + return new RogueActionResult(this); + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.RogueBuffSource source_ = global::EggLink.DanhengServer.Proto.RogueBuffSource.TypeNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBuffSource Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "action_data" field. + public const int ActionDataFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.RogueActionResultData actionData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueActionResultData ActionData { + get { return actionData_; } + set { + actionData_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueActionResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueActionResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Source != other.Source) return false; + if (!object.Equals(ActionData, other.ActionData)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Source != global::EggLink.DanhengServer.Proto.RogueBuffSource.TypeNone) hash ^= Source.GetHashCode(); + if (actionData_ != null) hash ^= ActionData.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Source != global::EggLink.DanhengServer.Proto.RogueBuffSource.TypeNone) { + output.WriteRawTag(24); + output.WriteEnum((int) Source); + } + if (actionData_ != null) { + output.WriteRawTag(90); + output.WriteMessage(ActionData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Source != global::EggLink.DanhengServer.Proto.RogueBuffSource.TypeNone) { + output.WriteRawTag(24); + output.WriteEnum((int) Source); + } + if (actionData_ != null) { + output.WriteRawTag(90); + output.WriteMessage(ActionData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Source != global::EggLink.DanhengServer.Proto.RogueBuffSource.TypeNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); + } + if (actionData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActionData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueActionResult other) { + if (other == null) { + return; + } + if (other.Source != global::EggLink.DanhengServer.Proto.RogueBuffSource.TypeNone) { + Source = other.Source; + } + if (other.actionData_ != null) { + if (actionData_ == null) { + ActionData = new global::EggLink.DanhengServer.Proto.RogueActionResultData(); + } + ActionData.MergeFrom(other.ActionData); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Source = (global::EggLink.DanhengServer.Proto.RogueBuffSource) input.ReadEnum(); + break; + } + case 90: { + if (actionData_ == null) { + ActionData = new global::EggLink.DanhengServer.Proto.RogueActionResultData(); + } + input.ReadMessage(ActionData); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Source = (global::EggLink.DanhengServer.Proto.RogueBuffSource) input.ReadEnum(); + break; + } + case 90: { + if (actionData_ == null) { + ActionData = new global::EggLink.DanhengServer.Proto.RogueActionResultData(); + } + input.ReadMessage(ActionData); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueActionResultData.cs b/Common/Proto/RogueActionResultData.cs new file mode 100644 index 00000000..2cd0a13a --- /dev/null +++ b/Common/Proto/RogueActionResultData.cs @@ -0,0 +1,441 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueActionResultData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueActionResultData.proto + public static partial class RogueActionResultDataReflection { + + #region Descriptor + /// File descriptor for RogueActionResultData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueActionResultDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtSb2d1ZUFjdGlvblJlc3VsdERhdGEucHJvdG8aE1JvZ3VlQnVmZkRhdGEu", + "cHJvdG8aFlJvZ3VlTWlyYWNsZURhdGEucHJvdG8aGlJvZ3VlVmlydHVhbEl0", + "ZW1EYXRhLnByb3RvIvcBChVSb2d1ZUFjdGlvblJlc3VsdERhdGESLAoNYWRk", + "X2l0ZW1fbGlzdBgMIAEoCzIVLlJvZ3VlVmlydHVhbEl0ZW1EYXRhEi8KEHJl", + "bW92ZV9pdGVtX2xpc3QYCyABKAsyFS5Sb2d1ZVZpcnR1YWxJdGVtRGF0YRIm", + "Cg1hZGRfYnVmZl9saXN0GL8CIAEoCzIOLlJvZ3VlQnVmZkRhdGESKQoQcmVt", + "b3ZlX2J1ZmZfbGlzdBi3AyABKAsyDi5Sb2d1ZUJ1ZmZEYXRhEiwKEGFkZF9t", + "aXJhY2xlX2xpc3QYqAEgASgLMhEuUm9ndWVNaXJhY2xlRGF0YUIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueBuffDataReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueMiracleDataReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueVirtualItemDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueActionResultData), global::EggLink.DanhengServer.Proto.RogueActionResultData.Parser, new[]{ "AddItemList", "RemoveItemList", "AddBuffList", "RemoveBuffList", "AddMiracleList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueActionResultData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueActionResultData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueActionResultDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueActionResultData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueActionResultData(RogueActionResultData other) : this() { + addItemList_ = other.addItemList_ != null ? other.addItemList_.Clone() : null; + removeItemList_ = other.removeItemList_ != null ? other.removeItemList_.Clone() : null; + addBuffList_ = other.addBuffList_ != null ? other.addBuffList_.Clone() : null; + removeBuffList_ = other.removeBuffList_ != null ? other.removeBuffList_.Clone() : null; + addMiracleList_ = other.addMiracleList_ != null ? other.addMiracleList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueActionResultData Clone() { + return new RogueActionResultData(this); + } + + /// Field number for the "add_item_list" field. + public const int AddItemListFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.RogueVirtualItemData addItemList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueVirtualItemData AddItemList { + get { return addItemList_; } + set { + addItemList_ = value; + } + } + + /// Field number for the "remove_item_list" field. + public const int RemoveItemListFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.RogueVirtualItemData removeItemList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueVirtualItemData RemoveItemList { + get { return removeItemList_; } + set { + removeItemList_ = value; + } + } + + /// Field number for the "add_buff_list" field. + public const int AddBuffListFieldNumber = 319; + private global::EggLink.DanhengServer.Proto.RogueBuffData addBuffList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBuffData AddBuffList { + get { return addBuffList_; } + set { + addBuffList_ = value; + } + } + + /// Field number for the "remove_buff_list" field. + public const int RemoveBuffListFieldNumber = 439; + private global::EggLink.DanhengServer.Proto.RogueBuffData removeBuffList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBuffData RemoveBuffList { + get { return removeBuffList_; } + set { + removeBuffList_ = value; + } + } + + /// Field number for the "add_miracle_list" field. + public const int AddMiracleListFieldNumber = 168; + private global::EggLink.DanhengServer.Proto.RogueMiracleData addMiracleList_; + /// + ///MCFPILGOKJL LBHBDGKKJIJ = 167; + ///PONBIJNJGJN CANDAIPCPJK = 1473; + ///KALADHPCJPN CDCGLLGKBPA = 1188; + ///CNEKDDFMKCK FGHCBKGDKAB = 1032; + ///HICHEGNFHNG IIDMFNJOBOG = 1742; + ///PGJANLDGLEM DPCCLAKMHLJ = 477; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueMiracleData AddMiracleList { + get { return addMiracleList_; } + set { + addMiracleList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueActionResultData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueActionResultData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AddItemList, other.AddItemList)) return false; + if (!object.Equals(RemoveItemList, other.RemoveItemList)) return false; + if (!object.Equals(AddBuffList, other.AddBuffList)) return false; + if (!object.Equals(RemoveBuffList, other.RemoveBuffList)) return false; + if (!object.Equals(AddMiracleList, other.AddMiracleList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (addItemList_ != null) hash ^= AddItemList.GetHashCode(); + if (removeItemList_ != null) hash ^= RemoveItemList.GetHashCode(); + if (addBuffList_ != null) hash ^= AddBuffList.GetHashCode(); + if (removeBuffList_ != null) hash ^= RemoveBuffList.GetHashCode(); + if (addMiracleList_ != null) hash ^= AddMiracleList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (removeItemList_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RemoveItemList); + } + if (addItemList_ != null) { + output.WriteRawTag(98); + output.WriteMessage(AddItemList); + } + if (addMiracleList_ != null) { + output.WriteRawTag(194, 10); + output.WriteMessage(AddMiracleList); + } + if (addBuffList_ != null) { + output.WriteRawTag(250, 19); + output.WriteMessage(AddBuffList); + } + if (removeBuffList_ != null) { + output.WriteRawTag(186, 27); + output.WriteMessage(RemoveBuffList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (removeItemList_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RemoveItemList); + } + if (addItemList_ != null) { + output.WriteRawTag(98); + output.WriteMessage(AddItemList); + } + if (addMiracleList_ != null) { + output.WriteRawTag(194, 10); + output.WriteMessage(AddMiracleList); + } + if (addBuffList_ != null) { + output.WriteRawTag(250, 19); + output.WriteMessage(AddBuffList); + } + if (removeBuffList_ != null) { + output.WriteRawTag(186, 27); + output.WriteMessage(RemoveBuffList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (addItemList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AddItemList); + } + if (removeItemList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemoveItemList); + } + if (addBuffList_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AddBuffList); + } + if (removeBuffList_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RemoveBuffList); + } + if (addMiracleList_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AddMiracleList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueActionResultData other) { + if (other == null) { + return; + } + if (other.addItemList_ != null) { + if (addItemList_ == null) { + AddItemList = new global::EggLink.DanhengServer.Proto.RogueVirtualItemData(); + } + AddItemList.MergeFrom(other.AddItemList); + } + if (other.removeItemList_ != null) { + if (removeItemList_ == null) { + RemoveItemList = new global::EggLink.DanhengServer.Proto.RogueVirtualItemData(); + } + RemoveItemList.MergeFrom(other.RemoveItemList); + } + if (other.addBuffList_ != null) { + if (addBuffList_ == null) { + AddBuffList = new global::EggLink.DanhengServer.Proto.RogueBuffData(); + } + AddBuffList.MergeFrom(other.AddBuffList); + } + if (other.removeBuffList_ != null) { + if (removeBuffList_ == null) { + RemoveBuffList = new global::EggLink.DanhengServer.Proto.RogueBuffData(); + } + RemoveBuffList.MergeFrom(other.RemoveBuffList); + } + if (other.addMiracleList_ != null) { + if (addMiracleList_ == null) { + AddMiracleList = new global::EggLink.DanhengServer.Proto.RogueMiracleData(); + } + AddMiracleList.MergeFrom(other.AddMiracleList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 90: { + if (removeItemList_ == null) { + RemoveItemList = new global::EggLink.DanhengServer.Proto.RogueVirtualItemData(); + } + input.ReadMessage(RemoveItemList); + break; + } + case 98: { + if (addItemList_ == null) { + AddItemList = new global::EggLink.DanhengServer.Proto.RogueVirtualItemData(); + } + input.ReadMessage(AddItemList); + break; + } + case 1346: { + if (addMiracleList_ == null) { + AddMiracleList = new global::EggLink.DanhengServer.Proto.RogueMiracleData(); + } + input.ReadMessage(AddMiracleList); + break; + } + case 2554: { + if (addBuffList_ == null) { + AddBuffList = new global::EggLink.DanhengServer.Proto.RogueBuffData(); + } + input.ReadMessage(AddBuffList); + break; + } + case 3514: { + if (removeBuffList_ == null) { + RemoveBuffList = new global::EggLink.DanhengServer.Proto.RogueBuffData(); + } + input.ReadMessage(RemoveBuffList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 90: { + if (removeItemList_ == null) { + RemoveItemList = new global::EggLink.DanhengServer.Proto.RogueVirtualItemData(); + } + input.ReadMessage(RemoveItemList); + break; + } + case 98: { + if (addItemList_ == null) { + AddItemList = new global::EggLink.DanhengServer.Proto.RogueVirtualItemData(); + } + input.ReadMessage(AddItemList); + break; + } + case 1346: { + if (addMiracleList_ == null) { + AddMiracleList = new global::EggLink.DanhengServer.Proto.RogueMiracleData(); + } + input.ReadMessage(AddMiracleList); + break; + } + case 2554: { + if (addBuffList_ == null) { + AddBuffList = new global::EggLink.DanhengServer.Proto.RogueBuffData(); + } + input.ReadMessage(AddBuffList); + break; + } + case 3514: { + if (removeBuffList_ == null) { + RemoveBuffList = new global::EggLink.DanhengServer.Proto.RogueBuffData(); + } + input.ReadMessage(RemoveBuffList); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueAeon.cs b/Common/Proto/RogueAeon.cs new file mode 100644 index 00000000..3c0f68a6 --- /dev/null +++ b/Common/Proto/RogueAeon.cs @@ -0,0 +1,274 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueAeon.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueAeon.proto + public static partial class RogueAeonReflection { + + #region Descriptor + /// File descriptor for RogueAeon.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueAeonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9Sb2d1ZUFlb24ucHJvdG8iPAoJUm9ndWVBZW9uEh4KFmlzX3VubG9ja19l", + "bmhhbmNlX2J1ZmYYDCABKAgSDwoHYWVvbl9pZBgKIAEoDUIeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueAeon), global::EggLink.DanhengServer.Proto.RogueAeon.Parser, new[]{ "IsUnlockEnhanceBuff", "AeonId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueAeon : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueAeon()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueAeonReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAeon() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAeon(RogueAeon other) : this() { + isUnlockEnhanceBuff_ = other.isUnlockEnhanceBuff_; + aeonId_ = other.aeonId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAeon Clone() { + return new RogueAeon(this); + } + + /// Field number for the "is_unlock_enhance_buff" field. + public const int IsUnlockEnhanceBuffFieldNumber = 12; + private bool isUnlockEnhanceBuff_; + /// + ///uint32 aeon_id = 7; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnlockEnhanceBuff { + get { return isUnlockEnhanceBuff_; } + set { + isUnlockEnhanceBuff_ = value; + } + } + + /// Field number for the "aeon_id" field. + public const int AeonIdFieldNumber = 10; + private uint aeonId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AeonId { + get { return aeonId_; } + set { + aeonId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueAeon); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueAeon other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsUnlockEnhanceBuff != other.IsUnlockEnhanceBuff) return false; + if (AeonId != other.AeonId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (IsUnlockEnhanceBuff != false) hash ^= IsUnlockEnhanceBuff.GetHashCode(); + if (AeonId != 0) hash ^= AeonId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AeonId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(AeonId); + } + if (IsUnlockEnhanceBuff != false) { + output.WriteRawTag(96); + output.WriteBool(IsUnlockEnhanceBuff); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AeonId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(AeonId); + } + if (IsUnlockEnhanceBuff != false) { + output.WriteRawTag(96); + output.WriteBool(IsUnlockEnhanceBuff); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (IsUnlockEnhanceBuff != false) { + size += 1 + 1; + } + if (AeonId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AeonId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueAeon other) { + if (other == null) { + return; + } + if (other.IsUnlockEnhanceBuff != false) { + IsUnlockEnhanceBuff = other.IsUnlockEnhanceBuff; + } + if (other.AeonId != 0) { + AeonId = other.AeonId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 80: { + AeonId = input.ReadUInt32(); + break; + } + case 96: { + IsUnlockEnhanceBuff = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 80: { + AeonId = input.ReadUInt32(); + break; + } + case 96: { + IsUnlockEnhanceBuff = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueAeonInfo.cs b/Common/Proto/RogueAeonInfo.cs new file mode 100644 index 00000000..cc51cb41 --- /dev/null +++ b/Common/Proto/RogueAeonInfo.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueAeonInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueAeonInfo.proto + public static partial class RogueAeonInfoReflection { + + #region Descriptor + /// File descriptor for RogueAeonInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueAeonInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNSb2d1ZUFlb25JbmZvLnByb3RvImgKDVJvZ3VlQWVvbkluZm8SFAoMYWVv", + "bl9pZF9saXN0GAggAygNEhMKC2lzX3VubG9ja2VkGAEgASgIEhcKD3VubG9j", + "a19hZW9uX251bRgPIAEoDRITCgtKUEVCUEdJRUdQTxgOIAEoDUIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueAeonInfo), global::EggLink.DanhengServer.Proto.RogueAeonInfo.Parser, new[]{ "AeonIdList", "IsUnlocked", "UnlockAeonNum", "JPEBPGIEGPO" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueAeonInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueAeonInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueAeonInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAeonInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAeonInfo(RogueAeonInfo other) : this() { + aeonIdList_ = other.aeonIdList_.Clone(); + isUnlocked_ = other.isUnlocked_; + unlockAeonNum_ = other.unlockAeonNum_; + jPEBPGIEGPO_ = other.jPEBPGIEGPO_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAeonInfo Clone() { + return new RogueAeonInfo(this); + } + + /// Field number for the "aeon_id_list" field. + public const int AeonIdListFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_aeonIdList_codec + = pb::FieldCodec.ForUInt32(66); + private readonly pbc::RepeatedField aeonIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AeonIdList { + get { return aeonIdList_; } + } + + /// Field number for the "is_unlocked" field. + public const int IsUnlockedFieldNumber = 1; + private bool isUnlocked_; + /// + /// guess + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnlocked { + get { return isUnlocked_; } + set { + isUnlocked_ = value; + } + } + + /// Field number for the "unlock_aeon_num" field. + public const int UnlockAeonNumFieldNumber = 15; + private uint unlockAeonNum_; + /// + /// 9 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UnlockAeonNum { + get { return unlockAeonNum_; } + set { + unlockAeonNum_ = value; + } + } + + /// Field number for the "JPEBPGIEGPO" field. + public const int JPEBPGIEGPOFieldNumber = 14; + private uint jPEBPGIEGPO_; + /// + /// 3 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint JPEBPGIEGPO { + get { return jPEBPGIEGPO_; } + set { + jPEBPGIEGPO_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueAeonInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueAeonInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!aeonIdList_.Equals(other.aeonIdList_)) return false; + if (IsUnlocked != other.IsUnlocked) return false; + if (UnlockAeonNum != other.UnlockAeonNum) return false; + if (JPEBPGIEGPO != other.JPEBPGIEGPO) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= aeonIdList_.GetHashCode(); + if (IsUnlocked != false) hash ^= IsUnlocked.GetHashCode(); + if (UnlockAeonNum != 0) hash ^= UnlockAeonNum.GetHashCode(); + if (JPEBPGIEGPO != 0) hash ^= JPEBPGIEGPO.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (IsUnlocked != false) { + output.WriteRawTag(8); + output.WriteBool(IsUnlocked); + } + aeonIdList_.WriteTo(output, _repeated_aeonIdList_codec); + if (JPEBPGIEGPO != 0) { + output.WriteRawTag(112); + output.WriteUInt32(JPEBPGIEGPO); + } + if (UnlockAeonNum != 0) { + output.WriteRawTag(120); + output.WriteUInt32(UnlockAeonNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (IsUnlocked != false) { + output.WriteRawTag(8); + output.WriteBool(IsUnlocked); + } + aeonIdList_.WriteTo(ref output, _repeated_aeonIdList_codec); + if (JPEBPGIEGPO != 0) { + output.WriteRawTag(112); + output.WriteUInt32(JPEBPGIEGPO); + } + if (UnlockAeonNum != 0) { + output.WriteRawTag(120); + output.WriteUInt32(UnlockAeonNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += aeonIdList_.CalculateSize(_repeated_aeonIdList_codec); + if (IsUnlocked != false) { + size += 1 + 1; + } + if (UnlockAeonNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UnlockAeonNum); + } + if (JPEBPGIEGPO != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(JPEBPGIEGPO); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueAeonInfo other) { + if (other == null) { + return; + } + aeonIdList_.Add(other.aeonIdList_); + if (other.IsUnlocked != false) { + IsUnlocked = other.IsUnlocked; + } + if (other.UnlockAeonNum != 0) { + UnlockAeonNum = other.UnlockAeonNum; + } + if (other.JPEBPGIEGPO != 0) { + JPEBPGIEGPO = other.JPEBPGIEGPO; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + IsUnlocked = input.ReadBool(); + break; + } + case 66: + case 64: { + aeonIdList_.AddEntriesFrom(input, _repeated_aeonIdList_codec); + break; + } + case 112: { + JPEBPGIEGPO = input.ReadUInt32(); + break; + } + case 120: { + UnlockAeonNum = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + IsUnlocked = input.ReadBool(); + break; + } + case 66: + case 64: { + aeonIdList_.AddEntriesFrom(ref input, _repeated_aeonIdList_codec); + break; + } + case 112: { + JPEBPGIEGPO = input.ReadUInt32(); + break; + } + case 120: { + UnlockAeonNum = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueArea.cs b/Common/Proto/RogueArea.cs new file mode 100644 index 00000000..1ab84fd6 --- /dev/null +++ b/Common/Proto/RogueArea.cs @@ -0,0 +1,386 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueArea.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueArea.proto + public static partial class RogueAreaReflection { + + #region Descriptor + /// File descriptor for RogueArea.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueAreaReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9Sb2d1ZUFyZWEucHJvdG8ieAoJUm9ndWVBcmVhEhkKEXJvZ3VlX2FyZWFf", + "c3RhdHVzGAggASgNEhoKEmN1cl9yZWFjaF9yb29tX251bRgCIAEoDRITCgtD", + "TUpGRExNQklPSxgOIAEoCBIOCgZtYXBfaWQYBSABKA0SDwoHYXJlYV9pZBgH", + "IAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueArea), global::EggLink.DanhengServer.Proto.RogueArea.Parser, new[]{ "RogueAreaStatus", "CurReachRoomNum", "CMJFDLMBIOK", "MapId", "AreaId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueArea : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueArea()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueAreaReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueArea() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueArea(RogueArea other) : this() { + rogueAreaStatus_ = other.rogueAreaStatus_; + curReachRoomNum_ = other.curReachRoomNum_; + cMJFDLMBIOK_ = other.cMJFDLMBIOK_; + mapId_ = other.mapId_; + areaId_ = other.areaId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueArea Clone() { + return new RogueArea(this); + } + + /// Field number for the "rogue_area_status" field. + public const int RogueAreaStatusFieldNumber = 8; + private uint rogueAreaStatus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RogueAreaStatus { + get { return rogueAreaStatus_; } + set { + rogueAreaStatus_ = value; + } + } + + /// Field number for the "cur_reach_room_num" field. + public const int CurReachRoomNumFieldNumber = 2; + private uint curReachRoomNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurReachRoomNum { + get { return curReachRoomNum_; } + set { + curReachRoomNum_ = value; + } + } + + /// Field number for the "CMJFDLMBIOK" field. + public const int CMJFDLMBIOKFieldNumber = 14; + private bool cMJFDLMBIOK_; + /// + /// HJEALCCKPAO AMMMELMOKJF = 12; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CMJFDLMBIOK { + get { return cMJFDLMBIOK_; } + set { + cMJFDLMBIOK_ = value; + } + } + + /// Field number for the "map_id" field. + public const int MapIdFieldNumber = 5; + private uint mapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MapId { + get { return mapId_; } + set { + mapId_ = value; + } + } + + /// Field number for the "area_id" field. + public const int AreaIdFieldNumber = 7; + private uint areaId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AreaId { + get { return areaId_; } + set { + areaId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueArea); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueArea other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RogueAreaStatus != other.RogueAreaStatus) return false; + if (CurReachRoomNum != other.CurReachRoomNum) return false; + if (CMJFDLMBIOK != other.CMJFDLMBIOK) return false; + if (MapId != other.MapId) return false; + if (AreaId != other.AreaId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RogueAreaStatus != 0) hash ^= RogueAreaStatus.GetHashCode(); + if (CurReachRoomNum != 0) hash ^= CurReachRoomNum.GetHashCode(); + if (CMJFDLMBIOK != false) hash ^= CMJFDLMBIOK.GetHashCode(); + if (MapId != 0) hash ^= MapId.GetHashCode(); + if (AreaId != 0) hash ^= AreaId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CurReachRoomNum != 0) { + output.WriteRawTag(16); + output.WriteUInt32(CurReachRoomNum); + } + if (MapId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MapId); + } + if (AreaId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(AreaId); + } + if (RogueAreaStatus != 0) { + output.WriteRawTag(64); + output.WriteUInt32(RogueAreaStatus); + } + if (CMJFDLMBIOK != false) { + output.WriteRawTag(112); + output.WriteBool(CMJFDLMBIOK); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CurReachRoomNum != 0) { + output.WriteRawTag(16); + output.WriteUInt32(CurReachRoomNum); + } + if (MapId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MapId); + } + if (AreaId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(AreaId); + } + if (RogueAreaStatus != 0) { + output.WriteRawTag(64); + output.WriteUInt32(RogueAreaStatus); + } + if (CMJFDLMBIOK != false) { + output.WriteRawTag(112); + output.WriteBool(CMJFDLMBIOK); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RogueAreaStatus != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RogueAreaStatus); + } + if (CurReachRoomNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurReachRoomNum); + } + if (CMJFDLMBIOK != false) { + size += 1 + 1; + } + if (MapId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MapId); + } + if (AreaId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AreaId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueArea other) { + if (other == null) { + return; + } + if (other.RogueAreaStatus != 0) { + RogueAreaStatus = other.RogueAreaStatus; + } + if (other.CurReachRoomNum != 0) { + CurReachRoomNum = other.CurReachRoomNum; + } + if (other.CMJFDLMBIOK != false) { + CMJFDLMBIOK = other.CMJFDLMBIOK; + } + if (other.MapId != 0) { + MapId = other.MapId; + } + if (other.AreaId != 0) { + AreaId = other.AreaId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + CurReachRoomNum = input.ReadUInt32(); + break; + } + case 40: { + MapId = input.ReadUInt32(); + break; + } + case 56: { + AreaId = input.ReadUInt32(); + break; + } + case 64: { + RogueAreaStatus = input.ReadUInt32(); + break; + } + case 112: { + CMJFDLMBIOK = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + CurReachRoomNum = input.ReadUInt32(); + break; + } + case 40: { + MapId = input.ReadUInt32(); + break; + } + case 56: { + AreaId = input.ReadUInt32(); + break; + } + case 64: { + RogueAreaStatus = input.ReadUInt32(); + break; + } + case 112: { + CMJFDLMBIOK = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueAreaInfo.cs b/Common/Proto/RogueAreaInfo.cs new file mode 100644 index 00000000..0ab6b13e --- /dev/null +++ b/Common/Proto/RogueAreaInfo.cs @@ -0,0 +1,223 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueAreaInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueAreaInfo.proto + public static partial class RogueAreaInfoReflection { + + #region Descriptor + /// File descriptor for RogueAreaInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueAreaInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNSb2d1ZUFyZWFJbmZvLnByb3RvGg9Sb2d1ZUFyZWEucHJvdG8iLwoNUm9n", + "dWVBcmVhSW5mbxIeCgpyb2d1ZV9hcmVhGAcgAygLMgouUm9ndWVBcmVhQh6q", + "AhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueAreaReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueAreaInfo), global::EggLink.DanhengServer.Proto.RogueAreaInfo.Parser, new[]{ "RogueArea" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueAreaInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueAreaInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueAreaInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAreaInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAreaInfo(RogueAreaInfo other) : this() { + rogueArea_ = other.rogueArea_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAreaInfo Clone() { + return new RogueAreaInfo(this); + } + + /// Field number for the "rogue_area" field. + public const int RogueAreaFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_rogueArea_codec + = pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.RogueArea.Parser); + private readonly pbc::RepeatedField rogueArea_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RogueArea { + get { return rogueArea_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueAreaInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueAreaInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rogueArea_.Equals(other.rogueArea_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= rogueArea_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + rogueArea_.WriteTo(output, _repeated_rogueArea_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + rogueArea_.WriteTo(ref output, _repeated_rogueArea_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += rogueArea_.CalculateSize(_repeated_rogueArea_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueAreaInfo other) { + if (other == null) { + return; + } + rogueArea_.Add(other.rogueArea_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + rogueArea_.AddEntriesFrom(input, _repeated_rogueArea_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + rogueArea_.AddEntriesFrom(ref input, _repeated_rogueArea_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueAreaStatus.cs b/Common/Proto/RogueAreaStatus.cs new file mode 100644 index 00000000..09c030ea --- /dev/null +++ b/Common/Proto/RogueAreaStatus.cs @@ -0,0 +1,51 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueAreaStatus.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueAreaStatus.proto + public static partial class RogueAreaStatusReflection { + + #region Descriptor + /// File descriptor for RogueAreaStatus.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueAreaStatusReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSb2d1ZUFyZWFTdGF0dXMucHJvdG8qigEKD1JvZ3VlQXJlYVN0YXR1cxIa", + "ChZST0dVRV9BUkVBX1NUQVRVU19MT0NLEAASHAoYUk9HVUVfQVJFQV9TVEFU", + "VVNfVU5MT0NLEAESIAocUk9HVUVfQVJFQV9TVEFUVVNfRklSU1RfUEFTUxAC", + "EhsKF1JPR1VFX0FSRUFfU1RBVFVTX0NMT1NFEANCHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.RogueAreaStatus), }, null, null)); + } + #endregion + + } + #region Enums + public enum RogueAreaStatus { + [pbr::OriginalName("ROGUE_AREA_STATUS_LOCK")] Lock = 0, + [pbr::OriginalName("ROGUE_AREA_STATUS_UNLOCK")] Unlock = 1, + [pbr::OriginalName("ROGUE_AREA_STATUS_FIRST_PASS")] FirstPass = 2, + [pbr::OriginalName("ROGUE_AREA_STATUS_CLOSE")] Close = 3, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueAvatarInfo.cs b/Common/Proto/RogueAvatarInfo.cs new file mode 100644 index 00000000..5dc26d0b --- /dev/null +++ b/Common/Proto/RogueAvatarInfo.cs @@ -0,0 +1,634 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueAvatarInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueAvatarInfo.proto + public static partial class RogueAvatarInfoReflection { + + #region Descriptor + /// File descriptor for RogueAvatarInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueAvatarInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSb2d1ZUF2YXRhckluZm8ucHJvdG8aEkl0ZW1Db3N0TGlzdC5wcm90byJ7", + "Cg9Sb2d1ZUF2YXRhckluZm8SIQoLQUpKSk5MUENFRUQYAiABKAsyDC5DTFBE", + "QU9PQUhPRRITCgtERERJQ09FRkhQTRgHIAMoDRIbChNiYXNlX2F2YXRhcl9p", + "ZF9saXN0GAsgAygNEhMKC1BPR09DT0tBRE1BGA4gAygNInAKC0NMUERBT09B", + "SE9FEhMKC0tLTk1ETVBKTEJHGA8gASgNEhMKC1BGSURKSktGR0pIGAwgAygN", + "EiIKC01HRUZGTE9FUEJLGAcgASgLMg0uSXRlbUNvc3RMaXN0EhMKC0RKR0pE", + "TUJPRkVIGAsgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueAvatarInfo), global::EggLink.DanhengServer.Proto.RogueAvatarInfo.Parser, new[]{ "AJJJNLPCEED", "DDDICOEFHPM", "BaseAvatarIdList", "POGOCOKADMA" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.CLPDAOOAHOE), global::EggLink.DanhengServer.Proto.CLPDAOOAHOE.Parser, new[]{ "KKNMDMPJLBG", "PFIDJJKFGJH", "MGEFFLOEPBK", "DJGJDMBOFEH" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueAvatarInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueAvatarInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueAvatarInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAvatarInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAvatarInfo(RogueAvatarInfo other) : this() { + aJJJNLPCEED_ = other.aJJJNLPCEED_ != null ? other.aJJJNLPCEED_.Clone() : null; + dDDICOEFHPM_ = other.dDDICOEFHPM_.Clone(); + baseAvatarIdList_ = other.baseAvatarIdList_.Clone(); + pOGOCOKADMA_ = other.pOGOCOKADMA_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAvatarInfo Clone() { + return new RogueAvatarInfo(this); + } + + /// Field number for the "AJJJNLPCEED" field. + public const int AJJJNLPCEEDFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.CLPDAOOAHOE aJJJNLPCEED_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.CLPDAOOAHOE AJJJNLPCEED { + get { return aJJJNLPCEED_; } + set { + aJJJNLPCEED_ = value; + } + } + + /// Field number for the "DDDICOEFHPM" field. + public const int DDDICOEFHPMFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_dDDICOEFHPM_codec + = pb::FieldCodec.ForUInt32(58); + private readonly pbc::RepeatedField dDDICOEFHPM_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DDDICOEFHPM { + get { return dDDICOEFHPM_; } + } + + /// Field number for the "base_avatar_id_list" field. + public const int BaseAvatarIdListFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_baseAvatarIdList_codec + = pb::FieldCodec.ForUInt32(90); + private readonly pbc::RepeatedField baseAvatarIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BaseAvatarIdList { + get { return baseAvatarIdList_; } + } + + /// Field number for the "POGOCOKADMA" field. + public const int POGOCOKADMAFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_pOGOCOKADMA_codec + = pb::FieldCodec.ForUInt32(114); + private readonly pbc::RepeatedField pOGOCOKADMA_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField POGOCOKADMA { + get { return pOGOCOKADMA_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueAvatarInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueAvatarInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AJJJNLPCEED, other.AJJJNLPCEED)) return false; + if(!dDDICOEFHPM_.Equals(other.dDDICOEFHPM_)) return false; + if(!baseAvatarIdList_.Equals(other.baseAvatarIdList_)) return false; + if(!pOGOCOKADMA_.Equals(other.pOGOCOKADMA_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (aJJJNLPCEED_ != null) hash ^= AJJJNLPCEED.GetHashCode(); + hash ^= dDDICOEFHPM_.GetHashCode(); + hash ^= baseAvatarIdList_.GetHashCode(); + hash ^= pOGOCOKADMA_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (aJJJNLPCEED_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AJJJNLPCEED); + } + dDDICOEFHPM_.WriteTo(output, _repeated_dDDICOEFHPM_codec); + baseAvatarIdList_.WriteTo(output, _repeated_baseAvatarIdList_codec); + pOGOCOKADMA_.WriteTo(output, _repeated_pOGOCOKADMA_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (aJJJNLPCEED_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AJJJNLPCEED); + } + dDDICOEFHPM_.WriteTo(ref output, _repeated_dDDICOEFHPM_codec); + baseAvatarIdList_.WriteTo(ref output, _repeated_baseAvatarIdList_codec); + pOGOCOKADMA_.WriteTo(ref output, _repeated_pOGOCOKADMA_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (aJJJNLPCEED_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AJJJNLPCEED); + } + size += dDDICOEFHPM_.CalculateSize(_repeated_dDDICOEFHPM_codec); + size += baseAvatarIdList_.CalculateSize(_repeated_baseAvatarIdList_codec); + size += pOGOCOKADMA_.CalculateSize(_repeated_pOGOCOKADMA_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueAvatarInfo other) { + if (other == null) { + return; + } + if (other.aJJJNLPCEED_ != null) { + if (aJJJNLPCEED_ == null) { + AJJJNLPCEED = new global::EggLink.DanhengServer.Proto.CLPDAOOAHOE(); + } + AJJJNLPCEED.MergeFrom(other.AJJJNLPCEED); + } + dDDICOEFHPM_.Add(other.dDDICOEFHPM_); + baseAvatarIdList_.Add(other.baseAvatarIdList_); + pOGOCOKADMA_.Add(other.pOGOCOKADMA_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (aJJJNLPCEED_ == null) { + AJJJNLPCEED = new global::EggLink.DanhengServer.Proto.CLPDAOOAHOE(); + } + input.ReadMessage(AJJJNLPCEED); + break; + } + case 58: + case 56: { + dDDICOEFHPM_.AddEntriesFrom(input, _repeated_dDDICOEFHPM_codec); + break; + } + case 90: + case 88: { + baseAvatarIdList_.AddEntriesFrom(input, _repeated_baseAvatarIdList_codec); + break; + } + case 114: + case 112: { + pOGOCOKADMA_.AddEntriesFrom(input, _repeated_pOGOCOKADMA_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (aJJJNLPCEED_ == null) { + AJJJNLPCEED = new global::EggLink.DanhengServer.Proto.CLPDAOOAHOE(); + } + input.ReadMessage(AJJJNLPCEED); + break; + } + case 58: + case 56: { + dDDICOEFHPM_.AddEntriesFrom(ref input, _repeated_dDDICOEFHPM_codec); + break; + } + case 90: + case 88: { + baseAvatarIdList_.AddEntriesFrom(ref input, _repeated_baseAvatarIdList_codec); + break; + } + case 114: + case 112: { + pOGOCOKADMA_.AddEntriesFrom(ref input, _repeated_pOGOCOKADMA_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CLPDAOOAHOE : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CLPDAOOAHOE()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueAvatarInfoReflection.Descriptor.MessageTypes[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 CLPDAOOAHOE() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CLPDAOOAHOE(CLPDAOOAHOE other) : this() { + kKNMDMPJLBG_ = other.kKNMDMPJLBG_; + pFIDJJKFGJH_ = other.pFIDJJKFGJH_.Clone(); + mGEFFLOEPBK_ = other.mGEFFLOEPBK_ != null ? other.mGEFFLOEPBK_.Clone() : null; + dJGJDMBOFEH_ = other.dJGJDMBOFEH_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CLPDAOOAHOE Clone() { + return new CLPDAOOAHOE(this); + } + + /// Field number for the "KKNMDMPJLBG" field. + public const int KKNMDMPJLBGFieldNumber = 15; + private uint kKNMDMPJLBG_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint KKNMDMPJLBG { + get { return kKNMDMPJLBG_; } + set { + kKNMDMPJLBG_ = value; + } + } + + /// Field number for the "PFIDJJKFGJH" field. + public const int PFIDJJKFGJHFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_pFIDJJKFGJH_codec + = pb::FieldCodec.ForUInt32(98); + private readonly pbc::RepeatedField pFIDJJKFGJH_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PFIDJJKFGJH { + get { return pFIDJJKFGJH_; } + } + + /// Field number for the "MGEFFLOEPBK" field. + public const int MGEFFLOEPBKFieldNumber = 7; + private global::EggLink.DanhengServer.Proto.ItemCostList mGEFFLOEPBK_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList MGEFFLOEPBK { + get { return mGEFFLOEPBK_; } + set { + mGEFFLOEPBK_ = value; + } + } + + /// Field number for the "DJGJDMBOFEH" field. + public const int DJGJDMBOFEHFieldNumber = 11; + private uint dJGJDMBOFEH_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DJGJDMBOFEH { + get { return dJGJDMBOFEH_; } + set { + dJGJDMBOFEH_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CLPDAOOAHOE); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CLPDAOOAHOE other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KKNMDMPJLBG != other.KKNMDMPJLBG) return false; + if(!pFIDJJKFGJH_.Equals(other.pFIDJJKFGJH_)) return false; + if (!object.Equals(MGEFFLOEPBK, other.MGEFFLOEPBK)) return false; + if (DJGJDMBOFEH != other.DJGJDMBOFEH) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (KKNMDMPJLBG != 0) hash ^= KKNMDMPJLBG.GetHashCode(); + hash ^= pFIDJJKFGJH_.GetHashCode(); + if (mGEFFLOEPBK_ != null) hash ^= MGEFFLOEPBK.GetHashCode(); + if (DJGJDMBOFEH != 0) hash ^= DJGJDMBOFEH.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (mGEFFLOEPBK_ != null) { + output.WriteRawTag(58); + output.WriteMessage(MGEFFLOEPBK); + } + if (DJGJDMBOFEH != 0) { + output.WriteRawTag(88); + output.WriteUInt32(DJGJDMBOFEH); + } + pFIDJJKFGJH_.WriteTo(output, _repeated_pFIDJJKFGJH_codec); + if (KKNMDMPJLBG != 0) { + output.WriteRawTag(120); + output.WriteUInt32(KKNMDMPJLBG); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (mGEFFLOEPBK_ != null) { + output.WriteRawTag(58); + output.WriteMessage(MGEFFLOEPBK); + } + if (DJGJDMBOFEH != 0) { + output.WriteRawTag(88); + output.WriteUInt32(DJGJDMBOFEH); + } + pFIDJJKFGJH_.WriteTo(ref output, _repeated_pFIDJJKFGJH_codec); + if (KKNMDMPJLBG != 0) { + output.WriteRawTag(120); + output.WriteUInt32(KKNMDMPJLBG); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (KKNMDMPJLBG != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(KKNMDMPJLBG); + } + size += pFIDJJKFGJH_.CalculateSize(_repeated_pFIDJJKFGJH_codec); + if (mGEFFLOEPBK_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MGEFFLOEPBK); + } + if (DJGJDMBOFEH != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DJGJDMBOFEH); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CLPDAOOAHOE other) { + if (other == null) { + return; + } + if (other.KKNMDMPJLBG != 0) { + KKNMDMPJLBG = other.KKNMDMPJLBG; + } + pFIDJJKFGJH_.Add(other.pFIDJJKFGJH_); + if (other.mGEFFLOEPBK_ != null) { + if (mGEFFLOEPBK_ == null) { + MGEFFLOEPBK = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + MGEFFLOEPBK.MergeFrom(other.MGEFFLOEPBK); + } + if (other.DJGJDMBOFEH != 0) { + DJGJDMBOFEH = other.DJGJDMBOFEH; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + if (mGEFFLOEPBK_ == null) { + MGEFFLOEPBK = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(MGEFFLOEPBK); + break; + } + case 88: { + DJGJDMBOFEH = input.ReadUInt32(); + break; + } + case 98: + case 96: { + pFIDJJKFGJH_.AddEntriesFrom(input, _repeated_pFIDJJKFGJH_codec); + break; + } + case 120: { + KKNMDMPJLBG = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + if (mGEFFLOEPBK_ == null) { + MGEFFLOEPBK = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(MGEFFLOEPBK); + break; + } + case 88: { + DJGJDMBOFEH = input.ReadUInt32(); + break; + } + case 98: + case 96: { + pFIDJJKFGJH_.AddEntriesFrom(ref input, _repeated_pFIDJJKFGJH_codec); + break; + } + case 120: { + KKNMDMPJLBG = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueAvatarReviveCost.cs b/Common/Proto/RogueAvatarReviveCost.cs new file mode 100644 index 00000000..ec66cb27 --- /dev/null +++ b/Common/Proto/RogueAvatarReviveCost.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueAvatarReviveCost.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueAvatarReviveCost.proto + public static partial class RogueAvatarReviveCostReflection { + + #region Descriptor + /// File descriptor for RogueAvatarReviveCost.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueAvatarReviveCostReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtSb2d1ZUF2YXRhclJldml2ZUNvc3QucHJvdG8aEkl0ZW1Db3N0TGlzdC5w", + "cm90byI7ChVSb2d1ZUF2YXRhclJldml2ZUNvc3QSIgoLcmV2aXZlX2Nvc3QY", + "BiABKAsyDS5JdGVtQ29zdExpc3RCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl", + "ci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueAvatarReviveCost), global::EggLink.DanhengServer.Proto.RogueAvatarReviveCost.Parser, new[]{ "ReviveCost" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueAvatarReviveCost : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueAvatarReviveCost()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueAvatarReviveCostReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAvatarReviveCost() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAvatarReviveCost(RogueAvatarReviveCost other) : this() { + reviveCost_ = other.reviveCost_ != null ? other.reviveCost_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueAvatarReviveCost Clone() { + return new RogueAvatarReviveCost(this); + } + + /// Field number for the "revive_cost" field. + public const int ReviveCostFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.ItemCostList reviveCost_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList ReviveCost { + get { return reviveCost_; } + set { + reviveCost_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueAvatarReviveCost); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueAvatarReviveCost other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ReviveCost, other.ReviveCost)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (reviveCost_ != null) hash ^= ReviveCost.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (reviveCost_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ReviveCost); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (reviveCost_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ReviveCost); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (reviveCost_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReviveCost); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueAvatarReviveCost other) { + if (other == null) { + return; + } + if (other.reviveCost_ != null) { + if (reviveCost_ == null) { + ReviveCost = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + ReviveCost.MergeFrom(other.ReviveCost); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: { + if (reviveCost_ == null) { + ReviveCost = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ReviveCost); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: { + if (reviveCost_ == null) { + ReviveCost = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ReviveCost); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueBonusSelect.cs b/Common/Proto/RogueBonusSelect.cs new file mode 100644 index 00000000..417e2a26 --- /dev/null +++ b/Common/Proto/RogueBonusSelect.cs @@ -0,0 +1,196 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueBonusSelect.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueBonusSelect.proto + public static partial class RogueBonusSelectReflection { + + #region Descriptor + /// File descriptor for RogueBonusSelect.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueBonusSelectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZSb2d1ZUJvbnVzU2VsZWN0LnByb3RvIhIKEFJvZ3VlQm9udXNTZWxlY3RC", + "HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueBonusSelect), global::EggLink.DanhengServer.Proto.RogueBonusSelect.Parser, null, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueBonusSelect : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueBonusSelect()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueBonusSelectReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBonusSelect() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBonusSelect(RogueBonusSelect other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBonusSelect Clone() { + return new RogueBonusSelect(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueBonusSelect); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueBonusSelect other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueBonusSelect other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueBonusSelectInfo.cs b/Common/Proto/RogueBonusSelectInfo.cs new file mode 100644 index 00000000..0e63a489 --- /dev/null +++ b/Common/Proto/RogueBonusSelectInfo.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueBonusSelectInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueBonusSelectInfo.proto + public static partial class RogueBonusSelectInfoReflection { + + #region Descriptor + /// File descriptor for RogueBonusSelectInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueBonusSelectInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpSb2d1ZUJvbnVzU2VsZWN0SW5mby5wcm90byIqChRSb2d1ZUJvbnVzU2Vs", + "ZWN0SW5mbxISCgpib251c19pbmZvGAUgAygNQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueBonusSelectInfo), global::EggLink.DanhengServer.Proto.RogueBonusSelectInfo.Parser, new[]{ "BonusInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueBonusSelectInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueBonusSelectInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueBonusSelectInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBonusSelectInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBonusSelectInfo(RogueBonusSelectInfo other) : this() { + bonusInfo_ = other.bonusInfo_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBonusSelectInfo Clone() { + return new RogueBonusSelectInfo(this); + } + + /// Field number for the "bonus_info" field. + public const int BonusInfoFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_bonusInfo_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField bonusInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BonusInfo { + get { return bonusInfo_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueBonusSelectInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueBonusSelectInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!bonusInfo_.Equals(other.bonusInfo_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= bonusInfo_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + bonusInfo_.WriteTo(output, _repeated_bonusInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + bonusInfo_.WriteTo(ref output, _repeated_bonusInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += bonusInfo_.CalculateSize(_repeated_bonusInfo_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueBonusSelectInfo other) { + if (other == null) { + return; + } + bonusInfo_.Add(other.bonusInfo_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: + case 40: { + bonusInfo_.AddEntriesFrom(input, _repeated_bonusInfo_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: + case 40: { + bonusInfo_.AddEntriesFrom(ref input, _repeated_bonusInfo_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueBonusSelectResult.cs b/Common/Proto/RogueBonusSelectResult.cs new file mode 100644 index 00000000..13ba7b7c --- /dev/null +++ b/Common/Proto/RogueBonusSelectResult.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueBonusSelectResult.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueBonusSelectResult.proto + public static partial class RogueBonusSelectResultReflection { + + #region Descriptor + /// File descriptor for RogueBonusSelectResult.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueBonusSelectResultReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxSb2d1ZUJvbnVzU2VsZWN0UmVzdWx0LnByb3RvIioKFlJvZ3VlQm9udXNT", + "ZWxlY3RSZXN1bHQSEAoIYm9udXNfaWQYCSABKA1CHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueBonusSelectResult), global::EggLink.DanhengServer.Proto.RogueBonusSelectResult.Parser, new[]{ "BonusId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueBonusSelectResult : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueBonusSelectResult()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueBonusSelectResultReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBonusSelectResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBonusSelectResult(RogueBonusSelectResult other) : this() { + bonusId_ = other.bonusId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBonusSelectResult Clone() { + return new RogueBonusSelectResult(this); + } + + /// Field number for the "bonus_id" field. + public const int BonusIdFieldNumber = 9; + private uint bonusId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BonusId { + get { return bonusId_; } + set { + bonusId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueBonusSelectResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueBonusSelectResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BonusId != other.BonusId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BonusId != 0) hash ^= BonusId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BonusId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(BonusId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BonusId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(BonusId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BonusId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BonusId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueBonusSelectResult other) { + if (other == null) { + return; + } + if (other.BonusId != 0) { + BonusId = other.BonusId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 72: { + BonusId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 72: { + BonusId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueBuff.cs b/Common/Proto/RogueBuff.cs new file mode 100644 index 00000000..5598e981 --- /dev/null +++ b/Common/Proto/RogueBuff.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueBuff.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueBuff.proto + public static partial class RogueBuffReflection { + + #region Descriptor + /// File descriptor for RogueBuff.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueBuffReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9Sb2d1ZUJ1ZmYucHJvdG8iKwoJUm9ndWVCdWZmEg0KBWxldmVsGAogASgN", + "Eg8KB2J1ZmZfaWQYDyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueBuff), global::EggLink.DanhengServer.Proto.RogueBuff.Parser, new[]{ "Level", "BuffId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueBuff : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueBuff()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueBuffReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuff() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuff(RogueBuff other) : this() { + level_ = other.level_; + buffId_ = other.buffId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuff Clone() { + return new RogueBuff(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 10; + 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 "buff_id" field. + public const int BuffIdFieldNumber = 15; + private uint buffId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 RogueBuff); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueBuff other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) 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 (Level != 0) hash ^= Level.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 (Level != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Level); + } + if (BuffId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(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 (Level != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Level); + } + if (BuffId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(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 (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (BuffId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueBuff other) { + if (other == null) { + return; + } + if (other.Level != 0) { + Level = other.Level; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 80: { + Level = input.ReadUInt32(); + break; + } + case 120: { + BuffId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 80: { + Level = input.ReadUInt32(); + break; + } + case 120: { + BuffId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueBuffData.cs b/Common/Proto/RogueBuffData.cs new file mode 100644 index 00000000..c3407caa --- /dev/null +++ b/Common/Proto/RogueBuffData.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueBuffData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueBuffData.proto + public static partial class RogueBuffDataReflection { + + #region Descriptor + /// File descriptor for RogueBuffData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueBuffDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNSb2d1ZUJ1ZmZEYXRhLnByb3RvIi8KDVJvZ3VlQnVmZkRhdGESDQoFbGV2", + "ZWwYCSABKA0SDwoHYnVmZl9pZBgFIAEoDUIeqgIbRWdnTGluay5EYW5oZW5n", + "U2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueBuffData), global::EggLink.DanhengServer.Proto.RogueBuffData.Parser, new[]{ "Level", "BuffId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueBuffData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueBuffData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueBuffDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffData(RogueBuffData other) : this() { + level_ = other.level_; + buffId_ = other.buffId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffData Clone() { + return new RogueBuffData(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 9; + 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 "buff_id" field. + public const int BuffIdFieldNumber = 5; + private uint buffId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 RogueBuffData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueBuffData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) 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 (Level != 0) hash ^= Level.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 (BuffId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BuffId); + } + if (Level != 0) { + output.WriteRawTag(72); + 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 (BuffId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BuffId); + } + if (Level != 0) { + output.WriteRawTag(72); + 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 (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (BuffId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueBuffData other) { + if (other == null) { + return; + } + if (other.Level != 0) { + Level = other.Level; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + BuffId = input.ReadUInt32(); + break; + } + case 72: { + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + BuffId = input.ReadUInt32(); + break; + } + case 72: { + Level = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueBuffEnhanceInfo.cs b/Common/Proto/RogueBuffEnhanceInfo.cs new file mode 100644 index 00000000..dbe1390b --- /dev/null +++ b/Common/Proto/RogueBuffEnhanceInfo.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueBuffEnhanceInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueBuffEnhanceInfo.proto + public static partial class RogueBuffEnhanceInfoReflection { + + #region Descriptor + /// File descriptor for RogueBuffEnhanceInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueBuffEnhanceInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpSb2d1ZUJ1ZmZFbmhhbmNlSW5mby5wcm90bxoSSXRlbUNvc3RMaXN0LnBy", + "b3RvImMKFFJvZ3VlQnVmZkVuaGFuY2VJbmZvEiUKDml0ZW1fY29zdF9saXN0", + "GAQgASgLMg0uSXRlbUNvc3RMaXN0EhMKC0hOSEZNRkNEQ09DGAcgASgCEg8K", + "B2J1ZmZfaWQYCyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90", + "b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueBuffEnhanceInfo), global::EggLink.DanhengServer.Proto.RogueBuffEnhanceInfo.Parser, new[]{ "ItemCostList", "HNHFMFCDCOC", "BuffId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueBuffEnhanceInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueBuffEnhanceInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueBuffEnhanceInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffEnhanceInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffEnhanceInfo(RogueBuffEnhanceInfo other) : this() { + itemCostList_ = other.itemCostList_ != null ? other.itemCostList_.Clone() : null; + hNHFMFCDCOC_ = other.hNHFMFCDCOC_; + buffId_ = other.buffId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffEnhanceInfo Clone() { + return new RogueBuffEnhanceInfo(this); + } + + /// Field number for the "item_cost_list" field. + public const int ItemCostListFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.ItemCostList itemCostList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList ItemCostList { + get { return itemCostList_; } + set { + itemCostList_ = value; + } + } + + /// Field number for the "HNHFMFCDCOC" field. + public const int HNHFMFCDCOCFieldNumber = 7; + private float hNHFMFCDCOC_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float HNHFMFCDCOC { + get { return hNHFMFCDCOC_; } + set { + hNHFMFCDCOC_ = value; + } + } + + /// Field number for the "buff_id" field. + public const int BuffIdFieldNumber = 11; + private uint buffId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 RogueBuffEnhanceInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueBuffEnhanceInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ItemCostList, other.ItemCostList)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(HNHFMFCDCOC, other.HNHFMFCDCOC)) 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 (itemCostList_ != null) hash ^= ItemCostList.GetHashCode(); + if (HNHFMFCDCOC != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(HNHFMFCDCOC); + 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 (itemCostList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ItemCostList); + } + if (HNHFMFCDCOC != 0F) { + output.WriteRawTag(61); + output.WriteFloat(HNHFMFCDCOC); + } + if (BuffId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(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 (itemCostList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ItemCostList); + } + if (HNHFMFCDCOC != 0F) { + output.WriteRawTag(61); + output.WriteFloat(HNHFMFCDCOC); + } + if (BuffId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(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 (itemCostList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemCostList); + } + if (HNHFMFCDCOC != 0F) { + size += 1 + 4; + } + if (BuffId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueBuffEnhanceInfo other) { + if (other == null) { + return; + } + if (other.itemCostList_ != null) { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + ItemCostList.MergeFrom(other.ItemCostList); + } + if (other.HNHFMFCDCOC != 0F) { + HNHFMFCDCOC = other.HNHFMFCDCOC; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + case 61: { + HNHFMFCDCOC = input.ReadFloat(); + break; + } + case 88: { + BuffId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + case 61: { + HNHFMFCDCOC = input.ReadFloat(); + break; + } + case 88: { + BuffId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueBuffEnhanceShopInfo.cs b/Common/Proto/RogueBuffEnhanceShopInfo.cs new file mode 100644 index 00000000..564095ab --- /dev/null +++ b/Common/Proto/RogueBuffEnhanceShopInfo.cs @@ -0,0 +1,224 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueBuffEnhanceShopInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueBuffEnhanceShopInfo.proto + public static partial class RogueBuffEnhanceShopInfoReflection { + + #region Descriptor + /// File descriptor for RogueBuffEnhanceShopInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueBuffEnhanceShopInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5Sb2d1ZUJ1ZmZFbmhhbmNlU2hvcEluZm8ucHJvdG8aGlJvZ3VlQnVmZkVu", + "aGFuY2VJbmZvLnByb3RvIkQKGFJvZ3VlQnVmZkVuaGFuY2VTaG9wSW5mbxIo", + "CglidWZmX2luZm8YAiADKAsyFS5Sb2d1ZUJ1ZmZFbmhhbmNlSW5mb0IeqgIb", + "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueBuffEnhanceInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueBuffEnhanceShopInfo), global::EggLink.DanhengServer.Proto.RogueBuffEnhanceShopInfo.Parser, new[]{ "BuffInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueBuffEnhanceShopInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueBuffEnhanceShopInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueBuffEnhanceShopInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffEnhanceShopInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffEnhanceShopInfo(RogueBuffEnhanceShopInfo other) : this() { + buffInfo_ = other.buffInfo_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffEnhanceShopInfo Clone() { + return new RogueBuffEnhanceShopInfo(this); + } + + /// Field number for the "buff_info" field. + public const int BuffInfoFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_buffInfo_codec + = pb::FieldCodec.ForMessage(18, global::EggLink.DanhengServer.Proto.RogueBuffEnhanceInfo.Parser); + private readonly pbc::RepeatedField buffInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffInfo { + get { return buffInfo_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueBuffEnhanceShopInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueBuffEnhanceShopInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!buffInfo_.Equals(other.buffInfo_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= buffInfo_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + buffInfo_.WriteTo(output, _repeated_buffInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + buffInfo_.WriteTo(ref output, _repeated_buffInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += buffInfo_.CalculateSize(_repeated_buffInfo_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueBuffEnhanceShopInfo other) { + if (other == null) { + return; + } + buffInfo_.Add(other.buffInfo_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + buffInfo_.AddEntriesFrom(input, _repeated_buffInfo_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + buffInfo_.AddEntriesFrom(ref input, _repeated_buffInfo_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueBuffInfo.cs b/Common/Proto/RogueBuffInfo.cs new file mode 100644 index 00000000..0c47a1ad --- /dev/null +++ b/Common/Proto/RogueBuffInfo.cs @@ -0,0 +1,223 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueBuffInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueBuffInfo.proto + public static partial class RogueBuffInfoReflection { + + #region Descriptor + /// File descriptor for RogueBuffInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueBuffInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNSb2d1ZUJ1ZmZJbmZvLnByb3RvGg9Sb2d1ZUJ1ZmYucHJvdG8iMwoNUm9n", + "dWVCdWZmSW5mbxIiCg5tYXplX2J1ZmZfbGlzdBgBIAMoCzIKLlJvZ3VlQnVm", + "ZkIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueBuffReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueBuffInfo), global::EggLink.DanhengServer.Proto.RogueBuffInfo.Parser, new[]{ "MazeBuffList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueBuffInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueBuffInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueBuffInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffInfo(RogueBuffInfo other) : this() { + mazeBuffList_ = other.mazeBuffList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffInfo Clone() { + return new RogueBuffInfo(this); + } + + /// Field number for the "maze_buff_list" field. + public const int MazeBuffListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_mazeBuffList_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.RogueBuff.Parser); + private readonly pbc::RepeatedField mazeBuffList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MazeBuffList { + get { return mazeBuffList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueBuffInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueBuffInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!mazeBuffList_.Equals(other.mazeBuffList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= mazeBuffList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + mazeBuffList_.WriteTo(output, _repeated_mazeBuffList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + mazeBuffList_.WriteTo(ref output, _repeated_mazeBuffList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += mazeBuffList_.CalculateSize(_repeated_mazeBuffList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueBuffInfo other) { + if (other == null) { + return; + } + mazeBuffList_.Add(other.mazeBuffList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + mazeBuffList_.AddEntriesFrom(input, _repeated_mazeBuffList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + mazeBuffList_.AddEntriesFrom(ref input, _repeated_mazeBuffList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueBuffRollInfo.cs b/Common/Proto/RogueBuffRollInfo.cs new file mode 100644 index 00000000..fc25f5b6 --- /dev/null +++ b/Common/Proto/RogueBuffRollInfo.cs @@ -0,0 +1,196 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueBuffRollInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueBuffRollInfo.proto + public static partial class RogueBuffRollInfoReflection { + + #region Descriptor + /// File descriptor for RogueBuffRollInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueBuffRollInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdSb2d1ZUJ1ZmZSb2xsSW5mby5wcm90byITChFSb2d1ZUJ1ZmZSb2xsSW5m", + "b0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueBuffRollInfo), global::EggLink.DanhengServer.Proto.RogueBuffRollInfo.Parser, null, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueBuffRollInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueBuffRollInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueBuffRollInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffRollInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffRollInfo(RogueBuffRollInfo other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffRollInfo Clone() { + return new RogueBuffRollInfo(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueBuffRollInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueBuffRollInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueBuffRollInfo other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueBuffSelect.cs b/Common/Proto/RogueBuffSelect.cs new file mode 100644 index 00000000..1f98f1ac --- /dev/null +++ b/Common/Proto/RogueBuffSelect.cs @@ -0,0 +1,196 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueBuffSelect.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueBuffSelect.proto + public static partial class RogueBuffSelectReflection { + + #region Descriptor + /// File descriptor for RogueBuffSelect.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueBuffSelectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSb2d1ZUJ1ZmZTZWxlY3QucHJvdG8iEQoPUm9ndWVCdWZmU2VsZWN0Qh6q", + "AhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueBuffSelect), global::EggLink.DanhengServer.Proto.RogueBuffSelect.Parser, null, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueBuffSelect : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueBuffSelect()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueBuffSelectReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffSelect() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffSelect(RogueBuffSelect other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffSelect Clone() { + return new RogueBuffSelect(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueBuffSelect); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueBuffSelect other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueBuffSelect other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueBuffSelectInfo.cs b/Common/Proto/RogueBuffSelectInfo.cs new file mode 100644 index 00000000..8e36c472 --- /dev/null +++ b/Common/Proto/RogueBuffSelectInfo.cs @@ -0,0 +1,568 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueBuffSelectInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueBuffSelectInfo.proto + public static partial class RogueBuffSelectInfoReflection { + + #region Descriptor + /// File descriptor for RogueBuffSelectInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueBuffSelectInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlSb2d1ZUJ1ZmZTZWxlY3RJbmZvLnByb3RvGiFSb2d1ZUNvbW1vbkJ1ZmZT", + "ZWxlY3RTb3VyY2UucHJvdG8aEkl0ZW1Db3N0TGlzdC5wcm90bxoPUm9ndWVC", + "dWZmLnByb3RvIuYCChNSb2d1ZUJ1ZmZTZWxlY3RJbmZvEiYKD3JvbGxfYnVm", + "ZnNfY29zdBgJIAEoCzINLkl0ZW1Db3N0TGlzdBIsCgZzb3VyY2UYBiABKA4y", + "HC5Sb2d1ZUNvbW1vbkJ1ZmZTZWxlY3RTb3VyY2USEAoIY2FuX3JvbGwYDSAB", + "KAgSHgoWc2VsZWN0X2ZpcnN0X2J1ZmZfbGlzdBgFIAMoDRIXCg9yb2xsX2J1", + "ZmZfdGltZXMYByABKA0SGwoTcm9sbF9idWZmX21heF90aW1lcxgKIAEoDRIm", + "Ch5zZWxlY3RfYnVmZl9zb3VyY2VfdG90YWxfY291bnQYAiABKA0SJAocc2Vs", + "ZWN0X2J1ZmZfc291cmNlX2N1cl9jb3VudBgPIAEoDRIiCg5tYXplX2J1ZmZf", + "bGlzdBgMIAMoCzIKLlJvZ3VlQnVmZhIfChdzZWxlY3RfYnVmZl9zb3VyY2Vf", + "aGludBgBIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSourceReflection.Descriptor, global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueBuffReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo), global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo.Parser, new[]{ "RollBuffsCost", "Source", "CanRoll", "SelectFirstBuffList", "RollBuffTimes", "RollBuffMaxTimes", "SelectBuffSourceTotalCount", "SelectBuffSourceCurCount", "MazeBuffList", "SelectBuffSourceHint" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueBuffSelectInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueBuffSelectInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueBuffSelectInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffSelectInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffSelectInfo(RogueBuffSelectInfo other) : this() { + rollBuffsCost_ = other.rollBuffsCost_ != null ? other.rollBuffsCost_.Clone() : null; + source_ = other.source_; + canRoll_ = other.canRoll_; + selectFirstBuffList_ = other.selectFirstBuffList_.Clone(); + rollBuffTimes_ = other.rollBuffTimes_; + rollBuffMaxTimes_ = other.rollBuffMaxTimes_; + selectBuffSourceTotalCount_ = other.selectBuffSourceTotalCount_; + selectBuffSourceCurCount_ = other.selectBuffSourceCurCount_; + mazeBuffList_ = other.mazeBuffList_.Clone(); + selectBuffSourceHint_ = other.selectBuffSourceHint_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueBuffSelectInfo Clone() { + return new RogueBuffSelectInfo(this); + } + + /// Field number for the "roll_buffs_cost" field. + public const int RollBuffsCostFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.ItemCostList rollBuffsCost_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList RollBuffsCost { + get { return rollBuffsCost_; } + set { + rollBuffsCost_ = value; + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource source_ = global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource.TypeNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "can_roll" field. + public const int CanRollFieldNumber = 13; + private bool canRoll_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanRoll { + get { return canRoll_; } + set { + canRoll_ = value; + } + } + + /// Field number for the "select_first_buff_list" field. + public const int SelectFirstBuffListFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_selectFirstBuffList_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField selectFirstBuffList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SelectFirstBuffList { + get { return selectFirstBuffList_; } + } + + /// Field number for the "roll_buff_times" field. + public const int RollBuffTimesFieldNumber = 7; + private uint rollBuffTimes_; + /// + /// bool show_handbook_hint = 8; removed??? + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RollBuffTimes { + get { return rollBuffTimes_; } + set { + rollBuffTimes_ = value; + } + } + + /// Field number for the "roll_buff_max_times" field. + public const int RollBuffMaxTimesFieldNumber = 10; + private uint rollBuffMaxTimes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RollBuffMaxTimes { + get { return rollBuffMaxTimes_; } + set { + rollBuffMaxTimes_ = value; + } + } + + /// Field number for the "select_buff_source_total_count" field. + public const int SelectBuffSourceTotalCountFieldNumber = 2; + private uint selectBuffSourceTotalCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SelectBuffSourceTotalCount { + get { return selectBuffSourceTotalCount_; } + set { + selectBuffSourceTotalCount_ = value; + } + } + + /// Field number for the "select_buff_source_cur_count" field. + public const int SelectBuffSourceCurCountFieldNumber = 15; + private uint selectBuffSourceCurCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SelectBuffSourceCurCount { + get { return selectBuffSourceCurCount_; } + set { + selectBuffSourceCurCount_ = value; + } + } + + /// Field number for the "maze_buff_list" field. + public const int MazeBuffListFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_mazeBuffList_codec + = pb::FieldCodec.ForMessage(98, global::EggLink.DanhengServer.Proto.RogueBuff.Parser); + private readonly pbc::RepeatedField mazeBuffList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MazeBuffList { + get { return mazeBuffList_; } + } + + /// Field number for the "select_buff_source_hint" field. + public const int SelectBuffSourceHintFieldNumber = 1; + private uint selectBuffSourceHint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SelectBuffSourceHint { + get { return selectBuffSourceHint_; } + set { + selectBuffSourceHint_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueBuffSelectInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueBuffSelectInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RollBuffsCost, other.RollBuffsCost)) return false; + if (Source != other.Source) return false; + if (CanRoll != other.CanRoll) return false; + if(!selectFirstBuffList_.Equals(other.selectFirstBuffList_)) return false; + if (RollBuffTimes != other.RollBuffTimes) return false; + if (RollBuffMaxTimes != other.RollBuffMaxTimes) return false; + if (SelectBuffSourceTotalCount != other.SelectBuffSourceTotalCount) return false; + if (SelectBuffSourceCurCount != other.SelectBuffSourceCurCount) return false; + if(!mazeBuffList_.Equals(other.mazeBuffList_)) return false; + if (SelectBuffSourceHint != other.SelectBuffSourceHint) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rollBuffsCost_ != null) hash ^= RollBuffsCost.GetHashCode(); + if (Source != global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource.TypeNone) hash ^= Source.GetHashCode(); + if (CanRoll != false) hash ^= CanRoll.GetHashCode(); + hash ^= selectFirstBuffList_.GetHashCode(); + if (RollBuffTimes != 0) hash ^= RollBuffTimes.GetHashCode(); + if (RollBuffMaxTimes != 0) hash ^= RollBuffMaxTimes.GetHashCode(); + if (SelectBuffSourceTotalCount != 0) hash ^= SelectBuffSourceTotalCount.GetHashCode(); + if (SelectBuffSourceCurCount != 0) hash ^= SelectBuffSourceCurCount.GetHashCode(); + hash ^= mazeBuffList_.GetHashCode(); + if (SelectBuffSourceHint != 0) hash ^= SelectBuffSourceHint.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SelectBuffSourceHint != 0) { + output.WriteRawTag(8); + output.WriteUInt32(SelectBuffSourceHint); + } + if (SelectBuffSourceTotalCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(SelectBuffSourceTotalCount); + } + selectFirstBuffList_.WriteTo(output, _repeated_selectFirstBuffList_codec); + if (Source != global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource.TypeNone) { + output.WriteRawTag(48); + output.WriteEnum((int) Source); + } + if (RollBuffTimes != 0) { + output.WriteRawTag(56); + output.WriteUInt32(RollBuffTimes); + } + if (rollBuffsCost_ != null) { + output.WriteRawTag(74); + output.WriteMessage(RollBuffsCost); + } + if (RollBuffMaxTimes != 0) { + output.WriteRawTag(80); + output.WriteUInt32(RollBuffMaxTimes); + } + mazeBuffList_.WriteTo(output, _repeated_mazeBuffList_codec); + if (CanRoll != false) { + output.WriteRawTag(104); + output.WriteBool(CanRoll); + } + if (SelectBuffSourceCurCount != 0) { + output.WriteRawTag(120); + output.WriteUInt32(SelectBuffSourceCurCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SelectBuffSourceHint != 0) { + output.WriteRawTag(8); + output.WriteUInt32(SelectBuffSourceHint); + } + if (SelectBuffSourceTotalCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(SelectBuffSourceTotalCount); + } + selectFirstBuffList_.WriteTo(ref output, _repeated_selectFirstBuffList_codec); + if (Source != global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource.TypeNone) { + output.WriteRawTag(48); + output.WriteEnum((int) Source); + } + if (RollBuffTimes != 0) { + output.WriteRawTag(56); + output.WriteUInt32(RollBuffTimes); + } + if (rollBuffsCost_ != null) { + output.WriteRawTag(74); + output.WriteMessage(RollBuffsCost); + } + if (RollBuffMaxTimes != 0) { + output.WriteRawTag(80); + output.WriteUInt32(RollBuffMaxTimes); + } + mazeBuffList_.WriteTo(ref output, _repeated_mazeBuffList_codec); + if (CanRoll != false) { + output.WriteRawTag(104); + output.WriteBool(CanRoll); + } + if (SelectBuffSourceCurCount != 0) { + output.WriteRawTag(120); + output.WriteUInt32(SelectBuffSourceCurCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rollBuffsCost_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RollBuffsCost); + } + if (Source != global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource.TypeNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); + } + if (CanRoll != false) { + size += 1 + 1; + } + size += selectFirstBuffList_.CalculateSize(_repeated_selectFirstBuffList_codec); + if (RollBuffTimes != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollBuffTimes); + } + if (RollBuffMaxTimes != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollBuffMaxTimes); + } + if (SelectBuffSourceTotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SelectBuffSourceTotalCount); + } + if (SelectBuffSourceCurCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SelectBuffSourceCurCount); + } + size += mazeBuffList_.CalculateSize(_repeated_mazeBuffList_codec); + if (SelectBuffSourceHint != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SelectBuffSourceHint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueBuffSelectInfo other) { + if (other == null) { + return; + } + if (other.rollBuffsCost_ != null) { + if (rollBuffsCost_ == null) { + RollBuffsCost = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + RollBuffsCost.MergeFrom(other.RollBuffsCost); + } + if (other.Source != global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource.TypeNone) { + Source = other.Source; + } + if (other.CanRoll != false) { + CanRoll = other.CanRoll; + } + selectFirstBuffList_.Add(other.selectFirstBuffList_); + if (other.RollBuffTimes != 0) { + RollBuffTimes = other.RollBuffTimes; + } + if (other.RollBuffMaxTimes != 0) { + RollBuffMaxTimes = other.RollBuffMaxTimes; + } + if (other.SelectBuffSourceTotalCount != 0) { + SelectBuffSourceTotalCount = other.SelectBuffSourceTotalCount; + } + if (other.SelectBuffSourceCurCount != 0) { + SelectBuffSourceCurCount = other.SelectBuffSourceCurCount; + } + mazeBuffList_.Add(other.mazeBuffList_); + if (other.SelectBuffSourceHint != 0) { + SelectBuffSourceHint = other.SelectBuffSourceHint; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SelectBuffSourceHint = input.ReadUInt32(); + break; + } + case 16: { + SelectBuffSourceTotalCount = input.ReadUInt32(); + break; + } + case 42: + case 40: { + selectFirstBuffList_.AddEntriesFrom(input, _repeated_selectFirstBuffList_codec); + break; + } + case 48: { + Source = (global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource) input.ReadEnum(); + break; + } + case 56: { + RollBuffTimes = input.ReadUInt32(); + break; + } + case 74: { + if (rollBuffsCost_ == null) { + RollBuffsCost = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(RollBuffsCost); + break; + } + case 80: { + RollBuffMaxTimes = input.ReadUInt32(); + break; + } + case 98: { + mazeBuffList_.AddEntriesFrom(input, _repeated_mazeBuffList_codec); + break; + } + case 104: { + CanRoll = input.ReadBool(); + break; + } + case 120: { + SelectBuffSourceCurCount = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SelectBuffSourceHint = input.ReadUInt32(); + break; + } + case 16: { + SelectBuffSourceTotalCount = input.ReadUInt32(); + break; + } + case 42: + case 40: { + selectFirstBuffList_.AddEntriesFrom(ref input, _repeated_selectFirstBuffList_codec); + break; + } + case 48: { + Source = (global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource) input.ReadEnum(); + break; + } + case 56: { + RollBuffTimes = input.ReadUInt32(); + break; + } + case 74: { + if (rollBuffsCost_ == null) { + RollBuffsCost = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(RollBuffsCost); + break; + } + case 80: { + RollBuffMaxTimes = input.ReadUInt32(); + break; + } + case 98: { + mazeBuffList_.AddEntriesFrom(ref input, _repeated_mazeBuffList_codec); + break; + } + case 104: { + CanRoll = input.ReadBool(); + break; + } + case 120: { + SelectBuffSourceCurCount = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueBuffSource.cs b/Common/Proto/RogueBuffSource.cs new file mode 100644 index 00000000..f0927850 --- /dev/null +++ b/Common/Proto/RogueBuffSource.cs @@ -0,0 +1,63 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueBuffSource.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueBuffSource.proto + public static partial class RogueBuffSourceReflection { + + #region Descriptor + /// File descriptor for RogueBuffSource.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueBuffSourceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSb2d1ZUJ1ZmZTb3VyY2UucHJvdG8qiAMKD1JvZ3VlQnVmZlNvdXJjZRIf", + "ChtST0dVRV9CVUZGX1NPVVJDRV9UWVBFX05PTkUQABIhCh1ST0dVRV9CVUZG", + "X1NPVVJDRV9UWVBFX1NFTEVDVBABEiIKHlJPR1VFX0JVRkZfU09VUkNFX1RZ", + "UEVfRU5IQU5DRRACEiIKHlJPR1VFX0JVRkZfU09VUkNFX1RZUEVfTUlSQUNM", + "RRADEiMKH1JPR1VFX0JVRkZfU09VUkNFX1RZUEVfRElBTE9HVUUQBBIgChxS", + "T0dVRV9CVUZGX1NPVVJDRV9UWVBFX0JPTlVTEAUSJQohUk9HVUVfQlVGRl9T", + "T1VSQ0VfVFlQRV9NQVpFX1NLSUxMEAYSHwobUk9HVUVfQlVGRl9TT1VSQ0Vf", + "VFlQRV9TSE9QEAcSKgomUk9HVUVfQlVGRl9TT1VSQ0VfVFlQRV9MRVZFTF9N", + "RUNIQU5JU00QCBIuCipST0dVRV9CVUZGX1NPVVJDRV9UWVBFX0VORExFU1Nf", + "TEVWRUxfU1RBUlQQCUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.RogueBuffSource), }, null, null)); + } + #endregion + + } + #region Enums + public enum RogueBuffSource { + [pbr::OriginalName("ROGUE_BUFF_SOURCE_TYPE_NONE")] TypeNone = 0, + [pbr::OriginalName("ROGUE_BUFF_SOURCE_TYPE_SELECT")] TypeSelect = 1, + [pbr::OriginalName("ROGUE_BUFF_SOURCE_TYPE_ENHANCE")] TypeEnhance = 2, + [pbr::OriginalName("ROGUE_BUFF_SOURCE_TYPE_MIRACLE")] TypeMiracle = 3, + [pbr::OriginalName("ROGUE_BUFF_SOURCE_TYPE_DIALOGUE")] TypeDialogue = 4, + [pbr::OriginalName("ROGUE_BUFF_SOURCE_TYPE_BONUS")] TypeBonus = 5, + [pbr::OriginalName("ROGUE_BUFF_SOURCE_TYPE_MAZE_SKILL")] TypeMazeSkill = 6, + [pbr::OriginalName("ROGUE_BUFF_SOURCE_TYPE_SHOP")] TypeShop = 7, + [pbr::OriginalName("ROGUE_BUFF_SOURCE_TYPE_LEVEL_MECHANISM")] TypeLevelMechanism = 8, + [pbr::OriginalName("ROGUE_BUFF_SOURCE_TYPE_ENDLESS_LEVEL_START")] TypeEndlessLevelStart = 9, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueCommonBuff.cs b/Common/Proto/RogueCommonBuff.cs new file mode 100644 index 00000000..d36fd4f5 --- /dev/null +++ b/Common/Proto/RogueCommonBuff.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueCommonBuff.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueCommonBuff.proto + public static partial class RogueCommonBuffReflection { + + #region Descriptor + /// File descriptor for RogueCommonBuff.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueCommonBuffReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSb2d1ZUNvbW1vbkJ1ZmYucHJvdG8iMQoPUm9ndWVDb21tb25CdWZmEg0K", + "BWxldmVsGAkgASgNEg8KB2J1ZmZfaWQYBSABKA1CHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueCommonBuff), global::EggLink.DanhengServer.Proto.RogueCommonBuff.Parser, new[]{ "Level", "BuffId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueCommonBuff : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueCommonBuff()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueCommonBuffReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCommonBuff() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCommonBuff(RogueCommonBuff other) : this() { + level_ = other.level_; + buffId_ = other.buffId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCommonBuff Clone() { + return new RogueCommonBuff(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 9; + 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 "buff_id" field. + public const int BuffIdFieldNumber = 5; + private uint buffId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 RogueCommonBuff); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueCommonBuff other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) 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 (Level != 0) hash ^= Level.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 (BuffId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BuffId); + } + if (Level != 0) { + output.WriteRawTag(72); + 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 (BuffId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BuffId); + } + if (Level != 0) { + output.WriteRawTag(72); + 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 (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (BuffId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueCommonBuff other) { + if (other == null) { + return; + } + if (other.Level != 0) { + Level = other.Level; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + BuffId = input.ReadUInt32(); + break; + } + case 72: { + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + BuffId = input.ReadUInt32(); + break; + } + case 72: { + Level = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueCommonBuffSelectInfo.cs b/Common/Proto/RogueCommonBuffSelectInfo.cs new file mode 100644 index 00000000..22ed9503 --- /dev/null +++ b/Common/Proto/RogueCommonBuffSelectInfo.cs @@ -0,0 +1,631 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueCommonBuffSelectInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueCommonBuffSelectInfo.proto + public static partial class RogueCommonBuffSelectInfoReflection { + + #region Descriptor + /// File descriptor for RogueCommonBuffSelectInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueCommonBuffSelectInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9Sb2d1ZUNvbW1vbkJ1ZmZTZWxlY3RJbmZvLnByb3RvGhJJdGVtQ29zdExp", + "c3QucHJvdG8aIVJvZ3VlQ29tbW9uQnVmZlNlbGVjdFNvdXJjZS5wcm90bxoV", + "Um9ndWVDb21tb25CdWZmLnByb3RvIqEDChlSb2d1ZUNvbW1vbkJ1ZmZTZWxl", + "Y3RJbmZvEiYKD3JvbGxfYnVmZnNfY29zdBgMIAEoCzINLkl0ZW1Db3N0TGlz", + "dBIXCg9yb2xsX2J1ZmZfdGltZXMYCyABKA0SEAoIY2FuX3JvbGwYAiABKAgS", + "HwoXc2VsZWN0X2J1ZmZfc291cmNlX2hpbnQYBCABKA0SGgoSc291cmNlX3Rv", + "dGFsX2NvdW50GAEgASgNEiQKHGhhbmRib29rX3VubG9ja19idWZmX2lkX2xp", + "c3QYDyADKA0SGwoTcm9sbF9idWZmX21heF90aW1lcxgJIAEoDRIxCgtzb3Vy", + "Y2VfdHlwZRgOIAEoDjIcLlJvZ3VlQ29tbW9uQnVmZlNlbGVjdFNvdXJjZRIY", + "ChBzb3VyY2VfY3VyX2NvdW50GAogASgNEigKDm1hemVfYnVmZl9saXN0GAcg", + "AygLMhAuUm9ndWVDb21tb25CdWZmEhwKFHJvbGxfYnVmZl9mcmVlX3RpbWVz", + "GAggASgNEhwKFGZpcnN0X2J1ZmZfdHlwZV9saXN0GAYgAygNQh6qAhtFZ2dM", + "aW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSourceReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueCommonBuffReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo), global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo.Parser, new[]{ "RollBuffsCost", "RollBuffTimes", "CanRoll", "SelectBuffSourceHint", "SourceTotalCount", "HandbookUnlockBuffIdList", "RollBuffMaxTimes", "SourceType", "SourceCurCount", "MazeBuffList", "RollBuffFreeTimes", "FirstBuffTypeList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueCommonBuffSelectInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueCommonBuffSelectInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCommonBuffSelectInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCommonBuffSelectInfo(RogueCommonBuffSelectInfo other) : this() { + rollBuffsCost_ = other.rollBuffsCost_ != null ? other.rollBuffsCost_.Clone() : null; + rollBuffTimes_ = other.rollBuffTimes_; + canRoll_ = other.canRoll_; + selectBuffSourceHint_ = other.selectBuffSourceHint_; + sourceTotalCount_ = other.sourceTotalCount_; + handbookUnlockBuffIdList_ = other.handbookUnlockBuffIdList_.Clone(); + rollBuffMaxTimes_ = other.rollBuffMaxTimes_; + sourceType_ = other.sourceType_; + sourceCurCount_ = other.sourceCurCount_; + mazeBuffList_ = other.mazeBuffList_.Clone(); + rollBuffFreeTimes_ = other.rollBuffFreeTimes_; + firstBuffTypeList_ = other.firstBuffTypeList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCommonBuffSelectInfo Clone() { + return new RogueCommonBuffSelectInfo(this); + } + + /// Field number for the "roll_buffs_cost" field. + public const int RollBuffsCostFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.ItemCostList rollBuffsCost_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList RollBuffsCost { + get { return rollBuffsCost_; } + set { + rollBuffsCost_ = value; + } + } + + /// Field number for the "roll_buff_times" field. + public const int RollBuffTimesFieldNumber = 11; + private uint rollBuffTimes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RollBuffTimes { + get { return rollBuffTimes_; } + set { + rollBuffTimes_ = value; + } + } + + /// Field number for the "can_roll" field. + public const int CanRollFieldNumber = 2; + private bool canRoll_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanRoll { + get { return canRoll_; } + set { + canRoll_ = value; + } + } + + /// Field number for the "select_buff_source_hint" field. + public const int SelectBuffSourceHintFieldNumber = 4; + private uint selectBuffSourceHint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SelectBuffSourceHint { + get { return selectBuffSourceHint_; } + set { + selectBuffSourceHint_ = value; + } + } + + /// Field number for the "source_total_count" field. + public const int SourceTotalCountFieldNumber = 1; + private uint sourceTotalCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SourceTotalCount { + get { return sourceTotalCount_; } + set { + sourceTotalCount_ = value; + } + } + + /// Field number for the "handbook_unlock_buff_id_list" field. + public const int HandbookUnlockBuffIdListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_handbookUnlockBuffIdList_codec + = pb::FieldCodec.ForUInt32(122); + private readonly pbc::RepeatedField handbookUnlockBuffIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HandbookUnlockBuffIdList { + get { return handbookUnlockBuffIdList_; } + } + + /// Field number for the "roll_buff_max_times" field. + public const int RollBuffMaxTimesFieldNumber = 9; + private uint rollBuffMaxTimes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RollBuffMaxTimes { + get { return rollBuffMaxTimes_; } + set { + rollBuffMaxTimes_ = value; + } + } + + /// Field number for the "source_type" field. + public const int SourceTypeFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource sourceType_ = global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource.TypeNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource SourceType { + get { return sourceType_; } + set { + sourceType_ = value; + } + } + + /// Field number for the "source_cur_count" field. + public const int SourceCurCountFieldNumber = 10; + private uint sourceCurCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SourceCurCount { + get { return sourceCurCount_; } + set { + sourceCurCount_ = value; + } + } + + /// Field number for the "maze_buff_list" field. + public const int MazeBuffListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_mazeBuffList_codec + = pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.RogueCommonBuff.Parser); + private readonly pbc::RepeatedField mazeBuffList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MazeBuffList { + get { return mazeBuffList_; } + } + + /// Field number for the "roll_buff_free_times" field. + public const int RollBuffFreeTimesFieldNumber = 8; + private uint rollBuffFreeTimes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RollBuffFreeTimes { + get { return rollBuffFreeTimes_; } + set { + rollBuffFreeTimes_ = value; + } + } + + /// Field number for the "first_buff_type_list" field. + public const int FirstBuffTypeListFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_firstBuffTypeList_codec + = pb::FieldCodec.ForUInt32(50); + private readonly pbc::RepeatedField firstBuffTypeList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FirstBuffTypeList { + get { return firstBuffTypeList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueCommonBuffSelectInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueCommonBuffSelectInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RollBuffsCost, other.RollBuffsCost)) return false; + if (RollBuffTimes != other.RollBuffTimes) return false; + if (CanRoll != other.CanRoll) return false; + if (SelectBuffSourceHint != other.SelectBuffSourceHint) return false; + if (SourceTotalCount != other.SourceTotalCount) return false; + if(!handbookUnlockBuffIdList_.Equals(other.handbookUnlockBuffIdList_)) return false; + if (RollBuffMaxTimes != other.RollBuffMaxTimes) return false; + if (SourceType != other.SourceType) return false; + if (SourceCurCount != other.SourceCurCount) return false; + if(!mazeBuffList_.Equals(other.mazeBuffList_)) return false; + if (RollBuffFreeTimes != other.RollBuffFreeTimes) return false; + if(!firstBuffTypeList_.Equals(other.firstBuffTypeList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rollBuffsCost_ != null) hash ^= RollBuffsCost.GetHashCode(); + if (RollBuffTimes != 0) hash ^= RollBuffTimes.GetHashCode(); + if (CanRoll != false) hash ^= CanRoll.GetHashCode(); + if (SelectBuffSourceHint != 0) hash ^= SelectBuffSourceHint.GetHashCode(); + if (SourceTotalCount != 0) hash ^= SourceTotalCount.GetHashCode(); + hash ^= handbookUnlockBuffIdList_.GetHashCode(); + if (RollBuffMaxTimes != 0) hash ^= RollBuffMaxTimes.GetHashCode(); + if (SourceType != global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource.TypeNone) hash ^= SourceType.GetHashCode(); + if (SourceCurCount != 0) hash ^= SourceCurCount.GetHashCode(); + hash ^= mazeBuffList_.GetHashCode(); + if (RollBuffFreeTimes != 0) hash ^= RollBuffFreeTimes.GetHashCode(); + hash ^= firstBuffTypeList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SourceTotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(SourceTotalCount); + } + if (CanRoll != false) { + output.WriteRawTag(16); + output.WriteBool(CanRoll); + } + if (SelectBuffSourceHint != 0) { + output.WriteRawTag(32); + output.WriteUInt32(SelectBuffSourceHint); + } + firstBuffTypeList_.WriteTo(output, _repeated_firstBuffTypeList_codec); + mazeBuffList_.WriteTo(output, _repeated_mazeBuffList_codec); + if (RollBuffFreeTimes != 0) { + output.WriteRawTag(64); + output.WriteUInt32(RollBuffFreeTimes); + } + if (RollBuffMaxTimes != 0) { + output.WriteRawTag(72); + output.WriteUInt32(RollBuffMaxTimes); + } + if (SourceCurCount != 0) { + output.WriteRawTag(80); + output.WriteUInt32(SourceCurCount); + } + if (RollBuffTimes != 0) { + output.WriteRawTag(88); + output.WriteUInt32(RollBuffTimes); + } + if (rollBuffsCost_ != null) { + output.WriteRawTag(98); + output.WriteMessage(RollBuffsCost); + } + if (SourceType != global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource.TypeNone) { + output.WriteRawTag(112); + output.WriteEnum((int) SourceType); + } + handbookUnlockBuffIdList_.WriteTo(output, _repeated_handbookUnlockBuffIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SourceTotalCount != 0) { + output.WriteRawTag(8); + output.WriteUInt32(SourceTotalCount); + } + if (CanRoll != false) { + output.WriteRawTag(16); + output.WriteBool(CanRoll); + } + if (SelectBuffSourceHint != 0) { + output.WriteRawTag(32); + output.WriteUInt32(SelectBuffSourceHint); + } + firstBuffTypeList_.WriteTo(ref output, _repeated_firstBuffTypeList_codec); + mazeBuffList_.WriteTo(ref output, _repeated_mazeBuffList_codec); + if (RollBuffFreeTimes != 0) { + output.WriteRawTag(64); + output.WriteUInt32(RollBuffFreeTimes); + } + if (RollBuffMaxTimes != 0) { + output.WriteRawTag(72); + output.WriteUInt32(RollBuffMaxTimes); + } + if (SourceCurCount != 0) { + output.WriteRawTag(80); + output.WriteUInt32(SourceCurCount); + } + if (RollBuffTimes != 0) { + output.WriteRawTag(88); + output.WriteUInt32(RollBuffTimes); + } + if (rollBuffsCost_ != null) { + output.WriteRawTag(98); + output.WriteMessage(RollBuffsCost); + } + if (SourceType != global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource.TypeNone) { + output.WriteRawTag(112); + output.WriteEnum((int) SourceType); + } + handbookUnlockBuffIdList_.WriteTo(ref output, _repeated_handbookUnlockBuffIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rollBuffsCost_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RollBuffsCost); + } + if (RollBuffTimes != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollBuffTimes); + } + if (CanRoll != false) { + size += 1 + 1; + } + if (SelectBuffSourceHint != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SelectBuffSourceHint); + } + if (SourceTotalCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SourceTotalCount); + } + size += handbookUnlockBuffIdList_.CalculateSize(_repeated_handbookUnlockBuffIdList_codec); + if (RollBuffMaxTimes != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollBuffMaxTimes); + } + if (SourceType != global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource.TypeNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SourceType); + } + if (SourceCurCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SourceCurCount); + } + size += mazeBuffList_.CalculateSize(_repeated_mazeBuffList_codec); + if (RollBuffFreeTimes != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollBuffFreeTimes); + } + size += firstBuffTypeList_.CalculateSize(_repeated_firstBuffTypeList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueCommonBuffSelectInfo other) { + if (other == null) { + return; + } + if (other.rollBuffsCost_ != null) { + if (rollBuffsCost_ == null) { + RollBuffsCost = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + RollBuffsCost.MergeFrom(other.RollBuffsCost); + } + if (other.RollBuffTimes != 0) { + RollBuffTimes = other.RollBuffTimes; + } + if (other.CanRoll != false) { + CanRoll = other.CanRoll; + } + if (other.SelectBuffSourceHint != 0) { + SelectBuffSourceHint = other.SelectBuffSourceHint; + } + if (other.SourceTotalCount != 0) { + SourceTotalCount = other.SourceTotalCount; + } + handbookUnlockBuffIdList_.Add(other.handbookUnlockBuffIdList_); + if (other.RollBuffMaxTimes != 0) { + RollBuffMaxTimes = other.RollBuffMaxTimes; + } + if (other.SourceType != global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource.TypeNone) { + SourceType = other.SourceType; + } + if (other.SourceCurCount != 0) { + SourceCurCount = other.SourceCurCount; + } + mazeBuffList_.Add(other.mazeBuffList_); + if (other.RollBuffFreeTimes != 0) { + RollBuffFreeTimes = other.RollBuffFreeTimes; + } + firstBuffTypeList_.Add(other.firstBuffTypeList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SourceTotalCount = input.ReadUInt32(); + break; + } + case 16: { + CanRoll = input.ReadBool(); + break; + } + case 32: { + SelectBuffSourceHint = input.ReadUInt32(); + break; + } + case 50: + case 48: { + firstBuffTypeList_.AddEntriesFrom(input, _repeated_firstBuffTypeList_codec); + break; + } + case 58: { + mazeBuffList_.AddEntriesFrom(input, _repeated_mazeBuffList_codec); + break; + } + case 64: { + RollBuffFreeTimes = input.ReadUInt32(); + break; + } + case 72: { + RollBuffMaxTimes = input.ReadUInt32(); + break; + } + case 80: { + SourceCurCount = input.ReadUInt32(); + break; + } + case 88: { + RollBuffTimes = input.ReadUInt32(); + break; + } + case 98: { + if (rollBuffsCost_ == null) { + RollBuffsCost = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(RollBuffsCost); + break; + } + case 112: { + SourceType = (global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource) input.ReadEnum(); + break; + } + case 122: + case 120: { + handbookUnlockBuffIdList_.AddEntriesFrom(input, _repeated_handbookUnlockBuffIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SourceTotalCount = input.ReadUInt32(); + break; + } + case 16: { + CanRoll = input.ReadBool(); + break; + } + case 32: { + SelectBuffSourceHint = input.ReadUInt32(); + break; + } + case 50: + case 48: { + firstBuffTypeList_.AddEntriesFrom(ref input, _repeated_firstBuffTypeList_codec); + break; + } + case 58: { + mazeBuffList_.AddEntriesFrom(ref input, _repeated_mazeBuffList_codec); + break; + } + case 64: { + RollBuffFreeTimes = input.ReadUInt32(); + break; + } + case 72: { + RollBuffMaxTimes = input.ReadUInt32(); + break; + } + case 80: { + SourceCurCount = input.ReadUInt32(); + break; + } + case 88: { + RollBuffTimes = input.ReadUInt32(); + break; + } + case 98: { + if (rollBuffsCost_ == null) { + RollBuffsCost = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(RollBuffsCost); + break; + } + case 112: { + SourceType = (global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource) input.ReadEnum(); + break; + } + case 122: + case 120: { + handbookUnlockBuffIdList_.AddEntriesFrom(ref input, _repeated_handbookUnlockBuffIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueCommonBuffSelectResult.cs b/Common/Proto/RogueCommonBuffSelectResult.cs new file mode 100644 index 00000000..363c9785 --- /dev/null +++ b/Common/Proto/RogueCommonBuffSelectResult.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueCommonBuffSelectResult.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueCommonBuffSelectResult.proto + public static partial class RogueCommonBuffSelectResultReflection { + + #region Descriptor + /// File descriptor for RogueCommonBuffSelectResult.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueCommonBuffSelectResultReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFSb2d1ZUNvbW1vbkJ1ZmZTZWxlY3RSZXN1bHQucHJvdG8iLgobUm9ndWVD", + "b21tb25CdWZmU2VsZWN0UmVzdWx0Eg8KB2J1ZmZfaWQYDCABKA1CHqoCG0Vn", + "Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectResult), global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectResult.Parser, new[]{ "BuffId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueCommonBuffSelectResult : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueCommonBuffSelectResult()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectResultReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCommonBuffSelectResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCommonBuffSelectResult(RogueCommonBuffSelectResult other) : this() { + buffId_ = other.buffId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCommonBuffSelectResult Clone() { + return new RogueCommonBuffSelectResult(this); + } + + /// Field number for the "buff_id" field. + public const int BuffIdFieldNumber = 12; + private uint buffId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 RogueCommonBuffSelectResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueCommonBuffSelectResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (BuffId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(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 (BuffId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(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 (BuffId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueCommonBuffSelectResult other) { + if (other == null) { + return; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 96: { + BuffId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 96: { + BuffId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueCommonBuffSelectSource.cs b/Common/Proto/RogueCommonBuffSelectSource.cs new file mode 100644 index 00000000..7255312e --- /dev/null +++ b/Common/Proto/RogueCommonBuffSelectSource.cs @@ -0,0 +1,56 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueCommonBuffSelectSource.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueCommonBuffSelectSource.proto + public static partial class RogueCommonBuffSelectSourceReflection { + + #region Descriptor + /// File descriptor for RogueCommonBuffSelectSource.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueCommonBuffSelectSourceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFSb2d1ZUNvbW1vbkJ1ZmZTZWxlY3RTb3VyY2UucHJvdG8qnwIKG1JvZ3Vl", + "Q29tbW9uQnVmZlNlbGVjdFNvdXJjZRItCilST0dVRV9DT01NT05fQlVGRl9T", + "RUxFQ1RfU09VUkNFX1RZUEVfTk9ORRAAEjIKLlJPR1VFX0NPTU1PTl9CVUZG", + "X1NFTEVDVF9TT1VSQ0VfVFlQRV9ESUNFX1JPTEwQARItCilST0dVRV9DT01N", + "T05fQlVGRl9TRUxFQ1RfU09VUkNFX1RZUEVfQUVPThACEjQKMFJPR1VFX0NP", + "TU1PTl9CVUZGX1NFTEVDVF9TT1VSQ0VfVFlQRV9CT0FSRF9FVkVOVBADEjgK", + "NFJPR1VFX0NPTU1PTl9CVUZGX1NFTEVDVF9TT1VSQ0VfVFlQRV9MRVZFTF9N", + "RUNIQU5JU00QBEIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectSource), }, null, null)); + } + #endregion + + } + #region Enums + public enum RogueCommonBuffSelectSource { + [pbr::OriginalName("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE")] TypeNone = 0, + [pbr::OriginalName("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL")] TypeDiceRoll = 1, + [pbr::OriginalName("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON")] TypeAeon = 2, + [pbr::OriginalName("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT")] TypeBoardEvent = 3, + [pbr::OriginalName("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM")] TypeLevelMechanism = 4, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueCommonPendingAction.cs b/Common/Proto/RogueCommonPendingAction.cs new file mode 100644 index 00000000..91399309 --- /dev/null +++ b/Common/Proto/RogueCommonPendingAction.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueCommonPendingAction.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueCommonPendingAction.proto + public static partial class RogueCommonPendingActionReflection { + + #region Descriptor + /// File descriptor for RogueCommonPendingAction.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueCommonPendingActionReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5Sb2d1ZUNvbW1vblBlbmRpbmdBY3Rpb24ucHJvdG8aEVJvZ3VlQWN0aW9u", + "LnByb3RvIlEKGFJvZ3VlQ29tbW9uUGVuZGluZ0FjdGlvbhIRCgl1bmlxdWVf", + "aWQYCCABKA0SIgoMcm9ndWVfYWN0aW9uGAUgASgLMgwuUm9ndWVBY3Rpb25C", + "HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueActionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueCommonPendingAction), global::EggLink.DanhengServer.Proto.RogueCommonPendingAction.Parser, new[]{ "UniqueId", "RogueAction" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueCommonPendingAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueCommonPendingAction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueCommonPendingActionReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCommonPendingAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCommonPendingAction(RogueCommonPendingAction other) : this() { + uniqueId_ = other.uniqueId_; + rogueAction_ = other.rogueAction_ != null ? other.rogueAction_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCommonPendingAction Clone() { + return new RogueCommonPendingAction(this); + } + + /// Field number for the "unique_id" field. + public const int UniqueIdFieldNumber = 8; + private uint uniqueId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UniqueId { + get { return uniqueId_; } + set { + uniqueId_ = value; + } + } + + /// Field number for the "rogue_action" field. + public const int RogueActionFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.RogueAction rogueAction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueAction RogueAction { + get { return rogueAction_; } + set { + rogueAction_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueCommonPendingAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueCommonPendingAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UniqueId != other.UniqueId) return false; + if (!object.Equals(RogueAction, other.RogueAction)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (UniqueId != 0) hash ^= UniqueId.GetHashCode(); + if (rogueAction_ != null) hash ^= RogueAction.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rogueAction_ != null) { + output.WriteRawTag(42); + output.WriteMessage(RogueAction); + } + if (UniqueId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(UniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rogueAction_ != null) { + output.WriteRawTag(42); + output.WriteMessage(RogueAction); + } + if (UniqueId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(UniqueId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (UniqueId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UniqueId); + } + if (rogueAction_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueAction); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueCommonPendingAction other) { + if (other == null) { + return; + } + if (other.UniqueId != 0) { + UniqueId = other.UniqueId; + } + if (other.rogueAction_ != null) { + if (rogueAction_ == null) { + RogueAction = new global::EggLink.DanhengServer.Proto.RogueAction(); + } + RogueAction.MergeFrom(other.RogueAction); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + if (rogueAction_ == null) { + RogueAction = new global::EggLink.DanhengServer.Proto.RogueAction(); + } + input.ReadMessage(RogueAction); + break; + } + case 64: { + UniqueId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + if (rogueAction_ == null) { + RogueAction = new global::EggLink.DanhengServer.Proto.RogueAction(); + } + input.ReadMessage(RogueAction); + break; + } + case 64: { + UniqueId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueCurrentInfo.cs b/Common/Proto/RogueCurrentInfo.cs new file mode 100644 index 00000000..9ae50f86 --- /dev/null +++ b/Common/Proto/RogueCurrentInfo.cs @@ -0,0 +1,614 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueCurrentInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueCurrentInfo.proto + public static partial class RogueCurrentInfoReflection { + + #region Descriptor + /// File descriptor for RogueCurrentInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueCurrentInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZSb2d1ZUN1cnJlbnRJbmZvLnByb3RvGg9Sb2d1ZUFlb24ucHJvdG8aFVJv", + "Z3VlQXZhdGFySW5mby5wcm90bxoWUm9ndWVNaXJhY2xlSW5mby5wcm90bxoT", + "Um9ndWVCdWZmSW5mby5wcm90bxoeUm9ndWVDb21tb25QZW5kaW5nQWN0aW9u", + "LnByb3RvGhZSb2d1ZVZpcnR1YWxJdGVtLnByb3RvGhFSb2d1ZVN0YXR1cy5w", + "cm90bxoRTE1ERlBIQUhKR0wucHJvdG8aElJvZ3VlTWFwSW5mby5wcm90byL7", + "AgoQUm9ndWVDdXJyZW50SW5mbxIeCgpyb2d1ZV9hZW9uGA4gASgLMgouUm9n", + "dWVBZW9uEisKEXJvZ3VlX2F2YXRhcl9pbmZvGAIgASgLMhAuUm9ndWVBdmF0", + "YXJJbmZvEi0KEnJvZ3VlX21pcmFjbGVfaW5mbxgLIAEoCzIRLlJvZ3VlTWly", + "YWNsZUluZm8SJwoPcm9ndWVfYnVmZl9pbmZvGAkgASgLMg4uUm9ndWVCdWZm", + "SW5mbxIxCg5wZW5kaW5nX2FjdGlvbhgFIAEoCzIZLlJvZ3VlQ29tbW9uUGVu", + "ZGluZ0FjdGlvbhItChJyb2d1ZV92aXJ0dWFsX2l0ZW0YAyABKAsyES5Sb2d1", + "ZVZpcnR1YWxJdGVtEhwKBnN0YXR1cxgNIAEoDjIMLlJvZ3VlU3RhdHVzEiEK", + "C0xCS0VMREtFTUxGGAYgASgLMgwuTE1ERlBIQUhKR0wSHwoIcm9vbV9tYXAY", + "ASABKAsyDS5Sb2d1ZU1hcEluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl", + "ci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueAeonReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueAvatarInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueMiracleInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueBuffInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueCommonPendingActionReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueVirtualItemReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueStatusReflection.Descriptor, global::EggLink.DanhengServer.Proto.LMDFPHAHJGLReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueMapInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueCurrentInfo), global::EggLink.DanhengServer.Proto.RogueCurrentInfo.Parser, new[]{ "RogueAeon", "RogueAvatarInfo", "RogueMiracleInfo", "RogueBuffInfo", "PendingAction", "RogueVirtualItem", "Status", "LBKELDKEMLF", "RoomMap" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueCurrentInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueCurrentInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueCurrentInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCurrentInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCurrentInfo(RogueCurrentInfo other) : this() { + rogueAeon_ = other.rogueAeon_ != null ? other.rogueAeon_.Clone() : null; + rogueAvatarInfo_ = other.rogueAvatarInfo_ != null ? other.rogueAvatarInfo_.Clone() : null; + rogueMiracleInfo_ = other.rogueMiracleInfo_ != null ? other.rogueMiracleInfo_.Clone() : null; + rogueBuffInfo_ = other.rogueBuffInfo_ != null ? other.rogueBuffInfo_.Clone() : null; + pendingAction_ = other.pendingAction_ != null ? other.pendingAction_.Clone() : null; + rogueVirtualItem_ = other.rogueVirtualItem_ != null ? other.rogueVirtualItem_.Clone() : null; + status_ = other.status_; + lBKELDKEMLF_ = other.lBKELDKEMLF_ != null ? other.lBKELDKEMLF_.Clone() : null; + roomMap_ = other.roomMap_ != null ? other.roomMap_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueCurrentInfo Clone() { + return new RogueCurrentInfo(this); + } + + /// Field number for the "rogue_aeon" field. + public const int RogueAeonFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.RogueAeon rogueAeon_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueAeon RogueAeon { + get { return rogueAeon_; } + set { + rogueAeon_ = value; + } + } + + /// Field number for the "rogue_avatar_info" field. + public const int RogueAvatarInfoFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.RogueAvatarInfo rogueAvatarInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueAvatarInfo RogueAvatarInfo { + get { return rogueAvatarInfo_; } + set { + rogueAvatarInfo_ = value; + } + } + + /// Field number for the "rogue_miracle_info" field. + public const int RogueMiracleInfoFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.RogueMiracleInfo rogueMiracleInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueMiracleInfo RogueMiracleInfo { + get { return rogueMiracleInfo_; } + set { + rogueMiracleInfo_ = value; + } + } + + /// Field number for the "rogue_buff_info" field. + public const int RogueBuffInfoFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.RogueBuffInfo rogueBuffInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBuffInfo RogueBuffInfo { + get { return rogueBuffInfo_; } + set { + rogueBuffInfo_ = value; + } + } + + /// Field number for the "pending_action" field. + public const int PendingActionFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.RogueCommonPendingAction pendingAction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueCommonPendingAction PendingAction { + get { return pendingAction_; } + set { + pendingAction_ = value; + } + } + + /// Field number for the "rogue_virtual_item" field. + public const int RogueVirtualItemFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.RogueVirtualItem rogueVirtualItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueVirtualItem RogueVirtualItem { + get { return rogueVirtualItem_; } + set { + rogueVirtualItem_ = value; + } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.RogueStatus status_ = global::EggLink.DanhengServer.Proto.RogueStatus.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueStatus Status { + get { return status_; } + set { + status_ = value; + } + } + + /// Field number for the "LBKELDKEMLF" field. + public const int LBKELDKEMLFFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.LMDFPHAHJGL lBKELDKEMLF_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.LMDFPHAHJGL LBKELDKEMLF { + get { return lBKELDKEMLF_; } + set { + lBKELDKEMLF_ = value; + } + } + + /// Field number for the "room_map" field. + public const int RoomMapFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.RogueMapInfo roomMap_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueMapInfo RoomMap { + get { return roomMap_; } + set { + roomMap_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueCurrentInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueCurrentInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueAeon, other.RogueAeon)) return false; + if (!object.Equals(RogueAvatarInfo, other.RogueAvatarInfo)) return false; + if (!object.Equals(RogueMiracleInfo, other.RogueMiracleInfo)) return false; + if (!object.Equals(RogueBuffInfo, other.RogueBuffInfo)) return false; + if (!object.Equals(PendingAction, other.PendingAction)) return false; + if (!object.Equals(RogueVirtualItem, other.RogueVirtualItem)) return false; + if (Status != other.Status) return false; + if (!object.Equals(LBKELDKEMLF, other.LBKELDKEMLF)) return false; + if (!object.Equals(RoomMap, other.RoomMap)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueAeon_ != null) hash ^= RogueAeon.GetHashCode(); + if (rogueAvatarInfo_ != null) hash ^= RogueAvatarInfo.GetHashCode(); + if (rogueMiracleInfo_ != null) hash ^= RogueMiracleInfo.GetHashCode(); + if (rogueBuffInfo_ != null) hash ^= RogueBuffInfo.GetHashCode(); + if (pendingAction_ != null) hash ^= PendingAction.GetHashCode(); + if (rogueVirtualItem_ != null) hash ^= RogueVirtualItem.GetHashCode(); + if (Status != global::EggLink.DanhengServer.Proto.RogueStatus.None) hash ^= Status.GetHashCode(); + if (lBKELDKEMLF_ != null) hash ^= LBKELDKEMLF.GetHashCode(); + if (roomMap_ != null) hash ^= RoomMap.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (roomMap_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMap); + } + if (rogueAvatarInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RogueAvatarInfo); + } + if (rogueVirtualItem_ != null) { + output.WriteRawTag(26); + output.WriteMessage(RogueVirtualItem); + } + if (pendingAction_ != null) { + output.WriteRawTag(42); + output.WriteMessage(PendingAction); + } + if (lBKELDKEMLF_ != null) { + output.WriteRawTag(50); + output.WriteMessage(LBKELDKEMLF); + } + if (rogueBuffInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(RogueBuffInfo); + } + if (rogueMiracleInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RogueMiracleInfo); + } + if (Status != global::EggLink.DanhengServer.Proto.RogueStatus.None) { + output.WriteRawTag(104); + output.WriteEnum((int) Status); + } + if (rogueAeon_ != null) { + output.WriteRawTag(114); + output.WriteMessage(RogueAeon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (roomMap_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMap); + } + if (rogueAvatarInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RogueAvatarInfo); + } + if (rogueVirtualItem_ != null) { + output.WriteRawTag(26); + output.WriteMessage(RogueVirtualItem); + } + if (pendingAction_ != null) { + output.WriteRawTag(42); + output.WriteMessage(PendingAction); + } + if (lBKELDKEMLF_ != null) { + output.WriteRawTag(50); + output.WriteMessage(LBKELDKEMLF); + } + if (rogueBuffInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(RogueBuffInfo); + } + if (rogueMiracleInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RogueMiracleInfo); + } + if (Status != global::EggLink.DanhengServer.Proto.RogueStatus.None) { + output.WriteRawTag(104); + output.WriteEnum((int) Status); + } + if (rogueAeon_ != null) { + output.WriteRawTag(114); + output.WriteMessage(RogueAeon); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueAeon_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueAeon); + } + if (rogueAvatarInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueAvatarInfo); + } + if (rogueMiracleInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueMiracleInfo); + } + if (rogueBuffInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueBuffInfo); + } + if (pendingAction_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PendingAction); + } + if (rogueVirtualItem_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueVirtualItem); + } + if (Status != global::EggLink.DanhengServer.Proto.RogueStatus.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); + } + if (lBKELDKEMLF_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LBKELDKEMLF); + } + if (roomMap_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMap); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueCurrentInfo other) { + if (other == null) { + return; + } + if (other.rogueAeon_ != null) { + if (rogueAeon_ == null) { + RogueAeon = new global::EggLink.DanhengServer.Proto.RogueAeon(); + } + RogueAeon.MergeFrom(other.RogueAeon); + } + if (other.rogueAvatarInfo_ != null) { + if (rogueAvatarInfo_ == null) { + RogueAvatarInfo = new global::EggLink.DanhengServer.Proto.RogueAvatarInfo(); + } + RogueAvatarInfo.MergeFrom(other.RogueAvatarInfo); + } + if (other.rogueMiracleInfo_ != null) { + if (rogueMiracleInfo_ == null) { + RogueMiracleInfo = new global::EggLink.DanhengServer.Proto.RogueMiracleInfo(); + } + RogueMiracleInfo.MergeFrom(other.RogueMiracleInfo); + } + if (other.rogueBuffInfo_ != null) { + if (rogueBuffInfo_ == null) { + RogueBuffInfo = new global::EggLink.DanhengServer.Proto.RogueBuffInfo(); + } + RogueBuffInfo.MergeFrom(other.RogueBuffInfo); + } + if (other.pendingAction_ != null) { + if (pendingAction_ == null) { + PendingAction = new global::EggLink.DanhengServer.Proto.RogueCommonPendingAction(); + } + PendingAction.MergeFrom(other.PendingAction); + } + if (other.rogueVirtualItem_ != null) { + if (rogueVirtualItem_ == null) { + RogueVirtualItem = new global::EggLink.DanhengServer.Proto.RogueVirtualItem(); + } + RogueVirtualItem.MergeFrom(other.RogueVirtualItem); + } + if (other.Status != global::EggLink.DanhengServer.Proto.RogueStatus.None) { + Status = other.Status; + } + if (other.lBKELDKEMLF_ != null) { + if (lBKELDKEMLF_ == null) { + LBKELDKEMLF = new global::EggLink.DanhengServer.Proto.LMDFPHAHJGL(); + } + LBKELDKEMLF.MergeFrom(other.LBKELDKEMLF); + } + if (other.roomMap_ != null) { + if (roomMap_ == null) { + RoomMap = new global::EggLink.DanhengServer.Proto.RogueMapInfo(); + } + RoomMap.MergeFrom(other.RoomMap); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (roomMap_ == null) { + RoomMap = new global::EggLink.DanhengServer.Proto.RogueMapInfo(); + } + input.ReadMessage(RoomMap); + break; + } + case 18: { + if (rogueAvatarInfo_ == null) { + RogueAvatarInfo = new global::EggLink.DanhengServer.Proto.RogueAvatarInfo(); + } + input.ReadMessage(RogueAvatarInfo); + break; + } + case 26: { + if (rogueVirtualItem_ == null) { + RogueVirtualItem = new global::EggLink.DanhengServer.Proto.RogueVirtualItem(); + } + input.ReadMessage(RogueVirtualItem); + break; + } + case 42: { + if (pendingAction_ == null) { + PendingAction = new global::EggLink.DanhengServer.Proto.RogueCommonPendingAction(); + } + input.ReadMessage(PendingAction); + break; + } + case 50: { + if (lBKELDKEMLF_ == null) { + LBKELDKEMLF = new global::EggLink.DanhengServer.Proto.LMDFPHAHJGL(); + } + input.ReadMessage(LBKELDKEMLF); + break; + } + case 74: { + if (rogueBuffInfo_ == null) { + RogueBuffInfo = new global::EggLink.DanhengServer.Proto.RogueBuffInfo(); + } + input.ReadMessage(RogueBuffInfo); + break; + } + case 90: { + if (rogueMiracleInfo_ == null) { + RogueMiracleInfo = new global::EggLink.DanhengServer.Proto.RogueMiracleInfo(); + } + input.ReadMessage(RogueMiracleInfo); + break; + } + case 104: { + Status = (global::EggLink.DanhengServer.Proto.RogueStatus) input.ReadEnum(); + break; + } + case 114: { + if (rogueAeon_ == null) { + RogueAeon = new global::EggLink.DanhengServer.Proto.RogueAeon(); + } + input.ReadMessage(RogueAeon); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (roomMap_ == null) { + RoomMap = new global::EggLink.DanhengServer.Proto.RogueMapInfo(); + } + input.ReadMessage(RoomMap); + break; + } + case 18: { + if (rogueAvatarInfo_ == null) { + RogueAvatarInfo = new global::EggLink.DanhengServer.Proto.RogueAvatarInfo(); + } + input.ReadMessage(RogueAvatarInfo); + break; + } + case 26: { + if (rogueVirtualItem_ == null) { + RogueVirtualItem = new global::EggLink.DanhengServer.Proto.RogueVirtualItem(); + } + input.ReadMessage(RogueVirtualItem); + break; + } + case 42: { + if (pendingAction_ == null) { + PendingAction = new global::EggLink.DanhengServer.Proto.RogueCommonPendingAction(); + } + input.ReadMessage(PendingAction); + break; + } + case 50: { + if (lBKELDKEMLF_ == null) { + LBKELDKEMLF = new global::EggLink.DanhengServer.Proto.LMDFPHAHJGL(); + } + input.ReadMessage(LBKELDKEMLF); + break; + } + case 74: { + if (rogueBuffInfo_ == null) { + RogueBuffInfo = new global::EggLink.DanhengServer.Proto.RogueBuffInfo(); + } + input.ReadMessage(RogueBuffInfo); + break; + } + case 90: { + if (rogueMiracleInfo_ == null) { + RogueMiracleInfo = new global::EggLink.DanhengServer.Proto.RogueMiracleInfo(); + } + input.ReadMessage(RogueMiracleInfo); + break; + } + case 104: { + Status = (global::EggLink.DanhengServer.Proto.RogueStatus) input.ReadEnum(); + break; + } + case 114: { + if (rogueAeon_ == null) { + RogueAeon = new global::EggLink.DanhengServer.Proto.RogueAeon(); + } + input.ReadMessage(RogueAeon); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueDialogueEvent.cs b/Common/Proto/RogueDialogueEvent.cs new file mode 100644 index 00000000..404d3a79 --- /dev/null +++ b/Common/Proto/RogueDialogueEvent.cs @@ -0,0 +1,403 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueDialogueEvent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueDialogueEvent.proto + public static partial class RogueDialogueEventReflection { + + #region Descriptor + /// File descriptor for RogueDialogueEvent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueDialogueEventReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhSb2d1ZURpYWxvZ3VlRXZlbnQucHJvdG8aHVJvZ3VlRGlhbG9ndWVFdmVu", + "dFBhcmFtLnByb3RvIr0BChJSb2d1ZURpYWxvZ3VlRXZlbnQSEwoLSU5KUEZB", + "TE1ESEoYByABKA0SFgoOZ2FtZV9tb2RlX3R5cGUYDSABKA0SEwoLR0JNREJC", + "Qk1CRUoYBiABKA0SDgoGbnBjX2lkGAEgASgNEjwKGnJvZ3VlX2RpYWxvZ3Vl", + "X2V2ZW50X3BhcmFtGA8gAygLMhguUm9ndWVEaWFsb2d1ZUV2ZW50UGFyYW0S", + "FwoPc2VsZWN0X2V2ZW50X2lkGAggAygNQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueDialogueEventParamReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueDialogueEvent), global::EggLink.DanhengServer.Proto.RogueDialogueEvent.Parser, new[]{ "INJPFALMDHJ", "GameModeType", "GBMDBBBMBEJ", "NpcId", "RogueDialogueEventParam", "SelectEventId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueDialogueEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueDialogueEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueDialogueEventReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueDialogueEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueDialogueEvent(RogueDialogueEvent other) : this() { + iNJPFALMDHJ_ = other.iNJPFALMDHJ_; + gameModeType_ = other.gameModeType_; + gBMDBBBMBEJ_ = other.gBMDBBBMBEJ_; + npcId_ = other.npcId_; + rogueDialogueEventParam_ = other.rogueDialogueEventParam_.Clone(); + selectEventId_ = other.selectEventId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueDialogueEvent Clone() { + return new RogueDialogueEvent(this); + } + + /// Field number for the "INJPFALMDHJ" field. + public const int INJPFALMDHJFieldNumber = 7; + private uint iNJPFALMDHJ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint INJPFALMDHJ { + get { return iNJPFALMDHJ_; } + set { + iNJPFALMDHJ_ = value; + } + } + + /// Field number for the "game_mode_type" field. + public const int GameModeTypeFieldNumber = 13; + private uint gameModeType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GameModeType { + get { return gameModeType_; } + set { + gameModeType_ = value; + } + } + + /// Field number for the "GBMDBBBMBEJ" field. + public const int GBMDBBBMBEJFieldNumber = 6; + private uint gBMDBBBMBEJ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GBMDBBBMBEJ { + get { return gBMDBBBMBEJ_; } + set { + gBMDBBBMBEJ_ = value; + } + } + + /// Field number for the "npc_id" field. + public const int NpcIdFieldNumber = 1; + private uint npcId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NpcId { + get { return npcId_; } + set { + npcId_ = value; + } + } + + /// Field number for the "rogue_dialogue_event_param" field. + public const int RogueDialogueEventParamFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_rogueDialogueEventParam_codec + = pb::FieldCodec.ForMessage(122, global::EggLink.DanhengServer.Proto.RogueDialogueEventParam.Parser); + private readonly pbc::RepeatedField rogueDialogueEventParam_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RogueDialogueEventParam { + get { return rogueDialogueEventParam_; } + } + + /// Field number for the "select_event_id" field. + public const int SelectEventIdFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_selectEventId_codec + = pb::FieldCodec.ForUInt32(66); + private readonly pbc::RepeatedField selectEventId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SelectEventId { + get { return selectEventId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueDialogueEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueDialogueEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (INJPFALMDHJ != other.INJPFALMDHJ) return false; + if (GameModeType != other.GameModeType) return false; + if (GBMDBBBMBEJ != other.GBMDBBBMBEJ) return false; + if (NpcId != other.NpcId) return false; + if(!rogueDialogueEventParam_.Equals(other.rogueDialogueEventParam_)) return false; + if(!selectEventId_.Equals(other.selectEventId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (INJPFALMDHJ != 0) hash ^= INJPFALMDHJ.GetHashCode(); + if (GameModeType != 0) hash ^= GameModeType.GetHashCode(); + if (GBMDBBBMBEJ != 0) hash ^= GBMDBBBMBEJ.GetHashCode(); + if (NpcId != 0) hash ^= NpcId.GetHashCode(); + hash ^= rogueDialogueEventParam_.GetHashCode(); + hash ^= selectEventId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (NpcId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(NpcId); + } + if (GBMDBBBMBEJ != 0) { + output.WriteRawTag(48); + output.WriteUInt32(GBMDBBBMBEJ); + } + if (INJPFALMDHJ != 0) { + output.WriteRawTag(56); + output.WriteUInt32(INJPFALMDHJ); + } + selectEventId_.WriteTo(output, _repeated_selectEventId_codec); + if (GameModeType != 0) { + output.WriteRawTag(104); + output.WriteUInt32(GameModeType); + } + rogueDialogueEventParam_.WriteTo(output, _repeated_rogueDialogueEventParam_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (NpcId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(NpcId); + } + if (GBMDBBBMBEJ != 0) { + output.WriteRawTag(48); + output.WriteUInt32(GBMDBBBMBEJ); + } + if (INJPFALMDHJ != 0) { + output.WriteRawTag(56); + output.WriteUInt32(INJPFALMDHJ); + } + selectEventId_.WriteTo(ref output, _repeated_selectEventId_codec); + if (GameModeType != 0) { + output.WriteRawTag(104); + output.WriteUInt32(GameModeType); + } + rogueDialogueEventParam_.WriteTo(ref output, _repeated_rogueDialogueEventParam_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (INJPFALMDHJ != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(INJPFALMDHJ); + } + if (GameModeType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GameModeType); + } + if (GBMDBBBMBEJ != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GBMDBBBMBEJ); + } + if (NpcId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NpcId); + } + size += rogueDialogueEventParam_.CalculateSize(_repeated_rogueDialogueEventParam_codec); + size += selectEventId_.CalculateSize(_repeated_selectEventId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueDialogueEvent other) { + if (other == null) { + return; + } + if (other.INJPFALMDHJ != 0) { + INJPFALMDHJ = other.INJPFALMDHJ; + } + if (other.GameModeType != 0) { + GameModeType = other.GameModeType; + } + if (other.GBMDBBBMBEJ != 0) { + GBMDBBBMBEJ = other.GBMDBBBMBEJ; + } + if (other.NpcId != 0) { + NpcId = other.NpcId; + } + rogueDialogueEventParam_.Add(other.rogueDialogueEventParam_); + selectEventId_.Add(other.selectEventId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + NpcId = input.ReadUInt32(); + break; + } + case 48: { + GBMDBBBMBEJ = input.ReadUInt32(); + break; + } + case 56: { + INJPFALMDHJ = input.ReadUInt32(); + break; + } + case 66: + case 64: { + selectEventId_.AddEntriesFrom(input, _repeated_selectEventId_codec); + break; + } + case 104: { + GameModeType = input.ReadUInt32(); + break; + } + case 122: { + rogueDialogueEventParam_.AddEntriesFrom(input, _repeated_rogueDialogueEventParam_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + NpcId = input.ReadUInt32(); + break; + } + case 48: { + GBMDBBBMBEJ = input.ReadUInt32(); + break; + } + case 56: { + INJPFALMDHJ = input.ReadUInt32(); + break; + } + case 66: + case 64: { + selectEventId_.AddEntriesFrom(ref input, _repeated_selectEventId_codec); + break; + } + case 104: { + GameModeType = input.ReadUInt32(); + break; + } + case 122: { + rogueDialogueEventParam_.AddEntriesFrom(ref input, _repeated_rogueDialogueEventParam_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueDialogueEventParam.cs b/Common/Proto/RogueDialogueEventParam.cs new file mode 100644 index 00000000..47224301 --- /dev/null +++ b/Common/Proto/RogueDialogueEventParam.cs @@ -0,0 +1,384 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueDialogueEventParam.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueDialogueEventParam.proto + public static partial class RogueDialogueEventParamReflection { + + #region Descriptor + /// File descriptor for RogueDialogueEventParam.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueDialogueEventParamReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1Sb2d1ZURpYWxvZ3VlRXZlbnRQYXJhbS5wcm90byJ4ChdSb2d1ZURpYWxv", + "Z3VlRXZlbnRQYXJhbRIRCglpbnRfdmFsdWUYBCABKBESEAoIaXNfdmFsaWQY", + "ASABKAgSDQoFcmF0aW8YDSABKAISGQoRZGlhbG9ndWVfZXZlbnRfaWQYAyAB", + "KA0SDgoGYXJnX2lkGAkgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu", + "UHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueDialogueEventParam), global::EggLink.DanhengServer.Proto.RogueDialogueEventParam.Parser, new[]{ "IntValue", "IsValid", "Ratio", "DialogueEventId", "ArgId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueDialogueEventParam : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueDialogueEventParam()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueDialogueEventParamReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueDialogueEventParam() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueDialogueEventParam(RogueDialogueEventParam other) : this() { + intValue_ = other.intValue_; + isValid_ = other.isValid_; + ratio_ = other.ratio_; + dialogueEventId_ = other.dialogueEventId_; + argId_ = other.argId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueDialogueEventParam Clone() { + return new RogueDialogueEventParam(this); + } + + /// Field number for the "int_value" field. + public const int IntValueFieldNumber = 4; + private int intValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IntValue { + get { return intValue_; } + set { + intValue_ = value; + } + } + + /// Field number for the "is_valid" field. + public const int IsValidFieldNumber = 1; + private bool isValid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsValid { + get { return isValid_; } + set { + isValid_ = value; + } + } + + /// Field number for the "ratio" field. + public const int RatioFieldNumber = 13; + private float ratio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Ratio { + get { return ratio_; } + set { + ratio_ = value; + } + } + + /// Field number for the "dialogue_event_id" field. + public const int DialogueEventIdFieldNumber = 3; + private uint dialogueEventId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DialogueEventId { + get { return dialogueEventId_; } + set { + dialogueEventId_ = value; + } + } + + /// Field number for the "arg_id" field. + public const int ArgIdFieldNumber = 9; + private uint argId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ArgId { + get { return argId_; } + set { + argId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueDialogueEventParam); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueDialogueEventParam other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IntValue != other.IntValue) return false; + if (IsValid != other.IsValid) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Ratio, other.Ratio)) return false; + if (DialogueEventId != other.DialogueEventId) return false; + if (ArgId != other.ArgId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (IntValue != 0) hash ^= IntValue.GetHashCode(); + if (IsValid != false) hash ^= IsValid.GetHashCode(); + if (Ratio != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Ratio); + if (DialogueEventId != 0) hash ^= DialogueEventId.GetHashCode(); + if (ArgId != 0) hash ^= ArgId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (IsValid != false) { + output.WriteRawTag(8); + output.WriteBool(IsValid); + } + if (DialogueEventId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(DialogueEventId); + } + if (IntValue != 0) { + output.WriteRawTag(32); + output.WriteSInt32(IntValue); + } + if (ArgId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(ArgId); + } + if (Ratio != 0F) { + output.WriteRawTag(109); + output.WriteFloat(Ratio); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (IsValid != false) { + output.WriteRawTag(8); + output.WriteBool(IsValid); + } + if (DialogueEventId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(DialogueEventId); + } + if (IntValue != 0) { + output.WriteRawTag(32); + output.WriteSInt32(IntValue); + } + if (ArgId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(ArgId); + } + if (Ratio != 0F) { + output.WriteRawTag(109); + output.WriteFloat(Ratio); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (IntValue != 0) { + size += 1 + pb::CodedOutputStream.ComputeSInt32Size(IntValue); + } + if (IsValid != false) { + size += 1 + 1; + } + if (Ratio != 0F) { + size += 1 + 4; + } + if (DialogueEventId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DialogueEventId); + } + if (ArgId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ArgId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueDialogueEventParam other) { + if (other == null) { + return; + } + if (other.IntValue != 0) { + IntValue = other.IntValue; + } + if (other.IsValid != false) { + IsValid = other.IsValid; + } + if (other.Ratio != 0F) { + Ratio = other.Ratio; + } + if (other.DialogueEventId != 0) { + DialogueEventId = other.DialogueEventId; + } + if (other.ArgId != 0) { + ArgId = other.ArgId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + IsValid = input.ReadBool(); + break; + } + case 24: { + DialogueEventId = input.ReadUInt32(); + break; + } + case 32: { + IntValue = input.ReadSInt32(); + break; + } + case 72: { + ArgId = input.ReadUInt32(); + break; + } + case 109: { + Ratio = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + IsValid = input.ReadBool(); + break; + } + case 24: { + DialogueEventId = input.ReadUInt32(); + break; + } + case 32: { + IntValue = input.ReadSInt32(); + break; + } + case 72: { + ArgId = input.ReadUInt32(); + break; + } + case 109: { + Ratio = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueFinishInfo.cs b/Common/Proto/RogueFinishInfo.cs new file mode 100644 index 00000000..a03dd01c --- /dev/null +++ b/Common/Proto/RogueFinishInfo.cs @@ -0,0 +1,822 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueFinishInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueFinishInfo.proto + public static partial class RogueFinishInfoReflection { + + #region Descriptor + /// File descriptor for RogueFinishInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueFinishInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSb2d1ZUZpbmlzaEluZm8ucHJvdG8aGlJvZ3VlU2NvcmVSZXdhcmRJbmZv", + "LnByb3RvGhVSb2d1ZVJlY29yZEluZm8ucHJvdG8aDkl0ZW1MaXN0LnByb3Rv", + "Ir8DCg9Sb2d1ZUZpbmlzaEluZm8SFwoPcGFzc19yb29tX2NvdW50GAwgASgN", + "EhMKC0JGQ0JIUENQQU9JGAIgASgIEjQKFWN1cl9zY29yZV9yZXdhcmRfaW5m", + "bxgKIAEoCzIVLlJvZ3VlU2NvcmVSZXdhcmRJbmZvEhAKB2FyZWFfaWQYhAIg", + "ASgNEiUKC3JlY29yZF9pbmZvGA8gASgLMhAuUm9ndWVSZWNvcmRJbmZvEhMK", + "C3Rha2VuX3Njb3JlGAYgASgNEh4KC0xCTEVMQ1BQTENJGA0gASgLMgkuSXRl", + "bUxpc3QSEwoLQU5CRkdPS05FSUEYBCABKA0SMAoRc2NvcmVfcmV3YXJkX2lu", + "Zm8YBSABKAsyFS5Sb2d1ZVNjb3JlUmV3YXJkSW5mbxIOCgZpc193aW4YCSAB", + "KAgSHgoLSVBOR01NSU9KSkIYDiABKAsyCS5JdGVtTGlzdBIZChByZWFjaF9y", + "b29tX2NvdW50GI8CIAEoDRITCgtCQ0tQSEJPUENDThgIIAEoDRIeCgtJQ09D", + "TFBCTEZOThgDIAEoCzIJLkl0ZW1MaXN0EhMKC3RvdGFsX3Njb3JlGAEgASgN", + "Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueScoreRewardInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueRecordInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueFinishInfo), global::EggLink.DanhengServer.Proto.RogueFinishInfo.Parser, new[]{ "PassRoomCount", "BFCBHPCPAOI", "CurScoreRewardInfo", "AreaId", "RecordInfo", "TakenScore", "LBLELCPPLCI", "ANBFGOKNEIA", "ScoreRewardInfo", "IsWin", "IPNGMMIOJJB", "ReachRoomCount", "BCKPHBOPCCN", "ICOCLPBLFNN", "TotalScore" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueFinishInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueFinishInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueFinishInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueFinishInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueFinishInfo(RogueFinishInfo other) : this() { + passRoomCount_ = other.passRoomCount_; + bFCBHPCPAOI_ = other.bFCBHPCPAOI_; + curScoreRewardInfo_ = other.curScoreRewardInfo_ != null ? other.curScoreRewardInfo_.Clone() : null; + areaId_ = other.areaId_; + recordInfo_ = other.recordInfo_ != null ? other.recordInfo_.Clone() : null; + takenScore_ = other.takenScore_; + lBLELCPPLCI_ = other.lBLELCPPLCI_ != null ? other.lBLELCPPLCI_.Clone() : null; + aNBFGOKNEIA_ = other.aNBFGOKNEIA_; + scoreRewardInfo_ = other.scoreRewardInfo_ != null ? other.scoreRewardInfo_.Clone() : null; + isWin_ = other.isWin_; + iPNGMMIOJJB_ = other.iPNGMMIOJJB_ != null ? other.iPNGMMIOJJB_.Clone() : null; + reachRoomCount_ = other.reachRoomCount_; + bCKPHBOPCCN_ = other.bCKPHBOPCCN_; + iCOCLPBLFNN_ = other.iCOCLPBLFNN_ != null ? other.iCOCLPBLFNN_.Clone() : null; + totalScore_ = other.totalScore_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueFinishInfo Clone() { + return new RogueFinishInfo(this); + } + + /// Field number for the "pass_room_count" field. + public const int PassRoomCountFieldNumber = 12; + private uint passRoomCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PassRoomCount { + get { return passRoomCount_; } + set { + passRoomCount_ = value; + } + } + + /// Field number for the "BFCBHPCPAOI" field. + public const int BFCBHPCPAOIFieldNumber = 2; + private bool bFCBHPCPAOI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool BFCBHPCPAOI { + get { return bFCBHPCPAOI_; } + set { + bFCBHPCPAOI_ = value; + } + } + + /// Field number for the "cur_score_reward_info" field. + public const int CurScoreRewardInfoFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo curScoreRewardInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo CurScoreRewardInfo { + get { return curScoreRewardInfo_; } + set { + curScoreRewardInfo_ = value; + } + } + + /// Field number for the "area_id" field. + public const int AreaIdFieldNumber = 260; + private uint areaId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AreaId { + get { return areaId_; } + set { + areaId_ = value; + } + } + + /// Field number for the "record_info" field. + public const int RecordInfoFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.RogueRecordInfo recordInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueRecordInfo RecordInfo { + get { return recordInfo_; } + set { + recordInfo_ = value; + } + } + + /// Field number for the "taken_score" field. + public const int TakenScoreFieldNumber = 6; + private uint takenScore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TakenScore { + get { return takenScore_; } + set { + takenScore_ = value; + } + } + + /// Field number for the "LBLELCPPLCI" field. + public const int LBLELCPPLCIFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.ItemList lBLELCPPLCI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList LBLELCPPLCI { + get { return lBLELCPPLCI_; } + set { + lBLELCPPLCI_ = value; + } + } + + /// Field number for the "ANBFGOKNEIA" field. + public const int ANBFGOKNEIAFieldNumber = 4; + private uint aNBFGOKNEIA_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ANBFGOKNEIA { + get { return aNBFGOKNEIA_; } + set { + aNBFGOKNEIA_ = value; + } + } + + /// Field number for the "score_reward_info" field. + public const int ScoreRewardInfoFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo scoreRewardInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo ScoreRewardInfo { + get { return scoreRewardInfo_; } + set { + scoreRewardInfo_ = value; + } + } + + /// Field number for the "is_win" field. + public const int IsWinFieldNumber = 9; + private bool isWin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsWin { + get { return isWin_; } + set { + isWin_ = value; + } + } + + /// Field number for the "IPNGMMIOJJB" field. + public const int IPNGMMIOJJBFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.ItemList iPNGMMIOJJB_; + /// + ///MMOCIHBBOMA LDFFDAMFFFO = 11; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList IPNGMMIOJJB { + get { return iPNGMMIOJJB_; } + set { + iPNGMMIOJJB_ = value; + } + } + + /// Field number for the "reach_room_count" field. + public const int ReachRoomCountFieldNumber = 271; + private uint reachRoomCount_; + /// + ///HNNAOBNKFLO LAOLNLHIECJ = 7; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ReachRoomCount { + get { return reachRoomCount_; } + set { + reachRoomCount_ = value; + } + } + + /// Field number for the "BCKPHBOPCCN" field. + public const int BCKPHBOPCCNFieldNumber = 8; + private uint bCKPHBOPCCN_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BCKPHBOPCCN { + get { return bCKPHBOPCCN_; } + set { + bCKPHBOPCCN_ = value; + } + } + + /// Field number for the "ICOCLPBLFNN" field. + public const int ICOCLPBLFNNFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.ItemList iCOCLPBLFNN_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList ICOCLPBLFNN { + get { return iCOCLPBLFNN_; } + set { + iCOCLPBLFNN_ = value; + } + } + + /// Field number for the "total_score" field. + public const int TotalScoreFieldNumber = 1; + private uint totalScore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TotalScore { + get { return totalScore_; } + set { + totalScore_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueFinishInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueFinishInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PassRoomCount != other.PassRoomCount) return false; + if (BFCBHPCPAOI != other.BFCBHPCPAOI) return false; + if (!object.Equals(CurScoreRewardInfo, other.CurScoreRewardInfo)) return false; + if (AreaId != other.AreaId) return false; + if (!object.Equals(RecordInfo, other.RecordInfo)) return false; + if (TakenScore != other.TakenScore) return false; + if (!object.Equals(LBLELCPPLCI, other.LBLELCPPLCI)) return false; + if (ANBFGOKNEIA != other.ANBFGOKNEIA) return false; + if (!object.Equals(ScoreRewardInfo, other.ScoreRewardInfo)) return false; + if (IsWin != other.IsWin) return false; + if (!object.Equals(IPNGMMIOJJB, other.IPNGMMIOJJB)) return false; + if (ReachRoomCount != other.ReachRoomCount) return false; + if (BCKPHBOPCCN != other.BCKPHBOPCCN) return false; + if (!object.Equals(ICOCLPBLFNN, other.ICOCLPBLFNN)) return false; + if (TotalScore != other.TotalScore) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PassRoomCount != 0) hash ^= PassRoomCount.GetHashCode(); + if (BFCBHPCPAOI != false) hash ^= BFCBHPCPAOI.GetHashCode(); + if (curScoreRewardInfo_ != null) hash ^= CurScoreRewardInfo.GetHashCode(); + if (AreaId != 0) hash ^= AreaId.GetHashCode(); + if (recordInfo_ != null) hash ^= RecordInfo.GetHashCode(); + if (TakenScore != 0) hash ^= TakenScore.GetHashCode(); + if (lBLELCPPLCI_ != null) hash ^= LBLELCPPLCI.GetHashCode(); + if (ANBFGOKNEIA != 0) hash ^= ANBFGOKNEIA.GetHashCode(); + if (scoreRewardInfo_ != null) hash ^= ScoreRewardInfo.GetHashCode(); + if (IsWin != false) hash ^= IsWin.GetHashCode(); + if (iPNGMMIOJJB_ != null) hash ^= IPNGMMIOJJB.GetHashCode(); + if (ReachRoomCount != 0) hash ^= ReachRoomCount.GetHashCode(); + if (BCKPHBOPCCN != 0) hash ^= BCKPHBOPCCN.GetHashCode(); + if (iCOCLPBLFNN_ != null) hash ^= ICOCLPBLFNN.GetHashCode(); + if (TotalScore != 0) hash ^= TotalScore.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TotalScore != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalScore); + } + if (BFCBHPCPAOI != false) { + output.WriteRawTag(16); + output.WriteBool(BFCBHPCPAOI); + } + if (iCOCLPBLFNN_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ICOCLPBLFNN); + } + if (ANBFGOKNEIA != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ANBFGOKNEIA); + } + if (scoreRewardInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ScoreRewardInfo); + } + if (TakenScore != 0) { + output.WriteRawTag(48); + output.WriteUInt32(TakenScore); + } + if (BCKPHBOPCCN != 0) { + output.WriteRawTag(64); + output.WriteUInt32(BCKPHBOPCCN); + } + if (IsWin != false) { + output.WriteRawTag(72); + output.WriteBool(IsWin); + } + if (curScoreRewardInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CurScoreRewardInfo); + } + if (PassRoomCount != 0) { + output.WriteRawTag(96); + output.WriteUInt32(PassRoomCount); + } + if (lBLELCPPLCI_ != null) { + output.WriteRawTag(106); + output.WriteMessage(LBLELCPPLCI); + } + if (iPNGMMIOJJB_ != null) { + output.WriteRawTag(114); + output.WriteMessage(IPNGMMIOJJB); + } + if (recordInfo_ != null) { + output.WriteRawTag(122); + output.WriteMessage(RecordInfo); + } + if (AreaId != 0) { + output.WriteRawTag(160, 16); + output.WriteUInt32(AreaId); + } + if (ReachRoomCount != 0) { + output.WriteRawTag(248, 16); + output.WriteUInt32(ReachRoomCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TotalScore != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TotalScore); + } + if (BFCBHPCPAOI != false) { + output.WriteRawTag(16); + output.WriteBool(BFCBHPCPAOI); + } + if (iCOCLPBLFNN_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ICOCLPBLFNN); + } + if (ANBFGOKNEIA != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ANBFGOKNEIA); + } + if (scoreRewardInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ScoreRewardInfo); + } + if (TakenScore != 0) { + output.WriteRawTag(48); + output.WriteUInt32(TakenScore); + } + if (BCKPHBOPCCN != 0) { + output.WriteRawTag(64); + output.WriteUInt32(BCKPHBOPCCN); + } + if (IsWin != false) { + output.WriteRawTag(72); + output.WriteBool(IsWin); + } + if (curScoreRewardInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CurScoreRewardInfo); + } + if (PassRoomCount != 0) { + output.WriteRawTag(96); + output.WriteUInt32(PassRoomCount); + } + if (lBLELCPPLCI_ != null) { + output.WriteRawTag(106); + output.WriteMessage(LBLELCPPLCI); + } + if (iPNGMMIOJJB_ != null) { + output.WriteRawTag(114); + output.WriteMessage(IPNGMMIOJJB); + } + if (recordInfo_ != null) { + output.WriteRawTag(122); + output.WriteMessage(RecordInfo); + } + if (AreaId != 0) { + output.WriteRawTag(160, 16); + output.WriteUInt32(AreaId); + } + if (ReachRoomCount != 0) { + output.WriteRawTag(248, 16); + output.WriteUInt32(ReachRoomCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PassRoomCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PassRoomCount); + } + if (BFCBHPCPAOI != false) { + size += 1 + 1; + } + if (curScoreRewardInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurScoreRewardInfo); + } + if (AreaId != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AreaId); + } + if (recordInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RecordInfo); + } + if (TakenScore != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TakenScore); + } + if (lBLELCPPLCI_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LBLELCPPLCI); + } + if (ANBFGOKNEIA != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ANBFGOKNEIA); + } + if (scoreRewardInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScoreRewardInfo); + } + if (IsWin != false) { + size += 1 + 1; + } + if (iPNGMMIOJJB_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IPNGMMIOJJB); + } + if (ReachRoomCount != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ReachRoomCount); + } + if (BCKPHBOPCCN != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BCKPHBOPCCN); + } + if (iCOCLPBLFNN_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ICOCLPBLFNN); + } + if (TotalScore != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalScore); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueFinishInfo other) { + if (other == null) { + return; + } + if (other.PassRoomCount != 0) { + PassRoomCount = other.PassRoomCount; + } + if (other.BFCBHPCPAOI != false) { + BFCBHPCPAOI = other.BFCBHPCPAOI; + } + if (other.curScoreRewardInfo_ != null) { + if (curScoreRewardInfo_ == null) { + CurScoreRewardInfo = new global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo(); + } + CurScoreRewardInfo.MergeFrom(other.CurScoreRewardInfo); + } + if (other.AreaId != 0) { + AreaId = other.AreaId; + } + if (other.recordInfo_ != null) { + if (recordInfo_ == null) { + RecordInfo = new global::EggLink.DanhengServer.Proto.RogueRecordInfo(); + } + RecordInfo.MergeFrom(other.RecordInfo); + } + if (other.TakenScore != 0) { + TakenScore = other.TakenScore; + } + if (other.lBLELCPPLCI_ != null) { + if (lBLELCPPLCI_ == null) { + LBLELCPPLCI = new global::EggLink.DanhengServer.Proto.ItemList(); + } + LBLELCPPLCI.MergeFrom(other.LBLELCPPLCI); + } + if (other.ANBFGOKNEIA != 0) { + ANBFGOKNEIA = other.ANBFGOKNEIA; + } + if (other.scoreRewardInfo_ != null) { + if (scoreRewardInfo_ == null) { + ScoreRewardInfo = new global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo(); + } + ScoreRewardInfo.MergeFrom(other.ScoreRewardInfo); + } + if (other.IsWin != false) { + IsWin = other.IsWin; + } + if (other.iPNGMMIOJJB_ != null) { + if (iPNGMMIOJJB_ == null) { + IPNGMMIOJJB = new global::EggLink.DanhengServer.Proto.ItemList(); + } + IPNGMMIOJJB.MergeFrom(other.IPNGMMIOJJB); + } + if (other.ReachRoomCount != 0) { + ReachRoomCount = other.ReachRoomCount; + } + if (other.BCKPHBOPCCN != 0) { + BCKPHBOPCCN = other.BCKPHBOPCCN; + } + if (other.iCOCLPBLFNN_ != null) { + if (iCOCLPBLFNN_ == null) { + ICOCLPBLFNN = new global::EggLink.DanhengServer.Proto.ItemList(); + } + ICOCLPBLFNN.MergeFrom(other.ICOCLPBLFNN); + } + if (other.TotalScore != 0) { + TotalScore = other.TotalScore; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + TotalScore = input.ReadUInt32(); + break; + } + case 16: { + BFCBHPCPAOI = input.ReadBool(); + break; + } + case 26: { + if (iCOCLPBLFNN_ == null) { + ICOCLPBLFNN = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ICOCLPBLFNN); + break; + } + case 32: { + ANBFGOKNEIA = input.ReadUInt32(); + break; + } + case 42: { + if (scoreRewardInfo_ == null) { + ScoreRewardInfo = new global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo(); + } + input.ReadMessage(ScoreRewardInfo); + break; + } + case 48: { + TakenScore = input.ReadUInt32(); + break; + } + case 64: { + BCKPHBOPCCN = input.ReadUInt32(); + break; + } + case 72: { + IsWin = input.ReadBool(); + break; + } + case 82: { + if (curScoreRewardInfo_ == null) { + CurScoreRewardInfo = new global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo(); + } + input.ReadMessage(CurScoreRewardInfo); + break; + } + case 96: { + PassRoomCount = input.ReadUInt32(); + break; + } + case 106: { + if (lBLELCPPLCI_ == null) { + LBLELCPPLCI = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(LBLELCPPLCI); + break; + } + case 114: { + if (iPNGMMIOJJB_ == null) { + IPNGMMIOJJB = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(IPNGMMIOJJB); + break; + } + case 122: { + if (recordInfo_ == null) { + RecordInfo = new global::EggLink.DanhengServer.Proto.RogueRecordInfo(); + } + input.ReadMessage(RecordInfo); + break; + } + case 2080: { + AreaId = input.ReadUInt32(); + break; + } + case 2168: { + ReachRoomCount = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + TotalScore = input.ReadUInt32(); + break; + } + case 16: { + BFCBHPCPAOI = input.ReadBool(); + break; + } + case 26: { + if (iCOCLPBLFNN_ == null) { + ICOCLPBLFNN = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ICOCLPBLFNN); + break; + } + case 32: { + ANBFGOKNEIA = input.ReadUInt32(); + break; + } + case 42: { + if (scoreRewardInfo_ == null) { + ScoreRewardInfo = new global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo(); + } + input.ReadMessage(ScoreRewardInfo); + break; + } + case 48: { + TakenScore = input.ReadUInt32(); + break; + } + case 64: { + BCKPHBOPCCN = input.ReadUInt32(); + break; + } + case 72: { + IsWin = input.ReadBool(); + break; + } + case 82: { + if (curScoreRewardInfo_ == null) { + CurScoreRewardInfo = new global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo(); + } + input.ReadMessage(CurScoreRewardInfo); + break; + } + case 96: { + PassRoomCount = input.ReadUInt32(); + break; + } + case 106: { + if (lBLELCPPLCI_ == null) { + LBLELCPPLCI = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(LBLELCPPLCI); + break; + } + case 114: { + if (iPNGMMIOJJB_ == null) { + IPNGMMIOJJB = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(IPNGMMIOJJB); + break; + } + case 122: { + if (recordInfo_ == null) { + RecordInfo = new global::EggLink.DanhengServer.Proto.RogueRecordInfo(); + } + input.ReadMessage(RecordInfo); + break; + } + case 2080: { + AreaId = input.ReadUInt32(); + break; + } + case 2168: { + ReachRoomCount = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueHandbookAeon.cs b/Common/Proto/RogueHandbookAeon.cs new file mode 100644 index 00000000..46624efd --- /dev/null +++ b/Common/Proto/RogueHandbookAeon.cs @@ -0,0 +1,403 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueHandbookAeon.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueHandbookAeon.proto + public static partial class RogueHandbookAeonReflection { + + #region Descriptor + /// File descriptor for RogueHandbookAeon.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueHandbookAeonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdSb2d1ZUhhbmRib29rQWVvbi5wcm90byKLAQoRUm9ndWVIYW5kYm9va0Fl", + "b24SDwoHYWVvbl9pZBgCIAEoDRIRCgltYXhfbGV2ZWwYBSABKA0SCwoDZXhw", + "GA8gASgNEg0KBWxldmVsGAQgASgNEhsKE2FyY2hpdmVfdW5sb2NrX2xpc3QY", + "DSADKA0SGQoRdGFrZW5fcmV3YXJkX2xpc3QYCiADKA1CHqoCG0VnZ0xpbmsu", + "RGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueHandbookAeon), global::EggLink.DanhengServer.Proto.RogueHandbookAeon.Parser, new[]{ "AeonId", "MaxLevel", "Exp", "Level", "ArchiveUnlockList", "TakenRewardList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueHandbookAeon : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueHandbookAeon()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueHandbookAeonReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookAeon() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookAeon(RogueHandbookAeon other) : this() { + aeonId_ = other.aeonId_; + maxLevel_ = other.maxLevel_; + exp_ = other.exp_; + level_ = other.level_; + archiveUnlockList_ = other.archiveUnlockList_.Clone(); + takenRewardList_ = other.takenRewardList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookAeon Clone() { + return new RogueHandbookAeon(this); + } + + /// Field number for the "aeon_id" field. + public const int AeonIdFieldNumber = 2; + private uint aeonId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AeonId { + get { return aeonId_; } + set { + aeonId_ = value; + } + } + + /// Field number for the "max_level" field. + public const int MaxLevelFieldNumber = 5; + private uint maxLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxLevel { + get { return maxLevel_; } + set { + maxLevel_ = value; + } + } + + /// Field number for the "exp" field. + public const int ExpFieldNumber = 15; + private uint exp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Exp { + get { return exp_; } + set { + exp_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 4; + 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 "archive_unlock_list" field. + public const int ArchiveUnlockListFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_archiveUnlockList_codec + = pb::FieldCodec.ForUInt32(106); + private readonly pbc::RepeatedField archiveUnlockList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ArchiveUnlockList { + get { return archiveUnlockList_; } + } + + /// Field number for the "taken_reward_list" field. + public const int TakenRewardListFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_takenRewardList_codec + = pb::FieldCodec.ForUInt32(82); + private readonly pbc::RepeatedField takenRewardList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TakenRewardList { + get { return takenRewardList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueHandbookAeon); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueHandbookAeon other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AeonId != other.AeonId) return false; + if (MaxLevel != other.MaxLevel) return false; + if (Exp != other.Exp) return false; + if (Level != other.Level) return false; + if(!archiveUnlockList_.Equals(other.archiveUnlockList_)) return false; + if(!takenRewardList_.Equals(other.takenRewardList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AeonId != 0) hash ^= AeonId.GetHashCode(); + if (MaxLevel != 0) hash ^= MaxLevel.GetHashCode(); + if (Exp != 0) hash ^= Exp.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + hash ^= archiveUnlockList_.GetHashCode(); + hash ^= takenRewardList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AeonId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(AeonId); + } + if (Level != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Level); + } + if (MaxLevel != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MaxLevel); + } + takenRewardList_.WriteTo(output, _repeated_takenRewardList_codec); + archiveUnlockList_.WriteTo(output, _repeated_archiveUnlockList_codec); + if (Exp != 0) { + output.WriteRawTag(120); + output.WriteUInt32(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 (AeonId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(AeonId); + } + if (Level != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Level); + } + if (MaxLevel != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MaxLevel); + } + takenRewardList_.WriteTo(ref output, _repeated_takenRewardList_codec); + archiveUnlockList_.WriteTo(ref output, _repeated_archiveUnlockList_codec); + if (Exp != 0) { + output.WriteRawTag(120); + output.WriteUInt32(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 (AeonId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AeonId); + } + if (MaxLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxLevel); + } + if (Exp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Exp); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + size += archiveUnlockList_.CalculateSize(_repeated_archiveUnlockList_codec); + size += takenRewardList_.CalculateSize(_repeated_takenRewardList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueHandbookAeon other) { + if (other == null) { + return; + } + if (other.AeonId != 0) { + AeonId = other.AeonId; + } + if (other.MaxLevel != 0) { + MaxLevel = other.MaxLevel; + } + if (other.Exp != 0) { + Exp = other.Exp; + } + if (other.Level != 0) { + Level = other.Level; + } + archiveUnlockList_.Add(other.archiveUnlockList_); + takenRewardList_.Add(other.takenRewardList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + AeonId = input.ReadUInt32(); + break; + } + case 32: { + Level = input.ReadUInt32(); + break; + } + case 40: { + MaxLevel = input.ReadUInt32(); + break; + } + case 82: + case 80: { + takenRewardList_.AddEntriesFrom(input, _repeated_takenRewardList_codec); + break; + } + case 106: + case 104: { + archiveUnlockList_.AddEntriesFrom(input, _repeated_archiveUnlockList_codec); + break; + } + case 120: { + Exp = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + AeonId = input.ReadUInt32(); + break; + } + case 32: { + Level = input.ReadUInt32(); + break; + } + case 40: { + MaxLevel = input.ReadUInt32(); + break; + } + case 82: + case 80: { + takenRewardList_.AddEntriesFrom(ref input, _repeated_takenRewardList_codec); + break; + } + case 106: + case 104: { + archiveUnlockList_.AddEntriesFrom(ref input, _repeated_archiveUnlockList_codec); + break; + } + case 120: { + Exp = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueHandbookBuff.cs b/Common/Proto/RogueHandbookBuff.cs new file mode 100644 index 00000000..da4b102b --- /dev/null +++ b/Common/Proto/RogueHandbookBuff.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueHandbookBuff.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueHandbookBuff.proto + public static partial class RogueHandbookBuffReflection { + + #region Descriptor + /// File descriptor for RogueHandbookBuff.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueHandbookBuffReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdSb2d1ZUhhbmRib29rQnVmZi5wcm90byIkChFSb2d1ZUhhbmRib29rQnVm", + "ZhIPCgdidWZmX2lkGAggASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu", + "UHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueHandbookBuff), global::EggLink.DanhengServer.Proto.RogueHandbookBuff.Parser, new[]{ "BuffId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueHandbookBuff : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueHandbookBuff()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueHandbookBuffReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookBuff() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookBuff(RogueHandbookBuff other) : this() { + buffId_ = other.buffId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookBuff Clone() { + return new RogueHandbookBuff(this); + } + + /// Field number for the "buff_id" field. + public const int BuffIdFieldNumber = 8; + private uint buffId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 RogueHandbookBuff); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueHandbookBuff other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (BuffId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(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 (BuffId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(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 (BuffId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueHandbookBuff other) { + if (other == null) { + return; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + BuffId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + BuffId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueHandbookData.cs b/Common/Proto/RogueHandbookData.cs new file mode 100644 index 00000000..bd29489b --- /dev/null +++ b/Common/Proto/RogueHandbookData.cs @@ -0,0 +1,307 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueHandbookData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueHandbookData.proto + public static partial class RogueHandbookDataReflection { + + #region Descriptor + /// File descriptor for RogueHandbookData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueHandbookDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdSb2d1ZUhhbmRib29rRGF0YS5wcm90bxoYUm9ndWVIYW5kYm9va0V2ZW50", + "LnByb3RvGhpSb2d1ZUhhbmRib29rTWlyYWNsZS5wcm90bxoXUm9ndWVIYW5k", + "Ym9va0J1ZmYucHJvdG8aF1JvZ3VlSGFuZGJvb2tBZW9uLnByb3RvIr4BChFS", + "b2d1ZUhhbmRib29rRGF0YRIrCgxtaXJhY2xlX2xpc3QYBCADKAsyFS5Sb2d1", + "ZUhhbmRib29rTWlyYWNsZRIoCgtyb2d1ZV9ldmVudBgMIAMoCzITLlJvZ3Vl", + "SGFuZGJvb2tFdmVudBIrCg9yb2d1ZV9hZW9uX2xpc3QYCSADKAsyEi5Sb2d1", + "ZUhhbmRib29rQWVvbhIlCglidWZmX2xpc3QYAyADKAsyEi5Sb2d1ZUhhbmRi", + "b29rQnVmZkIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueHandbookEventReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueHandbookMiracleReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueHandbookBuffReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueHandbookAeonReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueHandbookData), global::EggLink.DanhengServer.Proto.RogueHandbookData.Parser, new[]{ "MiracleList", "RogueEvent", "RogueAeonList", "BuffList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueHandbookData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueHandbookData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueHandbookDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookData(RogueHandbookData other) : this() { + miracleList_ = other.miracleList_.Clone(); + rogueEvent_ = other.rogueEvent_.Clone(); + rogueAeonList_ = other.rogueAeonList_.Clone(); + buffList_ = other.buffList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookData Clone() { + return new RogueHandbookData(this); + } + + /// Field number for the "miracle_list" field. + public const int MiracleListFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_miracleList_codec + = pb::FieldCodec.ForMessage(34, global::EggLink.DanhengServer.Proto.RogueHandbookMiracle.Parser); + private readonly pbc::RepeatedField miracleList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MiracleList { + get { return miracleList_; } + } + + /// Field number for the "rogue_event" field. + public const int RogueEventFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_rogueEvent_codec + = pb::FieldCodec.ForMessage(98, global::EggLink.DanhengServer.Proto.RogueHandbookEvent.Parser); + private readonly pbc::RepeatedField rogueEvent_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RogueEvent { + get { return rogueEvent_; } + } + + /// Field number for the "rogue_aeon_list" field. + public const int RogueAeonListFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_rogueAeonList_codec + = pb::FieldCodec.ForMessage(74, global::EggLink.DanhengServer.Proto.RogueHandbookAeon.Parser); + private readonly pbc::RepeatedField rogueAeonList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RogueAeonList { + get { return rogueAeonList_; } + } + + /// Field number for the "buff_list" field. + public const int BuffListFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_buffList_codec + = pb::FieldCodec.ForMessage(26, global::EggLink.DanhengServer.Proto.RogueHandbookBuff.Parser); + private readonly pbc::RepeatedField buffList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffList { + get { return buffList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueHandbookData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueHandbookData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!miracleList_.Equals(other.miracleList_)) return false; + if(!rogueEvent_.Equals(other.rogueEvent_)) return false; + if(!rogueAeonList_.Equals(other.rogueAeonList_)) return false; + if(!buffList_.Equals(other.buffList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= miracleList_.GetHashCode(); + hash ^= rogueEvent_.GetHashCode(); + hash ^= rogueAeonList_.GetHashCode(); + hash ^= buffList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + buffList_.WriteTo(output, _repeated_buffList_codec); + miracleList_.WriteTo(output, _repeated_miracleList_codec); + rogueAeonList_.WriteTo(output, _repeated_rogueAeonList_codec); + rogueEvent_.WriteTo(output, _repeated_rogueEvent_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + buffList_.WriteTo(ref output, _repeated_buffList_codec); + miracleList_.WriteTo(ref output, _repeated_miracleList_codec); + rogueAeonList_.WriteTo(ref output, _repeated_rogueAeonList_codec); + rogueEvent_.WriteTo(ref output, _repeated_rogueEvent_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += miracleList_.CalculateSize(_repeated_miracleList_codec); + size += rogueEvent_.CalculateSize(_repeated_rogueEvent_codec); + size += rogueAeonList_.CalculateSize(_repeated_rogueAeonList_codec); + size += buffList_.CalculateSize(_repeated_buffList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueHandbookData other) { + if (other == null) { + return; + } + miracleList_.Add(other.miracleList_); + rogueEvent_.Add(other.rogueEvent_); + rogueAeonList_.Add(other.rogueAeonList_); + buffList_.Add(other.buffList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + buffList_.AddEntriesFrom(input, _repeated_buffList_codec); + break; + } + case 34: { + miracleList_.AddEntriesFrom(input, _repeated_miracleList_codec); + break; + } + case 74: { + rogueAeonList_.AddEntriesFrom(input, _repeated_rogueAeonList_codec); + break; + } + case 98: { + rogueEvent_.AddEntriesFrom(input, _repeated_rogueEvent_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + buffList_.AddEntriesFrom(ref input, _repeated_buffList_codec); + break; + } + case 34: { + miracleList_.AddEntriesFrom(ref input, _repeated_miracleList_codec); + break; + } + case 74: { + rogueAeonList_.AddEntriesFrom(ref input, _repeated_rogueAeonList_codec); + break; + } + case 98: { + rogueEvent_.AddEntriesFrom(ref input, _repeated_rogueEvent_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueHandbookEvent.cs b/Common/Proto/RogueHandbookEvent.cs new file mode 100644 index 00000000..1d5afe8c --- /dev/null +++ b/Common/Proto/RogueHandbookEvent.cs @@ -0,0 +1,300 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueHandbookEvent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueHandbookEvent.proto + public static partial class RogueHandbookEventReflection { + + #region Descriptor + /// File descriptor for RogueHandbookEvent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueHandbookEventReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhSb2d1ZUhhbmRib29rRXZlbnQucHJvdG8iUAoSUm9ndWVIYW5kYm9va0V2", + "ZW50EhAKCGV2ZW50X2lkGAYgASgNEhMKC01QRkdDSElCR01PGAMgAygNEhMK", + "C2lzX3VubG9ja2VkGA0gASgIQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu", + "UHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueHandbookEvent), global::EggLink.DanhengServer.Proto.RogueHandbookEvent.Parser, new[]{ "EventId", "MPFGCHIBGMO", "IsUnlocked" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueHandbookEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueHandbookEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueHandbookEventReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookEvent(RogueHandbookEvent other) : this() { + eventId_ = other.eventId_; + mPFGCHIBGMO_ = other.mPFGCHIBGMO_.Clone(); + isUnlocked_ = other.isUnlocked_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookEvent Clone() { + return new RogueHandbookEvent(this); + } + + /// Field number for the "event_id" field. + public const int EventIdFieldNumber = 6; + private uint eventId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EventId { + get { return eventId_; } + set { + eventId_ = value; + } + } + + /// Field number for the "MPFGCHIBGMO" field. + public const int MPFGCHIBGMOFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_mPFGCHIBGMO_codec + = pb::FieldCodec.ForUInt32(26); + private readonly pbc::RepeatedField mPFGCHIBGMO_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MPFGCHIBGMO { + get { return mPFGCHIBGMO_; } + } + + /// Field number for the "is_unlocked" field. + public const int IsUnlockedFieldNumber = 13; + private bool isUnlocked_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnlocked { + get { return isUnlocked_; } + set { + isUnlocked_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueHandbookEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueHandbookEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EventId != other.EventId) return false; + if(!mPFGCHIBGMO_.Equals(other.mPFGCHIBGMO_)) return false; + if (IsUnlocked != other.IsUnlocked) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EventId != 0) hash ^= EventId.GetHashCode(); + hash ^= mPFGCHIBGMO_.GetHashCode(); + if (IsUnlocked != false) hash ^= IsUnlocked.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + mPFGCHIBGMO_.WriteTo(output, _repeated_mPFGCHIBGMO_codec); + if (EventId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(EventId); + } + if (IsUnlocked != false) { + output.WriteRawTag(104); + output.WriteBool(IsUnlocked); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + mPFGCHIBGMO_.WriteTo(ref output, _repeated_mPFGCHIBGMO_codec); + if (EventId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(EventId); + } + if (IsUnlocked != false) { + output.WriteRawTag(104); + output.WriteBool(IsUnlocked); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EventId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EventId); + } + size += mPFGCHIBGMO_.CalculateSize(_repeated_mPFGCHIBGMO_codec); + if (IsUnlocked != 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(RogueHandbookEvent other) { + if (other == null) { + return; + } + if (other.EventId != 0) { + EventId = other.EventId; + } + mPFGCHIBGMO_.Add(other.mPFGCHIBGMO_); + if (other.IsUnlocked != false) { + IsUnlocked = other.IsUnlocked; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: + case 24: { + mPFGCHIBGMO_.AddEntriesFrom(input, _repeated_mPFGCHIBGMO_codec); + break; + } + case 48: { + EventId = input.ReadUInt32(); + break; + } + case 104: { + IsUnlocked = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: + case 24: { + mPFGCHIBGMO_.AddEntriesFrom(ref input, _repeated_mPFGCHIBGMO_codec); + break; + } + case 48: { + EventId = input.ReadUInt32(); + break; + } + case 104: { + IsUnlocked = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueHandbookMiracle.cs b/Common/Proto/RogueHandbookMiracle.cs new file mode 100644 index 00000000..4613da3e --- /dev/null +++ b/Common/Proto/RogueHandbookMiracle.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueHandbookMiracle.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueHandbookMiracle.proto + public static partial class RogueHandbookMiracleReflection { + + #region Descriptor + /// File descriptor for RogueHandbookMiracle.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueHandbookMiracleReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpSb2d1ZUhhbmRib29rTWlyYWNsZS5wcm90byI/ChRSb2d1ZUhhbmRib29r", + "TWlyYWNsZRISCgptaXJhY2xlX2lkGAogASgNEhMKC2lzX3VubG9ja2VkGAQg", + "ASgIQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueHandbookMiracle), global::EggLink.DanhengServer.Proto.RogueHandbookMiracle.Parser, new[]{ "MiracleId", "IsUnlocked" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueHandbookMiracle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueHandbookMiracle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueHandbookMiracleReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookMiracle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookMiracle(RogueHandbookMiracle other) : this() { + miracleId_ = other.miracleId_; + isUnlocked_ = other.isUnlocked_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueHandbookMiracle Clone() { + return new RogueHandbookMiracle(this); + } + + /// Field number for the "miracle_id" field. + public const int MiracleIdFieldNumber = 10; + private uint miracleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MiracleId { + get { return miracleId_; } + set { + miracleId_ = value; + } + } + + /// Field number for the "is_unlocked" field. + public const int IsUnlockedFieldNumber = 4; + private bool isUnlocked_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnlocked { + get { return isUnlocked_; } + set { + isUnlocked_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueHandbookMiracle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueHandbookMiracle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MiracleId != other.MiracleId) return false; + if (IsUnlocked != other.IsUnlocked) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MiracleId != 0) hash ^= MiracleId.GetHashCode(); + if (IsUnlocked != false) hash ^= IsUnlocked.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (IsUnlocked != false) { + output.WriteRawTag(32); + output.WriteBool(IsUnlocked); + } + if (MiracleId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(MiracleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (IsUnlocked != false) { + output.WriteRawTag(32); + output.WriteBool(IsUnlocked); + } + if (MiracleId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(MiracleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MiracleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MiracleId); + } + if (IsUnlocked != 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(RogueHandbookMiracle other) { + if (other == null) { + return; + } + if (other.MiracleId != 0) { + MiracleId = other.MiracleId; + } + if (other.IsUnlocked != false) { + IsUnlocked = other.IsUnlocked; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + IsUnlocked = input.ReadBool(); + break; + } + case 80: { + MiracleId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + IsUnlocked = input.ReadBool(); + break; + } + case 80: { + MiracleId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueInfo.cs b/Common/Proto/RogueInfo.cs new file mode 100644 index 00000000..7449ad20 --- /dev/null +++ b/Common/Proto/RogueInfo.cs @@ -0,0 +1,291 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueInfo.proto + public static partial class RogueInfoReflection { + + #region Descriptor + /// File descriptor for RogueInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9Sb2d1ZUluZm8ucHJvdG8aE1JvZ3VlSW5mb0RhdGEucHJvdG8aFlJvZ3Vl", + "Q3VycmVudEluZm8ucHJvdG8iZQoJUm9ndWVJbmZvEigKD3JvZ3VlX2luZm9f", + "ZGF0YRiYCyABKAsyDi5Sb2d1ZUluZm9EYXRhEi4KEnJvZ3VlX2N1cnJlbnRf", + "aW5mbxjMDCABKAsyES5Sb2d1ZUN1cnJlbnRJbmZvQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueInfoDataReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueCurrentInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueInfo), global::EggLink.DanhengServer.Proto.RogueInfo.Parser, new[]{ "RogueInfoData", "RogueCurrentInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueInfo(RogueInfo other) : this() { + rogueInfoData_ = other.rogueInfoData_ != null ? other.rogueInfoData_.Clone() : null; + rogueCurrentInfo_ = other.rogueCurrentInfo_ != null ? other.rogueCurrentInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueInfo Clone() { + return new RogueInfo(this); + } + + /// Field number for the "rogue_info_data" field. + public const int RogueInfoDataFieldNumber = 1432; + private global::EggLink.DanhengServer.Proto.RogueInfoData rogueInfoData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueInfoData RogueInfoData { + get { return rogueInfoData_; } + set { + rogueInfoData_ = value; + } + } + + /// Field number for the "rogue_current_info" field. + public const int RogueCurrentInfoFieldNumber = 1612; + private global::EggLink.DanhengServer.Proto.RogueCurrentInfo rogueCurrentInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueCurrentInfo RogueCurrentInfo { + get { return rogueCurrentInfo_; } + set { + rogueCurrentInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueInfoData, other.RogueInfoData)) return false; + if (!object.Equals(RogueCurrentInfo, other.RogueCurrentInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueInfoData_ != null) hash ^= RogueInfoData.GetHashCode(); + if (rogueCurrentInfo_ != null) hash ^= RogueCurrentInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rogueInfoData_ != null) { + output.WriteRawTag(194, 89); + output.WriteMessage(RogueInfoData); + } + if (rogueCurrentInfo_ != null) { + output.WriteRawTag(226, 100); + output.WriteMessage(RogueCurrentInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rogueInfoData_ != null) { + output.WriteRawTag(194, 89); + output.WriteMessage(RogueInfoData); + } + if (rogueCurrentInfo_ != null) { + output.WriteRawTag(226, 100); + output.WriteMessage(RogueCurrentInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueInfoData_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RogueInfoData); + } + if (rogueCurrentInfo_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RogueCurrentInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueInfo other) { + if (other == null) { + return; + } + if (other.rogueInfoData_ != null) { + if (rogueInfoData_ == null) { + RogueInfoData = new global::EggLink.DanhengServer.Proto.RogueInfoData(); + } + RogueInfoData.MergeFrom(other.RogueInfoData); + } + if (other.rogueCurrentInfo_ != null) { + if (rogueCurrentInfo_ == null) { + RogueCurrentInfo = new global::EggLink.DanhengServer.Proto.RogueCurrentInfo(); + } + RogueCurrentInfo.MergeFrom(other.RogueCurrentInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 11458: { + if (rogueInfoData_ == null) { + RogueInfoData = new global::EggLink.DanhengServer.Proto.RogueInfoData(); + } + input.ReadMessage(RogueInfoData); + break; + } + case 12898: { + if (rogueCurrentInfo_ == null) { + RogueCurrentInfo = new global::EggLink.DanhengServer.Proto.RogueCurrentInfo(); + } + input.ReadMessage(RogueCurrentInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 11458: { + if (rogueInfoData_ == null) { + RogueInfoData = new global::EggLink.DanhengServer.Proto.RogueInfoData(); + } + input.ReadMessage(RogueInfoData); + break; + } + case 12898: { + if (rogueCurrentInfo_ == null) { + RogueCurrentInfo = new global::EggLink.DanhengServer.Proto.RogueCurrentInfo(); + } + input.ReadMessage(RogueCurrentInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueInfoData.cs b/Common/Proto/RogueInfoData.cs new file mode 100644 index 00000000..ca7497aa --- /dev/null +++ b/Common/Proto/RogueInfoData.cs @@ -0,0 +1,433 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueInfoData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueInfoData.proto + public static partial class RogueInfoDataReflection { + + #region Descriptor + /// File descriptor for RogueInfoData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueInfoDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNSb2d1ZUluZm9EYXRhLnByb3RvGhVSb2d1ZVNlYXNvbkluZm8ucHJvdG8a", + "GlJvZ3VlU2NvcmVSZXdhcmRJbmZvLnByb3RvGhNSb2d1ZUFlb25JbmZvLnBy", + "b3RvGhFETUJCRk9ET0RPRi5wcm90bxoTUm9ndWVBcmVhSW5mby5wcm90byLi", + "AQoNUm9ndWVJbmZvRGF0YRIrChFyb2d1ZV9zZWFzb25faW5mbxgLIAEoCzIQ", + "LlJvZ3VlU2Vhc29uSW5mbxInCg9yb2d1ZV9hZW9uX2luZm8YASABKAsyDi5S", + "b2d1ZUFlb25JbmZvEiEKC0VFRkdOTkZDRE5KGAIgASgLMgwuRE1CQkZPRE9E", + "T0YSLwoQcm9ndWVfc2NvcmVfaW5mbxgPIAEoCzIVLlJvZ3VlU2NvcmVSZXdh", + "cmRJbmZvEicKD3JvZ3VlX2FyZWFfaW5mbxgOIAEoCzIOLlJvZ3VlQXJlYUlu", + "Zm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueSeasonInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueScoreRewardInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueAeonInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.DMBBFODODOFReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueAreaInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueInfoData), global::EggLink.DanhengServer.Proto.RogueInfoData.Parser, new[]{ "RogueSeasonInfo", "RogueAeonInfo", "EEFGNNFCDNJ", "RogueScoreInfo", "RogueAreaInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueInfoData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueInfoData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueInfoDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueInfoData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueInfoData(RogueInfoData other) : this() { + rogueSeasonInfo_ = other.rogueSeasonInfo_ != null ? other.rogueSeasonInfo_.Clone() : null; + rogueAeonInfo_ = other.rogueAeonInfo_ != null ? other.rogueAeonInfo_.Clone() : null; + eEFGNNFCDNJ_ = other.eEFGNNFCDNJ_ != null ? other.eEFGNNFCDNJ_.Clone() : null; + rogueScoreInfo_ = other.rogueScoreInfo_ != null ? other.rogueScoreInfo_.Clone() : null; + rogueAreaInfo_ = other.rogueAreaInfo_ != null ? other.rogueAreaInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueInfoData Clone() { + return new RogueInfoData(this); + } + + /// Field number for the "rogue_season_info" field. + public const int RogueSeasonInfoFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.RogueSeasonInfo rogueSeasonInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueSeasonInfo RogueSeasonInfo { + get { return rogueSeasonInfo_; } + set { + rogueSeasonInfo_ = value; + } + } + + /// Field number for the "rogue_aeon_info" field. + public const int RogueAeonInfoFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.RogueAeonInfo rogueAeonInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueAeonInfo RogueAeonInfo { + get { return rogueAeonInfo_; } + set { + rogueAeonInfo_ = value; + } + } + + /// Field number for the "EEFGNNFCDNJ" field. + public const int EEFGNNFCDNJFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.DMBBFODODOF eEFGNNFCDNJ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.DMBBFODODOF EEFGNNFCDNJ { + get { return eEFGNNFCDNJ_; } + set { + eEFGNNFCDNJ_ = value; + } + } + + /// Field number for the "rogue_score_info" field. + public const int RogueScoreInfoFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo rogueScoreInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo RogueScoreInfo { + get { return rogueScoreInfo_; } + set { + rogueScoreInfo_ = value; + } + } + + /// Field number for the "rogue_area_info" field. + public const int RogueAreaInfoFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.RogueAreaInfo rogueAreaInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueAreaInfo RogueAreaInfo { + get { return rogueAreaInfo_; } + set { + rogueAreaInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueInfoData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueInfoData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueSeasonInfo, other.RogueSeasonInfo)) return false; + if (!object.Equals(RogueAeonInfo, other.RogueAeonInfo)) return false; + if (!object.Equals(EEFGNNFCDNJ, other.EEFGNNFCDNJ)) return false; + if (!object.Equals(RogueScoreInfo, other.RogueScoreInfo)) return false; + if (!object.Equals(RogueAreaInfo, other.RogueAreaInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueSeasonInfo_ != null) hash ^= RogueSeasonInfo.GetHashCode(); + if (rogueAeonInfo_ != null) hash ^= RogueAeonInfo.GetHashCode(); + if (eEFGNNFCDNJ_ != null) hash ^= EEFGNNFCDNJ.GetHashCode(); + if (rogueScoreInfo_ != null) hash ^= RogueScoreInfo.GetHashCode(); + if (rogueAreaInfo_ != null) hash ^= RogueAreaInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rogueAeonInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RogueAeonInfo); + } + if (eEFGNNFCDNJ_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EEFGNNFCDNJ); + } + if (rogueSeasonInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RogueSeasonInfo); + } + if (rogueAreaInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(RogueAreaInfo); + } + if (rogueScoreInfo_ != null) { + output.WriteRawTag(122); + output.WriteMessage(RogueScoreInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rogueAeonInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RogueAeonInfo); + } + if (eEFGNNFCDNJ_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EEFGNNFCDNJ); + } + if (rogueSeasonInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RogueSeasonInfo); + } + if (rogueAreaInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(RogueAreaInfo); + } + if (rogueScoreInfo_ != null) { + output.WriteRawTag(122); + output.WriteMessage(RogueScoreInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueSeasonInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueSeasonInfo); + } + if (rogueAeonInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueAeonInfo); + } + if (eEFGNNFCDNJ_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EEFGNNFCDNJ); + } + if (rogueScoreInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueScoreInfo); + } + if (rogueAreaInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueAreaInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueInfoData other) { + if (other == null) { + return; + } + if (other.rogueSeasonInfo_ != null) { + if (rogueSeasonInfo_ == null) { + RogueSeasonInfo = new global::EggLink.DanhengServer.Proto.RogueSeasonInfo(); + } + RogueSeasonInfo.MergeFrom(other.RogueSeasonInfo); + } + if (other.rogueAeonInfo_ != null) { + if (rogueAeonInfo_ == null) { + RogueAeonInfo = new global::EggLink.DanhengServer.Proto.RogueAeonInfo(); + } + RogueAeonInfo.MergeFrom(other.RogueAeonInfo); + } + if (other.eEFGNNFCDNJ_ != null) { + if (eEFGNNFCDNJ_ == null) { + EEFGNNFCDNJ = new global::EggLink.DanhengServer.Proto.DMBBFODODOF(); + } + EEFGNNFCDNJ.MergeFrom(other.EEFGNNFCDNJ); + } + if (other.rogueScoreInfo_ != null) { + if (rogueScoreInfo_ == null) { + RogueScoreInfo = new global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo(); + } + RogueScoreInfo.MergeFrom(other.RogueScoreInfo); + } + if (other.rogueAreaInfo_ != null) { + if (rogueAreaInfo_ == null) { + RogueAreaInfo = new global::EggLink.DanhengServer.Proto.RogueAreaInfo(); + } + RogueAreaInfo.MergeFrom(other.RogueAreaInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (rogueAeonInfo_ == null) { + RogueAeonInfo = new global::EggLink.DanhengServer.Proto.RogueAeonInfo(); + } + input.ReadMessage(RogueAeonInfo); + break; + } + case 18: { + if (eEFGNNFCDNJ_ == null) { + EEFGNNFCDNJ = new global::EggLink.DanhengServer.Proto.DMBBFODODOF(); + } + input.ReadMessage(EEFGNNFCDNJ); + break; + } + case 90: { + if (rogueSeasonInfo_ == null) { + RogueSeasonInfo = new global::EggLink.DanhengServer.Proto.RogueSeasonInfo(); + } + input.ReadMessage(RogueSeasonInfo); + break; + } + case 114: { + if (rogueAreaInfo_ == null) { + RogueAreaInfo = new global::EggLink.DanhengServer.Proto.RogueAreaInfo(); + } + input.ReadMessage(RogueAreaInfo); + break; + } + case 122: { + if (rogueScoreInfo_ == null) { + RogueScoreInfo = new global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo(); + } + input.ReadMessage(RogueScoreInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (rogueAeonInfo_ == null) { + RogueAeonInfo = new global::EggLink.DanhengServer.Proto.RogueAeonInfo(); + } + input.ReadMessage(RogueAeonInfo); + break; + } + case 18: { + if (eEFGNNFCDNJ_ == null) { + EEFGNNFCDNJ = new global::EggLink.DanhengServer.Proto.DMBBFODODOF(); + } + input.ReadMessage(EEFGNNFCDNJ); + break; + } + case 90: { + if (rogueSeasonInfo_ == null) { + RogueSeasonInfo = new global::EggLink.DanhengServer.Proto.RogueSeasonInfo(); + } + input.ReadMessage(RogueSeasonInfo); + break; + } + case 114: { + if (rogueAreaInfo_ == null) { + RogueAreaInfo = new global::EggLink.DanhengServer.Proto.RogueAreaInfo(); + } + input.ReadMessage(RogueAreaInfo); + break; + } + case 122: { + if (rogueScoreInfo_ == null) { + RogueScoreInfo = new global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo(); + } + input.ReadMessage(RogueScoreInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueMapInfo.cs b/Common/Proto/RogueMapInfo.cs new file mode 100644 index 00000000..d90b02cc --- /dev/null +++ b/Common/Proto/RogueMapInfo.cs @@ -0,0 +1,373 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueMapInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueMapInfo.proto + public static partial class RogueMapInfoReflection { + + #region Descriptor + /// File descriptor for RogueMapInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueMapInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJSb2d1ZU1hcEluZm8ucHJvdG8aD1JvZ3VlUm9vbS5wcm90byJ4CgxSb2d1", + "ZU1hcEluZm8SEwoLY3VyX3Jvb21faWQYCyABKA0SDgoGbWFwX2lkGAYgASgN", + "Eg8KB2FyZWFfaWQYAiABKA0SHQoJcm9vbV9saXN0GA4gAygLMgouUm9ndWVS", + "b29tEhMKC2N1cl9zaXRlX2lkGAwgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueRoomReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueMapInfo), global::EggLink.DanhengServer.Proto.RogueMapInfo.Parser, new[]{ "CurRoomId", "MapId", "AreaId", "RoomList", "CurSiteId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueMapInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueMapInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueMapInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMapInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMapInfo(RogueMapInfo other) : this() { + curRoomId_ = other.curRoomId_; + mapId_ = other.mapId_; + areaId_ = other.areaId_; + roomList_ = other.roomList_.Clone(); + curSiteId_ = other.curSiteId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMapInfo Clone() { + return new RogueMapInfo(this); + } + + /// Field number for the "cur_room_id" field. + public const int CurRoomIdFieldNumber = 11; + private uint curRoomId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurRoomId { + get { return curRoomId_; } + set { + curRoomId_ = value; + } + } + + /// Field number for the "map_id" field. + public const int MapIdFieldNumber = 6; + private uint mapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MapId { + get { return mapId_; } + set { + mapId_ = value; + } + } + + /// Field number for the "area_id" field. + public const int AreaIdFieldNumber = 2; + private uint areaId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AreaId { + get { return areaId_; } + set { + areaId_ = value; + } + } + + /// Field number for the "room_list" field. + public const int RoomListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_roomList_codec + = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.RogueRoom.Parser); + private readonly pbc::RepeatedField roomList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RoomList { + get { return roomList_; } + } + + /// Field number for the "cur_site_id" field. + public const int CurSiteIdFieldNumber = 12; + private uint curSiteId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurSiteId { + get { return curSiteId_; } + set { + curSiteId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueMapInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueMapInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CurRoomId != other.CurRoomId) return false; + if (MapId != other.MapId) return false; + if (AreaId != other.AreaId) return false; + if(!roomList_.Equals(other.roomList_)) return false; + if (CurSiteId != other.CurSiteId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CurRoomId != 0) hash ^= CurRoomId.GetHashCode(); + if (MapId != 0) hash ^= MapId.GetHashCode(); + if (AreaId != 0) hash ^= AreaId.GetHashCode(); + hash ^= roomList_.GetHashCode(); + if (CurSiteId != 0) hash ^= CurSiteId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AreaId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(AreaId); + } + if (MapId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(MapId); + } + if (CurRoomId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(CurRoomId); + } + if (CurSiteId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(CurSiteId); + } + roomList_.WriteTo(output, _repeated_roomList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AreaId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(AreaId); + } + if (MapId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(MapId); + } + if (CurRoomId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(CurRoomId); + } + if (CurSiteId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(CurSiteId); + } + roomList_.WriteTo(ref output, _repeated_roomList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CurRoomId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurRoomId); + } + if (MapId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MapId); + } + if (AreaId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AreaId); + } + size += roomList_.CalculateSize(_repeated_roomList_codec); + if (CurSiteId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurSiteId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueMapInfo other) { + if (other == null) { + return; + } + if (other.CurRoomId != 0) { + CurRoomId = other.CurRoomId; + } + if (other.MapId != 0) { + MapId = other.MapId; + } + if (other.AreaId != 0) { + AreaId = other.AreaId; + } + roomList_.Add(other.roomList_); + if (other.CurSiteId != 0) { + CurSiteId = other.CurSiteId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + AreaId = input.ReadUInt32(); + break; + } + case 48: { + MapId = input.ReadUInt32(); + break; + } + case 88: { + CurRoomId = input.ReadUInt32(); + break; + } + case 96: { + CurSiteId = input.ReadUInt32(); + break; + } + case 114: { + roomList_.AddEntriesFrom(input, _repeated_roomList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + AreaId = input.ReadUInt32(); + break; + } + case 48: { + MapId = input.ReadUInt32(); + break; + } + case 88: { + CurRoomId = input.ReadUInt32(); + break; + } + case 96: { + CurSiteId = input.ReadUInt32(); + break; + } + case 114: { + roomList_.AddEntriesFrom(ref input, _repeated_roomList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueMiracle.cs b/Common/Proto/RogueMiracle.cs new file mode 100644 index 00000000..b0c816f7 --- /dev/null +++ b/Common/Proto/RogueMiracle.cs @@ -0,0 +1,337 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueMiracle.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueMiracle.proto + public static partial class RogueMiracleReflection { + + #region Descriptor + /// File descriptor for RogueMiracle.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueMiracleReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJSb2d1ZU1pcmFjbGUucHJvdG8itQEKDFJvZ3VlTWlyYWNsZRITCgtGRkxN", + "Q09KQUpBSRgKIAEoDRIzCgtISUZLREhLSkdBQxgPIAMoCzIeLlJvZ3VlTWly", + "YWNsZS5ISUZLREhLSkdBQ0VudHJ5EhMKC0NORk1HSkhGQUJEGAggASgNEhIK", + "Cm1pcmFjbGVfaWQYDCABKA0aMgoQSElGS0RIS0pHQUNFbnRyeRILCgNrZXkY", + "ASABKA0SDQoFdmFsdWUYAiABKA06AjgBQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueMiracle), global::EggLink.DanhengServer.Proto.RogueMiracle.Parser, new[]{ "FFLMCOJAJAI", "HIFKDHKJGAC", "CNFMGJHFABD", "MiracleId" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueMiracle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueMiracle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueMiracleReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracle(RogueMiracle other) : this() { + fFLMCOJAJAI_ = other.fFLMCOJAJAI_; + hIFKDHKJGAC_ = other.hIFKDHKJGAC_.Clone(); + cNFMGJHFABD_ = other.cNFMGJHFABD_; + miracleId_ = other.miracleId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracle Clone() { + return new RogueMiracle(this); + } + + /// Field number for the "FFLMCOJAJAI" field. + public const int FFLMCOJAJAIFieldNumber = 10; + private uint fFLMCOJAJAI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FFLMCOJAJAI { + get { return fFLMCOJAJAI_; } + set { + fFLMCOJAJAI_ = value; + } + } + + /// Field number for the "HIFKDHKJGAC" field. + public const int HIFKDHKJGACFieldNumber = 15; + private static readonly pbc::MapField.Codec _map_hIFKDHKJGAC_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 122); + private readonly pbc::MapField hIFKDHKJGAC_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField HIFKDHKJGAC { + get { return hIFKDHKJGAC_; } + } + + /// Field number for the "CNFMGJHFABD" field. + public const int CNFMGJHFABDFieldNumber = 8; + private uint cNFMGJHFABD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CNFMGJHFABD { + get { return cNFMGJHFABD_; } + set { + cNFMGJHFABD_ = value; + } + } + + /// Field number for the "miracle_id" field. + public const int MiracleIdFieldNumber = 12; + private uint miracleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MiracleId { + get { return miracleId_; } + set { + miracleId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueMiracle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueMiracle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FFLMCOJAJAI != other.FFLMCOJAJAI) return false; + if (!HIFKDHKJGAC.Equals(other.HIFKDHKJGAC)) return false; + if (CNFMGJHFABD != other.CNFMGJHFABD) return false; + if (MiracleId != other.MiracleId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FFLMCOJAJAI != 0) hash ^= FFLMCOJAJAI.GetHashCode(); + hash ^= HIFKDHKJGAC.GetHashCode(); + if (CNFMGJHFABD != 0) hash ^= CNFMGJHFABD.GetHashCode(); + if (MiracleId != 0) hash ^= MiracleId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CNFMGJHFABD != 0) { + output.WriteRawTag(64); + output.WriteUInt32(CNFMGJHFABD); + } + if (FFLMCOJAJAI != 0) { + output.WriteRawTag(80); + output.WriteUInt32(FFLMCOJAJAI); + } + if (MiracleId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(MiracleId); + } + hIFKDHKJGAC_.WriteTo(output, _map_hIFKDHKJGAC_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CNFMGJHFABD != 0) { + output.WriteRawTag(64); + output.WriteUInt32(CNFMGJHFABD); + } + if (FFLMCOJAJAI != 0) { + output.WriteRawTag(80); + output.WriteUInt32(FFLMCOJAJAI); + } + if (MiracleId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(MiracleId); + } + hIFKDHKJGAC_.WriteTo(ref output, _map_hIFKDHKJGAC_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FFLMCOJAJAI != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FFLMCOJAJAI); + } + size += hIFKDHKJGAC_.CalculateSize(_map_hIFKDHKJGAC_codec); + if (CNFMGJHFABD != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CNFMGJHFABD); + } + if (MiracleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MiracleId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueMiracle other) { + if (other == null) { + return; + } + if (other.FFLMCOJAJAI != 0) { + FFLMCOJAJAI = other.FFLMCOJAJAI; + } + hIFKDHKJGAC_.MergeFrom(other.hIFKDHKJGAC_); + if (other.CNFMGJHFABD != 0) { + CNFMGJHFABD = other.CNFMGJHFABD; + } + if (other.MiracleId != 0) { + MiracleId = other.MiracleId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + CNFMGJHFABD = input.ReadUInt32(); + break; + } + case 80: { + FFLMCOJAJAI = input.ReadUInt32(); + break; + } + case 96: { + MiracleId = input.ReadUInt32(); + break; + } + case 122: { + hIFKDHKJGAC_.AddEntriesFrom(input, _map_hIFKDHKJGAC_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + CNFMGJHFABD = input.ReadUInt32(); + break; + } + case 80: { + FFLMCOJAJAI = input.ReadUInt32(); + break; + } + case 96: { + MiracleId = input.ReadUInt32(); + break; + } + case 122: { + hIFKDHKJGAC_.AddEntriesFrom(ref input, _map_hIFKDHKJGAC_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueMiracleData.cs b/Common/Proto/RogueMiracleData.cs new file mode 100644 index 00000000..ee2f35b5 --- /dev/null +++ b/Common/Proto/RogueMiracleData.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueMiracleData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueMiracleData.proto + public static partial class RogueMiracleDataReflection { + + #region Descriptor + /// File descriptor for RogueMiracleData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueMiracleDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZSb2d1ZU1pcmFjbGVEYXRhLnByb3RvGhJSb2d1ZU1pcmFjbGUucHJvdG8i", + "OAoQUm9ndWVNaXJhY2xlRGF0YRIkCg1yb2d1ZV9taXJhY2xlGA0gASgLMg0u", + "Um9ndWVNaXJhY2xlQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueMiracleReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueMiracleData), global::EggLink.DanhengServer.Proto.RogueMiracleData.Parser, new[]{ "RogueMiracle" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueMiracleData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueMiracleData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueMiracleDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleData(RogueMiracleData other) : this() { + rogueMiracle_ = other.rogueMiracle_ != null ? other.rogueMiracle_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleData Clone() { + return new RogueMiracleData(this); + } + + /// Field number for the "rogue_miracle" field. + public const int RogueMiracleFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.RogueMiracle rogueMiracle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueMiracle RogueMiracle { + get { return rogueMiracle_; } + set { + rogueMiracle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueMiracleData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueMiracleData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueMiracle, other.RogueMiracle)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueMiracle_ != null) hash ^= RogueMiracle.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rogueMiracle_ != null) { + output.WriteRawTag(106); + output.WriteMessage(RogueMiracle); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rogueMiracle_ != null) { + output.WriteRawTag(106); + output.WriteMessage(RogueMiracle); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueMiracle_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueMiracle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueMiracleData other) { + if (other == null) { + return; + } + if (other.rogueMiracle_ != null) { + if (rogueMiracle_ == null) { + RogueMiracle = new global::EggLink.DanhengServer.Proto.RogueMiracle(); + } + RogueMiracle.MergeFrom(other.RogueMiracle); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 106: { + if (rogueMiracle_ == null) { + RogueMiracle = new global::EggLink.DanhengServer.Proto.RogueMiracle(); + } + input.ReadMessage(RogueMiracle); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 106: { + if (rogueMiracle_ == null) { + RogueMiracle = new global::EggLink.DanhengServer.Proto.RogueMiracle(); + } + input.ReadMessage(RogueMiracle); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueMiracleDataInfo.cs b/Common/Proto/RogueMiracleDataInfo.cs new file mode 100644 index 00000000..689b8b45 --- /dev/null +++ b/Common/Proto/RogueMiracleDataInfo.cs @@ -0,0 +1,375 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueMiracleDataInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueMiracleDataInfo.proto + public static partial class RogueMiracleDataInfoReflection { + + #region Descriptor + /// File descriptor for RogueMiracleDataInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueMiracleDataInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpSb2d1ZU1pcmFjbGVEYXRhSW5mby5wcm90byLaAQoUUm9ndWVNaXJhY2xl", + "RGF0YUluZm8SEgoKbWlyYWNsZV9pZBgEIAEoDRI7CgtISUZLREhLSkdBQxgD", + "IAMoCzImLlJvZ3VlTWlyYWNsZURhdGFJbmZvLkhJRktESEtKR0FDRW50cnkS", + "EwoLTEhDSkJMQUVDSEsYASABKA0SEwoLRkZMTUNPSkFKQUkYByABKA0SEwoL", + "Q05GTUdKSEZBQkQYDSABKA0aMgoQSElGS0RIS0pHQUNFbnRyeRILCgNrZXkY", + "ASABKA0SDQoFdmFsdWUYAiABKA06AjgBQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueMiracleDataInfo), global::EggLink.DanhengServer.Proto.RogueMiracleDataInfo.Parser, new[]{ "MiracleId", "HIFKDHKJGAC", "LHCJBLAECHK", "FFLMCOJAJAI", "CNFMGJHFABD" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueMiracleDataInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueMiracleDataInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueMiracleDataInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleDataInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleDataInfo(RogueMiracleDataInfo other) : this() { + miracleId_ = other.miracleId_; + hIFKDHKJGAC_ = other.hIFKDHKJGAC_.Clone(); + lHCJBLAECHK_ = other.lHCJBLAECHK_; + fFLMCOJAJAI_ = other.fFLMCOJAJAI_; + cNFMGJHFABD_ = other.cNFMGJHFABD_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleDataInfo Clone() { + return new RogueMiracleDataInfo(this); + } + + /// Field number for the "miracle_id" field. + public const int MiracleIdFieldNumber = 4; + private uint miracleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MiracleId { + get { return miracleId_; } + set { + miracleId_ = value; + } + } + + /// Field number for the "HIFKDHKJGAC" field. + public const int HIFKDHKJGACFieldNumber = 3; + private static readonly pbc::MapField.Codec _map_hIFKDHKJGAC_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 26); + private readonly pbc::MapField hIFKDHKJGAC_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField HIFKDHKJGAC { + get { return hIFKDHKJGAC_; } + } + + /// Field number for the "LHCJBLAECHK" field. + public const int LHCJBLAECHKFieldNumber = 1; + private uint lHCJBLAECHK_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint LHCJBLAECHK { + get { return lHCJBLAECHK_; } + set { + lHCJBLAECHK_ = value; + } + } + + /// Field number for the "FFLMCOJAJAI" field. + public const int FFLMCOJAJAIFieldNumber = 7; + private uint fFLMCOJAJAI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FFLMCOJAJAI { + get { return fFLMCOJAJAI_; } + set { + fFLMCOJAJAI_ = value; + } + } + + /// Field number for the "CNFMGJHFABD" field. + public const int CNFMGJHFABDFieldNumber = 13; + private uint cNFMGJHFABD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CNFMGJHFABD { + get { return cNFMGJHFABD_; } + set { + cNFMGJHFABD_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueMiracleDataInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueMiracleDataInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MiracleId != other.MiracleId) return false; + if (!HIFKDHKJGAC.Equals(other.HIFKDHKJGAC)) return false; + if (LHCJBLAECHK != other.LHCJBLAECHK) return false; + if (FFLMCOJAJAI != other.FFLMCOJAJAI) return false; + if (CNFMGJHFABD != other.CNFMGJHFABD) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MiracleId != 0) hash ^= MiracleId.GetHashCode(); + hash ^= HIFKDHKJGAC.GetHashCode(); + if (LHCJBLAECHK != 0) hash ^= LHCJBLAECHK.GetHashCode(); + if (FFLMCOJAJAI != 0) hash ^= FFLMCOJAJAI.GetHashCode(); + if (CNFMGJHFABD != 0) hash ^= CNFMGJHFABD.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (LHCJBLAECHK != 0) { + output.WriteRawTag(8); + output.WriteUInt32(LHCJBLAECHK); + } + hIFKDHKJGAC_.WriteTo(output, _map_hIFKDHKJGAC_codec); + if (MiracleId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(MiracleId); + } + if (FFLMCOJAJAI != 0) { + output.WriteRawTag(56); + output.WriteUInt32(FFLMCOJAJAI); + } + if (CNFMGJHFABD != 0) { + output.WriteRawTag(104); + output.WriteUInt32(CNFMGJHFABD); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (LHCJBLAECHK != 0) { + output.WriteRawTag(8); + output.WriteUInt32(LHCJBLAECHK); + } + hIFKDHKJGAC_.WriteTo(ref output, _map_hIFKDHKJGAC_codec); + if (MiracleId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(MiracleId); + } + if (FFLMCOJAJAI != 0) { + output.WriteRawTag(56); + output.WriteUInt32(FFLMCOJAJAI); + } + if (CNFMGJHFABD != 0) { + output.WriteRawTag(104); + output.WriteUInt32(CNFMGJHFABD); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MiracleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MiracleId); + } + size += hIFKDHKJGAC_.CalculateSize(_map_hIFKDHKJGAC_codec); + if (LHCJBLAECHK != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LHCJBLAECHK); + } + if (FFLMCOJAJAI != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FFLMCOJAJAI); + } + if (CNFMGJHFABD != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CNFMGJHFABD); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueMiracleDataInfo other) { + if (other == null) { + return; + } + if (other.MiracleId != 0) { + MiracleId = other.MiracleId; + } + hIFKDHKJGAC_.MergeFrom(other.hIFKDHKJGAC_); + if (other.LHCJBLAECHK != 0) { + LHCJBLAECHK = other.LHCJBLAECHK; + } + if (other.FFLMCOJAJAI != 0) { + FFLMCOJAJAI = other.FFLMCOJAJAI; + } + if (other.CNFMGJHFABD != 0) { + CNFMGJHFABD = other.CNFMGJHFABD; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + LHCJBLAECHK = input.ReadUInt32(); + break; + } + case 26: { + hIFKDHKJGAC_.AddEntriesFrom(input, _map_hIFKDHKJGAC_codec); + break; + } + case 32: { + MiracleId = input.ReadUInt32(); + break; + } + case 56: { + FFLMCOJAJAI = input.ReadUInt32(); + break; + } + case 104: { + CNFMGJHFABD = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + LHCJBLAECHK = input.ReadUInt32(); + break; + } + case 26: { + hIFKDHKJGAC_.AddEntriesFrom(ref input, _map_hIFKDHKJGAC_codec); + break; + } + case 32: { + MiracleId = input.ReadUInt32(); + break; + } + case 56: { + FFLMCOJAJAI = input.ReadUInt32(); + break; + } + case 104: { + CNFMGJHFABD = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueMiracleInfo.cs b/Common/Proto/RogueMiracleInfo.cs new file mode 100644 index 00000000..5cd81cf9 --- /dev/null +++ b/Common/Proto/RogueMiracleInfo.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueMiracleInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueMiracleInfo.proto + public static partial class RogueMiracleInfoReflection { + + #region Descriptor + /// File descriptor for RogueMiracleInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueMiracleInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZSb2d1ZU1pcmFjbGVJbmZvLnByb3RvGhpSb2d1ZU1pcmFjbGVJbmZvRGF0", + "YS5wcm90byJFChBSb2d1ZU1pcmFjbGVJbmZvEjEKEnJvZ3VlX21pcmFjbGVf", + "aW5mbxgEIAEoCzIVLlJvZ3VlTWlyYWNsZUluZm9EYXRhQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueMiracleInfoDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueMiracleInfo), global::EggLink.DanhengServer.Proto.RogueMiracleInfo.Parser, new[]{ "RogueMiracleInfo_" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueMiracleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueMiracleInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueMiracleInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleInfo(RogueMiracleInfo other) : this() { + rogueMiracleInfo_ = other.rogueMiracleInfo_ != null ? other.rogueMiracleInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleInfo Clone() { + return new RogueMiracleInfo(this); + } + + /// Field number for the "rogue_miracle_info" field. + public const int RogueMiracleInfo_FieldNumber = 4; + private global::EggLink.DanhengServer.Proto.RogueMiracleInfoData rogueMiracleInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueMiracleInfoData RogueMiracleInfo_ { + get { return rogueMiracleInfo_; } + set { + rogueMiracleInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueMiracleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueMiracleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueMiracleInfo_, other.RogueMiracleInfo_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueMiracleInfo_ != null) hash ^= RogueMiracleInfo_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rogueMiracleInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RogueMiracleInfo_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rogueMiracleInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RogueMiracleInfo_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueMiracleInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueMiracleInfo_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueMiracleInfo other) { + if (other == null) { + return; + } + if (other.rogueMiracleInfo_ != null) { + if (rogueMiracleInfo_ == null) { + RogueMiracleInfo_ = new global::EggLink.DanhengServer.Proto.RogueMiracleInfoData(); + } + RogueMiracleInfo_.MergeFrom(other.RogueMiracleInfo_); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + if (rogueMiracleInfo_ == null) { + RogueMiracleInfo_ = new global::EggLink.DanhengServer.Proto.RogueMiracleInfoData(); + } + input.ReadMessage(RogueMiracleInfo_); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + if (rogueMiracleInfo_ == null) { + RogueMiracleInfo_ = new global::EggLink.DanhengServer.Proto.RogueMiracleInfoData(); + } + input.ReadMessage(RogueMiracleInfo_); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueMiracleInfoData.cs b/Common/Proto/RogueMiracleInfoData.cs new file mode 100644 index 00000000..66913b1b --- /dev/null +++ b/Common/Proto/RogueMiracleInfoData.cs @@ -0,0 +1,299 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueMiracleInfoData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueMiracleInfoData.proto + public static partial class RogueMiracleInfoDataReflection { + + #region Descriptor + /// File descriptor for RogueMiracleInfoData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueMiracleInfoDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpSb2d1ZU1pcmFjbGVJbmZvRGF0YS5wcm90bxoaUm9ndWVNaXJhY2xlRGF0", + "YUluZm8ucHJvdG8icwoUUm9ndWVNaXJhY2xlSW5mb0RhdGESEwoLRUdDRkJP", + "UExIS0oYBCABKA0SMQoScm9ndWVfbWlyYWNsZV9saXN0GAEgAygLMhUuUm9n", + "dWVNaXJhY2xlRGF0YUluZm8SEwoLSlBER01BTEJCQUIYByABKA1CHqoCG0Vn", + "Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueMiracleDataInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueMiracleInfoData), global::EggLink.DanhengServer.Proto.RogueMiracleInfoData.Parser, new[]{ "EGCFBOPLHKJ", "RogueMiracleList", "JPDGMALBBAB" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueMiracleInfoData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueMiracleInfoData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueMiracleInfoDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleInfoData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleInfoData(RogueMiracleInfoData other) : this() { + eGCFBOPLHKJ_ = other.eGCFBOPLHKJ_; + rogueMiracleList_ = other.rogueMiracleList_.Clone(); + jPDGMALBBAB_ = other.jPDGMALBBAB_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleInfoData Clone() { + return new RogueMiracleInfoData(this); + } + + /// Field number for the "EGCFBOPLHKJ" field. + public const int EGCFBOPLHKJFieldNumber = 4; + private uint eGCFBOPLHKJ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EGCFBOPLHKJ { + get { return eGCFBOPLHKJ_; } + set { + eGCFBOPLHKJ_ = value; + } + } + + /// Field number for the "rogue_miracle_list" field. + public const int RogueMiracleListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_rogueMiracleList_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.RogueMiracleDataInfo.Parser); + private readonly pbc::RepeatedField rogueMiracleList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RogueMiracleList { + get { return rogueMiracleList_; } + } + + /// Field number for the "JPDGMALBBAB" field. + public const int JPDGMALBBABFieldNumber = 7; + private uint jPDGMALBBAB_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint JPDGMALBBAB { + get { return jPDGMALBBAB_; } + set { + jPDGMALBBAB_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueMiracleInfoData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueMiracleInfoData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EGCFBOPLHKJ != other.EGCFBOPLHKJ) return false; + if(!rogueMiracleList_.Equals(other.rogueMiracleList_)) return false; + if (JPDGMALBBAB != other.JPDGMALBBAB) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EGCFBOPLHKJ != 0) hash ^= EGCFBOPLHKJ.GetHashCode(); + hash ^= rogueMiracleList_.GetHashCode(); + if (JPDGMALBBAB != 0) hash ^= JPDGMALBBAB.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + rogueMiracleList_.WriteTo(output, _repeated_rogueMiracleList_codec); + if (EGCFBOPLHKJ != 0) { + output.WriteRawTag(32); + output.WriteUInt32(EGCFBOPLHKJ); + } + if (JPDGMALBBAB != 0) { + output.WriteRawTag(56); + output.WriteUInt32(JPDGMALBBAB); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + rogueMiracleList_.WriteTo(ref output, _repeated_rogueMiracleList_codec); + if (EGCFBOPLHKJ != 0) { + output.WriteRawTag(32); + output.WriteUInt32(EGCFBOPLHKJ); + } + if (JPDGMALBBAB != 0) { + output.WriteRawTag(56); + output.WriteUInt32(JPDGMALBBAB); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EGCFBOPLHKJ != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EGCFBOPLHKJ); + } + size += rogueMiracleList_.CalculateSize(_repeated_rogueMiracleList_codec); + if (JPDGMALBBAB != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(JPDGMALBBAB); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueMiracleInfoData other) { + if (other == null) { + return; + } + if (other.EGCFBOPLHKJ != 0) { + EGCFBOPLHKJ = other.EGCFBOPLHKJ; + } + rogueMiracleList_.Add(other.rogueMiracleList_); + if (other.JPDGMALBBAB != 0) { + JPDGMALBBAB = other.JPDGMALBBAB; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + rogueMiracleList_.AddEntriesFrom(input, _repeated_rogueMiracleList_codec); + break; + } + case 32: { + EGCFBOPLHKJ = input.ReadUInt32(); + break; + } + case 56: { + JPDGMALBBAB = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + rogueMiracleList_.AddEntriesFrom(ref input, _repeated_rogueMiracleList_codec); + break; + } + case 32: { + EGCFBOPLHKJ = input.ReadUInt32(); + break; + } + case 56: { + JPDGMALBBAB = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueMiracleSelect.cs b/Common/Proto/RogueMiracleSelect.cs new file mode 100644 index 00000000..fbd82d68 --- /dev/null +++ b/Common/Proto/RogueMiracleSelect.cs @@ -0,0 +1,196 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueMiracleSelect.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueMiracleSelect.proto + public static partial class RogueMiracleSelectReflection { + + #region Descriptor + /// File descriptor for RogueMiracleSelect.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueMiracleSelectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhSb2d1ZU1pcmFjbGVTZWxlY3QucHJvdG8iFAoSUm9ndWVNaXJhY2xlU2Vs", + "ZWN0Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueMiracleSelect), global::EggLink.DanhengServer.Proto.RogueMiracleSelect.Parser, null, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueMiracleSelect : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueMiracleSelect()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueMiracleSelectReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleSelect() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleSelect(RogueMiracleSelect other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleSelect Clone() { + return new RogueMiracleSelect(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueMiracleSelect); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueMiracleSelect other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueMiracleSelect other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueMiracleSelectInfo.cs b/Common/Proto/RogueMiracleSelectInfo.cs new file mode 100644 index 00000000..182fc13a --- /dev/null +++ b/Common/Proto/RogueMiracleSelectInfo.cs @@ -0,0 +1,335 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueMiracleSelectInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueMiracleSelectInfo.proto + public static partial class RogueMiracleSelectInfoReflection { + + #region Descriptor + /// File descriptor for RogueMiracleSelectInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueMiracleSelectInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxSb2d1ZU1pcmFjbGVTZWxlY3RJbmZvLnByb3RvInUKFlJvZ3VlTWlyYWNs", + "ZVNlbGVjdEluZm8SGwoTbWlyYWNsZV9pbmZvX3JlbW90ZRgNIAMoDRITCgtP", + "Sk9NQk5HR0hGSRgIIAEoDRIUCgxtaXJhY2xlX2luZm8YBSADKA0SEwoLTU1I", + "TURCRE9OSUEYAiABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90", + "b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo), global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo.Parser, new[]{ "MiracleInfoRemote", "OJOMBNGGHFI", "MiracleInfo", "MMHMDBDONIA" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueMiracleSelectInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueMiracleSelectInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleSelectInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleSelectInfo(RogueMiracleSelectInfo other) : this() { + miracleInfoRemote_ = other.miracleInfoRemote_.Clone(); + oJOMBNGGHFI_ = other.oJOMBNGGHFI_; + miracleInfo_ = other.miracleInfo_.Clone(); + mMHMDBDONIA_ = other.mMHMDBDONIA_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleSelectInfo Clone() { + return new RogueMiracleSelectInfo(this); + } + + /// Field number for the "miracle_info_remote" field. + public const int MiracleInfoRemoteFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_miracleInfoRemote_codec + = pb::FieldCodec.ForUInt32(106); + private readonly pbc::RepeatedField miracleInfoRemote_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MiracleInfoRemote { + get { return miracleInfoRemote_; } + } + + /// Field number for the "OJOMBNGGHFI" field. + public const int OJOMBNGGHFIFieldNumber = 8; + private uint oJOMBNGGHFI_; + /// + /// idk guess source + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OJOMBNGGHFI { + get { return oJOMBNGGHFI_; } + set { + oJOMBNGGHFI_ = value; + } + } + + /// Field number for the "miracle_info" field. + public const int MiracleInfoFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_miracleInfo_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField miracleInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MiracleInfo { + get { return miracleInfo_; } + } + + /// Field number for the "MMHMDBDONIA" field. + public const int MMHMDBDONIAFieldNumber = 2; + private uint mMHMDBDONIA_; + /// + /// idk + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MMHMDBDONIA { + get { return mMHMDBDONIA_; } + set { + mMHMDBDONIA_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueMiracleSelectInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueMiracleSelectInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!miracleInfoRemote_.Equals(other.miracleInfoRemote_)) return false; + if (OJOMBNGGHFI != other.OJOMBNGGHFI) return false; + if(!miracleInfo_.Equals(other.miracleInfo_)) return false; + if (MMHMDBDONIA != other.MMHMDBDONIA) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= miracleInfoRemote_.GetHashCode(); + if (OJOMBNGGHFI != 0) hash ^= OJOMBNGGHFI.GetHashCode(); + hash ^= miracleInfo_.GetHashCode(); + if (MMHMDBDONIA != 0) hash ^= MMHMDBDONIA.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MMHMDBDONIA != 0) { + output.WriteRawTag(16); + output.WriteUInt32(MMHMDBDONIA); + } + miracleInfo_.WriteTo(output, _repeated_miracleInfo_codec); + if (OJOMBNGGHFI != 0) { + output.WriteRawTag(64); + output.WriteUInt32(OJOMBNGGHFI); + } + miracleInfoRemote_.WriteTo(output, _repeated_miracleInfoRemote_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MMHMDBDONIA != 0) { + output.WriteRawTag(16); + output.WriteUInt32(MMHMDBDONIA); + } + miracleInfo_.WriteTo(ref output, _repeated_miracleInfo_codec); + if (OJOMBNGGHFI != 0) { + output.WriteRawTag(64); + output.WriteUInt32(OJOMBNGGHFI); + } + miracleInfoRemote_.WriteTo(ref output, _repeated_miracleInfoRemote_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += miracleInfoRemote_.CalculateSize(_repeated_miracleInfoRemote_codec); + if (OJOMBNGGHFI != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OJOMBNGGHFI); + } + size += miracleInfo_.CalculateSize(_repeated_miracleInfo_codec); + if (MMHMDBDONIA != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MMHMDBDONIA); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueMiracleSelectInfo other) { + if (other == null) { + return; + } + miracleInfoRemote_.Add(other.miracleInfoRemote_); + if (other.OJOMBNGGHFI != 0) { + OJOMBNGGHFI = other.OJOMBNGGHFI; + } + miracleInfo_.Add(other.miracleInfo_); + if (other.MMHMDBDONIA != 0) { + MMHMDBDONIA = other.MMHMDBDONIA; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + MMHMDBDONIA = input.ReadUInt32(); + break; + } + case 42: + case 40: { + miracleInfo_.AddEntriesFrom(input, _repeated_miracleInfo_codec); + break; + } + case 64: { + OJOMBNGGHFI = input.ReadUInt32(); + break; + } + case 106: + case 104: { + miracleInfoRemote_.AddEntriesFrom(input, _repeated_miracleInfoRemote_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + MMHMDBDONIA = input.ReadUInt32(); + break; + } + case 42: + case 40: { + miracleInfo_.AddEntriesFrom(ref input, _repeated_miracleInfo_codec); + break; + } + case 64: { + OJOMBNGGHFI = input.ReadUInt32(); + break; + } + case 106: + case 104: { + miracleInfoRemote_.AddEntriesFrom(ref input, _repeated_miracleInfoRemote_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueMiracleSelectResult.cs b/Common/Proto/RogueMiracleSelectResult.cs new file mode 100644 index 00000000..5a36be62 --- /dev/null +++ b/Common/Proto/RogueMiracleSelectResult.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueMiracleSelectResult.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueMiracleSelectResult.proto + public static partial class RogueMiracleSelectResultReflection { + + #region Descriptor + /// File descriptor for RogueMiracleSelectResult.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueMiracleSelectResultReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5Sb2d1ZU1pcmFjbGVTZWxlY3RSZXN1bHQucHJvdG8iLgoYUm9ndWVNaXJh", + "Y2xlU2VsZWN0UmVzdWx0EhIKCm1pcmFjbGVfaWQYBiABKA1CHqoCG0VnZ0xp", + "bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueMiracleSelectResult), global::EggLink.DanhengServer.Proto.RogueMiracleSelectResult.Parser, new[]{ "MiracleId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueMiracleSelectResult : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueMiracleSelectResult()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueMiracleSelectResultReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleSelectResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleSelectResult(RogueMiracleSelectResult other) : this() { + miracleId_ = other.miracleId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueMiracleSelectResult Clone() { + return new RogueMiracleSelectResult(this); + } + + /// Field number for the "miracle_id" field. + public const int MiracleIdFieldNumber = 6; + private uint miracleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MiracleId { + get { return miracleId_; } + set { + miracleId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueMiracleSelectResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueMiracleSelectResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MiracleId != other.MiracleId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MiracleId != 0) hash ^= MiracleId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MiracleId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(MiracleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MiracleId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(MiracleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MiracleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MiracleId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueMiracleSelectResult other) { + if (other == null) { + return; + } + if (other.MiracleId != 0) { + MiracleId = other.MiracleId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 48: { + MiracleId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 48: { + MiracleId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueMiracleSource.cs b/Common/Proto/RogueMiracleSource.cs new file mode 100644 index 00000000..a0755d0a --- /dev/null +++ b/Common/Proto/RogueMiracleSource.cs @@ -0,0 +1,69 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueMiracleSource.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueMiracleSource.proto + public static partial class RogueMiracleSourceReflection { + + #region Descriptor + /// File descriptor for RogueMiracleSource.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueMiracleSourceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhSb2d1ZU1pcmFjbGVTb3VyY2UucHJvdG8qkgQKElJvZ3VlTWlyYWNsZVNv", + "dXJjZRIiCh5ST0dVRV9NSVJBQ0xFX1NPVVJDRV9UWVBFX05PTkUQABIkCiBS", + "T0dVRV9NSVJBQ0xFX1NPVVJDRV9UWVBFX1NFTEVDVBABEiYKIlJPR1VFX01J", + "UkFDTEVfU09VUkNFX1RZUEVfRElBTE9HVUUQAhIjCh9ST0dVRV9NSVJBQ0xF", + "X1NPVVJDRV9UWVBFX0JPTlVTEAMSIQodUk9HVUVfTUlSQUNMRV9TT1VSQ0Vf", + "VFlQRV9VU0UQBBIjCh9ST0dVRV9NSVJBQ0xFX1NPVVJDRV9UWVBFX1JFU0VU", + "EAUSJQohUk9HVUVfTUlSQUNMRV9TT1VSQ0VfVFlQRV9SRVBMQUNFEAYSIwof", + "Uk9HVUVfTUlSQUNMRV9TT1VSQ0VfVFlQRV9UUkFERRAHEiEKHVJPR1VFX01J", + "UkFDTEVfU09VUkNFX1RZUEVfR0VUEAgSIgoeUk9HVUVfTUlSQUNMRV9TT1VS", + "Q0VfVFlQRV9TSE9QEAkSKAokUk9HVUVfTUlSQUNMRV9TT1VSQ0VfVFlQRV9N", + "QVpFX1NLSUxMEAoSLQopUk9HVUVfTUlSQUNMRV9TT1VSQ0VfVFlQRV9MRVZF", + "TF9NRUNIQU5JU00QCxIxCi1ST0dVRV9NSVJBQ0xFX1NPVVJDRV9UWVBFX0VO", + "RExFU1NfTEVWRUxfU1RBUlQQDEIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy", + "LlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.RogueMiracleSource), }, null, null)); + } + #endregion + + } + #region Enums + public enum RogueMiracleSource { + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_NONE")] TypeNone = 0, + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_SELECT")] TypeSelect = 1, + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_DIALOGUE")] TypeDialogue = 2, + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_BONUS")] TypeBonus = 3, + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_USE")] TypeUse = 4, + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_RESET")] TypeReset = 5, + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_REPLACE")] TypeReplace = 6, + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_TRADE")] TypeTrade = 7, + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_GET")] TypeGet = 8, + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_SHOP")] TypeShop = 9, + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_MAZE_SKILL")] TypeMazeSkill = 10, + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_LEVEL_MECHANISM")] TypeLevelMechanism = 11, + [pbr::OriginalName("ROGUE_MIRACLE_SOURCE_TYPE_ENDLESS_LEVEL_START")] TypeEndlessLevelStart = 12, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueNpcDisappearCsReq.cs b/Common/Proto/RogueNpcDisappearCsReq.cs new file mode 100644 index 00000000..b7b1f11e --- /dev/null +++ b/Common/Proto/RogueNpcDisappearCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueNpcDisappearCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueNpcDisappearCsReq.proto + public static partial class RogueNpcDisappearCsReqReflection { + + #region Descriptor + /// File descriptor for RogueNpcDisappearCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueNpcDisappearCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxSb2d1ZU5wY0Rpc2FwcGVhckNzUmVxLnByb3RvIisKFlJvZ3VlTnBjRGlz", + "YXBwZWFyQ3NSZXESEQoJZW50aXR5X2lkGAggASgNQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueNpcDisappearCsReq), global::EggLink.DanhengServer.Proto.RogueNpcDisappearCsReq.Parser, new[]{ "EntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueNpcDisappearCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueNpcDisappearCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueNpcDisappearCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueNpcDisappearCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueNpcDisappearCsReq(RogueNpcDisappearCsReq other) : this() { + entityId_ = other.entityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueNpcDisappearCsReq Clone() { + return new RogueNpcDisappearCsReq(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 8; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueNpcDisappearCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueNpcDisappearCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntityId != other.EntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntityId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EntityId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueNpcDisappearCsReq other) { + if (other == null) { + return; + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + EntityId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + EntityId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueQuery.cs b/Common/Proto/RogueQuery.cs new file mode 100644 index 00000000..d6e12a38 --- /dev/null +++ b/Common/Proto/RogueQuery.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueQuery.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueQuery.proto + public static partial class RogueQueryReflection { + + #region Descriptor + /// File descriptor for RogueQuery.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueQueryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBSb2d1ZVF1ZXJ5LnByb3RvIiEKClJvZ3VlUXVlcnkSEwoLRkZKSE5HSUlO", + "TU4YDSADKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueQuery), global::EggLink.DanhengServer.Proto.RogueQuery.Parser, new[]{ "FFJHNGIINMN" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueQuery : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueQuery()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueQueryReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueQuery() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueQuery(RogueQuery other) : this() { + fFJHNGIINMN_ = other.fFJHNGIINMN_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueQuery Clone() { + return new RogueQuery(this); + } + + /// Field number for the "FFJHNGIINMN" field. + public const int FFJHNGIINMNFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_fFJHNGIINMN_codec + = pb::FieldCodec.ForUInt32(106); + private readonly pbc::RepeatedField fFJHNGIINMN_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FFJHNGIINMN { + get { return fFJHNGIINMN_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueQuery); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueQuery other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!fFJHNGIINMN_.Equals(other.fFJHNGIINMN_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= fFJHNGIINMN_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + fFJHNGIINMN_.WriteTo(output, _repeated_fFJHNGIINMN_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + fFJHNGIINMN_.WriteTo(ref output, _repeated_fFJHNGIINMN_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += fFJHNGIINMN_.CalculateSize(_repeated_fFJHNGIINMN_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueQuery other) { + if (other == null) { + return; + } + fFJHNGIINMN_.Add(other.fFJHNGIINMN_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 106: + case 104: { + fFJHNGIINMN_.AddEntriesFrom(input, _repeated_fFJHNGIINMN_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 106: + case 104: { + fFJHNGIINMN_.AddEntriesFrom(ref input, _repeated_fFJHNGIINMN_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueRecordAvatar.cs b/Common/Proto/RogueRecordAvatar.cs new file mode 100644 index 00000000..7421edd0 --- /dev/null +++ b/Common/Proto/RogueRecordAvatar.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueRecordAvatar.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueRecordAvatar.proto + public static partial class RogueRecordAvatarReflection { + + #region Descriptor + /// File descriptor for RogueRecordAvatar.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueRecordAvatarReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdSb2d1ZVJlY29yZEF2YXRhci5wcm90bxoQQXZhdGFyVHlwZS5wcm90byJP", + "ChFSb2d1ZVJlY29yZEF2YXRhchIgCgthdmF0YXJfdHlwZRgFIAEoDjILLkF2", + "YXRhclR5cGUSDAoEc2xvdBgLIAEoDRIKCgJpZBgGIAEoDUIeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AvatarTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueRecordAvatar), global::EggLink.DanhengServer.Proto.RogueRecordAvatar.Parser, new[]{ "AvatarType", "Slot", "Id" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueRecordAvatar : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueRecordAvatar()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueRecordAvatarReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueRecordAvatar() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueRecordAvatar(RogueRecordAvatar other) : this() { + avatarType_ = other.avatarType_; + slot_ = other.slot_; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueRecordAvatar Clone() { + return new RogueRecordAvatar(this); + } + + /// Field number for the "avatar_type" field. + public const int AvatarTypeFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.AvatarType avatarType_ = global::EggLink.DanhengServer.Proto.AvatarType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.AvatarType AvatarType { + get { return avatarType_; } + set { + avatarType_ = value; + } + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 11; + private uint slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Slot { + get { return slot_; } + set { + slot_ = value; + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 6; + 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 RogueRecordAvatar); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueRecordAvatar other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AvatarType != other.AvatarType) return false; + if (Slot != other.Slot) 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 (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) hash ^= AvatarType.GetHashCode(); + if (Slot != 0) hash ^= Slot.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 (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(40); + output.WriteEnum((int) AvatarType); + } + if (Id != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Id); + } + if (Slot != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Slot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(40); + output.WriteEnum((int) AvatarType); + } + if (Id != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Id); + } + if (Slot != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Slot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AvatarType); + } + if (Slot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); + } + 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(RogueRecordAvatar other) { + if (other == null) { + return; + } + if (other.AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + AvatarType = other.AvatarType; + } + if (other.Slot != 0) { + Slot = other.Slot; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 48: { + Id = input.ReadUInt32(); + break; + } + case 88: { + Slot = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 48: { + Id = input.ReadUInt32(); + break; + } + case 88: { + Slot = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueRecordInfo.cs b/Common/Proto/RogueRecordInfo.cs new file mode 100644 index 00000000..a26c254a --- /dev/null +++ b/Common/Proto/RogueRecordInfo.cs @@ -0,0 +1,279 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueRecordInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueRecordInfo.proto + public static partial class RogueRecordInfoReflection { + + #region Descriptor + /// File descriptor for RogueRecordInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueRecordInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSb2d1ZVJlY29yZEluZm8ucHJvdG8aD1JvZ3VlQnVmZi5wcm90bxoXUm9n", + "dWVSZWNvcmRBdmF0YXIucHJvdG8idQoPUm9ndWVSZWNvcmRJbmZvEh0KCWJ1", + "ZmZfbGlzdBgNIAMoCzIKLlJvZ3VlQnVmZhIaChJyb2d1ZV9taXJhY2xlX2xp", + "c3QYBSADKA0SJwoLYXZhdGFyX2xpc3QYBCADKAsyEi5Sb2d1ZVJlY29yZEF2", + "YXRhckIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueBuffReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueRecordAvatarReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueRecordInfo), global::EggLink.DanhengServer.Proto.RogueRecordInfo.Parser, new[]{ "BuffList", "RogueMiracleList", "AvatarList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueRecordInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueRecordInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueRecordInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueRecordInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueRecordInfo(RogueRecordInfo other) : this() { + buffList_ = other.buffList_.Clone(); + rogueMiracleList_ = other.rogueMiracleList_.Clone(); + avatarList_ = other.avatarList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueRecordInfo Clone() { + return new RogueRecordInfo(this); + } + + /// Field number for the "buff_list" field. + public const int BuffListFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_buffList_codec + = pb::FieldCodec.ForMessage(106, global::EggLink.DanhengServer.Proto.RogueBuff.Parser); + private readonly pbc::RepeatedField buffList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffList { + get { return buffList_; } + } + + /// Field number for the "rogue_miracle_list" field. + public const int RogueMiracleListFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_rogueMiracleList_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField rogueMiracleList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RogueMiracleList { + get { return rogueMiracleList_; } + } + + /// Field number for the "avatar_list" field. + public const int AvatarListFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_avatarList_codec + = pb::FieldCodec.ForMessage(34, global::EggLink.DanhengServer.Proto.RogueRecordAvatar.Parser); + private readonly pbc::RepeatedField avatarList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AvatarList { + get { return avatarList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueRecordInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueRecordInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!buffList_.Equals(other.buffList_)) return false; + if(!rogueMiracleList_.Equals(other.rogueMiracleList_)) return false; + if(!avatarList_.Equals(other.avatarList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= buffList_.GetHashCode(); + hash ^= rogueMiracleList_.GetHashCode(); + hash ^= avatarList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + avatarList_.WriteTo(output, _repeated_avatarList_codec); + rogueMiracleList_.WriteTo(output, _repeated_rogueMiracleList_codec); + buffList_.WriteTo(output, _repeated_buffList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + avatarList_.WriteTo(ref output, _repeated_avatarList_codec); + rogueMiracleList_.WriteTo(ref output, _repeated_rogueMiracleList_codec); + buffList_.WriteTo(ref output, _repeated_buffList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += buffList_.CalculateSize(_repeated_buffList_codec); + size += rogueMiracleList_.CalculateSize(_repeated_rogueMiracleList_codec); + size += avatarList_.CalculateSize(_repeated_avatarList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueRecordInfo other) { + if (other == null) { + return; + } + buffList_.Add(other.buffList_); + rogueMiracleList_.Add(other.rogueMiracleList_); + avatarList_.Add(other.avatarList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + avatarList_.AddEntriesFrom(input, _repeated_avatarList_codec); + break; + } + case 42: + case 40: { + rogueMiracleList_.AddEntriesFrom(input, _repeated_rogueMiracleList_codec); + break; + } + case 106: { + buffList_.AddEntriesFrom(input, _repeated_buffList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + avatarList_.AddEntriesFrom(ref input, _repeated_avatarList_codec); + break; + } + case 42: + case 40: { + rogueMiracleList_.AddEntriesFrom(ref input, _repeated_rogueMiracleList_codec); + break; + } + case 106: { + buffList_.AddEntriesFrom(ref input, _repeated_buffList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueRerollBuff.cs b/Common/Proto/RogueRerollBuff.cs new file mode 100644 index 00000000..27947699 --- /dev/null +++ b/Common/Proto/RogueRerollBuff.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueRerollBuff.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueRerollBuff.proto + public static partial class RogueRerollBuffReflection { + + #region Descriptor + /// File descriptor for RogueRerollBuff.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueRerollBuffReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSb2d1ZVJlcm9sbEJ1ZmYucHJvdG8aH1JvZ3VlQ29tbW9uQnVmZlNlbGVj", + "dEluZm8ucHJvdG8iRwoPUm9ndWVSZXJvbGxCdWZmEjQKEGJ1ZmZfc2VsZWN0", + "X2luZm8YCyABKAsyGi5Sb2d1ZUNvbW1vbkJ1ZmZTZWxlY3RJbmZvQh6qAhtF", + "Z2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueRerollBuff), global::EggLink.DanhengServer.Proto.RogueRerollBuff.Parser, new[]{ "BuffSelectInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueRerollBuff : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueRerollBuff()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueRerollBuffReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueRerollBuff() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueRerollBuff(RogueRerollBuff other) : this() { + buffSelectInfo_ = other.buffSelectInfo_ != null ? other.buffSelectInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueRerollBuff Clone() { + return new RogueRerollBuff(this); + } + + /// Field number for the "buff_select_info" field. + public const int BuffSelectInfoFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo buffSelectInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo BuffSelectInfo { + get { return buffSelectInfo_; } + set { + buffSelectInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueRerollBuff); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueRerollBuff other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BuffSelectInfo, other.BuffSelectInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (buffSelectInfo_ != null) hash ^= BuffSelectInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (buffSelectInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(BuffSelectInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (buffSelectInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(BuffSelectInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (buffSelectInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BuffSelectInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueRerollBuff other) { + if (other == null) { + return; + } + if (other.buffSelectInfo_ != null) { + if (buffSelectInfo_ == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo(); + } + BuffSelectInfo.MergeFrom(other.BuffSelectInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 90: { + if (buffSelectInfo_ == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo(); + } + input.ReadMessage(BuffSelectInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 90: { + if (buffSelectInfo_ == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueCommonBuffSelectInfo(); + } + input.ReadMessage(BuffSelectInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueRoom.cs b/Common/Proto/RogueRoom.cs new file mode 100644 index 00000000..305191c5 --- /dev/null +++ b/Common/Proto/RogueRoom.cs @@ -0,0 +1,315 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueRoom.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueRoom.proto + public static partial class RogueRoomReflection { + + #region Descriptor + /// File descriptor for RogueRoom.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueRoomReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9Sb2d1ZVJvb20ucHJvdG8aFVJvZ3VlUm9vbVN0YXR1cy5wcm90byJUCglS", + "b2d1ZVJvb20SJQoLcm9vbV9zdGF0dXMYDSABKA4yEC5Sb2d1ZVJvb21TdGF0", + "dXMSDwoHc2l0ZV9pZBgMIAEoDRIPCgdyb29tX2lkGA8gASgNQh6qAhtFZ2dM", + "aW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueRoomStatusReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueRoom), global::EggLink.DanhengServer.Proto.RogueRoom.Parser, new[]{ "RoomStatus", "SiteId", "RoomId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueRoom : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueRoom()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueRoomReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueRoom() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueRoom(RogueRoom other) : this() { + roomStatus_ = other.roomStatus_; + siteId_ = other.siteId_; + roomId_ = other.roomId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueRoom Clone() { + return new RogueRoom(this); + } + + /// Field number for the "room_status" field. + public const int RoomStatusFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.RogueRoomStatus roomStatus_ = global::EggLink.DanhengServer.Proto.RogueRoomStatus.None; + /// + ///IOLBGHALAHK MHIHFPAFLDO = 8; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueRoomStatus RoomStatus { + get { return roomStatus_; } + set { + roomStatus_ = value; + } + } + + /// Field number for the "site_id" field. + public const int SiteIdFieldNumber = 12; + private uint siteId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SiteId { + get { return siteId_; } + set { + siteId_ = value; + } + } + + /// Field number for the "room_id" field. + public const int RoomIdFieldNumber = 15; + private uint roomId_; + /// + ///uint32 BNKNFOGGPMG = 6; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RoomId { + get { return roomId_; } + set { + roomId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueRoom); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueRoom other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomStatus != other.RoomStatus) return false; + if (SiteId != other.SiteId) return false; + if (RoomId != other.RoomId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RoomStatus != global::EggLink.DanhengServer.Proto.RogueRoomStatus.None) hash ^= RoomStatus.GetHashCode(); + if (SiteId != 0) hash ^= SiteId.GetHashCode(); + if (RoomId != 0) hash ^= RoomId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SiteId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(SiteId); + } + if (RoomStatus != global::EggLink.DanhengServer.Proto.RogueRoomStatus.None) { + output.WriteRawTag(104); + output.WriteEnum((int) RoomStatus); + } + if (RoomId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(RoomId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SiteId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(SiteId); + } + if (RoomStatus != global::EggLink.DanhengServer.Proto.RogueRoomStatus.None) { + output.WriteRawTag(104); + output.WriteEnum((int) RoomStatus); + } + if (RoomId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(RoomId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RoomStatus != global::EggLink.DanhengServer.Proto.RogueRoomStatus.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RoomStatus); + } + if (SiteId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SiteId); + } + if (RoomId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoomId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueRoom other) { + if (other == null) { + return; + } + if (other.RoomStatus != global::EggLink.DanhengServer.Proto.RogueRoomStatus.None) { + RoomStatus = other.RoomStatus; + } + if (other.SiteId != 0) { + SiteId = other.SiteId; + } + if (other.RoomId != 0) { + RoomId = other.RoomId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 96: { + SiteId = input.ReadUInt32(); + break; + } + case 104: { + RoomStatus = (global::EggLink.DanhengServer.Proto.RogueRoomStatus) input.ReadEnum(); + break; + } + case 120: { + RoomId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 96: { + SiteId = input.ReadUInt32(); + break; + } + case 104: { + RoomStatus = (global::EggLink.DanhengServer.Proto.RogueRoomStatus) input.ReadEnum(); + break; + } + case 120: { + RoomId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueRoomStatus.cs b/Common/Proto/RogueRoomStatus.cs new file mode 100644 index 00000000..82cd1659 --- /dev/null +++ b/Common/Proto/RogueRoomStatus.cs @@ -0,0 +1,53 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueRoomStatus.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueRoomStatus.proto + public static partial class RogueRoomStatusReflection { + + #region Descriptor + /// File descriptor for RogueRoomStatus.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueRoomStatusReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSb2d1ZVJvb21TdGF0dXMucHJvdG8qoQEKD1JvZ3VlUm9vbVN0YXR1cxIa", + "ChZST0dVRV9ST09NX1NUQVRVU19OT05FEAASGgoWUk9HVUVfUk9PTV9TVEFU", + "VVNfTE9DSxABEhwKGFJPR1VFX1JPT01fU1RBVFVTX1VOTE9DSxACEhoKFlJP", + "R1VFX1JPT01fU1RBVFVTX1BMQVkQAxIcChhST0dVRV9ST09NX1NUQVRVU19G", + "SU5JU0gQBEIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.RogueRoomStatus), }, null, null)); + } + #endregion + + } + #region Enums + public enum RogueRoomStatus { + [pbr::OriginalName("ROGUE_ROOM_STATUS_NONE")] None = 0, + [pbr::OriginalName("ROGUE_ROOM_STATUS_LOCK")] Lock = 1, + [pbr::OriginalName("ROGUE_ROOM_STATUS_UNLOCK")] Unlock = 2, + [pbr::OriginalName("ROGUE_ROOM_STATUS_PLAY")] Play = 3, + [pbr::OriginalName("ROGUE_ROOM_STATUS_FINISH")] Finish = 4, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueScoreRewardInfo.cs b/Common/Proto/RogueScoreRewardInfo.cs new file mode 100644 index 00000000..a2104458 --- /dev/null +++ b/Common/Proto/RogueScoreRewardInfo.cs @@ -0,0 +1,462 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueScoreRewardInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueScoreRewardInfo.proto + public static partial class RogueScoreRewardInfoReflection { + + #region Descriptor + /// File descriptor for RogueScoreRewardInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueScoreRewardInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpSb2d1ZVNjb3JlUmV3YXJkSW5mby5wcm90byKvAQoUUm9ndWVTY29yZVJl", + "d2FyZEluZm8SEgoKYmVnaW5fdGltZRgGIAEoAxIYChBoYXNfdGFrZW5fcmV3", + "YXJkGAUgAygNEhYKDnBvb2xfcmVmcmVzaGVkGA4gASgIEg0KBXNjb3JlGAcg", + "ASgNEhAKCGVuZF90aW1lGAMgASgDEg8KB3Bvb2xfaWQYCyABKA0SHwoXaGFz", + "X3Rha2VuX2luaXRpYWxfc2NvcmUYDSABKAhCHqoCG0VnZ0xpbmsuRGFuaGVu", + "Z1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo), global::EggLink.DanhengServer.Proto.RogueScoreRewardInfo.Parser, new[]{ "BeginTime", "HasTakenReward", "PoolRefreshed", "Score", "EndTime", "PoolId", "HasTakenInitialScore" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueScoreRewardInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueScoreRewardInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueScoreRewardInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueScoreRewardInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueScoreRewardInfo(RogueScoreRewardInfo other) : this() { + beginTime_ = other.beginTime_; + hasTakenReward_ = other.hasTakenReward_.Clone(); + poolRefreshed_ = other.poolRefreshed_; + score_ = other.score_; + endTime_ = other.endTime_; + poolId_ = other.poolId_; + hasTakenInitialScore_ = other.hasTakenInitialScore_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueScoreRewardInfo Clone() { + return new RogueScoreRewardInfo(this); + } + + /// Field number for the "begin_time" field. + public const int BeginTimeFieldNumber = 6; + private long beginTime_; + /// + /// guess, either this or end_time + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BeginTime { + get { return beginTime_; } + set { + beginTime_ = value; + } + } + + /// Field number for the "has_taken_reward" field. + public const int HasTakenRewardFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_hasTakenReward_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField hasTakenReward_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HasTakenReward { + get { return hasTakenReward_; } + } + + /// Field number for the "pool_refreshed" field. + public const int PoolRefreshedFieldNumber = 14; + private bool poolRefreshed_; + /// + ///guess + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PoolRefreshed { + get { return poolRefreshed_; } + set { + poolRefreshed_ = value; + } + } + + /// Field number for the "score" field. + public const int ScoreFieldNumber = 7; + private uint score_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Score { + get { return score_; } + set { + score_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 3; + private long endTime_; + /// + /// guess, either this or begin_time + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "pool_id" field. + public const int PoolIdFieldNumber = 11; + private uint poolId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PoolId { + get { return poolId_; } + set { + poolId_ = value; + } + } + + /// Field number for the "has_taken_initial_score" field. + public const int HasTakenInitialScoreFieldNumber = 13; + private bool hasTakenInitialScore_; + /// + ///guess + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTakenInitialScore { + get { return hasTakenInitialScore_; } + set { + hasTakenInitialScore_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueScoreRewardInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueScoreRewardInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BeginTime != other.BeginTime) return false; + if(!hasTakenReward_.Equals(other.hasTakenReward_)) return false; + if (PoolRefreshed != other.PoolRefreshed) return false; + if (Score != other.Score) return false; + if (EndTime != other.EndTime) return false; + if (PoolId != other.PoolId) return false; + if (HasTakenInitialScore != other.HasTakenInitialScore) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BeginTime != 0L) hash ^= BeginTime.GetHashCode(); + hash ^= hasTakenReward_.GetHashCode(); + if (PoolRefreshed != false) hash ^= PoolRefreshed.GetHashCode(); + if (Score != 0) hash ^= Score.GetHashCode(); + if (EndTime != 0L) hash ^= EndTime.GetHashCode(); + if (PoolId != 0) hash ^= PoolId.GetHashCode(); + if (HasTakenInitialScore != false) hash ^= HasTakenInitialScore.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EndTime != 0L) { + output.WriteRawTag(24); + output.WriteInt64(EndTime); + } + hasTakenReward_.WriteTo(output, _repeated_hasTakenReward_codec); + if (BeginTime != 0L) { + output.WriteRawTag(48); + output.WriteInt64(BeginTime); + } + if (Score != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Score); + } + if (PoolId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(PoolId); + } + if (HasTakenInitialScore != false) { + output.WriteRawTag(104); + output.WriteBool(HasTakenInitialScore); + } + if (PoolRefreshed != false) { + output.WriteRawTag(112); + output.WriteBool(PoolRefreshed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EndTime != 0L) { + output.WriteRawTag(24); + output.WriteInt64(EndTime); + } + hasTakenReward_.WriteTo(ref output, _repeated_hasTakenReward_codec); + if (BeginTime != 0L) { + output.WriteRawTag(48); + output.WriteInt64(BeginTime); + } + if (Score != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Score); + } + if (PoolId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(PoolId); + } + if (HasTakenInitialScore != false) { + output.WriteRawTag(104); + output.WriteBool(HasTakenInitialScore); + } + if (PoolRefreshed != false) { + output.WriteRawTag(112); + output.WriteBool(PoolRefreshed); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BeginTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime); + } + size += hasTakenReward_.CalculateSize(_repeated_hasTakenReward_codec); + if (PoolRefreshed != false) { + size += 1 + 1; + } + if (Score != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Score); + } + if (EndTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime); + } + if (PoolId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PoolId); + } + if (HasTakenInitialScore != 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(RogueScoreRewardInfo other) { + if (other == null) { + return; + } + if (other.BeginTime != 0L) { + BeginTime = other.BeginTime; + } + hasTakenReward_.Add(other.hasTakenReward_); + if (other.PoolRefreshed != false) { + PoolRefreshed = other.PoolRefreshed; + } + if (other.Score != 0) { + Score = other.Score; + } + if (other.EndTime != 0L) { + EndTime = other.EndTime; + } + if (other.PoolId != 0) { + PoolId = other.PoolId; + } + if (other.HasTakenInitialScore != false) { + HasTakenInitialScore = other.HasTakenInitialScore; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + EndTime = input.ReadInt64(); + break; + } + case 42: + case 40: { + hasTakenReward_.AddEntriesFrom(input, _repeated_hasTakenReward_codec); + break; + } + case 48: { + BeginTime = input.ReadInt64(); + break; + } + case 56: { + Score = input.ReadUInt32(); + break; + } + case 88: { + PoolId = input.ReadUInt32(); + break; + } + case 104: { + HasTakenInitialScore = input.ReadBool(); + break; + } + case 112: { + PoolRefreshed = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + EndTime = input.ReadInt64(); + break; + } + case 42: + case 40: { + hasTakenReward_.AddEntriesFrom(ref input, _repeated_hasTakenReward_codec); + break; + } + case 48: { + BeginTime = input.ReadInt64(); + break; + } + case 56: { + Score = input.ReadUInt32(); + break; + } + case 88: { + PoolId = input.ReadUInt32(); + break; + } + case 104: { + HasTakenInitialScore = input.ReadBool(); + break; + } + case 112: { + PoolRefreshed = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueSeasonInfo.cs b/Common/Proto/RogueSeasonInfo.cs new file mode 100644 index 00000000..8999179b --- /dev/null +++ b/Common/Proto/RogueSeasonInfo.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueSeasonInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueSeasonInfo.proto + public static partial class RogueSeasonInfoReflection { + + #region Descriptor + /// File descriptor for RogueSeasonInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueSeasonInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSb2d1ZVNlYXNvbkluZm8ucHJvdG8iSgoPUm9ndWVTZWFzb25JbmZvEhIK", + "CmJlZ2luX3RpbWUYBiABKAMSEAoIZW5kX3RpbWUYCiABKAMSEQoJc2Vhc29u", + "X2lkGAsgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueSeasonInfo), global::EggLink.DanhengServer.Proto.RogueSeasonInfo.Parser, new[]{ "BeginTime", "EndTime", "SeasonId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueSeasonInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueSeasonInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueSeasonInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueSeasonInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueSeasonInfo(RogueSeasonInfo other) : this() { + beginTime_ = other.beginTime_; + endTime_ = other.endTime_; + seasonId_ = other.seasonId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueSeasonInfo Clone() { + return new RogueSeasonInfo(this); + } + + /// Field number for the "begin_time" field. + public const int BeginTimeFieldNumber = 6; + private long beginTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BeginTime { + get { return beginTime_; } + set { + beginTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 10; + private long endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "season_id" field. + public const int SeasonIdFieldNumber = 11; + private uint seasonId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SeasonId { + get { return seasonId_; } + set { + seasonId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueSeasonInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueSeasonInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BeginTime != other.BeginTime) return false; + if (EndTime != other.EndTime) return false; + if (SeasonId != other.SeasonId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BeginTime != 0L) hash ^= BeginTime.GetHashCode(); + if (EndTime != 0L) hash ^= EndTime.GetHashCode(); + if (SeasonId != 0) hash ^= SeasonId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BeginTime != 0L) { + output.WriteRawTag(48); + output.WriteInt64(BeginTime); + } + if (EndTime != 0L) { + output.WriteRawTag(80); + output.WriteInt64(EndTime); + } + if (SeasonId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(SeasonId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BeginTime != 0L) { + output.WriteRawTag(48); + output.WriteInt64(BeginTime); + } + if (EndTime != 0L) { + output.WriteRawTag(80); + output.WriteInt64(EndTime); + } + if (SeasonId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(SeasonId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BeginTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime); + } + if (EndTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime); + } + if (SeasonId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SeasonId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueSeasonInfo other) { + if (other == null) { + return; + } + if (other.BeginTime != 0L) { + BeginTime = other.BeginTime; + } + if (other.EndTime != 0L) { + EndTime = other.EndTime; + } + if (other.SeasonId != 0) { + SeasonId = other.SeasonId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 48: { + BeginTime = input.ReadInt64(); + break; + } + case 80: { + EndTime = input.ReadInt64(); + break; + } + case 88: { + SeasonId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 48: { + BeginTime = input.ReadInt64(); + break; + } + case 80: { + EndTime = input.ReadInt64(); + break; + } + case 88: { + SeasonId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueStatus.cs b/Common/Proto/RogueStatus.cs new file mode 100644 index 00000000..54f81823 --- /dev/null +++ b/Common/Proto/RogueStatus.cs @@ -0,0 +1,52 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueStatus.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueStatus.proto + public static partial class RogueStatusReflection { + + #region Descriptor + /// File descriptor for RogueStatus.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueStatusReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFSb2d1ZVN0YXR1cy5wcm90byqJAQoLUm9ndWVTdGF0dXMSFQoRUk9HVUVf", + "U1RBVFVTX05PTkUQABIWChJST0dVRV9TVEFUVVNfRE9JTkcQARIYChRST0dV", + "RV9TVEFUVVNfUEVORElORxACEhgKFFJPR1VFX1NUQVRVU19FTkRMRVNTEAMS", + "FwoTUk9HVUVfU1RBVFVTX0ZJTklTSBAEQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.RogueStatus), }, null, null)); + } + #endregion + + } + #region Enums + public enum RogueStatus { + [pbr::OriginalName("ROGUE_STATUS_NONE")] None = 0, + [pbr::OriginalName("ROGUE_STATUS_DOING")] Doing = 1, + [pbr::OriginalName("ROGUE_STATUS_PENDING")] Pending = 2, + [pbr::OriginalName("ROGUE_STATUS_ENDLESS")] Endless = 3, + [pbr::OriginalName("ROGUE_STATUS_FINISH")] Finish = 4, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueSyncContextBoardEvent.cs b/Common/Proto/RogueSyncContextBoardEvent.cs new file mode 100644 index 00000000..7f837e2b --- /dev/null +++ b/Common/Proto/RogueSyncContextBoardEvent.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueSyncContextBoardEvent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueSyncContextBoardEvent.proto + public static partial class RogueSyncContextBoardEventReflection { + + #region Descriptor + /// File descriptor for RogueSyncContextBoardEvent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueSyncContextBoardEventReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBSb2d1ZVN5bmNDb250ZXh0Qm9hcmRFdmVudC5wcm90byJSChpSb2d1ZVN5", + "bmNDb250ZXh0Qm9hcmRFdmVudBIWCg5ib2FyZF9ldmVudF9pZBgBIAEoDRIc", + "ChRtb2RpZmllcl9lZmZlY3RfdHlwZRgGIAEoDUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueSyncContextBoardEvent), global::EggLink.DanhengServer.Proto.RogueSyncContextBoardEvent.Parser, new[]{ "BoardEventId", "ModifierEffectType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueSyncContextBoardEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueSyncContextBoardEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueSyncContextBoardEventReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueSyncContextBoardEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueSyncContextBoardEvent(RogueSyncContextBoardEvent other) : this() { + boardEventId_ = other.boardEventId_; + modifierEffectType_ = other.modifierEffectType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueSyncContextBoardEvent Clone() { + return new RogueSyncContextBoardEvent(this); + } + + /// Field number for the "board_event_id" field. + public const int BoardEventIdFieldNumber = 1; + private uint boardEventId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BoardEventId { + get { return boardEventId_; } + set { + boardEventId_ = value; + } + } + + /// Field number for the "modifier_effect_type" field. + public const int ModifierEffectTypeFieldNumber = 6; + private uint modifierEffectType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ModifierEffectType { + get { return modifierEffectType_; } + set { + modifierEffectType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueSyncContextBoardEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueSyncContextBoardEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BoardEventId != other.BoardEventId) return false; + if (ModifierEffectType != other.ModifierEffectType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BoardEventId != 0) hash ^= BoardEventId.GetHashCode(); + if (ModifierEffectType != 0) hash ^= ModifierEffectType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BoardEventId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(BoardEventId); + } + if (ModifierEffectType != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ModifierEffectType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BoardEventId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(BoardEventId); + } + if (ModifierEffectType != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ModifierEffectType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BoardEventId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BoardEventId); + } + if (ModifierEffectType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ModifierEffectType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueSyncContextBoardEvent other) { + if (other == null) { + return; + } + if (other.BoardEventId != 0) { + BoardEventId = other.BoardEventId; + } + if (other.ModifierEffectType != 0) { + ModifierEffectType = other.ModifierEffectType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BoardEventId = input.ReadUInt32(); + break; + } + case 48: { + ModifierEffectType = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BoardEventId = input.ReadUInt32(); + break; + } + case 48: { + ModifierEffectType = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueTalent.cs b/Common/Proto/RogueTalent.cs new file mode 100644 index 00000000..0c1785a4 --- /dev/null +++ b/Common/Proto/RogueTalent.cs @@ -0,0 +1,300 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueTalent.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueTalent.proto + public static partial class RogueTalentReflection { + + #region Descriptor + /// File descriptor for RogueTalent.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueTalentReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFSb2d1ZVRhbGVudC5wcm90bxoXUm9ndWVUYWxlbnRTdGF0dXMucHJvdG8a", + "GVJvZ3VlVW5sb2NrUHJvZ3Jlc3MucHJvdG8ieAoLUm9ndWVUYWxlbnQSIgoG", + "c3RhdHVzGAMgASgOMhIuUm9ndWVUYWxlbnRTdGF0dXMSMgoUdW5sb2NrX3By", + "b2dyZXNzX2xpc3QYByADKAsyFC5Sb2d1ZVVubG9ja1Byb2dyZXNzEhEKCXRh", + "bGVudF9pZBgBIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueTalentStatusReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueUnlockProgressReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueTalent), global::EggLink.DanhengServer.Proto.RogueTalent.Parser, new[]{ "Status", "UnlockProgressList", "TalentId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueTalent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueTalent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueTalentReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueTalent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueTalent(RogueTalent other) : this() { + status_ = other.status_; + unlockProgressList_ = other.unlockProgressList_.Clone(); + talentId_ = other.talentId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueTalent Clone() { + return new RogueTalent(this); + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.RogueTalentStatus status_ = global::EggLink.DanhengServer.Proto.RogueTalentStatus.Lock; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueTalentStatus Status { + get { return status_; } + set { + status_ = value; + } + } + + /// Field number for the "unlock_progress_list" field. + public const int UnlockProgressListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_unlockProgressList_codec + = pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.RogueUnlockProgress.Parser); + private readonly pbc::RepeatedField unlockProgressList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnlockProgressList { + get { return unlockProgressList_; } + } + + /// Field number for the "talent_id" field. + public const int TalentIdFieldNumber = 1; + private uint talentId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TalentId { + get { return talentId_; } + set { + talentId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueTalent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueTalent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Status != other.Status) return false; + if(!unlockProgressList_.Equals(other.unlockProgressList_)) return false; + if (TalentId != 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 (Status != global::EggLink.DanhengServer.Proto.RogueTalentStatus.Lock) hash ^= Status.GetHashCode(); + hash ^= unlockProgressList_.GetHashCode(); + if (TalentId != 0) 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 (TalentId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TalentId); + } + if (Status != global::EggLink.DanhengServer.Proto.RogueTalentStatus.Lock) { + output.WriteRawTag(24); + output.WriteEnum((int) Status); + } + unlockProgressList_.WriteTo(output, _repeated_unlockProgressList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TalentId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TalentId); + } + if (Status != global::EggLink.DanhengServer.Proto.RogueTalentStatus.Lock) { + output.WriteRawTag(24); + output.WriteEnum((int) Status); + } + unlockProgressList_.WriteTo(ref output, _repeated_unlockProgressList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Status != global::EggLink.DanhengServer.Proto.RogueTalentStatus.Lock) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); + } + size += unlockProgressList_.CalculateSize(_repeated_unlockProgressList_codec); + if (TalentId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TalentId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueTalent other) { + if (other == null) { + return; + } + if (other.Status != global::EggLink.DanhengServer.Proto.RogueTalentStatus.Lock) { + Status = other.Status; + } + unlockProgressList_.Add(other.unlockProgressList_); + if (other.TalentId != 0) { + TalentId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + TalentId = input.ReadUInt32(); + break; + } + case 24: { + Status = (global::EggLink.DanhengServer.Proto.RogueTalentStatus) input.ReadEnum(); + break; + } + case 58: { + unlockProgressList_.AddEntriesFrom(input, _repeated_unlockProgressList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + TalentId = input.ReadUInt32(); + break; + } + case 24: { + Status = (global::EggLink.DanhengServer.Proto.RogueTalentStatus) input.ReadEnum(); + break; + } + case 58: { + unlockProgressList_.AddEntriesFrom(ref input, _repeated_unlockProgressList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueTalentInfo.cs b/Common/Proto/RogueTalentInfo.cs new file mode 100644 index 00000000..f8b6ad6f --- /dev/null +++ b/Common/Proto/RogueTalentInfo.cs @@ -0,0 +1,224 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueTalentInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueTalentInfo.proto + public static partial class RogueTalentInfoReflection { + + #region Descriptor + /// File descriptor for RogueTalentInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueTalentInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVSb2d1ZVRhbGVudEluZm8ucHJvdG8aEVJvZ3VlVGFsZW50LnByb3RvIjUK", + "D1JvZ3VlVGFsZW50SW5mbxIiCgxyb2d1ZV90YWxlbnQYAyADKAsyDC5Sb2d1", + "ZVRhbGVudEIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueTalentReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueTalentInfo), global::EggLink.DanhengServer.Proto.RogueTalentInfo.Parser, new[]{ "RogueTalent" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueTalentInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueTalentInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueTalentInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueTalentInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueTalentInfo(RogueTalentInfo other) : this() { + rogueTalent_ = other.rogueTalent_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueTalentInfo Clone() { + return new RogueTalentInfo(this); + } + + /// Field number for the "rogue_talent" field. + public const int RogueTalentFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_rogueTalent_codec + = pb::FieldCodec.ForMessage(26, global::EggLink.DanhengServer.Proto.RogueTalent.Parser); + private readonly pbc::RepeatedField rogueTalent_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RogueTalent { + get { return rogueTalent_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueTalentInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueTalentInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rogueTalent_.Equals(other.rogueTalent_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= rogueTalent_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + rogueTalent_.WriteTo(output, _repeated_rogueTalent_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + rogueTalent_.WriteTo(ref output, _repeated_rogueTalent_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += rogueTalent_.CalculateSize(_repeated_rogueTalent_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueTalentInfo other) { + if (other == null) { + return; + } + rogueTalent_.Add(other.rogueTalent_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + rogueTalent_.AddEntriesFrom(input, _repeated_rogueTalent_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + rogueTalent_.AddEntriesFrom(ref input, _repeated_rogueTalent_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueTalentStatus.cs b/Common/Proto/RogueTalentStatus.cs new file mode 100644 index 00000000..f8600fca --- /dev/null +++ b/Common/Proto/RogueTalentStatus.cs @@ -0,0 +1,49 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueTalentStatus.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueTalentStatus.proto + public static partial class RogueTalentStatusReflection { + + #region Descriptor + /// File descriptor for RogueTalentStatus.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueTalentStatusReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdSb2d1ZVRhbGVudFN0YXR1cy5wcm90bypxChFSb2d1ZVRhbGVudFN0YXR1", + "cxIcChhST0dVRV9UQUxFTlRfU1RBVFVTX0xPQ0sQABIeChpST0dVRV9UQUxF", + "TlRfU1RBVFVTX1VOTE9DSxABEh4KGlJPR1VFX1RBTEVOVF9TVEFUVVNfRU5B", + "QkxFEAJCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.RogueTalentStatus), }, null, null)); + } + #endregion + + } + #region Enums + public enum RogueTalentStatus { + [pbr::OriginalName("ROGUE_TALENT_STATUS_LOCK")] Lock = 0, + [pbr::OriginalName("ROGUE_TALENT_STATUS_UNLOCK")] Unlock = 1, + [pbr::OriginalName("ROGUE_TALENT_STATUS_ENABLE")] Enable = 2, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueUnlockProgress.cs b/Common/Proto/RogueUnlockProgress.cs new file mode 100644 index 00000000..5ada5048 --- /dev/null +++ b/Common/Proto/RogueUnlockProgress.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueUnlockProgress.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueUnlockProgress.proto + public static partial class RogueUnlockProgressReflection { + + #region Descriptor + /// File descriptor for RogueUnlockProgress.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueUnlockProgressReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlSb2d1ZVVubG9ja1Byb2dyZXNzLnByb3RvIkoKE1JvZ3VlVW5sb2NrUHJv", + "Z3Jlc3MSDgoGZmluaXNoGAwgASgIEhAKCHByb2dyZXNzGAkgASgNEhEKCXVu", + "bG9ja19pZBgIIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueUnlockProgress), global::EggLink.DanhengServer.Proto.RogueUnlockProgress.Parser, new[]{ "Finish", "Progress", "UnlockId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueUnlockProgress : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueUnlockProgress()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueUnlockProgressReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueUnlockProgress() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueUnlockProgress(RogueUnlockProgress other) : this() { + finish_ = other.finish_; + progress_ = other.progress_; + unlockId_ = other.unlockId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueUnlockProgress Clone() { + return new RogueUnlockProgress(this); + } + + /// Field number for the "finish" field. + public const int FinishFieldNumber = 12; + private bool finish_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Finish { + get { return finish_; } + set { + finish_ = value; + } + } + + /// Field number for the "progress" field. + public const int ProgressFieldNumber = 9; + private uint progress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Progress { + get { return progress_; } + set { + progress_ = value; + } + } + + /// Field number for the "unlock_id" field. + public const int UnlockIdFieldNumber = 8; + private uint unlockId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UnlockId { + get { return unlockId_; } + set { + unlockId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueUnlockProgress); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueUnlockProgress other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Finish != other.Finish) return false; + if (Progress != other.Progress) return false; + if (UnlockId != other.UnlockId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Finish != false) hash ^= Finish.GetHashCode(); + if (Progress != 0) hash ^= Progress.GetHashCode(); + if (UnlockId != 0) hash ^= UnlockId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (UnlockId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(UnlockId); + } + if (Progress != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Progress); + } + if (Finish != false) { + output.WriteRawTag(96); + output.WriteBool(Finish); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (UnlockId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(UnlockId); + } + if (Progress != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Progress); + } + if (Finish != false) { + output.WriteRawTag(96); + output.WriteBool(Finish); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Finish != false) { + size += 1 + 1; + } + if (Progress != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Progress); + } + if (UnlockId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UnlockId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueUnlockProgress other) { + if (other == null) { + return; + } + if (other.Finish != false) { + Finish = other.Finish; + } + if (other.Progress != 0) { + Progress = other.Progress; + } + if (other.UnlockId != 0) { + UnlockId = other.UnlockId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + UnlockId = input.ReadUInt32(); + break; + } + case 72: { + Progress = input.ReadUInt32(); + break; + } + case 96: { + Finish = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + UnlockId = input.ReadUInt32(); + break; + } + case 72: { + Progress = input.ReadUInt32(); + break; + } + case 96: { + Finish = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueUpdate.cs b/Common/Proto/RogueUpdate.cs new file mode 100644 index 00000000..939589b5 --- /dev/null +++ b/Common/Proto/RogueUpdate.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueUpdate.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueUpdate.proto + public static partial class RogueUpdateReflection { + + #region Descriptor + /// File descriptor for RogueUpdate.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueUpdateReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFSb2d1ZVVwZGF0ZS5wcm90byJdCgtSb2d1ZVVwZGF0ZRIVCg1yb2d1ZV90", + "eXBlX2lkGAwgASgNEhoKEmxhc3Rfcm9ndWVfdHlwZV9pZBgIIAEoDRIbChNs", + "YXN0X2NvbW1vbl9hcmVhX2lkGAcgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueUpdate), global::EggLink.DanhengServer.Proto.RogueUpdate.Parser, new[]{ "RogueTypeId", "LastRogueTypeId", "LastCommonAreaId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueUpdate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueUpdate()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueUpdateReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueUpdate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueUpdate(RogueUpdate other) : this() { + rogueTypeId_ = other.rogueTypeId_; + lastRogueTypeId_ = other.lastRogueTypeId_; + lastCommonAreaId_ = other.lastCommonAreaId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueUpdate Clone() { + return new RogueUpdate(this); + } + + /// Field number for the "rogue_type_id" field. + public const int RogueTypeIdFieldNumber = 12; + private uint rogueTypeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RogueTypeId { + get { return rogueTypeId_; } + set { + rogueTypeId_ = value; + } + } + + /// Field number for the "last_rogue_type_id" field. + public const int LastRogueTypeIdFieldNumber = 8; + private uint lastRogueTypeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint LastRogueTypeId { + get { return lastRogueTypeId_; } + set { + lastRogueTypeId_ = value; + } + } + + /// Field number for the "last_common_area_id" field. + public const int LastCommonAreaIdFieldNumber = 7; + private uint lastCommonAreaId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint LastCommonAreaId { + get { return lastCommonAreaId_; } + set { + lastCommonAreaId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueUpdate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueUpdate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RogueTypeId != other.RogueTypeId) return false; + if (LastRogueTypeId != other.LastRogueTypeId) return false; + if (LastCommonAreaId != other.LastCommonAreaId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RogueTypeId != 0) hash ^= RogueTypeId.GetHashCode(); + if (LastRogueTypeId != 0) hash ^= LastRogueTypeId.GetHashCode(); + if (LastCommonAreaId != 0) hash ^= LastCommonAreaId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (LastCommonAreaId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(LastCommonAreaId); + } + if (LastRogueTypeId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(LastRogueTypeId); + } + if (RogueTypeId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RogueTypeId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (LastCommonAreaId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(LastCommonAreaId); + } + if (LastRogueTypeId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(LastRogueTypeId); + } + if (RogueTypeId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(RogueTypeId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RogueTypeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RogueTypeId); + } + if (LastRogueTypeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LastRogueTypeId); + } + if (LastCommonAreaId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LastCommonAreaId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueUpdate other) { + if (other == null) { + return; + } + if (other.RogueTypeId != 0) { + RogueTypeId = other.RogueTypeId; + } + if (other.LastRogueTypeId != 0) { + LastRogueTypeId = other.LastRogueTypeId; + } + if (other.LastCommonAreaId != 0) { + LastCommonAreaId = other.LastCommonAreaId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 56: { + LastCommonAreaId = input.ReadUInt32(); + break; + } + case 64: { + LastRogueTypeId = input.ReadUInt32(); + break; + } + case 96: { + RogueTypeId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 56: { + LastCommonAreaId = input.ReadUInt32(); + break; + } + case 64: { + LastRogueTypeId = input.ReadUInt32(); + break; + } + case 96: { + RogueTypeId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueVirtualItem.cs b/Common/Proto/RogueVirtualItem.cs new file mode 100644 index 00000000..b2bf811a --- /dev/null +++ b/Common/Proto/RogueVirtualItem.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueVirtualItem.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueVirtualItem.proto + public static partial class RogueVirtualItemReflection { + + #region Descriptor + /// File descriptor for RogueVirtualItem.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueVirtualItemReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZSb2d1ZVZpcnR1YWxJdGVtLnByb3RvImAKEFJvZ3VlVmlydHVhbEl0ZW0S", + "EwoLQUNKS0FOTElHQk0YCiABKA0SDQoFbW9uZXkYDyABKA0SEwoLRERPUEhJ", + "Sk1JTEwYCSABKA0SEwoLTUZPUFBLSUJHTkoYCCABKA1CHqoCG0VnZ0xpbmsu", + "RGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueVirtualItem), global::EggLink.DanhengServer.Proto.RogueVirtualItem.Parser, new[]{ "ACJKANLIGBM", "Money", "DDOPHIJMILL", "MFOPPKIBGNJ" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueVirtualItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueVirtualItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueVirtualItemReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueVirtualItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueVirtualItem(RogueVirtualItem other) : this() { + aCJKANLIGBM_ = other.aCJKANLIGBM_; + money_ = other.money_; + dDOPHIJMILL_ = other.dDOPHIJMILL_; + mFOPPKIBGNJ_ = other.mFOPPKIBGNJ_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueVirtualItem Clone() { + return new RogueVirtualItem(this); + } + + /// Field number for the "ACJKANLIGBM" field. + public const int ACJKANLIGBMFieldNumber = 10; + private uint aCJKANLIGBM_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ACJKANLIGBM { + get { return aCJKANLIGBM_; } + set { + aCJKANLIGBM_ = value; + } + } + + /// Field number for the "money" field. + public const int MoneyFieldNumber = 15; + private uint money_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Money { + get { return money_; } + set { + money_ = value; + } + } + + /// Field number for the "DDOPHIJMILL" field. + public const int DDOPHIJMILLFieldNumber = 9; + private uint dDOPHIJMILL_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DDOPHIJMILL { + get { return dDOPHIJMILL_; } + set { + dDOPHIJMILL_ = value; + } + } + + /// Field number for the "MFOPPKIBGNJ" field. + public const int MFOPPKIBGNJFieldNumber = 8; + private uint mFOPPKIBGNJ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MFOPPKIBGNJ { + get { return mFOPPKIBGNJ_; } + set { + mFOPPKIBGNJ_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueVirtualItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueVirtualItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ACJKANLIGBM != other.ACJKANLIGBM) return false; + if (Money != other.Money) return false; + if (DDOPHIJMILL != other.DDOPHIJMILL) return false; + if (MFOPPKIBGNJ != other.MFOPPKIBGNJ) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ACJKANLIGBM != 0) hash ^= ACJKANLIGBM.GetHashCode(); + if (Money != 0) hash ^= Money.GetHashCode(); + if (DDOPHIJMILL != 0) hash ^= DDOPHIJMILL.GetHashCode(); + if (MFOPPKIBGNJ != 0) hash ^= MFOPPKIBGNJ.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MFOPPKIBGNJ != 0) { + output.WriteRawTag(64); + output.WriteUInt32(MFOPPKIBGNJ); + } + if (DDOPHIJMILL != 0) { + output.WriteRawTag(72); + output.WriteUInt32(DDOPHIJMILL); + } + if (ACJKANLIGBM != 0) { + output.WriteRawTag(80); + output.WriteUInt32(ACJKANLIGBM); + } + if (Money != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Money); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MFOPPKIBGNJ != 0) { + output.WriteRawTag(64); + output.WriteUInt32(MFOPPKIBGNJ); + } + if (DDOPHIJMILL != 0) { + output.WriteRawTag(72); + output.WriteUInt32(DDOPHIJMILL); + } + if (ACJKANLIGBM != 0) { + output.WriteRawTag(80); + output.WriteUInt32(ACJKANLIGBM); + } + if (Money != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Money); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ACJKANLIGBM != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ACJKANLIGBM); + } + if (Money != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Money); + } + if (DDOPHIJMILL != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DDOPHIJMILL); + } + if (MFOPPKIBGNJ != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MFOPPKIBGNJ); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueVirtualItem other) { + if (other == null) { + return; + } + if (other.ACJKANLIGBM != 0) { + ACJKANLIGBM = other.ACJKANLIGBM; + } + if (other.Money != 0) { + Money = other.Money; + } + if (other.DDOPHIJMILL != 0) { + DDOPHIJMILL = other.DDOPHIJMILL; + } + if (other.MFOPPKIBGNJ != 0) { + MFOPPKIBGNJ = other.MFOPPKIBGNJ; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + MFOPPKIBGNJ = input.ReadUInt32(); + break; + } + case 72: { + DDOPHIJMILL = input.ReadUInt32(); + break; + } + case 80: { + ACJKANLIGBM = input.ReadUInt32(); + break; + } + case 120: { + Money = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + MFOPPKIBGNJ = input.ReadUInt32(); + break; + } + case 72: { + DDOPHIJMILL = input.ReadUInt32(); + break; + } + case 80: { + ACJKANLIGBM = input.ReadUInt32(); + break; + } + case 120: { + Money = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueVirtualItemData.cs b/Common/Proto/RogueVirtualItemData.cs new file mode 100644 index 00000000..5257c345 --- /dev/null +++ b/Common/Proto/RogueVirtualItemData.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueVirtualItemData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueVirtualItemData.proto + public static partial class RogueVirtualItemDataReflection { + + #region Descriptor + /// File descriptor for RogueVirtualItemData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueVirtualItemDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpSb2d1ZVZpcnR1YWxJdGVtRGF0YS5wcm90byI4ChRSb2d1ZVZpcnR1YWxJ", + "dGVtRGF0YRILCgNudW0YBSABKA0SEwoLTURCUERQRERIQkMYBiABKA1CHqoC", + "G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueVirtualItemData), global::EggLink.DanhengServer.Proto.RogueVirtualItemData.Parser, new[]{ "Num", "MDBPDPDDHBC" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueVirtualItemData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueVirtualItemData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueVirtualItemDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueVirtualItemData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueVirtualItemData(RogueVirtualItemData other) : this() { + num_ = other.num_; + mDBPDPDDHBC_ = other.mDBPDPDDHBC_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueVirtualItemData Clone() { + return new RogueVirtualItemData(this); + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 5; + private uint num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Num { + get { return num_; } + set { + num_ = value; + } + } + + /// Field number for the "MDBPDPDDHBC" field. + public const int MDBPDPDDHBCFieldNumber = 6; + private uint mDBPDPDDHBC_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MDBPDPDDHBC { + get { return mDBPDPDDHBC_; } + set { + mDBPDPDDHBC_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueVirtualItemData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueVirtualItemData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Num != other.Num) return false; + if (MDBPDPDDHBC != other.MDBPDPDDHBC) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Num != 0) hash ^= Num.GetHashCode(); + if (MDBPDPDDHBC != 0) hash ^= MDBPDPDDHBC.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Num != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Num); + } + if (MDBPDPDDHBC != 0) { + output.WriteRawTag(48); + output.WriteUInt32(MDBPDPDDHBC); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Num != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Num); + } + if (MDBPDPDDHBC != 0) { + output.WriteRawTag(48); + output.WriteUInt32(MDBPDPDDHBC); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Num != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Num); + } + if (MDBPDPDDHBC != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MDBPDPDDHBC); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueVirtualItemData other) { + if (other == null) { + return; + } + if (other.Num != 0) { + Num = other.Num; + } + if (other.MDBPDPDDHBC != 0) { + MDBPDPDDHBC = other.MDBPDPDDHBC; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + Num = input.ReadUInt32(); + break; + } + case 48: { + MDBPDPDDHBC = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + Num = input.ReadUInt32(); + break; + } + case 48: { + MDBPDPDDHBC = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RogueVirtualItemInfo.cs b/Common/Proto/RogueVirtualItemInfo.cs new file mode 100644 index 00000000..792a6848 --- /dev/null +++ b/Common/Proto/RogueVirtualItemInfo.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RogueVirtualItemInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RogueVirtualItemInfo.proto + public static partial class RogueVirtualItemInfoReflection { + + #region Descriptor + /// File descriptor for RogueVirtualItemInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RogueVirtualItemInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpSb2d1ZVZpcnR1YWxJdGVtSW5mby5wcm90byIwChRSb2d1ZVZpcnR1YWxJ", + "dGVtSW5mbxINCgVtb25leRgBIAEoDRIJCgFYGAQgASgNQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueVirtualItemInfo), global::EggLink.DanhengServer.Proto.RogueVirtualItemInfo.Parser, new[]{ "Money", "X" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RogueVirtualItemInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RogueVirtualItemInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RogueVirtualItemInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueVirtualItemInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueVirtualItemInfo(RogueVirtualItemInfo other) : this() { + money_ = other.money_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RogueVirtualItemInfo Clone() { + return new RogueVirtualItemInfo(this); + } + + /// Field number for the "money" field. + public const int MoneyFieldNumber = 1; + private uint money_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Money { + get { return money_; } + set { + money_ = value; + } + } + + /// Field number for the "X" field. + public const int XFieldNumber = 4; + private uint x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint X { + get { return x_; } + set { + x_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RogueVirtualItemInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RogueVirtualItemInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Money != other.Money) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Money != 0) hash ^= Money.GetHashCode(); + if (X != 0) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Money != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Money); + } + if (X != 0) { + output.WriteRawTag(32); + output.WriteUInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Money != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Money); + } + if (X != 0) { + output.WriteRawTag(32); + output.WriteUInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Money != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Money); + } + if (X != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RogueVirtualItemInfo other) { + if (other == null) { + return; + } + if (other.Money != 0) { + Money = other.Money; + } + if (other.X != 0) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Money = input.ReadUInt32(); + break; + } + case 32: { + X = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Money = input.ReadUInt32(); + break; + } + case 32: { + X = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RollRogueBuffScRsp.cs b/Common/Proto/RollRogueBuffScRsp.cs new file mode 100644 index 00000000..e599e865 --- /dev/null +++ b/Common/Proto/RollRogueBuffScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RollRogueBuffScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RollRogueBuffScRsp.proto + public static partial class RollRogueBuffScRspReflection { + + #region Descriptor + /// File descriptor for RollRogueBuffScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RollRogueBuffScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhSb2xsUm9ndWVCdWZmU2NSc3AucHJvdG8aGVJvZ3VlQnVmZlNlbGVjdElu", + "Zm8ucHJvdG8iVQoSUm9sbFJvZ3VlQnVmZlNjUnNwEg8KB3JldGNvZGUYASAB", + "KA0SLgoQYnVmZl9zZWxlY3RfaW5mbxgFIAEoCzIULlJvZ3VlQnVmZlNlbGVj", + "dEluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueBuffSelectInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RollRogueBuffScRsp), global::EggLink.DanhengServer.Proto.RollRogueBuffScRsp.Parser, new[]{ "Retcode", "BuffSelectInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RollRogueBuffScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RollRogueBuffScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RollRogueBuffScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RollRogueBuffScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RollRogueBuffScRsp(RollRogueBuffScRsp other) : this() { + retcode_ = other.retcode_; + buffSelectInfo_ = other.buffSelectInfo_ != null ? other.buffSelectInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RollRogueBuffScRsp Clone() { + return new RollRogueBuffScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "buff_select_info" field. + public const int BuffSelectInfoFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo buffSelectInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo BuffSelectInfo { + get { return buffSelectInfo_; } + set { + buffSelectInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RollRogueBuffScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RollRogueBuffScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(BuffSelectInfo, other.BuffSelectInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (buffSelectInfo_ != null) hash ^= BuffSelectInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (buffSelectInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(BuffSelectInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (buffSelectInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(BuffSelectInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (buffSelectInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BuffSelectInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RollRogueBuffScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.buffSelectInfo_ != null) { + if (buffSelectInfo_ == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo(); + } + BuffSelectInfo.MergeFrom(other.BuffSelectInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 42: { + if (buffSelectInfo_ == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo(); + } + input.ReadMessage(BuffSelectInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 42: { + if (buffSelectInfo_ == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo(); + } + input.ReadMessage(BuffSelectInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RotateMapCsReq.cs b/Common/Proto/RotateMapCsReq.cs new file mode 100644 index 00000000..1b588e1d --- /dev/null +++ b/Common/Proto/RotateMapCsReq.cs @@ -0,0 +1,924 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RotateMapCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RotateMapCsReq.proto + public static partial class RotateMapCsReqReflection { + + #region Descriptor + /// File descriptor for RotateMapCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RotateMapCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRSb3RhdGVNYXBDc1JlcS5wcm90bxoQTW90aW9uSW5mby5wcm90bxoMVmVj", + "dG9yLnByb3RvIqQCCg5Sb3RhdGVNYXBDc1JlcRIPCgd1bmtfaW50GAggASgN", + "EhsKBm1vdGlvbhgCIAEoCzILLk1vdGlvbkluZm8SLgoJcm9ndWVfbWFwGAkg", + "ASgLMhsuUm90YXRlTWFwQ3NSZXEuTEhCTEdCUEtFQUwSEAoIZ3JvdXBfaWQY", + "CyABKA0aQwoLSUNPRkJCQ01FTkYSCQoBeBgPIAEoAhITCgtGQUFGS0lBRU5F", + "TxgCIAEoAhIJCgF6GAQgASgCEgkKAXkYAyABKAIaXQoLTEhCTEdCUEtFQUwS", + "HAoLSUVOTEpBRklCT0wYDyABKAsyBy5WZWN0b3ISMAoLSkJDQUJPQUJJREkY", + "CSABKAsyGy5Sb3RhdGVNYXBDc1JlcS5JQ09GQkJDTUVORkIeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MotionInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.VectorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RotateMapCsReq), global::EggLink.DanhengServer.Proto.RotateMapCsReq.Parser, new[]{ "UnkInt", "Motion", "RogueMap", "GroupId" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.ICOFBBCMENF), global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.ICOFBBCMENF.Parser, new[]{ "X", "FAAFKIAENEO", "Z", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.LHBLGBPKEAL), global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.LHBLGBPKEAL.Parser, new[]{ "IENLJAFIBOL", "JBCABOABIDI" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RotateMapCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RotateMapCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RotateMapCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RotateMapCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RotateMapCsReq(RotateMapCsReq other) : this() { + unkInt_ = other.unkInt_; + motion_ = other.motion_ != null ? other.motion_.Clone() : null; + rogueMap_ = other.rogueMap_ != null ? other.rogueMap_.Clone() : null; + groupId_ = other.groupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RotateMapCsReq Clone() { + return new RotateMapCsReq(this); + } + + /// Field number for the "unk_int" field. + public const int UnkIntFieldNumber = 8; + private uint unkInt_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UnkInt { + get { return unkInt_; } + set { + unkInt_ = value; + } + } + + /// Field number for the "motion" field. + public const int MotionFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.MotionInfo motion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MotionInfo Motion { + get { return motion_; } + set { + motion_ = value; + } + } + + /// Field number for the "rogue_map" field. + public const int RogueMapFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.LHBLGBPKEAL rogueMap_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.LHBLGBPKEAL RogueMap { + get { return rogueMap_; } + set { + rogueMap_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 11; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RotateMapCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RotateMapCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UnkInt != other.UnkInt) return false; + if (!object.Equals(Motion, other.Motion)) return false; + if (!object.Equals(RogueMap, other.RogueMap)) return false; + if (GroupId != other.GroupId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (UnkInt != 0) hash ^= UnkInt.GetHashCode(); + if (motion_ != null) hash ^= Motion.GetHashCode(); + if (rogueMap_ != null) hash ^= RogueMap.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (motion_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Motion); + } + if (UnkInt != 0) { + output.WriteRawTag(64); + output.WriteUInt32(UnkInt); + } + if (rogueMap_ != null) { + output.WriteRawTag(74); + output.WriteMessage(RogueMap); + } + if (GroupId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (motion_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Motion); + } + if (UnkInt != 0) { + output.WriteRawTag(64); + output.WriteUInt32(UnkInt); + } + if (rogueMap_ != null) { + output.WriteRawTag(74); + output.WriteMessage(RogueMap); + } + if (GroupId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (UnkInt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UnkInt); + } + if (motion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Motion); + } + if (rogueMap_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueMap); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RotateMapCsReq other) { + if (other == null) { + return; + } + if (other.UnkInt != 0) { + UnkInt = other.UnkInt; + } + if (other.motion_ != null) { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + Motion.MergeFrom(other.Motion); + } + if (other.rogueMap_ != null) { + if (rogueMap_ == null) { + RogueMap = new global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.LHBLGBPKEAL(); + } + RogueMap.MergeFrom(other.RogueMap); + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + case 64: { + UnkInt = input.ReadUInt32(); + break; + } + case 74: { + if (rogueMap_ == null) { + RogueMap = new global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.LHBLGBPKEAL(); + } + input.ReadMessage(RogueMap); + break; + } + case 88: { + GroupId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + case 64: { + UnkInt = input.ReadUInt32(); + break; + } + case 74: { + if (rogueMap_ == null) { + RogueMap = new global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.LHBLGBPKEAL(); + } + input.ReadMessage(RogueMap); + break; + } + case 88: { + GroupId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the RotateMapCsReq message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ICOFBBCMENF : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ICOFBBCMENF()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RotateMapCsReq.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 ICOFBBCMENF() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ICOFBBCMENF(ICOFBBCMENF other) : this() { + x_ = other.x_; + fAAFKIAENEO_ = other.fAAFKIAENEO_; + z_ = other.z_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ICOFBBCMENF Clone() { + return new ICOFBBCMENF(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 15; + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { return x_; } + set { + x_ = value; + } + } + + /// Field number for the "FAAFKIAENEO" field. + public const int FAAFKIAENEOFieldNumber = 2; + private float fAAFKIAENEO_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float FAAFKIAENEO { + get { return fAAFKIAENEO_; } + set { + fAAFKIAENEO_ = value; + } + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 4; + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { return z_; } + set { + z_ = value; + } + } + + /// Field number for the "y" field. + public const int YFieldNumber = 3; + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { return y_; } + set { + y_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ICOFBBCMENF); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ICOFBBCMENF other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FAAFKIAENEO, other.FAAFKIAENEO)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (FAAFKIAENEO != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FAAFKIAENEO); + if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FAAFKIAENEO != 0F) { + output.WriteRawTag(21); + output.WriteFloat(FAAFKIAENEO); + } + if (Y != 0F) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (Z != 0F) { + output.WriteRawTag(37); + output.WriteFloat(Z); + } + if (X != 0F) { + output.WriteRawTag(125); + output.WriteFloat(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FAAFKIAENEO != 0F) { + output.WriteRawTag(21); + output.WriteFloat(FAAFKIAENEO); + } + if (Y != 0F) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (Z != 0F) { + output.WriteRawTag(37); + output.WriteFloat(Z); + } + if (X != 0F) { + output.WriteRawTag(125); + output.WriteFloat(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (X != 0F) { + size += 1 + 4; + } + if (FAAFKIAENEO != 0F) { + size += 1 + 4; + } + if (Z != 0F) { + size += 1 + 4; + } + if (Y != 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(ICOFBBCMENF other) { + if (other == null) { + return; + } + if (other.X != 0F) { + X = other.X; + } + if (other.FAAFKIAENEO != 0F) { + FAAFKIAENEO = other.FAAFKIAENEO; + } + if (other.Z != 0F) { + Z = other.Z; + } + if (other.Y != 0F) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 21: { + FAAFKIAENEO = input.ReadFloat(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + case 37: { + Z = input.ReadFloat(); + break; + } + case 125: { + X = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 21: { + FAAFKIAENEO = input.ReadFloat(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + case 37: { + Z = input.ReadFloat(); + break; + } + case 125: { + X = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LHBLGBPKEAL : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LHBLGBPKEAL()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RotateMapCsReq.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 LHBLGBPKEAL() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LHBLGBPKEAL(LHBLGBPKEAL other) : this() { + iENLJAFIBOL_ = other.iENLJAFIBOL_ != null ? other.iENLJAFIBOL_.Clone() : null; + jBCABOABIDI_ = other.jBCABOABIDI_ != null ? other.jBCABOABIDI_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LHBLGBPKEAL Clone() { + return new LHBLGBPKEAL(this); + } + + /// Field number for the "IENLJAFIBOL" field. + public const int IENLJAFIBOLFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.Vector iENLJAFIBOL_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.Vector IENLJAFIBOL { + get { return iENLJAFIBOL_; } + set { + iENLJAFIBOL_ = value; + } + } + + /// Field number for the "JBCABOABIDI" field. + public const int JBCABOABIDIFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.ICOFBBCMENF jBCABOABIDI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.ICOFBBCMENF JBCABOABIDI { + get { return jBCABOABIDI_; } + set { + jBCABOABIDI_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LHBLGBPKEAL); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LHBLGBPKEAL other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(IENLJAFIBOL, other.IENLJAFIBOL)) return false; + if (!object.Equals(JBCABOABIDI, other.JBCABOABIDI)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (iENLJAFIBOL_ != null) hash ^= IENLJAFIBOL.GetHashCode(); + if (jBCABOABIDI_ != null) hash ^= JBCABOABIDI.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (jBCABOABIDI_ != null) { + output.WriteRawTag(74); + output.WriteMessage(JBCABOABIDI); + } + if (iENLJAFIBOL_ != null) { + output.WriteRawTag(122); + output.WriteMessage(IENLJAFIBOL); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (jBCABOABIDI_ != null) { + output.WriteRawTag(74); + output.WriteMessage(JBCABOABIDI); + } + if (iENLJAFIBOL_ != null) { + output.WriteRawTag(122); + output.WriteMessage(IENLJAFIBOL); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (iENLJAFIBOL_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IENLJAFIBOL); + } + if (jBCABOABIDI_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(JBCABOABIDI); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LHBLGBPKEAL other) { + if (other == null) { + return; + } + if (other.iENLJAFIBOL_ != null) { + if (iENLJAFIBOL_ == null) { + IENLJAFIBOL = new global::EggLink.DanhengServer.Proto.Vector(); + } + IENLJAFIBOL.MergeFrom(other.IENLJAFIBOL); + } + if (other.jBCABOABIDI_ != null) { + if (jBCABOABIDI_ == null) { + JBCABOABIDI = new global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.ICOFBBCMENF(); + } + JBCABOABIDI.MergeFrom(other.JBCABOABIDI); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 74: { + if (jBCABOABIDI_ == null) { + JBCABOABIDI = new global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.ICOFBBCMENF(); + } + input.ReadMessage(JBCABOABIDI); + break; + } + case 122: { + if (iENLJAFIBOL_ == null) { + IENLJAFIBOL = new global::EggLink.DanhengServer.Proto.Vector(); + } + input.ReadMessage(IENLJAFIBOL); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 74: { + if (jBCABOABIDI_ == null) { + JBCABOABIDI = new global::EggLink.DanhengServer.Proto.RotateMapCsReq.Types.ICOFBBCMENF(); + } + input.ReadMessage(JBCABOABIDI); + break; + } + case 122: { + if (iENLJAFIBOL_ == null) { + IENLJAFIBOL = new global::EggLink.DanhengServer.Proto.Vector(); + } + input.ReadMessage(IENLJAFIBOL); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RotateMapScRsp.cs b/Common/Proto/RotateMapScRsp.cs new file mode 100644 index 00000000..7130d9fc --- /dev/null +++ b/Common/Proto/RotateMapScRsp.cs @@ -0,0 +1,318 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RotateMapScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RotateMapScRsp.proto + public static partial class RotateMapScRspReflection { + + #region Descriptor + /// File descriptor for RotateMapScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RotateMapScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRSb3RhdGVNYXBTY1JzcC5wcm90bxoQTW90aW9uSW5mby5wcm90byJaCg5S", + "b3RhdGVNYXBTY1JzcBIbCgZtb3Rpb24YDSABKAsyCy5Nb3Rpb25JbmZvEg8K", + "B3JldGNvZGUYASABKA0SGgoSY2xpZW50X3Bvc192ZXJzaW9uGA4gASgNQh6q", + "AhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MotionInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RotateMapScRsp), global::EggLink.DanhengServer.Proto.RotateMapScRsp.Parser, new[]{ "Motion", "Retcode", "ClientPosVersion" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RotateMapScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RotateMapScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RotateMapScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RotateMapScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RotateMapScRsp(RotateMapScRsp other) : this() { + motion_ = other.motion_ != null ? other.motion_.Clone() : null; + retcode_ = other.retcode_; + clientPosVersion_ = other.clientPosVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RotateMapScRsp Clone() { + return new RotateMapScRsp(this); + } + + /// Field number for the "motion" field. + public const int MotionFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.MotionInfo motion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MotionInfo Motion { + get { return motion_; } + set { + motion_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "client_pos_version" field. + public const int ClientPosVersionFieldNumber = 14; + private uint clientPosVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClientPosVersion { + get { return clientPosVersion_; } + set { + clientPosVersion_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RotateMapScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RotateMapScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Motion, other.Motion)) return false; + if (Retcode != other.Retcode) return false; + if (ClientPosVersion != other.ClientPosVersion) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (motion_ != null) hash ^= Motion.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (ClientPosVersion != 0) hash ^= ClientPosVersion.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (motion_ != null) { + output.WriteRawTag(106); + output.WriteMessage(Motion); + } + if (ClientPosVersion != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ClientPosVersion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (motion_ != null) { + output.WriteRawTag(106); + output.WriteMessage(Motion); + } + if (ClientPosVersion != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ClientPosVersion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (motion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Motion); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (ClientPosVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClientPosVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RotateMapScRsp other) { + if (other == null) { + return; + } + if (other.motion_ != null) { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + Motion.MergeFrom(other.Motion); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.ClientPosVersion != 0) { + ClientPosVersion = other.ClientPosVersion; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + case 112: { + ClientPosVersion = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + case 112: { + ClientPosVersion = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RotaterData.cs b/Common/Proto/RotaterData.cs new file mode 100644 index 00000000..0cd27c47 --- /dev/null +++ b/Common/Proto/RotaterData.cs @@ -0,0 +1,308 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RotaterData.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RotaterData.proto + public static partial class RotaterDataReflection { + + #region Descriptor + /// File descriptor for RotaterData.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RotaterDataReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFSb3RhdGVyRGF0YS5wcm90byJJCgtSb3RhdGVyRGF0YRITCgtHTkVDRFBQ", + "RUxMTxgIIAEoAhIQCghncm91cF9pZBgDIAEoDRITCgtCUEZBREpERUdIUBgF", + "IAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RotaterData), global::EggLink.DanhengServer.Proto.RotaterData.Parser, new[]{ "GNECDPPELLO", "GroupId", "BPFADJDEGHP" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RotaterData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RotaterData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RotaterDataReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RotaterData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RotaterData(RotaterData other) : this() { + gNECDPPELLO_ = other.gNECDPPELLO_; + groupId_ = other.groupId_; + bPFADJDEGHP_ = other.bPFADJDEGHP_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RotaterData Clone() { + return new RotaterData(this); + } + + /// Field number for the "GNECDPPELLO" field. + public const int GNECDPPELLOFieldNumber = 8; + private float gNECDPPELLO_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float GNECDPPELLO { + get { return gNECDPPELLO_; } + set { + gNECDPPELLO_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 3; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "BPFADJDEGHP" field. + public const int BPFADJDEGHPFieldNumber = 5; + private uint bPFADJDEGHP_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BPFADJDEGHP { + get { return bPFADJDEGHP_; } + set { + bPFADJDEGHP_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RotaterData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RotaterData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(GNECDPPELLO, other.GNECDPPELLO)) return false; + if (GroupId != other.GroupId) return false; + if (BPFADJDEGHP != other.BPFADJDEGHP) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (GNECDPPELLO != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(GNECDPPELLO); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (BPFADJDEGHP != 0) hash ^= BPFADJDEGHP.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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(24); + output.WriteUInt32(GroupId); + } + if (BPFADJDEGHP != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BPFADJDEGHP); + } + if (GNECDPPELLO != 0F) { + output.WriteRawTag(69); + output.WriteFloat(GNECDPPELLO); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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(24); + output.WriteUInt32(GroupId); + } + if (BPFADJDEGHP != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BPFADJDEGHP); + } + if (GNECDPPELLO != 0F) { + output.WriteRawTag(69); + output.WriteFloat(GNECDPPELLO); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (GNECDPPELLO != 0F) { + size += 1 + 4; + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GroupId); + } + if (BPFADJDEGHP != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BPFADJDEGHP); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RotaterData other) { + if (other == null) { + return; + } + if (other.GNECDPPELLO != 0F) { + GNECDPPELLO = other.GNECDPPELLO; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.BPFADJDEGHP != 0) { + BPFADJDEGHP = other.BPFADJDEGHP; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + GroupId = input.ReadUInt32(); + break; + } + case 40: { + BPFADJDEGHP = input.ReadUInt32(); + break; + } + case 69: { + GNECDPPELLO = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + GroupId = input.ReadUInt32(); + break; + } + case 40: { + BPFADJDEGHP = input.ReadUInt32(); + break; + } + case 69: { + GNECDPPELLO = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/RotatorEnergyInfo.cs b/Common/Proto/RotatorEnergyInfo.cs new file mode 100644 index 00000000..75c00108 --- /dev/null +++ b/Common/Proto/RotatorEnergyInfo.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RotatorEnergyInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from RotatorEnergyInfo.proto + public static partial class RotatorEnergyInfoReflection { + + #region Descriptor + /// File descriptor for RotatorEnergyInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RotatorEnergyInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdSb3RhdG9yRW5lcmd5SW5mby5wcm90byI1ChFSb3RhdG9yRW5lcmd5SW5m", + "bxIPCgdtYXhfbnVtGA4gASgNEg8KB2N1cl9udW0YAyABKA1CHqoCG0VnZ0xp", + "bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RotatorEnergyInfo), global::EggLink.DanhengServer.Proto.RotatorEnergyInfo.Parser, new[]{ "MaxNum", "CurNum" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RotatorEnergyInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RotatorEnergyInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.RotatorEnergyInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RotatorEnergyInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RotatorEnergyInfo(RotatorEnergyInfo other) : this() { + maxNum_ = other.maxNum_; + curNum_ = other.curNum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RotatorEnergyInfo Clone() { + return new RotatorEnergyInfo(this); + } + + /// Field number for the "max_num" field. + public const int MaxNumFieldNumber = 14; + private uint maxNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxNum { + get { return maxNum_; } + set { + maxNum_ = value; + } + } + + /// Field number for the "cur_num" field. + public const int CurNumFieldNumber = 3; + private uint curNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurNum { + get { return curNum_; } + set { + curNum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RotatorEnergyInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RotatorEnergyInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MaxNum != other.MaxNum) return false; + if (CurNum != other.CurNum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MaxNum != 0) hash ^= MaxNum.GetHashCode(); + if (CurNum != 0) hash ^= CurNum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CurNum != 0) { + output.WriteRawTag(24); + output.WriteUInt32(CurNum); + } + if (MaxNum != 0) { + output.WriteRawTag(112); + output.WriteUInt32(MaxNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CurNum != 0) { + output.WriteRawTag(24); + output.WriteUInt32(CurNum); + } + if (MaxNum != 0) { + output.WriteRawTag(112); + output.WriteUInt32(MaxNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MaxNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxNum); + } + if (CurNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurNum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RotatorEnergyInfo other) { + if (other == null) { + return; + } + if (other.MaxNum != 0) { + MaxNum = other.MaxNum; + } + if (other.CurNum != 0) { + CurNum = other.CurNum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + CurNum = input.ReadUInt32(); + break; + } + case 112: { + MaxNum = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + CurNum = input.ReadUInt32(); + break; + } + case 112: { + MaxNum = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneActorInfo.cs b/Common/Proto/SceneActorInfo.cs new file mode 100644 index 00000000..4635ee50 --- /dev/null +++ b/Common/Proto/SceneActorInfo.cs @@ -0,0 +1,347 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneActorInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneActorInfo.proto + public static partial class SceneActorInfoReflection { + + #region Descriptor + /// File descriptor for SceneActorInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneActorInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRTY2VuZUFjdG9ySW5mby5wcm90bxoQQXZhdGFyVHlwZS5wcm90byJqCg5T", + "Y2VuZUFjdG9ySW5mbxIgCgthdmF0YXJfdHlwZRgNIAEoDjILLkF2YXRhclR5", + "cGUSFgoOYmFzZV9hdmF0YXJfaWQYDiABKA0SCwoDdWlkGAcgASgNEhEKCW1h", + "cF9sYXllchgMIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AvatarTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneActorInfo), global::EggLink.DanhengServer.Proto.SceneActorInfo.Parser, new[]{ "AvatarType", "BaseAvatarId", "Uid", "MapLayer" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneActorInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneActorInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneActorInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneActorInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneActorInfo(SceneActorInfo other) : this() { + avatarType_ = other.avatarType_; + baseAvatarId_ = other.baseAvatarId_; + uid_ = other.uid_; + mapLayer_ = other.mapLayer_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneActorInfo Clone() { + return new SceneActorInfo(this); + } + + /// Field number for the "avatar_type" field. + public const int AvatarTypeFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.AvatarType avatarType_ = global::EggLink.DanhengServer.Proto.AvatarType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.AvatarType AvatarType { + get { return avatarType_; } + set { + avatarType_ = value; + } + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 14; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 7; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + /// Field number for the "map_layer" field. + public const int MapLayerFieldNumber = 12; + private uint mapLayer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MapLayer { + get { return mapLayer_; } + set { + mapLayer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneActorInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneActorInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AvatarType != other.AvatarType) return false; + if (BaseAvatarId != other.BaseAvatarId) return false; + if (Uid != other.Uid) return false; + if (MapLayer != other.MapLayer) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) hash ^= AvatarType.GetHashCode(); + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (Uid != 0) hash ^= Uid.GetHashCode(); + if (MapLayer != 0) hash ^= MapLayer.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Uid != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Uid); + } + if (MapLayer != 0) { + output.WriteRawTag(96); + output.WriteUInt32(MapLayer); + } + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(104); + output.WriteEnum((int) AvatarType); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Uid != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Uid); + } + if (MapLayer != 0) { + output.WriteRawTag(96); + output.WriteUInt32(MapLayer); + } + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(104); + output.WriteEnum((int) AvatarType); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AvatarType); + } + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (MapLayer != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MapLayer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneActorInfo other) { + if (other == null) { + return; + } + if (other.AvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + AvatarType = other.AvatarType; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + if (other.MapLayer != 0) { + MapLayer = other.MapLayer; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 56: { + Uid = input.ReadUInt32(); + break; + } + case 96: { + MapLayer = input.ReadUInt32(); + break; + } + case 104: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 112: { + BaseAvatarId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 56: { + Uid = input.ReadUInt32(); + break; + } + case 96: { + MapLayer = input.ReadUInt32(); + break; + } + case 104: { + AvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 112: { + BaseAvatarId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneBattleInfo.cs b/Common/Proto/SceneBattleInfo.cs new file mode 100644 index 00000000..af06df9e --- /dev/null +++ b/Common/Proto/SceneBattleInfo.cs @@ -0,0 +1,523 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneBattleInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneBattleInfo.proto + public static partial class SceneBattleInfoReflection { + + #region Descriptor + /// File descriptor for SceneBattleInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneBattleInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVTY2VuZUJhdHRsZUluZm8ucHJvdG8aFlNjZW5lTW9uc3RlcldhdmUucHJv", + "dG8aEkJhdHRsZUF2YXRhci5wcm90bxoQQmF0dGxlQnVmZi5wcm90bxobQmF0", + "dGxlRXZlbnRCYXR0bGVJbmZvLnByb3RvGhZCYXR0bGVUYXJnZXRMaXN0LnBy", + "b3RvIr8DCg9TY2VuZUJhdHRsZUluZm8SQwoSYmF0dGxlX3RhcmdldF9pbmZv", + "GIgBIAMoCzImLlNjZW5lQmF0dGxlSW5mby5CYXR0bGVUYXJnZXRJbmZvRW50", + "cnkSEQoJYmF0dGxlX2lkGAkgASgNEjcKFmV2ZW50X2JhdHRsZV9pbmZvX2xp", + "c3QY1wogAygLMhYuQmF0dGxlRXZlbnRCYXR0bGVJbmZvEikKEmJhdHRsZV9h", + "dmF0YXJfbGlzdBgHIAMoCzINLkJhdHRsZUF2YXRhchIsChFtb25zdGVyX3dh", + "dmVfbGlzdBgBIAMoCzIRLlNjZW5lTW9uc3RlcldhdmUSEwoLd29ybGRfbGV2", + "ZWwYCCABKA0SFAoMcm91bmRzX2xpbWl0GAMgASgNEhkKEWxvZ2ljX3JhbmRv", + "bV9zZWVkGAwgASgNEh4KCWJ1ZmZfbGlzdBgLIAMoCzILLkJhdHRsZUJ1ZmYS", + "EAoIc3RhZ2VfaWQYDyABKA0aSgoVQmF0dGxlVGFyZ2V0SW5mb0VudHJ5EgsK", + "A2tleRgBIAEoDRIgCgV2YWx1ZRgCIAEoCzIRLkJhdHRsZVRhcmdldExpc3Q6", + "AjgBQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneMonsterWaveReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleAvatarReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleBuffReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleEventBattleInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleTargetListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneBattleInfo), global::EggLink.DanhengServer.Proto.SceneBattleInfo.Parser, new[]{ "BattleTargetInfo", "BattleId", "EventBattleInfoList", "BattleAvatarList", "MonsterWaveList", "WorldLevel", "RoundsLimit", "LogicRandomSeed", "BuffList", "StageId" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneBattleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneBattleInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneBattleInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneBattleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneBattleInfo(SceneBattleInfo other) : this() { + battleTargetInfo_ = other.battleTargetInfo_.Clone(); + battleId_ = other.battleId_; + eventBattleInfoList_ = other.eventBattleInfoList_.Clone(); + battleAvatarList_ = other.battleAvatarList_.Clone(); + monsterWaveList_ = other.monsterWaveList_.Clone(); + worldLevel_ = other.worldLevel_; + roundsLimit_ = other.roundsLimit_; + logicRandomSeed_ = other.logicRandomSeed_; + buffList_ = other.buffList_.Clone(); + stageId_ = other.stageId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneBattleInfo Clone() { + return new SceneBattleInfo(this); + } + + /// Field number for the "battle_target_info" field. + public const int BattleTargetInfoFieldNumber = 136; + private static readonly pbc::MapField.Codec _map_battleTargetInfo_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForMessage(18, global::EggLink.DanhengServer.Proto.BattleTargetList.Parser), 1090); + private readonly pbc::MapField battleTargetInfo_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField BattleTargetInfo { + get { return battleTargetInfo_; } + } + + /// Field number for the "battle_id" field. + public const int BattleIdFieldNumber = 9; + private uint battleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BattleId { + get { return battleId_; } + set { + battleId_ = value; + } + } + + /// Field number for the "event_battle_info_list" field. + public const int EventBattleInfoListFieldNumber = 1367; + private static readonly pb::FieldCodec _repeated_eventBattleInfoList_codec + = pb::FieldCodec.ForMessage(10938, global::EggLink.DanhengServer.Proto.BattleEventBattleInfo.Parser); + private readonly pbc::RepeatedField eventBattleInfoList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EventBattleInfoList { + get { return eventBattleInfoList_; } + } + + /// Field number for the "battle_avatar_list" field. + public const int BattleAvatarListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_battleAvatarList_codec + = pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.BattleAvatar.Parser); + private readonly pbc::RepeatedField battleAvatarList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BattleAvatarList { + get { return battleAvatarList_; } + } + + /// Field number for the "monster_wave_list" field. + public const int MonsterWaveListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_monsterWaveList_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.SceneMonsterWave.Parser); + private readonly pbc::RepeatedField monsterWaveList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MonsterWaveList { + get { return monsterWaveList_; } + } + + /// Field number for the "world_level" field. + public const int WorldLevelFieldNumber = 8; + private uint worldLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WorldLevel { + get { return worldLevel_; } + set { + worldLevel_ = value; + } + } + + /// Field number for the "rounds_limit" field. + public const int RoundsLimitFieldNumber = 3; + private uint roundsLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RoundsLimit { + get { return roundsLimit_; } + set { + roundsLimit_ = value; + } + } + + /// Field number for the "logic_random_seed" field. + public const int LogicRandomSeedFieldNumber = 12; + private uint logicRandomSeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint LogicRandomSeed { + get { return logicRandomSeed_; } + set { + logicRandomSeed_ = value; + } + } + + /// Field number for the "buff_list" field. + public const int BuffListFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_buffList_codec + = pb::FieldCodec.ForMessage(90, global::EggLink.DanhengServer.Proto.BattleBuff.Parser); + private readonly pbc::RepeatedField buffList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BuffList { + get { return buffList_; } + } + + /// Field number for the "stage_id" field. + public const int StageIdFieldNumber = 15; + private uint stageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StageId { + get { return stageId_; } + set { + stageId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneBattleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneBattleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!BattleTargetInfo.Equals(other.BattleTargetInfo)) return false; + if (BattleId != other.BattleId) return false; + if(!eventBattleInfoList_.Equals(other.eventBattleInfoList_)) return false; + if(!battleAvatarList_.Equals(other.battleAvatarList_)) return false; + if(!monsterWaveList_.Equals(other.monsterWaveList_)) return false; + if (WorldLevel != other.WorldLevel) return false; + if (RoundsLimit != other.RoundsLimit) return false; + if (LogicRandomSeed != other.LogicRandomSeed) return false; + if(!buffList_.Equals(other.buffList_)) return false; + if (StageId != other.StageId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= BattleTargetInfo.GetHashCode(); + if (BattleId != 0) hash ^= BattleId.GetHashCode(); + hash ^= eventBattleInfoList_.GetHashCode(); + hash ^= battleAvatarList_.GetHashCode(); + hash ^= monsterWaveList_.GetHashCode(); + if (WorldLevel != 0) hash ^= WorldLevel.GetHashCode(); + if (RoundsLimit != 0) hash ^= RoundsLimit.GetHashCode(); + if (LogicRandomSeed != 0) hash ^= LogicRandomSeed.GetHashCode(); + hash ^= buffList_.GetHashCode(); + if (StageId != 0) hash ^= StageId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + monsterWaveList_.WriteTo(output, _repeated_monsterWaveList_codec); + if (RoundsLimit != 0) { + output.WriteRawTag(24); + output.WriteUInt32(RoundsLimit); + } + battleAvatarList_.WriteTo(output, _repeated_battleAvatarList_codec); + if (WorldLevel != 0) { + output.WriteRawTag(64); + output.WriteUInt32(WorldLevel); + } + if (BattleId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(BattleId); + } + buffList_.WriteTo(output, _repeated_buffList_codec); + if (LogicRandomSeed != 0) { + output.WriteRawTag(96); + output.WriteUInt32(LogicRandomSeed); + } + if (StageId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(StageId); + } + battleTargetInfo_.WriteTo(output, _map_battleTargetInfo_codec); + eventBattleInfoList_.WriteTo(output, _repeated_eventBattleInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + monsterWaveList_.WriteTo(ref output, _repeated_monsterWaveList_codec); + if (RoundsLimit != 0) { + output.WriteRawTag(24); + output.WriteUInt32(RoundsLimit); + } + battleAvatarList_.WriteTo(ref output, _repeated_battleAvatarList_codec); + if (WorldLevel != 0) { + output.WriteRawTag(64); + output.WriteUInt32(WorldLevel); + } + if (BattleId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(BattleId); + } + buffList_.WriteTo(ref output, _repeated_buffList_codec); + if (LogicRandomSeed != 0) { + output.WriteRawTag(96); + output.WriteUInt32(LogicRandomSeed); + } + if (StageId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(StageId); + } + battleTargetInfo_.WriteTo(ref output, _map_battleTargetInfo_codec); + eventBattleInfoList_.WriteTo(ref output, _repeated_eventBattleInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += battleTargetInfo_.CalculateSize(_map_battleTargetInfo_codec); + if (BattleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BattleId); + } + size += eventBattleInfoList_.CalculateSize(_repeated_eventBattleInfoList_codec); + size += battleAvatarList_.CalculateSize(_repeated_battleAvatarList_codec); + size += monsterWaveList_.CalculateSize(_repeated_monsterWaveList_codec); + if (WorldLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldLevel); + } + if (RoundsLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoundsLimit); + } + if (LogicRandomSeed != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LogicRandomSeed); + } + size += buffList_.CalculateSize(_repeated_buffList_codec); + if (StageId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StageId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneBattleInfo other) { + if (other == null) { + return; + } + battleTargetInfo_.MergeFrom(other.battleTargetInfo_); + if (other.BattleId != 0) { + BattleId = other.BattleId; + } + eventBattleInfoList_.Add(other.eventBattleInfoList_); + battleAvatarList_.Add(other.battleAvatarList_); + monsterWaveList_.Add(other.monsterWaveList_); + if (other.WorldLevel != 0) { + WorldLevel = other.WorldLevel; + } + if (other.RoundsLimit != 0) { + RoundsLimit = other.RoundsLimit; + } + if (other.LogicRandomSeed != 0) { + LogicRandomSeed = other.LogicRandomSeed; + } + buffList_.Add(other.buffList_); + if (other.StageId != 0) { + StageId = other.StageId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + monsterWaveList_.AddEntriesFrom(input, _repeated_monsterWaveList_codec); + break; + } + case 24: { + RoundsLimit = input.ReadUInt32(); + break; + } + case 58: { + battleAvatarList_.AddEntriesFrom(input, _repeated_battleAvatarList_codec); + break; + } + case 64: { + WorldLevel = input.ReadUInt32(); + break; + } + case 72: { + BattleId = input.ReadUInt32(); + break; + } + case 90: { + buffList_.AddEntriesFrom(input, _repeated_buffList_codec); + break; + } + case 96: { + LogicRandomSeed = input.ReadUInt32(); + break; + } + case 120: { + StageId = input.ReadUInt32(); + break; + } + case 1090: { + battleTargetInfo_.AddEntriesFrom(input, _map_battleTargetInfo_codec); + break; + } + case 10938: { + eventBattleInfoList_.AddEntriesFrom(input, _repeated_eventBattleInfoList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + monsterWaveList_.AddEntriesFrom(ref input, _repeated_monsterWaveList_codec); + break; + } + case 24: { + RoundsLimit = input.ReadUInt32(); + break; + } + case 58: { + battleAvatarList_.AddEntriesFrom(ref input, _repeated_battleAvatarList_codec); + break; + } + case 64: { + WorldLevel = input.ReadUInt32(); + break; + } + case 72: { + BattleId = input.ReadUInt32(); + break; + } + case 90: { + buffList_.AddEntriesFrom(ref input, _repeated_buffList_codec); + break; + } + case 96: { + LogicRandomSeed = input.ReadUInt32(); + break; + } + case 120: { + StageId = input.ReadUInt32(); + break; + } + case 1090: { + battleTargetInfo_.AddEntriesFrom(ref input, _map_battleTargetInfo_codec); + break; + } + case 10938: { + eventBattleInfoList_.AddEntriesFrom(ref input, _repeated_eventBattleInfoList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneCastSkill.cs b/Common/Proto/SceneCastSkill.cs new file mode 100644 index 00000000..5d37b896 --- /dev/null +++ b/Common/Proto/SceneCastSkill.cs @@ -0,0 +1,50 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneCastSkill.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneCastSkill.proto + public static partial class SceneCastSkillReflection { + + #region Descriptor + /// File descriptor for SceneCastSkill.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneCastSkillReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChRTY2VuZUNhc3RTa2lsbC5wcm90byqBAQoOU2NlbmVDYXN0U2tpbGwSGQoV", + "U0NFTkVfQ0FTVF9TS0lMTF9OT05FEAASIwofU0NFTkVfQ0FTVF9TS0lMTF9Q", + "Uk9KRUNUSUxFX0hJVBABEi8KK1NDRU5FX0NBU1RfU0tJTExfUFJPSkVDVElM", + "RV9MSUZFVElNRV9GSU5JU0gQAkIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy", + "LlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.SceneCastSkill), }, null, null)); + } + #endregion + + } + #region Enums + public enum SceneCastSkill { + [pbr::OriginalName("SCENE_CAST_SKILL_NONE")] None = 0, + [pbr::OriginalName("SCENE_CAST_SKILL_PROJECTILE_HIT")] ProjectileHit = 1, + [pbr::OriginalName("SCENE_CAST_SKILL_PROJECTILE_LIFETIME_FINISH")] ProjectileLifetimeFinish = 2, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneCastSkillCsReq.cs b/Common/Proto/SceneCastSkillCsReq.cs new file mode 100644 index 00000000..84a97a38 --- /dev/null +++ b/Common/Proto/SceneCastSkillCsReq.cs @@ -0,0 +1,414 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneCastSkillCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneCastSkillCsReq.proto + public static partial class SceneCastSkillCsReqReflection { + + #region Descriptor + /// File descriptor for SceneCastSkillCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneCastSkillCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlTY2VuZUNhc3RTa2lsbENzUmVxLnByb3RvGhBNb3Rpb25JbmZvLnByb3Rv", + "IsYBChNTY2VuZUNhc3RTa2lsbENzUmVxEhMKC3NraWxsX2luZGV4GAYgASgN", + "EiEKGWhpdF90YXJnZXRfZW50aXR5X2lkX2xpc3QYDSADKA0SJQodYXNzaXN0", + "X21vbnN0ZXJfZW50aXR5X2lkX2xpc3QYDiADKA0SGQoRYXR0YWNrZWRfZ3Jv", + "dXBfaWQYCCABKA0SIgoNdGFyZ2V0X21vdGlvbhgPIAEoCzILLk1vdGlvbklu", + "Zm8SEQoJY2FzdGVyX2lkGAEgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2", + "ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MotionInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneCastSkillCsReq), global::EggLink.DanhengServer.Proto.SceneCastSkillCsReq.Parser, new[]{ "SkillIndex", "HitTargetEntityIdList", "AssistMonsterEntityIdList", "AttackedGroupId", "TargetMotion", "CasterId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneCastSkillCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneCastSkillCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneCastSkillCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneCastSkillCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneCastSkillCsReq(SceneCastSkillCsReq other) : this() { + skillIndex_ = other.skillIndex_; + hitTargetEntityIdList_ = other.hitTargetEntityIdList_.Clone(); + assistMonsterEntityIdList_ = other.assistMonsterEntityIdList_.Clone(); + attackedGroupId_ = other.attackedGroupId_; + targetMotion_ = other.targetMotion_ != null ? other.targetMotion_.Clone() : null; + casterId_ = other.casterId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneCastSkillCsReq Clone() { + return new SceneCastSkillCsReq(this); + } + + /// Field number for the "skill_index" field. + public const int SkillIndexFieldNumber = 6; + private uint skillIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SkillIndex { + get { return skillIndex_; } + set { + skillIndex_ = value; + } + } + + /// Field number for the "hit_target_entity_id_list" field. + public const int HitTargetEntityIdListFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_hitTargetEntityIdList_codec + = pb::FieldCodec.ForUInt32(106); + private readonly pbc::RepeatedField hitTargetEntityIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HitTargetEntityIdList { + get { return hitTargetEntityIdList_; } + } + + /// Field number for the "assist_monster_entity_id_list" field. + public const int AssistMonsterEntityIdListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_assistMonsterEntityIdList_codec + = pb::FieldCodec.ForUInt32(114); + private readonly pbc::RepeatedField assistMonsterEntityIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AssistMonsterEntityIdList { + get { return assistMonsterEntityIdList_; } + } + + /// Field number for the "attacked_group_id" field. + public const int AttackedGroupIdFieldNumber = 8; + private uint attackedGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AttackedGroupId { + get { return attackedGroupId_; } + set { + attackedGroupId_ = value; + } + } + + /// Field number for the "target_motion" field. + public const int TargetMotionFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.MotionInfo targetMotion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MotionInfo TargetMotion { + get { return targetMotion_; } + set { + targetMotion_ = value; + } + } + + /// Field number for the "caster_id" field. + public const int CasterIdFieldNumber = 1; + private uint casterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CasterId { + get { return casterId_; } + set { + casterId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneCastSkillCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneCastSkillCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SkillIndex != other.SkillIndex) return false; + if(!hitTargetEntityIdList_.Equals(other.hitTargetEntityIdList_)) return false; + if(!assistMonsterEntityIdList_.Equals(other.assistMonsterEntityIdList_)) return false; + if (AttackedGroupId != other.AttackedGroupId) return false; + if (!object.Equals(TargetMotion, other.TargetMotion)) return false; + if (CasterId != other.CasterId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (SkillIndex != 0) hash ^= SkillIndex.GetHashCode(); + hash ^= hitTargetEntityIdList_.GetHashCode(); + hash ^= assistMonsterEntityIdList_.GetHashCode(); + if (AttackedGroupId != 0) hash ^= AttackedGroupId.GetHashCode(); + if (targetMotion_ != null) hash ^= TargetMotion.GetHashCode(); + if (CasterId != 0) hash ^= CasterId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CasterId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(CasterId); + } + if (SkillIndex != 0) { + output.WriteRawTag(48); + output.WriteUInt32(SkillIndex); + } + if (AttackedGroupId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(AttackedGroupId); + } + hitTargetEntityIdList_.WriteTo(output, _repeated_hitTargetEntityIdList_codec); + assistMonsterEntityIdList_.WriteTo(output, _repeated_assistMonsterEntityIdList_codec); + if (targetMotion_ != null) { + output.WriteRawTag(122); + output.WriteMessage(TargetMotion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CasterId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(CasterId); + } + if (SkillIndex != 0) { + output.WriteRawTag(48); + output.WriteUInt32(SkillIndex); + } + if (AttackedGroupId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(AttackedGroupId); + } + hitTargetEntityIdList_.WriteTo(ref output, _repeated_hitTargetEntityIdList_codec); + assistMonsterEntityIdList_.WriteTo(ref output, _repeated_assistMonsterEntityIdList_codec); + if (targetMotion_ != null) { + output.WriteRawTag(122); + output.WriteMessage(TargetMotion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SkillIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SkillIndex); + } + size += hitTargetEntityIdList_.CalculateSize(_repeated_hitTargetEntityIdList_codec); + size += assistMonsterEntityIdList_.CalculateSize(_repeated_assistMonsterEntityIdList_codec); + if (AttackedGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AttackedGroupId); + } + if (targetMotion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetMotion); + } + if (CasterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CasterId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneCastSkillCsReq other) { + if (other == null) { + return; + } + if (other.SkillIndex != 0) { + SkillIndex = other.SkillIndex; + } + hitTargetEntityIdList_.Add(other.hitTargetEntityIdList_); + assistMonsterEntityIdList_.Add(other.assistMonsterEntityIdList_); + if (other.AttackedGroupId != 0) { + AttackedGroupId = other.AttackedGroupId; + } + if (other.targetMotion_ != null) { + if (targetMotion_ == null) { + TargetMotion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + TargetMotion.MergeFrom(other.TargetMotion); + } + if (other.CasterId != 0) { + CasterId = other.CasterId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + CasterId = input.ReadUInt32(); + break; + } + case 48: { + SkillIndex = input.ReadUInt32(); + break; + } + case 64: { + AttackedGroupId = input.ReadUInt32(); + break; + } + case 106: + case 104: { + hitTargetEntityIdList_.AddEntriesFrom(input, _repeated_hitTargetEntityIdList_codec); + break; + } + case 114: + case 112: { + assistMonsterEntityIdList_.AddEntriesFrom(input, _repeated_assistMonsterEntityIdList_codec); + break; + } + case 122: { + if (targetMotion_ == null) { + TargetMotion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(TargetMotion); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + CasterId = input.ReadUInt32(); + break; + } + case 48: { + SkillIndex = input.ReadUInt32(); + break; + } + case 64: { + AttackedGroupId = input.ReadUInt32(); + break; + } + case 106: + case 104: { + hitTargetEntityIdList_.AddEntriesFrom(ref input, _repeated_hitTargetEntityIdList_codec); + break; + } + case 114: + case 112: { + assistMonsterEntityIdList_.AddEntriesFrom(ref input, _repeated_assistMonsterEntityIdList_codec); + break; + } + case 122: { + if (targetMotion_ == null) { + TargetMotion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(TargetMotion); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneCastSkillMpUpdateScNotify.cs b/Common/Proto/SceneCastSkillMpUpdateScNotify.cs new file mode 100644 index 00000000..aa52fff4 --- /dev/null +++ b/Common/Proto/SceneCastSkillMpUpdateScNotify.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneCastSkillMpUpdateScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneCastSkillMpUpdateScNotify.proto + public static partial class SceneCastSkillMpUpdateScNotifyReflection { + + #region Descriptor + /// File descriptor for SceneCastSkillMpUpdateScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneCastSkillMpUpdateScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiRTY2VuZUNhc3RTa2lsbE1wVXBkYXRlU2NOb3RpZnkucHJvdG8iRwoeU2Nl", + "bmVDYXN0U2tpbGxNcFVwZGF0ZVNjTm90aWZ5EhkKEWF0dGFja2VkX2dyb3Vw", + "X2lkGAggASgNEgoKAm1wGA0gASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2", + "ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneCastSkillMpUpdateScNotify), global::EggLink.DanhengServer.Proto.SceneCastSkillMpUpdateScNotify.Parser, new[]{ "AttackedGroupId", "Mp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneCastSkillMpUpdateScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneCastSkillMpUpdateScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneCastSkillMpUpdateScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneCastSkillMpUpdateScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneCastSkillMpUpdateScNotify(SceneCastSkillMpUpdateScNotify other) : this() { + attackedGroupId_ = other.attackedGroupId_; + mp_ = other.mp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneCastSkillMpUpdateScNotify Clone() { + return new SceneCastSkillMpUpdateScNotify(this); + } + + /// Field number for the "attacked_group_id" field. + public const int AttackedGroupIdFieldNumber = 8; + private uint attackedGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AttackedGroupId { + get { return attackedGroupId_; } + set { + attackedGroupId_ = value; + } + } + + /// Field number for the "mp" field. + public const int MpFieldNumber = 13; + private uint mp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Mp { + get { return mp_; } + set { + mp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneCastSkillMpUpdateScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneCastSkillMpUpdateScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AttackedGroupId != other.AttackedGroupId) return false; + if (Mp != other.Mp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AttackedGroupId != 0) hash ^= AttackedGroupId.GetHashCode(); + if (Mp != 0) hash ^= Mp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AttackedGroupId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(AttackedGroupId); + } + if (Mp != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Mp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AttackedGroupId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(AttackedGroupId); + } + if (Mp != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Mp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AttackedGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AttackedGroupId); + } + if (Mp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Mp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneCastSkillMpUpdateScNotify other) { + if (other == null) { + return; + } + if (other.AttackedGroupId != 0) { + AttackedGroupId = other.AttackedGroupId; + } + if (other.Mp != 0) { + Mp = other.Mp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + AttackedGroupId = input.ReadUInt32(); + break; + } + case 104: { + Mp = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + AttackedGroupId = input.ReadUInt32(); + break; + } + case 104: { + Mp = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneCastSkillScRsp.cs b/Common/Proto/SceneCastSkillScRsp.cs new file mode 100644 index 00000000..dfc675a6 --- /dev/null +++ b/Common/Proto/SceneCastSkillScRsp.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneCastSkillScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneCastSkillScRsp.proto + public static partial class SceneCastSkillScRspReflection { + + #region Descriptor + /// File descriptor for SceneCastSkillScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneCastSkillScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlTY2VuZUNhc3RTa2lsbFNjUnNwLnByb3RvGhVTY2VuZUJhdHRsZUluZm8u", + "cHJvdG8iaAoTU2NlbmVDYXN0U2tpbGxTY1JzcBIZChFhdHRhY2tlZF9ncm91", + "cF9pZBgGIAEoDRIPCgdyZXRjb2RlGAwgASgNEiUKC2JhdHRsZV9pbmZvGAUg", + "ASgLMhAuU2NlbmVCYXR0bGVJbmZvQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2", + "ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneBattleInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneCastSkillScRsp), global::EggLink.DanhengServer.Proto.SceneCastSkillScRsp.Parser, new[]{ "AttackedGroupId", "Retcode", "BattleInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneCastSkillScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneCastSkillScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneCastSkillScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneCastSkillScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneCastSkillScRsp(SceneCastSkillScRsp other) : this() { + attackedGroupId_ = other.attackedGroupId_; + retcode_ = other.retcode_; + battleInfo_ = other.battleInfo_ != null ? other.battleInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneCastSkillScRsp Clone() { + return new SceneCastSkillScRsp(this); + } + + /// Field number for the "attacked_group_id" field. + public const int AttackedGroupIdFieldNumber = 6; + private uint attackedGroupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AttackedGroupId { + get { return attackedGroupId_; } + set { + attackedGroupId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 12; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "battle_info" field. + public const int BattleInfoFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.SceneBattleInfo battleInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneBattleInfo BattleInfo { + get { return battleInfo_; } + set { + battleInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneCastSkillScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneCastSkillScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AttackedGroupId != other.AttackedGroupId) return false; + if (Retcode != other.Retcode) return false; + if (!object.Equals(BattleInfo, other.BattleInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AttackedGroupId != 0) hash ^= AttackedGroupId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (battleInfo_ != null) hash ^= BattleInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (battleInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(BattleInfo); + } + if (AttackedGroupId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(AttackedGroupId); + } + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (battleInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(BattleInfo); + } + if (AttackedGroupId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(AttackedGroupId); + } + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AttackedGroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AttackedGroupId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (battleInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BattleInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneCastSkillScRsp other) { + if (other == null) { + return; + } + if (other.AttackedGroupId != 0) { + AttackedGroupId = other.AttackedGroupId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.battleInfo_ != null) { + if (battleInfo_ == null) { + BattleInfo = new global::EggLink.DanhengServer.Proto.SceneBattleInfo(); + } + BattleInfo.MergeFrom(other.BattleInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + if (battleInfo_ == null) { + BattleInfo = new global::EggLink.DanhengServer.Proto.SceneBattleInfo(); + } + input.ReadMessage(BattleInfo); + break; + } + case 48: { + AttackedGroupId = input.ReadUInt32(); + break; + } + case 96: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + if (battleInfo_ == null) { + BattleInfo = new global::EggLink.DanhengServer.Proto.SceneBattleInfo(); + } + input.ReadMessage(BattleInfo); + break; + } + case 48: { + AttackedGroupId = input.ReadUInt32(); + break; + } + case 96: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneEnterStageCsReq.cs b/Common/Proto/SceneEnterStageCsReq.cs new file mode 100644 index 00000000..79c45a90 --- /dev/null +++ b/Common/Proto/SceneEnterStageCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneEnterStageCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneEnterStageCsReq.proto + public static partial class SceneEnterStageCsReqReflection { + + #region Descriptor + /// File descriptor for SceneEnterStageCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneEnterStageCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTY2VuZUVudGVyU3RhZ2VDc1JlcS5wcm90byIoChRTY2VuZUVudGVyU3Rh", + "Z2VDc1JlcRIQCghzdGFnZV9pZBgBIAEoDUIeqgIbRWdnTGluay5EYW5oZW5n", + "U2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneEnterStageCsReq), global::EggLink.DanhengServer.Proto.SceneEnterStageCsReq.Parser, new[]{ "StageId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneEnterStageCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneEnterStageCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneEnterStageCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEnterStageCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEnterStageCsReq(SceneEnterStageCsReq other) : this() { + stageId_ = other.stageId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEnterStageCsReq Clone() { + return new SceneEnterStageCsReq(this); + } + + /// Field number for the "stage_id" field. + public const int StageIdFieldNumber = 1; + private uint stageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StageId { + get { return stageId_; } + set { + stageId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneEnterStageCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneEnterStageCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StageId != other.StageId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (StageId != 0) hash ^= StageId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StageId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(StageId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (StageId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(StageId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (StageId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StageId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneEnterStageCsReq other) { + if (other == null) { + return; + } + if (other.StageId != 0) { + StageId = other.StageId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StageId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + StageId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneEnterStageScRsp.cs b/Common/Proto/SceneEnterStageScRsp.cs new file mode 100644 index 00000000..69b2437a --- /dev/null +++ b/Common/Proto/SceneEnterStageScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneEnterStageScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneEnterStageScRsp.proto + public static partial class SceneEnterStageScRspReflection { + + #region Descriptor + /// File descriptor for SceneEnterStageScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneEnterStageScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTY2VuZUVudGVyU3RhZ2VTY1JzcC5wcm90bxoVU2NlbmVCYXR0bGVJbmZv", + "LnByb3RvIk4KFFNjZW5lRW50ZXJTdGFnZVNjUnNwEg8KB3JldGNvZGUYBSAB", + "KA0SJQoLYmF0dGxlX2luZm8YCiABKAsyEC5TY2VuZUJhdHRsZUluZm9CHqoC", + "G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneBattleInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneEnterStageScRsp), global::EggLink.DanhengServer.Proto.SceneEnterStageScRsp.Parser, new[]{ "Retcode", "BattleInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneEnterStageScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneEnterStageScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneEnterStageScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEnterStageScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEnterStageScRsp(SceneEnterStageScRsp other) : this() { + retcode_ = other.retcode_; + battleInfo_ = other.battleInfo_ != null ? other.battleInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEnterStageScRsp Clone() { + return new SceneEnterStageScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 5; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "battle_info" field. + public const int BattleInfoFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.SceneBattleInfo battleInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneBattleInfo BattleInfo { + get { return battleInfo_; } + set { + battleInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneEnterStageScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneEnterStageScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(BattleInfo, other.BattleInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (battleInfo_ != null) hash ^= BattleInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (battleInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(BattleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Retcode); + } + if (battleInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(BattleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (battleInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BattleInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneEnterStageScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.battleInfo_ != null) { + if (battleInfo_ == null) { + BattleInfo = new global::EggLink.DanhengServer.Proto.SceneBattleInfo(); + } + BattleInfo.MergeFrom(other.BattleInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 82: { + if (battleInfo_ == null) { + BattleInfo = new global::EggLink.DanhengServer.Proto.SceneBattleInfo(); + } + input.ReadMessage(BattleInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + Retcode = input.ReadUInt32(); + break; + } + case 82: { + if (battleInfo_ == null) { + BattleInfo = new global::EggLink.DanhengServer.Proto.SceneBattleInfo(); + } + input.ReadMessage(BattleInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneEntityGroupInfo.cs b/Common/Proto/SceneEntityGroupInfo.cs new file mode 100644 index 00000000..b559d13d --- /dev/null +++ b/Common/Proto/SceneEntityGroupInfo.cs @@ -0,0 +1,299 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneEntityGroupInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneEntityGroupInfo.proto + public static partial class SceneEntityGroupInfoReflection { + + #region Descriptor + /// File descriptor for SceneEntityGroupInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneEntityGroupInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTY2VuZUVudGl0eUdyb3VwSW5mby5wcm90bxoVU2NlbmVFbnRpdHlJbmZv", + "LnByb3RvIl4KFFNjZW5lRW50aXR5R3JvdXBJbmZvEg0KBXN0YXRlGAYgASgN", + "EhAKCGdyb3VwX2lkGAogASgNEiUKC2VudGl0eV9saXN0GAIgAygLMhAuU2Nl", + "bmVFbnRpdHlJbmZvQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneEntityInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneEntityGroupInfo), global::EggLink.DanhengServer.Proto.SceneEntityGroupInfo.Parser, new[]{ "State", "GroupId", "EntityList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneEntityGroupInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneEntityGroupInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneEntityGroupInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityGroupInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityGroupInfo(SceneEntityGroupInfo other) : this() { + state_ = other.state_; + groupId_ = other.groupId_; + entityList_ = other.entityList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityGroupInfo Clone() { + return new SceneEntityGroupInfo(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 6; + private uint state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 10; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "entity_list" field. + public const int EntityListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_entityList_codec + = pb::FieldCodec.ForMessage(18, global::EggLink.DanhengServer.Proto.SceneEntityInfo.Parser); + private readonly pbc::RepeatedField entityList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EntityList { + get { return entityList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneEntityGroupInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneEntityGroupInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (State != other.State) return false; + if (GroupId != other.GroupId) return false; + if(!entityList_.Equals(other.entityList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (State != 0) hash ^= State.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + hash ^= entityList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + entityList_.WriteTo(output, _repeated_entityList_codec); + if (State != 0) { + output.WriteRawTag(48); + output.WriteUInt32(State); + } + if (GroupId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + entityList_.WriteTo(ref output, _repeated_entityList_codec); + if (State != 0) { + output.WriteRawTag(48); + output.WriteUInt32(State); + } + if (GroupId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (State != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(State); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GroupId); + } + size += entityList_.CalculateSize(_repeated_entityList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneEntityGroupInfo other) { + if (other == null) { + return; + } + if (other.State != 0) { + State = other.State; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + entityList_.Add(other.entityList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + entityList_.AddEntriesFrom(input, _repeated_entityList_codec); + break; + } + case 48: { + State = input.ReadUInt32(); + break; + } + case 80: { + GroupId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + entityList_.AddEntriesFrom(ref input, _repeated_entityList_codec); + break; + } + case 48: { + State = input.ReadUInt32(); + break; + } + case 80: { + GroupId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneEntityInfo.cs b/Common/Proto/SceneEntityInfo.cs new file mode 100644 index 00000000..6f5866b9 --- /dev/null +++ b/Common/Proto/SceneEntityInfo.cs @@ -0,0 +1,592 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneEntityInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneEntityInfo.proto + public static partial class SceneEntityInfoReflection { + + #region Descriptor + /// File descriptor for SceneEntityInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneEntityInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVTY2VuZUVudGl0eUluZm8ucHJvdG8aEE1vdGlvbkluZm8ucHJvdG8aGVNj", + "ZW5lU3VtbW9uVW5pdEluZm8ucHJvdG8aFFNjZW5lQWN0b3JJbmZvLnByb3Rv", + "GhlTY2VuZU5wY01vbnN0ZXJJbmZvLnByb3RvGhJTY2VuZU5wY0luZm8ucHJv", + "dG8aE1NjZW5lUHJvcEluZm8ucHJvdG8ilAIKD1NjZW5lRW50aXR5SW5mbxIR", + "CgllbnRpdHlfaWQYBiABKA0SEAoIZ3JvdXBfaWQYCyABKA0SGwoGbW90aW9u", + "GAggASgLMgsuTW90aW9uSW5mbxIPCgdpbnN0X2lkGAQgASgNEh4KBWFjdG9y", + "GA0gASgLMg8uU2NlbmVBY3RvckluZm8SKQoLbnBjX21vbnN0ZXIYCSABKAsy", + "FC5TY2VuZU5wY01vbnN0ZXJJbmZvEhoKA25wYxgOIAEoCzINLlNjZW5lTnBj", + "SW5mbxIcCgRwcm9wGAUgASgLMg4uU2NlbmVQcm9wSW5mbxIpCgtzdW1tb25f", + "dW5pdBgMIAEoCzIULlNjZW5lU3VtbW9uVW5pdEluZm9CHqoCG0VnZ0xpbmsu", + "RGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MotionInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneSummonUnitInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneActorInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneNpcInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ScenePropInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneEntityInfo), global::EggLink.DanhengServer.Proto.SceneEntityInfo.Parser, new[]{ "EntityId", "GroupId", "Motion", "InstId", "Actor", "NpcMonster", "Npc", "Prop", "SummonUnit" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneEntityInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneEntityInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneEntityInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityInfo(SceneEntityInfo other) : this() { + entityId_ = other.entityId_; + groupId_ = other.groupId_; + motion_ = other.motion_ != null ? other.motion_.Clone() : null; + instId_ = other.instId_; + actor_ = other.actor_ != null ? other.actor_.Clone() : null; + npcMonster_ = other.npcMonster_ != null ? other.npcMonster_.Clone() : null; + npc_ = other.npc_ != null ? other.npc_.Clone() : null; + prop_ = other.prop_ != null ? other.prop_.Clone() : null; + summonUnit_ = other.summonUnit_ != null ? other.summonUnit_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityInfo Clone() { + return new SceneEntityInfo(this); + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 6; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 11; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "motion" field. + public const int MotionFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.MotionInfo motion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MotionInfo Motion { + get { return motion_; } + set { + motion_ = value; + } + } + + /// Field number for the "inst_id" field. + public const int InstIdFieldNumber = 4; + private uint instId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint InstId { + get { return instId_; } + set { + instId_ = value; + } + } + + /// Field number for the "actor" field. + public const int ActorFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.SceneActorInfo actor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneActorInfo Actor { + get { return actor_; } + set { + actor_ = value; + } + } + + /// Field number for the "npc_monster" field. + public const int NpcMonsterFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo npcMonster_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo NpcMonster { + get { return npcMonster_; } + set { + npcMonster_ = value; + } + } + + /// Field number for the "npc" field. + public const int NpcFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.SceneNpcInfo npc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneNpcInfo Npc { + get { return npc_; } + set { + npc_ = value; + } + } + + /// Field number for the "prop" field. + public const int PropFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.ScenePropInfo prop_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ScenePropInfo Prop { + get { return prop_; } + set { + prop_ = value; + } + } + + /// Field number for the "summon_unit" field. + public const int SummonUnitFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo summonUnit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo SummonUnit { + get { return summonUnit_; } + set { + summonUnit_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneEntityInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneEntityInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntityId != other.EntityId) return false; + if (GroupId != other.GroupId) return false; + if (!object.Equals(Motion, other.Motion)) return false; + if (InstId != other.InstId) return false; + if (!object.Equals(Actor, other.Actor)) return false; + if (!object.Equals(NpcMonster, other.NpcMonster)) return false; + if (!object.Equals(Npc, other.Npc)) return false; + if (!object.Equals(Prop, other.Prop)) return false; + if (!object.Equals(SummonUnit, other.SummonUnit)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (motion_ != null) hash ^= Motion.GetHashCode(); + if (InstId != 0) hash ^= InstId.GetHashCode(); + if (actor_ != null) hash ^= Actor.GetHashCode(); + if (npcMonster_ != null) hash ^= NpcMonster.GetHashCode(); + if (npc_ != null) hash ^= Npc.GetHashCode(); + if (prop_ != null) hash ^= Prop.GetHashCode(); + if (summonUnit_ != null) hash ^= SummonUnit.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (InstId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(InstId); + } + if (prop_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Prop); + } + if (EntityId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(EntityId); + } + if (motion_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Motion); + } + if (npcMonster_ != null) { + output.WriteRawTag(74); + output.WriteMessage(NpcMonster); + } + if (GroupId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(GroupId); + } + if (summonUnit_ != null) { + output.WriteRawTag(98); + output.WriteMessage(SummonUnit); + } + if (actor_ != null) { + output.WriteRawTag(106); + output.WriteMessage(Actor); + } + if (npc_ != null) { + output.WriteRawTag(114); + output.WriteMessage(Npc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (InstId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(InstId); + } + if (prop_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Prop); + } + if (EntityId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(EntityId); + } + if (motion_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Motion); + } + if (npcMonster_ != null) { + output.WriteRawTag(74); + output.WriteMessage(NpcMonster); + } + if (GroupId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(GroupId); + } + if (summonUnit_ != null) { + output.WriteRawTag(98); + output.WriteMessage(SummonUnit); + } + if (actor_ != null) { + output.WriteRawTag(106); + output.WriteMessage(Actor); + } + if (npc_ != null) { + output.WriteRawTag(114); + output.WriteMessage(Npc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GroupId); + } + if (motion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Motion); + } + if (InstId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(InstId); + } + if (actor_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Actor); + } + if (npcMonster_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NpcMonster); + } + if (npc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Npc); + } + if (prop_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Prop); + } + if (summonUnit_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SummonUnit); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneEntityInfo other) { + if (other == null) { + return; + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.motion_ != null) { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + Motion.MergeFrom(other.Motion); + } + if (other.InstId != 0) { + InstId = other.InstId; + } + if (other.actor_ != null) { + if (actor_ == null) { + Actor = new global::EggLink.DanhengServer.Proto.SceneActorInfo(); + } + Actor.MergeFrom(other.Actor); + } + if (other.npcMonster_ != null) { + if (npcMonster_ == null) { + NpcMonster = new global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo(); + } + NpcMonster.MergeFrom(other.NpcMonster); + } + if (other.npc_ != null) { + if (npc_ == null) { + Npc = new global::EggLink.DanhengServer.Proto.SceneNpcInfo(); + } + Npc.MergeFrom(other.Npc); + } + if (other.prop_ != null) { + if (prop_ == null) { + Prop = new global::EggLink.DanhengServer.Proto.ScenePropInfo(); + } + Prop.MergeFrom(other.Prop); + } + if (other.summonUnit_ != null) { + if (summonUnit_ == null) { + SummonUnit = new global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo(); + } + SummonUnit.MergeFrom(other.SummonUnit); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + InstId = input.ReadUInt32(); + break; + } + case 42: { + if (prop_ == null) { + Prop = new global::EggLink.DanhengServer.Proto.ScenePropInfo(); + } + input.ReadMessage(Prop); + break; + } + case 48: { + EntityId = input.ReadUInt32(); + break; + } + case 66: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + case 74: { + if (npcMonster_ == null) { + NpcMonster = new global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo(); + } + input.ReadMessage(NpcMonster); + break; + } + case 88: { + GroupId = input.ReadUInt32(); + break; + } + case 98: { + if (summonUnit_ == null) { + SummonUnit = new global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo(); + } + input.ReadMessage(SummonUnit); + break; + } + case 106: { + if (actor_ == null) { + Actor = new global::EggLink.DanhengServer.Proto.SceneActorInfo(); + } + input.ReadMessage(Actor); + break; + } + case 114: { + if (npc_ == null) { + Npc = new global::EggLink.DanhengServer.Proto.SceneNpcInfo(); + } + input.ReadMessage(Npc); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + InstId = input.ReadUInt32(); + break; + } + case 42: { + if (prop_ == null) { + Prop = new global::EggLink.DanhengServer.Proto.ScenePropInfo(); + } + input.ReadMessage(Prop); + break; + } + case 48: { + EntityId = input.ReadUInt32(); + break; + } + case 66: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + case 74: { + if (npcMonster_ == null) { + NpcMonster = new global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo(); + } + input.ReadMessage(NpcMonster); + break; + } + case 88: { + GroupId = input.ReadUInt32(); + break; + } + case 98: { + if (summonUnit_ == null) { + SummonUnit = new global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo(); + } + input.ReadMessage(SummonUnit); + break; + } + case 106: { + if (actor_ == null) { + Actor = new global::EggLink.DanhengServer.Proto.SceneActorInfo(); + } + input.ReadMessage(Actor); + break; + } + case 114: { + if (npc_ == null) { + Npc = new global::EggLink.DanhengServer.Proto.SceneNpcInfo(); + } + input.ReadMessage(Npc); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneEntityMoveCsReq.cs b/Common/Proto/SceneEntityMoveCsReq.cs new file mode 100644 index 00000000..bebd8098 --- /dev/null +++ b/Common/Proto/SceneEntityMoveCsReq.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneEntityMoveCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneEntityMoveCsReq.proto + public static partial class SceneEntityMoveCsReqReflection { + + #region Descriptor + /// File descriptor for SceneEntityMoveCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneEntityMoveCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTY2VuZUVudGl0eU1vdmVDc1JlcS5wcm90bxoSRW50aXR5TW90aW9uLnBy", + "b3RvIlMKFFNjZW5lRW50aXR5TW92ZUNzUmVxEhAKCGVudHJ5X2lkGAggASgN", + "EikKEmVudGl0eV9tb3Rpb25fbGlzdBgHIAMoCzINLkVudGl0eU1vdGlvbkIe", + "qgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.EntityMotionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneEntityMoveCsReq), global::EggLink.DanhengServer.Proto.SceneEntityMoveCsReq.Parser, new[]{ "EntryId", "EntityMotionList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneEntityMoveCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneEntityMoveCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneEntityMoveCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityMoveCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityMoveCsReq(SceneEntityMoveCsReq other) : this() { + entryId_ = other.entryId_; + entityMotionList_ = other.entityMotionList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityMoveCsReq Clone() { + return new SceneEntityMoveCsReq(this); + } + + /// Field number for the "entry_id" field. + public const int EntryIdFieldNumber = 8; + private uint entryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntryId { + get { return entryId_; } + set { + entryId_ = value; + } + } + + /// Field number for the "entity_motion_list" field. + public const int EntityMotionListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_entityMotionList_codec + = pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.EntityMotion.Parser); + private readonly pbc::RepeatedField entityMotionList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EntityMotionList { + get { return entityMotionList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneEntityMoveCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneEntityMoveCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntryId != other.EntryId) return false; + if(!entityMotionList_.Equals(other.entityMotionList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EntryId != 0) hash ^= EntryId.GetHashCode(); + hash ^= entityMotionList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + entityMotionList_.WriteTo(output, _repeated_entityMotionList_codec); + if (EntryId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(EntryId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + entityMotionList_.WriteTo(ref output, _repeated_entityMotionList_codec); + if (EntryId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(EntryId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EntryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntryId); + } + size += entityMotionList_.CalculateSize(_repeated_entityMotionList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneEntityMoveCsReq other) { + if (other == null) { + return; + } + if (other.EntryId != 0) { + EntryId = other.EntryId; + } + entityMotionList_.Add(other.entityMotionList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + entityMotionList_.AddEntriesFrom(input, _repeated_entityMotionList_codec); + break; + } + case 64: { + EntryId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + entityMotionList_.AddEntriesFrom(ref input, _repeated_entityMotionList_codec); + break; + } + case 64: { + EntryId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneEntityMoveScNotify.cs b/Common/Proto/SceneEntityMoveScNotify.cs new file mode 100644 index 00000000..57813d58 --- /dev/null +++ b/Common/Proto/SceneEntityMoveScNotify.cs @@ -0,0 +1,356 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneEntityMoveScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneEntityMoveScNotify.proto + public static partial class SceneEntityMoveScNotifyReflection { + + #region Descriptor + /// File descriptor for SceneEntityMoveScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneEntityMoveScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1TY2VuZUVudGl0eU1vdmVTY05vdGlmeS5wcm90bxoQTW90aW9uSW5mby5w", + "cm90byJ3ChdTY2VuZUVudGl0eU1vdmVTY05vdGlmeRIQCghlbnRyeV9pZBgK", + "IAEoDRIRCgllbnRpdHlfaWQYCyABKA0SGgoSY2xpZW50X3Bvc192ZXJzaW9u", + "GA0gASgNEhsKBm1vdGlvbhgIIAEoCzILLk1vdGlvbkluZm9CHqoCG0VnZ0xp", + "bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MotionInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneEntityMoveScNotify), global::EggLink.DanhengServer.Proto.SceneEntityMoveScNotify.Parser, new[]{ "EntryId", "EntityId", "ClientPosVersion", "Motion" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneEntityMoveScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneEntityMoveScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneEntityMoveScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityMoveScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityMoveScNotify(SceneEntityMoveScNotify other) : this() { + entryId_ = other.entryId_; + entityId_ = other.entityId_; + clientPosVersion_ = other.clientPosVersion_; + motion_ = other.motion_ != null ? other.motion_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityMoveScNotify Clone() { + return new SceneEntityMoveScNotify(this); + } + + /// Field number for the "entry_id" field. + public const int EntryIdFieldNumber = 10; + private uint entryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntryId { + get { return entryId_; } + set { + entryId_ = value; + } + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 11; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + /// Field number for the "client_pos_version" field. + public const int ClientPosVersionFieldNumber = 13; + private uint clientPosVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClientPosVersion { + get { return clientPosVersion_; } + set { + clientPosVersion_ = value; + } + } + + /// Field number for the "motion" field. + public const int MotionFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.MotionInfo motion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MotionInfo Motion { + get { return motion_; } + set { + motion_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneEntityMoveScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneEntityMoveScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntryId != other.EntryId) return false; + if (EntityId != other.EntityId) return false; + if (ClientPosVersion != other.ClientPosVersion) return false; + if (!object.Equals(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 (EntryId != 0) hash ^= EntryId.GetHashCode(); + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (ClientPosVersion != 0) hash ^= ClientPosVersion.GetHashCode(); + if (motion_ != null) 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 (motion_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Motion); + } + if (EntryId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(EntryId); + } + if (EntityId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(EntityId); + } + if (ClientPosVersion != 0) { + output.WriteRawTag(104); + output.WriteUInt32(ClientPosVersion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (motion_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Motion); + } + if (EntryId != 0) { + output.WriteRawTag(80); + output.WriteUInt32(EntryId); + } + if (EntityId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(EntityId); + } + if (ClientPosVersion != 0) { + output.WriteRawTag(104); + output.WriteUInt32(ClientPosVersion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EntryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntryId); + } + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (ClientPosVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClientPosVersion); + } + if (motion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Motion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneEntityMoveScNotify other) { + if (other == null) { + return; + } + if (other.EntryId != 0) { + EntryId = other.EntryId; + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + if (other.ClientPosVersion != 0) { + ClientPosVersion = other.ClientPosVersion; + } + if (other.motion_ != null) { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + Motion.MergeFrom(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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + case 80: { + EntryId = input.ReadUInt32(); + break; + } + case 88: { + EntityId = input.ReadUInt32(); + break; + } + case 104: { + ClientPosVersion = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: { + if (motion_ == null) { + Motion = new global::EggLink.DanhengServer.Proto.MotionInfo(); + } + input.ReadMessage(Motion); + break; + } + case 80: { + EntryId = input.ReadUInt32(); + break; + } + case 88: { + EntityId = input.ReadUInt32(); + break; + } + case 104: { + ClientPosVersion = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneEntityRefreshInfo.cs b/Common/Proto/SceneEntityRefreshInfo.cs new file mode 100644 index 00000000..b9e8a14d --- /dev/null +++ b/Common/Proto/SceneEntityRefreshInfo.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneEntityRefreshInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneEntityRefreshInfo.proto + public static partial class SceneEntityRefreshInfoReflection { + + #region Descriptor + /// File descriptor for SceneEntityRefreshInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneEntityRefreshInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxTY2VuZUVudGl0eVJlZnJlc2hJbmZvLnByb3RvGhVTY2VuZUVudGl0eUlu", + "Zm8ucHJvdG8iUgoWU2NlbmVFbnRpdHlSZWZyZXNoSW5mbxIkCgphZGRfZW50", + "aXR5GAEgASgLMhAuU2NlbmVFbnRpdHlJbmZvEhIKCmRlbF9lbnRpdHkYByAB", + "KA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneEntityInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneEntityRefreshInfo), global::EggLink.DanhengServer.Proto.SceneEntityRefreshInfo.Parser, new[]{ "AddEntity", "DelEntity" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneEntityRefreshInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneEntityRefreshInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneEntityRefreshInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityRefreshInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityRefreshInfo(SceneEntityRefreshInfo other) : this() { + addEntity_ = other.addEntity_ != null ? other.addEntity_.Clone() : null; + delEntity_ = other.delEntity_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityRefreshInfo Clone() { + return new SceneEntityRefreshInfo(this); + } + + /// Field number for the "add_entity" field. + public const int AddEntityFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.SceneEntityInfo addEntity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneEntityInfo AddEntity { + get { return addEntity_; } + set { + addEntity_ = value; + } + } + + /// Field number for the "del_entity" field. + public const int DelEntityFieldNumber = 7; + private uint delEntity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DelEntity { + get { return delEntity_; } + set { + delEntity_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneEntityRefreshInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneEntityRefreshInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AddEntity, other.AddEntity)) return false; + if (DelEntity != other.DelEntity) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (addEntity_ != null) hash ^= AddEntity.GetHashCode(); + if (DelEntity != 0) hash ^= DelEntity.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (addEntity_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AddEntity); + } + if (DelEntity != 0) { + output.WriteRawTag(56); + output.WriteUInt32(DelEntity); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (addEntity_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AddEntity); + } + if (DelEntity != 0) { + output.WriteRawTag(56); + output.WriteUInt32(DelEntity); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (addEntity_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AddEntity); + } + if (DelEntity != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DelEntity); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneEntityRefreshInfo other) { + if (other == null) { + return; + } + if (other.addEntity_ != null) { + if (addEntity_ == null) { + AddEntity = new global::EggLink.DanhengServer.Proto.SceneEntityInfo(); + } + AddEntity.MergeFrom(other.AddEntity); + } + if (other.DelEntity != 0) { + DelEntity = other.DelEntity; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (addEntity_ == null) { + AddEntity = new global::EggLink.DanhengServer.Proto.SceneEntityInfo(); + } + input.ReadMessage(AddEntity); + break; + } + case 56: { + DelEntity = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (addEntity_ == null) { + AddEntity = new global::EggLink.DanhengServer.Proto.SceneEntityInfo(); + } + input.ReadMessage(AddEntity); + break; + } + case 56: { + DelEntity = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneEntityTeleportCsReq.cs b/Common/Proto/SceneEntityTeleportCsReq.cs new file mode 100644 index 00000000..290818d6 --- /dev/null +++ b/Common/Proto/SceneEntityTeleportCsReq.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneEntityTeleportCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneEntityTeleportCsReq.proto + public static partial class SceneEntityTeleportCsReqReflection { + + #region Descriptor + /// File descriptor for SceneEntityTeleportCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneEntityTeleportCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5TY2VuZUVudGl0eVRlbGVwb3J0Q3NSZXEucHJvdG8aEkVudGl0eU1vdGlv", + "bi5wcm90byJSChhTY2VuZUVudGl0eVRlbGVwb3J0Q3NSZXESEAoIZW50cnlf", + "aWQYAiABKA0SJAoNZW50aXR5X21vdGlvbhgIIAEoCzINLkVudGl0eU1vdGlv", + "bkIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.EntityMotionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneEntityTeleportCsReq), global::EggLink.DanhengServer.Proto.SceneEntityTeleportCsReq.Parser, new[]{ "EntryId", "EntityMotion" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneEntityTeleportCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneEntityTeleportCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneEntityTeleportCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityTeleportCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityTeleportCsReq(SceneEntityTeleportCsReq other) : this() { + entryId_ = other.entryId_; + entityMotion_ = other.entityMotion_ != null ? other.entityMotion_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityTeleportCsReq Clone() { + return new SceneEntityTeleportCsReq(this); + } + + /// Field number for the "entry_id" field. + public const int EntryIdFieldNumber = 2; + private uint entryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntryId { + get { return entryId_; } + set { + entryId_ = value; + } + } + + /// Field number for the "entity_motion" field. + public const int EntityMotionFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.EntityMotion entityMotion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.EntityMotion EntityMotion { + get { return entityMotion_; } + set { + entityMotion_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneEntityTeleportCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneEntityTeleportCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntryId != other.EntryId) return false; + if (!object.Equals(EntityMotion, other.EntityMotion)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EntryId != 0) hash ^= EntryId.GetHashCode(); + if (entityMotion_ != null) hash ^= EntityMotion.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EntryId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(EntryId); + } + if (entityMotion_ != null) { + output.WriteRawTag(66); + output.WriteMessage(EntityMotion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EntryId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(EntryId); + } + if (entityMotion_ != null) { + output.WriteRawTag(66); + output.WriteMessage(EntityMotion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EntryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntryId); + } + if (entityMotion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityMotion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneEntityTeleportCsReq other) { + if (other == null) { + return; + } + if (other.EntryId != 0) { + EntryId = other.EntryId; + } + if (other.entityMotion_ != null) { + if (entityMotion_ == null) { + EntityMotion = new global::EggLink.DanhengServer.Proto.EntityMotion(); + } + EntityMotion.MergeFrom(other.EntityMotion); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + EntryId = input.ReadUInt32(); + break; + } + case 66: { + if (entityMotion_ == null) { + EntityMotion = new global::EggLink.DanhengServer.Proto.EntityMotion(); + } + input.ReadMessage(EntityMotion); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + EntryId = input.ReadUInt32(); + break; + } + case 66: { + if (entityMotion_ == null) { + EntityMotion = new global::EggLink.DanhengServer.Proto.EntityMotion(); + } + input.ReadMessage(EntityMotion); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneEntityTeleportScRsp.cs b/Common/Proto/SceneEntityTeleportScRsp.cs new file mode 100644 index 00000000..4c851c68 --- /dev/null +++ b/Common/Proto/SceneEntityTeleportScRsp.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneEntityTeleportScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneEntityTeleportScRsp.proto + public static partial class SceneEntityTeleportScRspReflection { + + #region Descriptor + /// File descriptor for SceneEntityTeleportScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneEntityTeleportScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5TY2VuZUVudGl0eVRlbGVwb3J0U2NSc3AucHJvdG8aEkVudGl0eU1vdGlv", + "bi5wcm90byJtChhTY2VuZUVudGl0eVRlbGVwb3J0U2NSc3ASGgoSY2xpZW50", + "X3Bvc192ZXJzaW9uGAYgASgNEg8KB3JldGNvZGUYDyABKA0SJAoNZW50aXR5", + "X21vdGlvbhgNIAEoCzINLkVudGl0eU1vdGlvbkIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.EntityMotionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneEntityTeleportScRsp), global::EggLink.DanhengServer.Proto.SceneEntityTeleportScRsp.Parser, new[]{ "ClientPosVersion", "Retcode", "EntityMotion" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneEntityTeleportScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneEntityTeleportScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneEntityTeleportScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityTeleportScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityTeleportScRsp(SceneEntityTeleportScRsp other) : this() { + clientPosVersion_ = other.clientPosVersion_; + retcode_ = other.retcode_; + entityMotion_ = other.entityMotion_ != null ? other.entityMotion_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneEntityTeleportScRsp Clone() { + return new SceneEntityTeleportScRsp(this); + } + + /// Field number for the "client_pos_version" field. + public const int ClientPosVersionFieldNumber = 6; + private uint clientPosVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClientPosVersion { + get { return clientPosVersion_; } + set { + clientPosVersion_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 15; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "entity_motion" field. + public const int EntityMotionFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.EntityMotion entityMotion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.EntityMotion EntityMotion { + get { return entityMotion_; } + set { + entityMotion_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneEntityTeleportScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneEntityTeleportScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClientPosVersion != other.ClientPosVersion) return false; + if (Retcode != other.Retcode) return false; + if (!object.Equals(EntityMotion, other.EntityMotion)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ClientPosVersion != 0) hash ^= ClientPosVersion.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (entityMotion_ != null) hash ^= EntityMotion.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ClientPosVersion != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ClientPosVersion); + } + if (entityMotion_ != null) { + output.WriteRawTag(106); + output.WriteMessage(EntityMotion); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ClientPosVersion != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ClientPosVersion); + } + if (entityMotion_ != null) { + output.WriteRawTag(106); + output.WriteMessage(EntityMotion); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ClientPosVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClientPosVersion); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (entityMotion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityMotion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneEntityTeleportScRsp other) { + if (other == null) { + return; + } + if (other.ClientPosVersion != 0) { + ClientPosVersion = other.ClientPosVersion; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.entityMotion_ != null) { + if (entityMotion_ == null) { + EntityMotion = new global::EggLink.DanhengServer.Proto.EntityMotion(); + } + EntityMotion.MergeFrom(other.EntityMotion); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 48: { + ClientPosVersion = input.ReadUInt32(); + break; + } + case 106: { + if (entityMotion_ == null) { + EntityMotion = new global::EggLink.DanhengServer.Proto.EntityMotion(); + } + input.ReadMessage(EntityMotion); + break; + } + case 120: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 48: { + ClientPosVersion = input.ReadUInt32(); + break; + } + case 106: { + if (entityMotion_ == null) { + EntityMotion = new global::EggLink.DanhengServer.Proto.EntityMotion(); + } + input.ReadMessage(EntityMotion); + break; + } + case 120: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneGroupRefreshInfo.cs b/Common/Proto/SceneGroupRefreshInfo.cs new file mode 100644 index 00000000..f00240ed --- /dev/null +++ b/Common/Proto/SceneGroupRefreshInfo.cs @@ -0,0 +1,299 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneGroupRefreshInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneGroupRefreshInfo.proto + public static partial class SceneGroupRefreshInfoReflection { + + #region Descriptor + /// File descriptor for SceneGroupRefreshInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneGroupRefreshInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTY2VuZUdyb3VwUmVmcmVzaEluZm8ucHJvdG8aHFNjZW5lRW50aXR5UmVm", + "cmVzaEluZm8ucHJvdG8iaQoVU2NlbmVHcm91cFJlZnJlc2hJbmZvEhAKCGdy", + "b3VwX2lkGAwgASgNEg0KBXN0YXRlGAMgASgNEi8KDnJlZnJlc2hfZW50aXR5", + "GA4gAygLMhcuU2NlbmVFbnRpdHlSZWZyZXNoSW5mb0IeqgIbRWdnTGluay5E", + "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneEntityRefreshInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneGroupRefreshInfo), global::EggLink.DanhengServer.Proto.SceneGroupRefreshInfo.Parser, new[]{ "GroupId", "State", "RefreshEntity" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneGroupRefreshInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneGroupRefreshInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneGroupRefreshInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneGroupRefreshInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneGroupRefreshInfo(SceneGroupRefreshInfo other) : this() { + groupId_ = other.groupId_; + state_ = other.state_; + refreshEntity_ = other.refreshEntity_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneGroupRefreshInfo Clone() { + return new SceneGroupRefreshInfo(this); + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 12; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 3; + private uint state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "refresh_entity" field. + public const int RefreshEntityFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_refreshEntity_codec + = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.SceneEntityRefreshInfo.Parser); + private readonly pbc::RepeatedField refreshEntity_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RefreshEntity { + get { return refreshEntity_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneGroupRefreshInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneGroupRefreshInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupId != other.GroupId) return false; + if (State != other.State) return false; + if(!refreshEntity_.Equals(other.refreshEntity_)) return false; + 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 (State != 0) hash ^= State.GetHashCode(); + hash ^= refreshEntity_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (State != 0) { + output.WriteRawTag(24); + output.WriteUInt32(State); + } + if (GroupId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(GroupId); + } + refreshEntity_.WriteTo(output, _repeated_refreshEntity_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (State != 0) { + output.WriteRawTag(24); + output.WriteUInt32(State); + } + if (GroupId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(GroupId); + } + refreshEntity_.WriteTo(ref output, _repeated_refreshEntity_codec); + if (_unknownFields != 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.ComputeUInt32Size(GroupId); + } + if (State != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(State); + } + size += refreshEntity_.CalculateSize(_repeated_refreshEntity_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneGroupRefreshInfo other) { + if (other == null) { + return; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.State != 0) { + State = other.State; + } + refreshEntity_.Add(other.refreshEntity_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + State = input.ReadUInt32(); + break; + } + case 96: { + GroupId = input.ReadUInt32(); + break; + } + case 114: { + refreshEntity_.AddEntriesFrom(input, _repeated_refreshEntity_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + State = input.ReadUInt32(); + break; + } + case 96: { + GroupId = input.ReadUInt32(); + break; + } + case 114: { + refreshEntity_.AddEntriesFrom(ref input, _repeated_refreshEntity_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneGroupRefreshScNotify.cs b/Common/Proto/SceneGroupRefreshScNotify.cs new file mode 100644 index 00000000..6d119453 --- /dev/null +++ b/Common/Proto/SceneGroupRefreshScNotify.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneGroupRefreshScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneGroupRefreshScNotify.proto + public static partial class SceneGroupRefreshScNotifyReflection { + + #region Descriptor + /// File descriptor for SceneGroupRefreshScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneGroupRefreshScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9TY2VuZUdyb3VwUmVmcmVzaFNjTm90aWZ5LnByb3RvGhtTY2VuZUdyb3Vw", + "UmVmcmVzaEluZm8ucHJvdG8iTwoZU2NlbmVHcm91cFJlZnJlc2hTY05vdGlm", + "eRIyChJncm91cF9yZWZyZXNoX2luZm8YBSADKAsyFi5TY2VuZUdyb3VwUmVm", + "cmVzaEluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneGroupRefreshInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneGroupRefreshScNotify), global::EggLink.DanhengServer.Proto.SceneGroupRefreshScNotify.Parser, new[]{ "GroupRefreshInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneGroupRefreshScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneGroupRefreshScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneGroupRefreshScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneGroupRefreshScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneGroupRefreshScNotify(SceneGroupRefreshScNotify other) : this() { + groupRefreshInfo_ = other.groupRefreshInfo_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneGroupRefreshScNotify Clone() { + return new SceneGroupRefreshScNotify(this); + } + + /// Field number for the "group_refresh_info" field. + public const int GroupRefreshInfoFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_groupRefreshInfo_codec + = pb::FieldCodec.ForMessage(42, global::EggLink.DanhengServer.Proto.SceneGroupRefreshInfo.Parser); + private readonly pbc::RepeatedField groupRefreshInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GroupRefreshInfo { + get { return groupRefreshInfo_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneGroupRefreshScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneGroupRefreshScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!groupRefreshInfo_.Equals(other.groupRefreshInfo_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= groupRefreshInfo_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + groupRefreshInfo_.WriteTo(output, _repeated_groupRefreshInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + groupRefreshInfo_.WriteTo(ref output, _repeated_groupRefreshInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += groupRefreshInfo_.CalculateSize(_repeated_groupRefreshInfo_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneGroupRefreshScNotify other) { + if (other == null) { + return; + } + groupRefreshInfo_.Add(other.groupRefreshInfo_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + groupRefreshInfo_.AddEntriesFrom(input, _repeated_groupRefreshInfo_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + groupRefreshInfo_.AddEntriesFrom(ref input, _repeated_groupRefreshInfo_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneGroupState.cs b/Common/Proto/SceneGroupState.cs new file mode 100644 index 00000000..93631061 --- /dev/null +++ b/Common/Proto/SceneGroupState.cs @@ -0,0 +1,308 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneGroupState.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneGroupState.proto + public static partial class SceneGroupStateReflection { + + #region Descriptor + /// File descriptor for SceneGroupState.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneGroupStateReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVTY2VuZUdyb3VwU3RhdGUucHJvdG8iRgoPU2NlbmVHcm91cFN0YXRlEhIK", + "CmlzX2RlZmF1bHQYByABKAgSDQoFc3RhdGUYCyABKA0SEAoIZ3JvdXBfaWQY", + "DyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneGroupState), global::EggLink.DanhengServer.Proto.SceneGroupState.Parser, new[]{ "IsDefault", "State", "GroupId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneGroupState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneGroupState()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneGroupStateReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneGroupState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneGroupState(SceneGroupState other) : this() { + isDefault_ = other.isDefault_; + state_ = other.state_; + groupId_ = other.groupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneGroupState Clone() { + return new SceneGroupState(this); + } + + /// Field number for the "is_default" field. + public const int IsDefaultFieldNumber = 7; + private bool isDefault_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsDefault { + get { return isDefault_; } + set { + isDefault_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 11; + private uint state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 15; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneGroupState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneGroupState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsDefault != other.IsDefault) return false; + if (State != other.State) return false; + if (GroupId != other.GroupId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (IsDefault != false) hash ^= IsDefault.GetHashCode(); + if (State != 0) hash ^= State.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (IsDefault != false) { + output.WriteRawTag(56); + output.WriteBool(IsDefault); + } + if (State != 0) { + output.WriteRawTag(88); + output.WriteUInt32(State); + } + if (GroupId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (IsDefault != false) { + output.WriteRawTag(56); + output.WriteBool(IsDefault); + } + if (State != 0) { + output.WriteRawTag(88); + output.WriteUInt32(State); + } + if (GroupId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (IsDefault != false) { + size += 1 + 1; + } + if (State != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(State); + } + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneGroupState other) { + if (other == null) { + return; + } + if (other.IsDefault != false) { + IsDefault = other.IsDefault; + } + if (other.State != 0) { + State = other.State; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 56: { + IsDefault = input.ReadBool(); + break; + } + case 88: { + State = input.ReadUInt32(); + break; + } + case 120: { + GroupId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 56: { + IsDefault = input.ReadBool(); + break; + } + case 88: { + State = input.ReadUInt32(); + break; + } + case 120: { + GroupId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneInfo.cs b/Common/Proto/SceneInfo.cs new file mode 100644 index 00000000..824cb887 --- /dev/null +++ b/Common/Proto/SceneInfo.cs @@ -0,0 +1,598 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneInfo.proto + public static partial class SceneInfoReflection { + + #region Descriptor + /// File descriptor for SceneInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9TY2VuZUluZm8ucHJvdG8aFVNjZW5lRW50aXR5SW5mby5wcm90bxoVU2Nl", + "bmVHcm91cFN0YXRlLnByb3RvGhpTY2VuZUVudGl0eUdyb3VwSW5mby5wcm90", + "byLdAgoJU2NlbmVJbmZvEhAKCGZsb29yX2lkGAMgASgNEhYKDmdhbWVfbW9k", + "ZV90eXBlGA8gASgNEisKEGdyb3VwX3N0YXRlX2xpc3QY2wIgAygLMhAuU2Nl", + "bmVHcm91cFN0YXRlEhUKDWdyb3VwX2lkX2xpc3QYBCADKA0SEAoIZW50cnlf", + "aWQYCyABKA0SHAoUbGlnaHRlbl9zZWN0aW9uX2xpc3QYCSADKA0SJQoLZW50", + "aXR5X2xpc3QYASADKAsyEC5TY2VuZUVudGl0eUluZm8SGgoSY2xpZW50X3Bv", + "c192ZXJzaW9uGAcgASgNEjEKEWVudGl0eV9ncm91cF9saXN0GIIMIAMoCzIV", + "LlNjZW5lRW50aXR5R3JvdXBJbmZvEhAKCHdvcmxkX2lkGAUgASgNEhAKCHBs", + "YW5lX2lkGA0gASgNEhgKEGxlYWRlcl9lbnRpdHlfaWQYAiABKA1CHqoCG0Vn", + "Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneEntityInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneGroupStateReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneEntityGroupInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneInfo), global::EggLink.DanhengServer.Proto.SceneInfo.Parser, new[]{ "FloorId", "GameModeType", "GroupStateList", "GroupIdList", "EntryId", "LightenSectionList", "EntityList", "ClientPosVersion", "EntityGroupList", "WorldId", "PlaneId", "LeaderEntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneInfo(SceneInfo other) : this() { + floorId_ = other.floorId_; + gameModeType_ = other.gameModeType_; + groupStateList_ = other.groupStateList_.Clone(); + groupIdList_ = other.groupIdList_.Clone(); + entryId_ = other.entryId_; + lightenSectionList_ = other.lightenSectionList_.Clone(); + entityList_ = other.entityList_.Clone(); + clientPosVersion_ = other.clientPosVersion_; + entityGroupList_ = other.entityGroupList_.Clone(); + worldId_ = other.worldId_; + planeId_ = other.planeId_; + leaderEntityId_ = other.leaderEntityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneInfo Clone() { + return new SceneInfo(this); + } + + /// Field number for the "floor_id" field. + public const int FloorIdFieldNumber = 3; + 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 "game_mode_type" field. + public const int GameModeTypeFieldNumber = 15; + private uint gameModeType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GameModeType { + get { return gameModeType_; } + set { + gameModeType_ = value; + } + } + + /// Field number for the "group_state_list" field. + public const int GroupStateListFieldNumber = 347; + private static readonly pb::FieldCodec _repeated_groupStateList_codec + = pb::FieldCodec.ForMessage(2778, global::EggLink.DanhengServer.Proto.SceneGroupState.Parser); + private readonly pbc::RepeatedField groupStateList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GroupStateList { + get { return groupStateList_; } + } + + /// Field number for the "group_id_list" field. + public const int GroupIdListFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_groupIdList_codec + = pb::FieldCodec.ForUInt32(34); + private readonly pbc::RepeatedField groupIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GroupIdList { + get { return groupIdList_; } + } + + /// Field number for the "entry_id" field. + public const int EntryIdFieldNumber = 11; + private uint entryId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntryId { + get { return entryId_; } + set { + entryId_ = value; + } + } + + /// Field number for the "lighten_section_list" field. + public const int LightenSectionListFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_lightenSectionList_codec + = pb::FieldCodec.ForUInt32(74); + private readonly pbc::RepeatedField lightenSectionList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LightenSectionList { + get { return lightenSectionList_; } + } + + /// Field number for the "entity_list" field. + public const int EntityListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_entityList_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.SceneEntityInfo.Parser); + private readonly pbc::RepeatedField entityList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EntityList { + get { return entityList_; } + } + + /// Field number for the "client_pos_version" field. + public const int ClientPosVersionFieldNumber = 7; + private uint clientPosVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClientPosVersion { + get { return clientPosVersion_; } + set { + clientPosVersion_ = value; + } + } + + /// Field number for the "entity_group_list" field. + public const int EntityGroupListFieldNumber = 1538; + private static readonly pb::FieldCodec _repeated_entityGroupList_codec + = pb::FieldCodec.ForMessage(12306, global::EggLink.DanhengServer.Proto.SceneEntityGroupInfo.Parser); + private readonly pbc::RepeatedField entityGroupList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EntityGroupList { + get { return entityGroupList_; } + } + + /// Field number for the "world_id" field. + public const int WorldIdFieldNumber = 5; + private uint worldId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WorldId { + get { return worldId_; } + set { + worldId_ = value; + } + } + + /// Field number for the "plane_id" field. + public const int PlaneIdFieldNumber = 13; + private uint planeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PlaneId { + get { return planeId_; } + set { + planeId_ = value; + } + } + + /// Field number for the "leader_entity_id" field. + public const int LeaderEntityIdFieldNumber = 2; + private uint leaderEntityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint LeaderEntityId { + get { return leaderEntityId_; } + set { + leaderEntityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FloorId != other.FloorId) return false; + if (GameModeType != other.GameModeType) return false; + if(!groupStateList_.Equals(other.groupStateList_)) return false; + if(!groupIdList_.Equals(other.groupIdList_)) return false; + if (EntryId != other.EntryId) return false; + if(!lightenSectionList_.Equals(other.lightenSectionList_)) return false; + if(!entityList_.Equals(other.entityList_)) return false; + if (ClientPosVersion != other.ClientPosVersion) return false; + if(!entityGroupList_.Equals(other.entityGroupList_)) return false; + if (WorldId != other.WorldId) return false; + if (PlaneId != other.PlaneId) return false; + if (LeaderEntityId != other.LeaderEntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FloorId != 0) hash ^= FloorId.GetHashCode(); + if (GameModeType != 0) hash ^= GameModeType.GetHashCode(); + hash ^= groupStateList_.GetHashCode(); + hash ^= groupIdList_.GetHashCode(); + if (EntryId != 0) hash ^= EntryId.GetHashCode(); + hash ^= lightenSectionList_.GetHashCode(); + hash ^= entityList_.GetHashCode(); + if (ClientPosVersion != 0) hash ^= ClientPosVersion.GetHashCode(); + hash ^= entityGroupList_.GetHashCode(); + if (WorldId != 0) hash ^= WorldId.GetHashCode(); + if (PlaneId != 0) hash ^= PlaneId.GetHashCode(); + if (LeaderEntityId != 0) hash ^= LeaderEntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + entityList_.WriteTo(output, _repeated_entityList_codec); + if (LeaderEntityId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(LeaderEntityId); + } + if (FloorId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FloorId); + } + groupIdList_.WriteTo(output, _repeated_groupIdList_codec); + if (WorldId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(WorldId); + } + if (ClientPosVersion != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ClientPosVersion); + } + lightenSectionList_.WriteTo(output, _repeated_lightenSectionList_codec); + if (EntryId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(EntryId); + } + if (PlaneId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(PlaneId); + } + if (GameModeType != 0) { + output.WriteRawTag(120); + output.WriteUInt32(GameModeType); + } + groupStateList_.WriteTo(output, _repeated_groupStateList_codec); + entityGroupList_.WriteTo(output, _repeated_entityGroupList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + entityList_.WriteTo(ref output, _repeated_entityList_codec); + if (LeaderEntityId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(LeaderEntityId); + } + if (FloorId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(FloorId); + } + groupIdList_.WriteTo(ref output, _repeated_groupIdList_codec); + if (WorldId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(WorldId); + } + if (ClientPosVersion != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ClientPosVersion); + } + lightenSectionList_.WriteTo(ref output, _repeated_lightenSectionList_codec); + if (EntryId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(EntryId); + } + if (PlaneId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(PlaneId); + } + if (GameModeType != 0) { + output.WriteRawTag(120); + output.WriteUInt32(GameModeType); + } + groupStateList_.WriteTo(ref output, _repeated_groupStateList_codec); + entityGroupList_.WriteTo(ref output, _repeated_entityGroupList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FloorId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FloorId); + } + if (GameModeType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GameModeType); + } + size += groupStateList_.CalculateSize(_repeated_groupStateList_codec); + size += groupIdList_.CalculateSize(_repeated_groupIdList_codec); + if (EntryId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntryId); + } + size += lightenSectionList_.CalculateSize(_repeated_lightenSectionList_codec); + size += entityList_.CalculateSize(_repeated_entityList_codec); + if (ClientPosVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClientPosVersion); + } + size += entityGroupList_.CalculateSize(_repeated_entityGroupList_codec); + if (WorldId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldId); + } + if (PlaneId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlaneId); + } + if (LeaderEntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LeaderEntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneInfo other) { + if (other == null) { + return; + } + if (other.FloorId != 0) { + FloorId = other.FloorId; + } + if (other.GameModeType != 0) { + GameModeType = other.GameModeType; + } + groupStateList_.Add(other.groupStateList_); + groupIdList_.Add(other.groupIdList_); + if (other.EntryId != 0) { + EntryId = other.EntryId; + } + lightenSectionList_.Add(other.lightenSectionList_); + entityList_.Add(other.entityList_); + if (other.ClientPosVersion != 0) { + ClientPosVersion = other.ClientPosVersion; + } + entityGroupList_.Add(other.entityGroupList_); + if (other.WorldId != 0) { + WorldId = other.WorldId; + } + if (other.PlaneId != 0) { + PlaneId = other.PlaneId; + } + if (other.LeaderEntityId != 0) { + LeaderEntityId = other.LeaderEntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + entityList_.AddEntriesFrom(input, _repeated_entityList_codec); + break; + } + case 16: { + LeaderEntityId = input.ReadUInt32(); + break; + } + case 24: { + FloorId = input.ReadUInt32(); + break; + } + case 34: + case 32: { + groupIdList_.AddEntriesFrom(input, _repeated_groupIdList_codec); + break; + } + case 40: { + WorldId = input.ReadUInt32(); + break; + } + case 56: { + ClientPosVersion = input.ReadUInt32(); + break; + } + case 74: + case 72: { + lightenSectionList_.AddEntriesFrom(input, _repeated_lightenSectionList_codec); + break; + } + case 88: { + EntryId = input.ReadUInt32(); + break; + } + case 104: { + PlaneId = input.ReadUInt32(); + break; + } + case 120: { + GameModeType = input.ReadUInt32(); + break; + } + case 2778: { + groupStateList_.AddEntriesFrom(input, _repeated_groupStateList_codec); + break; + } + case 12306: { + entityGroupList_.AddEntriesFrom(input, _repeated_entityGroupList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + entityList_.AddEntriesFrom(ref input, _repeated_entityList_codec); + break; + } + case 16: { + LeaderEntityId = input.ReadUInt32(); + break; + } + case 24: { + FloorId = input.ReadUInt32(); + break; + } + case 34: + case 32: { + groupIdList_.AddEntriesFrom(ref input, _repeated_groupIdList_codec); + break; + } + case 40: { + WorldId = input.ReadUInt32(); + break; + } + case 56: { + ClientPosVersion = input.ReadUInt32(); + break; + } + case 74: + case 72: { + lightenSectionList_.AddEntriesFrom(ref input, _repeated_lightenSectionList_codec); + break; + } + case 88: { + EntryId = input.ReadUInt32(); + break; + } + case 104: { + PlaneId = input.ReadUInt32(); + break; + } + case 120: { + GameModeType = input.ReadUInt32(); + break; + } + case 2778: { + groupStateList_.AddEntriesFrom(ref input, _repeated_groupStateList_codec); + break; + } + case 12306: { + entityGroupList_.AddEntriesFrom(ref input, _repeated_entityGroupList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneMonster.cs b/Common/Proto/SceneMonster.cs new file mode 100644 index 00000000..93e94fa3 --- /dev/null +++ b/Common/Proto/SceneMonster.cs @@ -0,0 +1,308 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneMonster.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneMonster.proto + public static partial class SceneMonsterReflection { + + #region Descriptor + /// File descriptor for SceneMonster.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneMonsterReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJTY2VuZU1vbnN0ZXIucHJvdG8iQgoMU2NlbmVNb25zdGVyEg4KBm1heF9o", + "cBgOIAEoDRISCgptb25zdGVyX2lkGA8gASgNEg4KBmN1cl9ocBgCIAEoDUIe", + "qgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneMonster), global::EggLink.DanhengServer.Proto.SceneMonster.Parser, new[]{ "MaxHp", "MonsterId", "CurHp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneMonster : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneMonster()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneMonsterReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneMonster() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneMonster(SceneMonster other) : this() { + maxHp_ = other.maxHp_; + monsterId_ = other.monsterId_; + curHp_ = other.curHp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneMonster Clone() { + return new SceneMonster(this); + } + + /// Field number for the "max_hp" field. + public const int MaxHpFieldNumber = 14; + private uint maxHp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxHp { + get { return maxHp_; } + set { + maxHp_ = value; + } + } + + /// Field number for the "monster_id" field. + public const int MonsterIdFieldNumber = 15; + private uint monsterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MonsterId { + get { return monsterId_; } + set { + monsterId_ = value; + } + } + + /// Field number for the "cur_hp" field. + public const int CurHpFieldNumber = 2; + private uint curHp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurHp { + get { return curHp_; } + set { + curHp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneMonster); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneMonster other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MaxHp != other.MaxHp) return false; + if (MonsterId != other.MonsterId) return false; + if (CurHp != other.CurHp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MaxHp != 0) hash ^= MaxHp.GetHashCode(); + if (MonsterId != 0) hash ^= MonsterId.GetHashCode(); + if (CurHp != 0) hash ^= CurHp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CurHp != 0) { + output.WriteRawTag(16); + output.WriteUInt32(CurHp); + } + if (MaxHp != 0) { + output.WriteRawTag(112); + output.WriteUInt32(MaxHp); + } + if (MonsterId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(MonsterId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CurHp != 0) { + output.WriteRawTag(16); + output.WriteUInt32(CurHp); + } + if (MaxHp != 0) { + output.WriteRawTag(112); + output.WriteUInt32(MaxHp); + } + if (MonsterId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(MonsterId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MaxHp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxHp); + } + if (MonsterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MonsterId); + } + if (CurHp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurHp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneMonster other) { + if (other == null) { + return; + } + if (other.MaxHp != 0) { + MaxHp = other.MaxHp; + } + if (other.MonsterId != 0) { + MonsterId = other.MonsterId; + } + if (other.CurHp != 0) { + CurHp = other.CurHp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + CurHp = input.ReadUInt32(); + break; + } + case 112: { + MaxHp = input.ReadUInt32(); + break; + } + case 120: { + MonsterId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + CurHp = input.ReadUInt32(); + break; + } + case 112: { + MaxHp = input.ReadUInt32(); + break; + } + case 120: { + MonsterId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneMonsterWave.cs b/Common/Proto/SceneMonsterWave.cs new file mode 100644 index 00000000..66d6d703 --- /dev/null +++ b/Common/Proto/SceneMonsterWave.cs @@ -0,0 +1,373 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneMonsterWave.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneMonsterWave.proto + public static partial class SceneMonsterWaveReflection { + + #region Descriptor + /// File descriptor for SceneMonsterWave.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneMonsterWaveReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZTY2VuZU1vbnN0ZXJXYXZlLnByb3RvGhJTY2VuZU1vbnN0ZXIucHJvdG8a", + "G1NjZW5lTW9uc3RlcldhdmVQYXJhbS5wcm90bxoOSXRlbUxpc3QucHJvdG8i", + "pAEKEFNjZW5lTW9uc3RlcldhdmUSDwoHd2F2ZV9pZBgEIAEoDRIcCglkcm9w", + "X2xpc3QYDCADKAsyCS5JdGVtTGlzdBIQCghzdGFnZV9pZBgPIAEoDRIjCgxt", + "b25zdGVyX2xpc3QYBiADKAsyDS5TY2VuZU1vbnN0ZXISKgoKd2F2ZV9wYXJh", + "bRgLIAEoCzIWLlNjZW5lTW9uc3RlcldhdmVQYXJhbUIeqgIbRWdnTGluay5E", + "YW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneMonsterReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneMonsterWaveParamReflection.Descriptor, global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneMonsterWave), global::EggLink.DanhengServer.Proto.SceneMonsterWave.Parser, new[]{ "WaveId", "DropList", "StageId", "MonsterList", "WaveParam" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneMonsterWave : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneMonsterWave()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneMonsterWaveReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneMonsterWave() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneMonsterWave(SceneMonsterWave other) : this() { + waveId_ = other.waveId_; + dropList_ = other.dropList_.Clone(); + stageId_ = other.stageId_; + monsterList_ = other.monsterList_.Clone(); + waveParam_ = other.waveParam_ != null ? other.waveParam_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneMonsterWave Clone() { + return new SceneMonsterWave(this); + } + + /// Field number for the "wave_id" field. + public const int WaveIdFieldNumber = 4; + private uint waveId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WaveId { + get { return waveId_; } + set { + waveId_ = value; + } + } + + /// Field number for the "drop_list" field. + public const int DropListFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_dropList_codec + = pb::FieldCodec.ForMessage(98, global::EggLink.DanhengServer.Proto.ItemList.Parser); + private readonly pbc::RepeatedField dropList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DropList { + get { return dropList_; } + } + + /// Field number for the "stage_id" field. + public const int StageIdFieldNumber = 15; + private uint stageId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StageId { + get { return stageId_; } + set { + stageId_ = value; + } + } + + /// Field number for the "monster_list" field. + public const int MonsterListFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_monsterList_codec + = pb::FieldCodec.ForMessage(50, global::EggLink.DanhengServer.Proto.SceneMonster.Parser); + private readonly pbc::RepeatedField monsterList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MonsterList { + get { return monsterList_; } + } + + /// Field number for the "wave_param" field. + public const int WaveParamFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.SceneMonsterWaveParam waveParam_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneMonsterWaveParam WaveParam { + get { return waveParam_; } + set { + waveParam_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneMonsterWave); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneMonsterWave other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (WaveId != other.WaveId) return false; + if(!dropList_.Equals(other.dropList_)) return false; + if (StageId != other.StageId) return false; + if(!monsterList_.Equals(other.monsterList_)) return false; + if (!object.Equals(WaveParam, other.WaveParam)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (WaveId != 0) hash ^= WaveId.GetHashCode(); + hash ^= dropList_.GetHashCode(); + if (StageId != 0) hash ^= StageId.GetHashCode(); + hash ^= monsterList_.GetHashCode(); + if (waveParam_ != null) hash ^= WaveParam.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (WaveId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(WaveId); + } + monsterList_.WriteTo(output, _repeated_monsterList_codec); + if (waveParam_ != null) { + output.WriteRawTag(90); + output.WriteMessage(WaveParam); + } + dropList_.WriteTo(output, _repeated_dropList_codec); + if (StageId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(StageId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (WaveId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(WaveId); + } + monsterList_.WriteTo(ref output, _repeated_monsterList_codec); + if (waveParam_ != null) { + output.WriteRawTag(90); + output.WriteMessage(WaveParam); + } + dropList_.WriteTo(ref output, _repeated_dropList_codec); + if (StageId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(StageId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (WaveId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WaveId); + } + size += dropList_.CalculateSize(_repeated_dropList_codec); + if (StageId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StageId); + } + size += monsterList_.CalculateSize(_repeated_monsterList_codec); + if (waveParam_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WaveParam); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneMonsterWave other) { + if (other == null) { + return; + } + if (other.WaveId != 0) { + WaveId = other.WaveId; + } + dropList_.Add(other.dropList_); + if (other.StageId != 0) { + StageId = other.StageId; + } + monsterList_.Add(other.monsterList_); + if (other.waveParam_ != null) { + if (waveParam_ == null) { + WaveParam = new global::EggLink.DanhengServer.Proto.SceneMonsterWaveParam(); + } + WaveParam.MergeFrom(other.WaveParam); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + WaveId = input.ReadUInt32(); + break; + } + case 50: { + monsterList_.AddEntriesFrom(input, _repeated_monsterList_codec); + break; + } + case 90: { + if (waveParam_ == null) { + WaveParam = new global::EggLink.DanhengServer.Proto.SceneMonsterWaveParam(); + } + input.ReadMessage(WaveParam); + break; + } + case 98: { + dropList_.AddEntriesFrom(input, _repeated_dropList_codec); + break; + } + case 120: { + StageId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + WaveId = input.ReadUInt32(); + break; + } + case 50: { + monsterList_.AddEntriesFrom(ref input, _repeated_monsterList_codec); + break; + } + case 90: { + if (waveParam_ == null) { + WaveParam = new global::EggLink.DanhengServer.Proto.SceneMonsterWaveParam(); + } + input.ReadMessage(WaveParam); + break; + } + case 98: { + dropList_.AddEntriesFrom(ref input, _repeated_dropList_codec); + break; + } + case 120: { + StageId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneMonsterWaveParam.cs b/Common/Proto/SceneMonsterWaveParam.cs new file mode 100644 index 00000000..176a43ab --- /dev/null +++ b/Common/Proto/SceneMonsterWaveParam.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneMonsterWaveParam.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneMonsterWaveParam.proto + public static partial class SceneMonsterWaveParamReflection { + + #region Descriptor + /// File descriptor for SceneMonsterWaveParam.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneMonsterWaveParamReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTY2VuZU1vbnN0ZXJXYXZlUGFyYW0ucHJvdG8iVQoVU2NlbmVNb25zdGVy", + "V2F2ZVBhcmFtEhgKEGhhcmRfbGV2ZWxfZ3JvdXAYAyABKA0SDQoFbGV2ZWwY", + "CCABKA0SEwoLZWxpdGVfZ3JvdXAYCiABKA1CHqoCG0VnZ0xpbmsuRGFuaGVu", + "Z1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneMonsterWaveParam), global::EggLink.DanhengServer.Proto.SceneMonsterWaveParam.Parser, new[]{ "HardLevelGroup", "Level", "EliteGroup" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneMonsterWaveParam : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneMonsterWaveParam()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneMonsterWaveParamReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneMonsterWaveParam() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneMonsterWaveParam(SceneMonsterWaveParam other) : this() { + hardLevelGroup_ = other.hardLevelGroup_; + level_ = other.level_; + eliteGroup_ = other.eliteGroup_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneMonsterWaveParam Clone() { + return new SceneMonsterWaveParam(this); + } + + /// Field number for the "hard_level_group" field. + public const int HardLevelGroupFieldNumber = 3; + private uint hardLevelGroup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint HardLevelGroup { + get { return hardLevelGroup_; } + set { + hardLevelGroup_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 8; + 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 "elite_group" field. + public const int EliteGroupFieldNumber = 10; + private uint eliteGroup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EliteGroup { + get { return eliteGroup_; } + set { + eliteGroup_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneMonsterWaveParam); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneMonsterWaveParam other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (HardLevelGroup != other.HardLevelGroup) return false; + if (Level != other.Level) return false; + if (EliteGroup != other.EliteGroup) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HardLevelGroup != 0) hash ^= HardLevelGroup.GetHashCode(); + if (Level != 0) hash ^= Level.GetHashCode(); + if (EliteGroup != 0) hash ^= EliteGroup.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HardLevelGroup != 0) { + output.WriteRawTag(24); + output.WriteUInt32(HardLevelGroup); + } + if (Level != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Level); + } + if (EliteGroup != 0) { + output.WriteRawTag(80); + output.WriteUInt32(EliteGroup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HardLevelGroup != 0) { + output.WriteRawTag(24); + output.WriteUInt32(HardLevelGroup); + } + if (Level != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Level); + } + if (EliteGroup != 0) { + output.WriteRawTag(80); + output.WriteUInt32(EliteGroup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HardLevelGroup != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(HardLevelGroup); + } + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (EliteGroup != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EliteGroup); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneMonsterWaveParam other) { + if (other == null) { + return; + } + if (other.HardLevelGroup != 0) { + HardLevelGroup = other.HardLevelGroup; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.EliteGroup != 0) { + EliteGroup = other.EliteGroup; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + HardLevelGroup = input.ReadUInt32(); + break; + } + case 64: { + Level = input.ReadUInt32(); + break; + } + case 80: { + EliteGroup = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + HardLevelGroup = input.ReadUInt32(); + break; + } + case 64: { + Level = input.ReadUInt32(); + break; + } + case 80: { + EliteGroup = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneNpcInfo.cs b/Common/Proto/SceneNpcInfo.cs new file mode 100644 index 00000000..0a57247e --- /dev/null +++ b/Common/Proto/SceneNpcInfo.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneNpcInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneNpcInfo.proto + public static partial class SceneNpcInfoReflection { + + #region Descriptor + /// File descriptor for SceneNpcInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneNpcInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJTY2VuZU5wY0luZm8ucHJvdG8aEk5wY0V4dHJhSW5mby5wcm90byJBCgxT", + "Y2VuZU5wY0luZm8SIQoKZXh0cmFfaW5mbxgEIAEoCzINLk5wY0V4dHJhSW5m", + "bxIOCgZucGNfaWQYCCABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.NpcExtraInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneNpcInfo), global::EggLink.DanhengServer.Proto.SceneNpcInfo.Parser, new[]{ "ExtraInfo", "NpcId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneNpcInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneNpcInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneNpcInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneNpcInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneNpcInfo(SceneNpcInfo other) : this() { + extraInfo_ = other.extraInfo_ != null ? other.extraInfo_.Clone() : null; + npcId_ = other.npcId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneNpcInfo Clone() { + return new SceneNpcInfo(this); + } + + /// Field number for the "extra_info" field. + public const int ExtraInfoFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.NpcExtraInfo extraInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.NpcExtraInfo ExtraInfo { + get { return extraInfo_; } + set { + extraInfo_ = value; + } + } + + /// Field number for the "npc_id" field. + public const int NpcIdFieldNumber = 8; + private uint npcId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 SceneNpcInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneNpcInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ExtraInfo, other.ExtraInfo)) 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 (extraInfo_ != null) hash ^= ExtraInfo.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 (extraInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExtraInfo); + } + if (NpcId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(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 (extraInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExtraInfo); + } + if (NpcId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(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 (extraInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExtraInfo); + } + if (NpcId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NpcId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneNpcInfo other) { + if (other == null) { + return; + } + if (other.extraInfo_ != null) { + if (extraInfo_ == null) { + ExtraInfo = new global::EggLink.DanhengServer.Proto.NpcExtraInfo(); + } + ExtraInfo.MergeFrom(other.ExtraInfo); + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + if (extraInfo_ == null) { + ExtraInfo = new global::EggLink.DanhengServer.Proto.NpcExtraInfo(); + } + input.ReadMessage(ExtraInfo); + break; + } + case 64: { + NpcId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + if (extraInfo_ == null) { + ExtraInfo = new global::EggLink.DanhengServer.Proto.NpcExtraInfo(); + } + input.ReadMessage(ExtraInfo); + break; + } + case 64: { + NpcId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneNpcMonsterInfo.cs b/Common/Proto/SceneNpcMonsterInfo.cs new file mode 100644 index 00000000..61f97d98 --- /dev/null +++ b/Common/Proto/SceneNpcMonsterInfo.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneNpcMonsterInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneNpcMonsterInfo.proto + public static partial class SceneNpcMonsterInfoReflection { + + #region Descriptor + /// File descriptor for SceneNpcMonsterInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneNpcMonsterInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlTY2VuZU5wY01vbnN0ZXJJbmZvLnByb3RvIlAKE1NjZW5lTnBjTW9uc3Rl", + "ckluZm8SEwoLd29ybGRfbGV2ZWwYCiABKA0SEgoKbW9uc3Rlcl9pZBgGIAEo", + "DRIQCghldmVudF9pZBgDIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy", + "LlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo), global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo.Parser, new[]{ "WorldLevel", "MonsterId", "EventId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneNpcMonsterInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneNpcMonsterInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneNpcMonsterInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneNpcMonsterInfo(SceneNpcMonsterInfo other) : this() { + worldLevel_ = other.worldLevel_; + monsterId_ = other.monsterId_; + eventId_ = other.eventId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneNpcMonsterInfo Clone() { + return new SceneNpcMonsterInfo(this); + } + + /// Field number for the "world_level" field. + public const int WorldLevelFieldNumber = 10; + private uint worldLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WorldLevel { + get { return worldLevel_; } + set { + worldLevel_ = value; + } + } + + /// Field number for the "monster_id" field. + public const int MonsterIdFieldNumber = 6; + private uint monsterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MonsterId { + get { return monsterId_; } + set { + monsterId_ = value; + } + } + + /// Field number for the "event_id" field. + public const int EventIdFieldNumber = 3; + private uint eventId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint 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 SceneNpcMonsterInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneNpcMonsterInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (WorldLevel != other.WorldLevel) return false; + if (MonsterId != other.MonsterId) 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 (WorldLevel != 0) hash ^= WorldLevel.GetHashCode(); + if (MonsterId != 0) hash ^= MonsterId.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 (EventId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(EventId); + } + if (MonsterId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(MonsterId); + } + if (WorldLevel != 0) { + output.WriteRawTag(80); + output.WriteUInt32(WorldLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EventId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(EventId); + } + if (MonsterId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(MonsterId); + } + if (WorldLevel != 0) { + output.WriteRawTag(80); + output.WriteUInt32(WorldLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (WorldLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldLevel); + } + if (MonsterId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MonsterId); + } + if (EventId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EventId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneNpcMonsterInfo other) { + if (other == null) { + return; + } + if (other.WorldLevel != 0) { + WorldLevel = other.WorldLevel; + } + if (other.MonsterId != 0) { + MonsterId = other.MonsterId; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + EventId = input.ReadUInt32(); + break; + } + case 48: { + MonsterId = input.ReadUInt32(); + break; + } + case 80: { + WorldLevel = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + EventId = input.ReadUInt32(); + break; + } + case 48: { + MonsterId = input.ReadUInt32(); + break; + } + case 80: { + WorldLevel = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ScenePlaneEventScNotify.cs b/Common/Proto/ScenePlaneEventScNotify.cs new file mode 100644 index 00000000..a1e12877 --- /dev/null +++ b/Common/Proto/ScenePlaneEventScNotify.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ScenePlaneEventScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ScenePlaneEventScNotify.proto + public static partial class ScenePlaneEventScNotifyReflection { + + #region Descriptor + /// File descriptor for ScenePlaneEventScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ScenePlaneEventScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1TY2VuZVBsYW5lRXZlbnRTY05vdGlmeS5wcm90bxoOSXRlbUxpc3QucHJv", + "dG8iOwoXU2NlbmVQbGFuZUV2ZW50U2NOb3RpZnkSIAoNZ2V0X2l0ZW1fbGlz", + "dBgBIAEoCzIJLkl0ZW1MaXN0Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu", + "UHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ScenePlaneEventScNotify), global::EggLink.DanhengServer.Proto.ScenePlaneEventScNotify.Parser, new[]{ "GetItemList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ScenePlaneEventScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScenePlaneEventScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ScenePlaneEventScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScenePlaneEventScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScenePlaneEventScNotify(ScenePlaneEventScNotify other) : this() { + getItemList_ = other.getItemList_ != null ? other.getItemList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScenePlaneEventScNotify Clone() { + return new ScenePlaneEventScNotify(this); + } + + /// Field number for the "get_item_list" field. + public const int GetItemListFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.ItemList getItemList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList GetItemList { + get { return getItemList_; } + set { + getItemList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ScenePlaneEventScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ScenePlaneEventScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GetItemList, other.GetItemList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (getItemList_ != null) hash ^= GetItemList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (getItemList_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GetItemList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (getItemList_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GetItemList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (getItemList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetItemList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ScenePlaneEventScNotify other) { + if (other == null) { + return; + } + if (other.getItemList_ != null) { + if (getItemList_ == null) { + GetItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + GetItemList.MergeFrom(other.GetItemList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (getItemList_ == null) { + GetItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(GetItemList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (getItemList_ == null) { + GetItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(GetItemList); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/ScenePropInfo.cs b/Common/Proto/ScenePropInfo.cs new file mode 100644 index 00000000..acbcb640 --- /dev/null +++ b/Common/Proto/ScenePropInfo.cs @@ -0,0 +1,393 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ScenePropInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from ScenePropInfo.proto + public static partial class ScenePropInfoReflection { + + #region Descriptor + /// File descriptor for ScenePropInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ScenePropInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNTY2VuZVByb3BJbmZvLnByb3RvGhNQcm9wRXh0cmFJbmZvLnByb3RvIoYB", + "Cg1TY2VuZVByb3BJbmZvEhQKDGxpZmVfdGltZV9tcxgLIAEoDRIiCgpleHRy", + "YV9pbmZvGAkgASgLMg4uUHJvcEV4dHJhSW5mbxIPCgdwcm9wX2lkGAwgASgN", + "EhIKCnByb3Bfc3RhdGUYASABKA0SFgoOY3JlYXRlX3RpbWVfbXMYByABKARC", + "HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PropExtraInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ScenePropInfo), global::EggLink.DanhengServer.Proto.ScenePropInfo.Parser, new[]{ "LifeTimeMs", "ExtraInfo", "PropId", "PropState", "CreateTimeMs" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ScenePropInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScenePropInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ScenePropInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScenePropInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScenePropInfo(ScenePropInfo other) : this() { + lifeTimeMs_ = other.lifeTimeMs_; + extraInfo_ = other.extraInfo_ != null ? other.extraInfo_.Clone() : null; + propId_ = other.propId_; + propState_ = other.propState_; + createTimeMs_ = other.createTimeMs_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScenePropInfo Clone() { + return new ScenePropInfo(this); + } + + /// Field number for the "life_time_ms" field. + public const int LifeTimeMsFieldNumber = 11; + private uint lifeTimeMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint LifeTimeMs { + get { return lifeTimeMs_; } + set { + lifeTimeMs_ = value; + } + } + + /// Field number for the "extra_info" field. + public const int ExtraInfoFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.PropExtraInfo extraInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.PropExtraInfo ExtraInfo { + get { return extraInfo_; } + set { + extraInfo_ = value; + } + } + + /// Field number for the "prop_id" field. + public const int PropIdFieldNumber = 12; + private uint propId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PropId { + get { return propId_; } + set { + propId_ = value; + } + } + + /// Field number for the "prop_state" field. + public const int PropStateFieldNumber = 1; + private uint propState_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PropState { + get { return propState_; } + set { + propState_ = value; + } + } + + /// Field number for the "create_time_ms" field. + public const int CreateTimeMsFieldNumber = 7; + private ulong createTimeMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong CreateTimeMs { + get { return createTimeMs_; } + set { + createTimeMs_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ScenePropInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ScenePropInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LifeTimeMs != other.LifeTimeMs) return false; + if (!object.Equals(ExtraInfo, other.ExtraInfo)) return false; + if (PropId != other.PropId) return false; + if (PropState != other.PropState) return false; + if (CreateTimeMs != other.CreateTimeMs) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (LifeTimeMs != 0) hash ^= LifeTimeMs.GetHashCode(); + if (extraInfo_ != null) hash ^= ExtraInfo.GetHashCode(); + if (PropId != 0) hash ^= PropId.GetHashCode(); + if (PropState != 0) hash ^= PropState.GetHashCode(); + if (CreateTimeMs != 0UL) hash ^= CreateTimeMs.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PropState != 0) { + output.WriteRawTag(8); + output.WriteUInt32(PropState); + } + if (CreateTimeMs != 0UL) { + output.WriteRawTag(56); + output.WriteUInt64(CreateTimeMs); + } + if (extraInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ExtraInfo); + } + if (LifeTimeMs != 0) { + output.WriteRawTag(88); + output.WriteUInt32(LifeTimeMs); + } + if (PropId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(PropId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PropState != 0) { + output.WriteRawTag(8); + output.WriteUInt32(PropState); + } + if (CreateTimeMs != 0UL) { + output.WriteRawTag(56); + output.WriteUInt64(CreateTimeMs); + } + if (extraInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ExtraInfo); + } + if (LifeTimeMs != 0) { + output.WriteRawTag(88); + output.WriteUInt32(LifeTimeMs); + } + if (PropId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(PropId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (LifeTimeMs != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LifeTimeMs); + } + if (extraInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExtraInfo); + } + if (PropId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PropId); + } + if (PropState != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PropState); + } + if (CreateTimeMs != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreateTimeMs); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ScenePropInfo other) { + if (other == null) { + return; + } + if (other.LifeTimeMs != 0) { + LifeTimeMs = other.LifeTimeMs; + } + if (other.extraInfo_ != null) { + if (extraInfo_ == null) { + ExtraInfo = new global::EggLink.DanhengServer.Proto.PropExtraInfo(); + } + ExtraInfo.MergeFrom(other.ExtraInfo); + } + if (other.PropId != 0) { + PropId = other.PropId; + } + if (other.PropState != 0) { + PropState = other.PropState; + } + if (other.CreateTimeMs != 0UL) { + CreateTimeMs = other.CreateTimeMs; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + PropState = input.ReadUInt32(); + break; + } + case 56: { + CreateTimeMs = input.ReadUInt64(); + break; + } + case 74: { + if (extraInfo_ == null) { + ExtraInfo = new global::EggLink.DanhengServer.Proto.PropExtraInfo(); + } + input.ReadMessage(ExtraInfo); + break; + } + case 88: { + LifeTimeMs = input.ReadUInt32(); + break; + } + case 96: { + PropId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PropState = input.ReadUInt32(); + break; + } + case 56: { + CreateTimeMs = input.ReadUInt64(); + break; + } + case 74: { + if (extraInfo_ == null) { + ExtraInfo = new global::EggLink.DanhengServer.Proto.PropExtraInfo(); + } + input.ReadMessage(ExtraInfo); + break; + } + case 88: { + LifeTimeMs = input.ReadUInt32(); + break; + } + case 96: { + PropId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SceneSummonUnitInfo.cs b/Common/Proto/SceneSummonUnitInfo.cs new file mode 100644 index 00000000..b59b3822 --- /dev/null +++ b/Common/Proto/SceneSummonUnitInfo.cs @@ -0,0 +1,411 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SceneSummonUnitInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SceneSummonUnitInfo.proto + public static partial class SceneSummonUnitInfoReflection { + + #region Descriptor + /// File descriptor for SceneSummonUnitInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SceneSummonUnitInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlTY2VuZVN1bW1vblVuaXRJbmZvLnByb3RvIqoBChNTY2VuZVN1bW1vblVu", + "aXRJbmZvEhgKEGF0dGFjaF9lbnRpdHlfaWQYBCABKA0SFAoMbGlmZV90aW1l", + "X21zGAYgASgREhgKEGNhc3Rlcl9lbnRpdHlfaWQYDiABKA0SGQoRdHJpZ2dl", + "cl9uYW1lX2xpc3QYDCADKAkSFgoOY3JlYXRlX3RpbWVfbXMYByABKAQSFgoO", + "c3VtbW9uX3VuaXRfaWQYAyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl", + "ci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo), global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo.Parser, new[]{ "AttachEntityId", "LifeTimeMs", "CasterEntityId", "TriggerNameList", "CreateTimeMs", "SummonUnitId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SceneSummonUnitInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SceneSummonUnitInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SceneSummonUnitInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneSummonUnitInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneSummonUnitInfo(SceneSummonUnitInfo other) : this() { + attachEntityId_ = other.attachEntityId_; + lifeTimeMs_ = other.lifeTimeMs_; + casterEntityId_ = other.casterEntityId_; + triggerNameList_ = other.triggerNameList_.Clone(); + createTimeMs_ = other.createTimeMs_; + summonUnitId_ = other.summonUnitId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SceneSummonUnitInfo Clone() { + return new SceneSummonUnitInfo(this); + } + + /// Field number for the "attach_entity_id" field. + public const int AttachEntityIdFieldNumber = 4; + private uint attachEntityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AttachEntityId { + get { return attachEntityId_; } + set { + attachEntityId_ = value; + } + } + + /// Field number for the "life_time_ms" field. + public const int LifeTimeMsFieldNumber = 6; + private int lifeTimeMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LifeTimeMs { + get { return lifeTimeMs_; } + set { + lifeTimeMs_ = value; + } + } + + /// Field number for the "caster_entity_id" field. + public const int CasterEntityIdFieldNumber = 14; + private uint casterEntityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CasterEntityId { + get { return casterEntityId_; } + set { + casterEntityId_ = value; + } + } + + /// Field number for the "trigger_name_list" field. + public const int TriggerNameListFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_triggerNameList_codec + = pb::FieldCodec.ForString(98); + private readonly pbc::RepeatedField triggerNameList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TriggerNameList { + get { return triggerNameList_; } + } + + /// Field number for the "create_time_ms" field. + public const int CreateTimeMsFieldNumber = 7; + private ulong createTimeMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong CreateTimeMs { + get { return createTimeMs_; } + set { + createTimeMs_ = value; + } + } + + /// Field number for the "summon_unit_id" field. + public const int SummonUnitIdFieldNumber = 3; + private uint summonUnitId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SummonUnitId { + get { return summonUnitId_; } + set { + summonUnitId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SceneSummonUnitInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SceneSummonUnitInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AttachEntityId != other.AttachEntityId) return false; + if (LifeTimeMs != other.LifeTimeMs) return false; + if (CasterEntityId != other.CasterEntityId) return false; + if(!triggerNameList_.Equals(other.triggerNameList_)) return false; + if (CreateTimeMs != other.CreateTimeMs) return false; + if (SummonUnitId != other.SummonUnitId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AttachEntityId != 0) hash ^= AttachEntityId.GetHashCode(); + if (LifeTimeMs != 0) hash ^= LifeTimeMs.GetHashCode(); + if (CasterEntityId != 0) hash ^= CasterEntityId.GetHashCode(); + hash ^= triggerNameList_.GetHashCode(); + if (CreateTimeMs != 0UL) hash ^= CreateTimeMs.GetHashCode(); + if (SummonUnitId != 0) hash ^= SummonUnitId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SummonUnitId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(SummonUnitId); + } + if (AttachEntityId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(AttachEntityId); + } + if (LifeTimeMs != 0) { + output.WriteRawTag(48); + output.WriteSInt32(LifeTimeMs); + } + if (CreateTimeMs != 0UL) { + output.WriteRawTag(56); + output.WriteUInt64(CreateTimeMs); + } + triggerNameList_.WriteTo(output, _repeated_triggerNameList_codec); + if (CasterEntityId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(CasterEntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SummonUnitId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(SummonUnitId); + } + if (AttachEntityId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(AttachEntityId); + } + if (LifeTimeMs != 0) { + output.WriteRawTag(48); + output.WriteSInt32(LifeTimeMs); + } + if (CreateTimeMs != 0UL) { + output.WriteRawTag(56); + output.WriteUInt64(CreateTimeMs); + } + triggerNameList_.WriteTo(ref output, _repeated_triggerNameList_codec); + if (CasterEntityId != 0) { + output.WriteRawTag(112); + output.WriteUInt32(CasterEntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AttachEntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AttachEntityId); + } + if (LifeTimeMs != 0) { + size += 1 + pb::CodedOutputStream.ComputeSInt32Size(LifeTimeMs); + } + if (CasterEntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CasterEntityId); + } + size += triggerNameList_.CalculateSize(_repeated_triggerNameList_codec); + if (CreateTimeMs != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreateTimeMs); + } + if (SummonUnitId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SummonUnitId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SceneSummonUnitInfo other) { + if (other == null) { + return; + } + if (other.AttachEntityId != 0) { + AttachEntityId = other.AttachEntityId; + } + if (other.LifeTimeMs != 0) { + LifeTimeMs = other.LifeTimeMs; + } + if (other.CasterEntityId != 0) { + CasterEntityId = other.CasterEntityId; + } + triggerNameList_.Add(other.triggerNameList_); + if (other.CreateTimeMs != 0UL) { + CreateTimeMs = other.CreateTimeMs; + } + if (other.SummonUnitId != 0) { + SummonUnitId = other.SummonUnitId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + SummonUnitId = input.ReadUInt32(); + break; + } + case 32: { + AttachEntityId = input.ReadUInt32(); + break; + } + case 48: { + LifeTimeMs = input.ReadSInt32(); + break; + } + case 56: { + CreateTimeMs = input.ReadUInt64(); + break; + } + case 98: { + triggerNameList_.AddEntriesFrom(input, _repeated_triggerNameList_codec); + break; + } + case 112: { + CasterEntityId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + SummonUnitId = input.ReadUInt32(); + break; + } + case 32: { + AttachEntityId = input.ReadUInt32(); + break; + } + case 48: { + LifeTimeMs = input.ReadSInt32(); + break; + } + case 56: { + CreateTimeMs = input.ReadUInt64(); + break; + } + case 98: { + triggerNameList_.AddEntriesFrom(ref input, _repeated_triggerNameList_codec); + break; + } + case 112: { + CasterEntityId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SearchPlayerCsReq.cs b/Common/Proto/SearchPlayerCsReq.cs new file mode 100644 index 00000000..876c656c --- /dev/null +++ b/Common/Proto/SearchPlayerCsReq.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SearchPlayerCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SearchPlayerCsReq.proto + public static partial class SearchPlayerCsReqReflection { + + #region Descriptor + /// File descriptor for SearchPlayerCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SearchPlayerCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdTZWFyY2hQbGF5ZXJDc1JlcS5wcm90byIsChFTZWFyY2hQbGF5ZXJDc1Jl", + "cRIXCg9zZWFyY2hfdWlkX2xpc3QYBSADKA1CHqoCG0VnZ0xpbmsuRGFuaGVu", + "Z1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SearchPlayerCsReq), global::EggLink.DanhengServer.Proto.SearchPlayerCsReq.Parser, new[]{ "SearchUidList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SearchPlayerCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchPlayerCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SearchPlayerCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchPlayerCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchPlayerCsReq(SearchPlayerCsReq other) : this() { + searchUidList_ = other.searchUidList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchPlayerCsReq Clone() { + return new SearchPlayerCsReq(this); + } + + /// Field number for the "search_uid_list" field. + public const int SearchUidListFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_searchUidList_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField searchUidList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SearchUidList { + get { return searchUidList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SearchPlayerCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SearchPlayerCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!searchUidList_.Equals(other.searchUidList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= searchUidList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + searchUidList_.WriteTo(output, _repeated_searchUidList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + searchUidList_.WriteTo(ref output, _repeated_searchUidList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += searchUidList_.CalculateSize(_repeated_searchUidList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SearchPlayerCsReq other) { + if (other == null) { + return; + } + searchUidList_.Add(other.searchUidList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: + case 40: { + searchUidList_.AddEntriesFrom(input, _repeated_searchUidList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: + case 40: { + searchUidList_.AddEntriesFrom(ref input, _repeated_searchUidList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SearchPlayerScRsp.cs b/Common/Proto/SearchPlayerScRsp.cs new file mode 100644 index 00000000..9abfb25c --- /dev/null +++ b/Common/Proto/SearchPlayerScRsp.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SearchPlayerScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SearchPlayerScRsp.proto + public static partial class SearchPlayerScRspReflection { + + #region Descriptor + /// File descriptor for SearchPlayerScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SearchPlayerScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdTZWFyY2hQbGF5ZXJTY1JzcC5wcm90bxoQU2ltcGxlSW5mby5wcm90byJN", + "ChFTZWFyY2hQbGF5ZXJTY1JzcBInChJzZWFyY2hfcmVzdWx0X2xpc3QYDyAD", + "KAsyCy5TaW1wbGVJbmZvEg8KB3JldGNvZGUYASABKA1CHqoCG0VnZ0xpbmsu", + "RGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SimpleInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SearchPlayerScRsp), global::EggLink.DanhengServer.Proto.SearchPlayerScRsp.Parser, new[]{ "SearchResultList", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SearchPlayerScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchPlayerScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SearchPlayerScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchPlayerScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchPlayerScRsp(SearchPlayerScRsp other) : this() { + searchResultList_ = other.searchResultList_.Clone(); + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchPlayerScRsp Clone() { + return new SearchPlayerScRsp(this); + } + + /// Field number for the "search_result_list" field. + public const int SearchResultListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_searchResultList_codec + = pb::FieldCodec.ForMessage(122, global::EggLink.DanhengServer.Proto.SimpleInfo.Parser); + private readonly pbc::RepeatedField searchResultList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SearchResultList { + get { return searchResultList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SearchPlayerScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SearchPlayerScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!searchResultList_.Equals(other.searchResultList_)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= searchResultList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + searchResultList_.WriteTo(output, _repeated_searchResultList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + searchResultList_.WriteTo(ref output, _repeated_searchResultList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += searchResultList_.CalculateSize(_repeated_searchResultList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SearchPlayerScRsp other) { + if (other == null) { + return; + } + searchResultList_.Add(other.searchResultList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 122: { + searchResultList_.AddEntriesFrom(input, _repeated_searchResultList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 122: { + searchResultList_.AddEntriesFrom(ref input, _repeated_searchResultList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SelectChatBubbleCsReq.cs b/Common/Proto/SelectChatBubbleCsReq.cs new file mode 100644 index 00000000..1be5424e --- /dev/null +++ b/Common/Proto/SelectChatBubbleCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SelectChatBubbleCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SelectChatBubbleCsReq.proto + public static partial class SelectChatBubbleCsReqReflection { + + #region Descriptor + /// File descriptor for SelectChatBubbleCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SelectChatBubbleCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTZWxlY3RDaGF0QnViYmxlQ3NSZXEucHJvdG8iKgoVU2VsZWN0Q2hhdEJ1", + "YmJsZUNzUmVxEhEKCWJ1YmJsZV9pZBgCIAEoDUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SelectChatBubbleCsReq), global::EggLink.DanhengServer.Proto.SelectChatBubbleCsReq.Parser, new[]{ "BubbleId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SelectChatBubbleCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectChatBubbleCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SelectChatBubbleCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectChatBubbleCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectChatBubbleCsReq(SelectChatBubbleCsReq other) : this() { + bubbleId_ = other.bubbleId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectChatBubbleCsReq Clone() { + return new SelectChatBubbleCsReq(this); + } + + /// Field number for the "bubble_id" field. + public const int BubbleIdFieldNumber = 2; + private uint bubbleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BubbleId { + get { return bubbleId_; } + set { + bubbleId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectChatBubbleCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectChatBubbleCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BubbleId != other.BubbleId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BubbleId != 0) hash ^= BubbleId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BubbleId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(BubbleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BubbleId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(BubbleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BubbleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BubbleId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectChatBubbleCsReq other) { + if (other == null) { + return; + } + if (other.BubbleId != 0) { + BubbleId = other.BubbleId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + BubbleId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + BubbleId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SelectChatBubbleScRsp.cs b/Common/Proto/SelectChatBubbleScRsp.cs new file mode 100644 index 00000000..a123f9b2 --- /dev/null +++ b/Common/Proto/SelectChatBubbleScRsp.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SelectChatBubbleScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SelectChatBubbleScRsp.proto + public static partial class SelectChatBubbleScRspReflection { + + #region Descriptor + /// File descriptor for SelectChatBubbleScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SelectChatBubbleScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTZWxlY3RDaGF0QnViYmxlU2NSc3AucHJvdG8iQQoVU2VsZWN0Q2hhdEJ1", + "YmJsZVNjUnNwEg8KB3JldGNvZGUYCyABKA0SFwoPY3VyX2NoYXRfYnViYmxl", + "GA8gASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SelectChatBubbleScRsp), global::EggLink.DanhengServer.Proto.SelectChatBubbleScRsp.Parser, new[]{ "Retcode", "CurChatBubble" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SelectChatBubbleScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectChatBubbleScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SelectChatBubbleScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectChatBubbleScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectChatBubbleScRsp(SelectChatBubbleScRsp other) : this() { + retcode_ = other.retcode_; + curChatBubble_ = other.curChatBubble_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectChatBubbleScRsp Clone() { + return new SelectChatBubbleScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 11; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "cur_chat_bubble" field. + public const int CurChatBubbleFieldNumber = 15; + private uint curChatBubble_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurChatBubble { + get { return curChatBubble_; } + set { + curChatBubble_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectChatBubbleScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectChatBubbleScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (CurChatBubble != other.CurChatBubble) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (CurChatBubble != 0) hash ^= CurChatBubble.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Retcode); + } + if (CurChatBubble != 0) { + output.WriteRawTag(120); + output.WriteUInt32(CurChatBubble); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Retcode); + } + if (CurChatBubble != 0) { + output.WriteRawTag(120); + output.WriteUInt32(CurChatBubble); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (CurChatBubble != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurChatBubble); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectChatBubbleScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.CurChatBubble != 0) { + CurChatBubble = other.CurChatBubble; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 88: { + Retcode = input.ReadUInt32(); + break; + } + case 120: { + CurChatBubble = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 88: { + Retcode = input.ReadUInt32(); + break; + } + case 120: { + CurChatBubble = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SelectPhoneThemeCsReq.cs b/Common/Proto/SelectPhoneThemeCsReq.cs new file mode 100644 index 00000000..6ae470bf --- /dev/null +++ b/Common/Proto/SelectPhoneThemeCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SelectPhoneThemeCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SelectPhoneThemeCsReq.proto + public static partial class SelectPhoneThemeCsReqReflection { + + #region Descriptor + /// File descriptor for SelectPhoneThemeCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SelectPhoneThemeCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTZWxlY3RQaG9uZVRoZW1lQ3NSZXEucHJvdG8iKQoVU2VsZWN0UGhvbmVU", + "aGVtZUNzUmVxEhAKCHRoZW1lX2lkGAwgASgNQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SelectPhoneThemeCsReq), global::EggLink.DanhengServer.Proto.SelectPhoneThemeCsReq.Parser, new[]{ "ThemeId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SelectPhoneThemeCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectPhoneThemeCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SelectPhoneThemeCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectPhoneThemeCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectPhoneThemeCsReq(SelectPhoneThemeCsReq other) : this() { + themeId_ = other.themeId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectPhoneThemeCsReq Clone() { + return new SelectPhoneThemeCsReq(this); + } + + /// Field number for the "theme_id" field. + public const int ThemeIdFieldNumber = 12; + private uint themeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ThemeId { + get { return themeId_; } + set { + themeId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectPhoneThemeCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectPhoneThemeCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ThemeId != other.ThemeId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ThemeId != 0) hash ^= ThemeId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ThemeId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(ThemeId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ThemeId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(ThemeId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ThemeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ThemeId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectPhoneThemeCsReq other) { + if (other == null) { + return; + } + if (other.ThemeId != 0) { + ThemeId = other.ThemeId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 96: { + ThemeId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 96: { + ThemeId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SelectPhoneThemeScRsp.cs b/Common/Proto/SelectPhoneThemeScRsp.cs new file mode 100644 index 00000000..1a98723d --- /dev/null +++ b/Common/Proto/SelectPhoneThemeScRsp.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SelectPhoneThemeScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SelectPhoneThemeScRsp.proto + public static partial class SelectPhoneThemeScRspReflection { + + #region Descriptor + /// File descriptor for SelectPhoneThemeScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SelectPhoneThemeScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTZWxlY3RQaG9uZVRoZW1lU2NSc3AucHJvdG8iQQoVU2VsZWN0UGhvbmVU", + "aGVtZVNjUnNwEhcKD2N1cl9waG9uZV90aGVtZRgCIAEoDRIPCgdyZXRjb2Rl", + "GA4gASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SelectPhoneThemeScRsp), global::EggLink.DanhengServer.Proto.SelectPhoneThemeScRsp.Parser, new[]{ "CurPhoneTheme", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SelectPhoneThemeScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectPhoneThemeScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SelectPhoneThemeScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectPhoneThemeScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectPhoneThemeScRsp(SelectPhoneThemeScRsp other) : this() { + curPhoneTheme_ = other.curPhoneTheme_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectPhoneThemeScRsp Clone() { + return new SelectPhoneThemeScRsp(this); + } + + /// Field number for the "cur_phone_theme" field. + public const int CurPhoneThemeFieldNumber = 2; + private uint curPhoneTheme_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurPhoneTheme { + get { return curPhoneTheme_; } + set { + curPhoneTheme_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 14; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectPhoneThemeScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectPhoneThemeScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CurPhoneTheme != other.CurPhoneTheme) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CurPhoneTheme != 0) hash ^= CurPhoneTheme.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CurPhoneTheme != 0) { + output.WriteRawTag(16); + output.WriteUInt32(CurPhoneTheme); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CurPhoneTheme != 0) { + output.WriteRawTag(16); + output.WriteUInt32(CurPhoneTheme); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CurPhoneTheme != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurPhoneTheme); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectPhoneThemeScRsp other) { + if (other == null) { + return; + } + if (other.CurPhoneTheme != 0) { + CurPhoneTheme = other.CurPhoneTheme; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + CurPhoneTheme = input.ReadUInt32(); + break; + } + case 112: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + CurPhoneTheme = input.ReadUInt32(); + break; + } + case 112: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SelectRogueBuffCsReq.cs b/Common/Proto/SelectRogueBuffCsReq.cs new file mode 100644 index 00000000..674e880e --- /dev/null +++ b/Common/Proto/SelectRogueBuffCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SelectRogueBuffCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SelectRogueBuffCsReq.proto + public static partial class SelectRogueBuffCsReqReflection { + + #region Descriptor + /// File descriptor for SelectRogueBuffCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SelectRogueBuffCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTZWxlY3RSb2d1ZUJ1ZmZDc1JlcS5wcm90byIsChRTZWxlY3RSb2d1ZUJ1", + "ZmZDc1JlcRIUCgxtYXplX2J1ZmZfaWQYDSABKA1CHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SelectRogueBuffCsReq), global::EggLink.DanhengServer.Proto.SelectRogueBuffCsReq.Parser, new[]{ "MazeBuffId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SelectRogueBuffCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectRogueBuffCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SelectRogueBuffCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueBuffCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueBuffCsReq(SelectRogueBuffCsReq other) : this() { + mazeBuffId_ = other.mazeBuffId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueBuffCsReq Clone() { + return new SelectRogueBuffCsReq(this); + } + + /// Field number for the "maze_buff_id" field. + public const int MazeBuffIdFieldNumber = 13; + private uint mazeBuffId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MazeBuffId { + get { return mazeBuffId_; } + set { + mazeBuffId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectRogueBuffCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectRogueBuffCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MazeBuffId != other.MazeBuffId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MazeBuffId != 0) hash ^= MazeBuffId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MazeBuffId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(MazeBuffId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MazeBuffId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(MazeBuffId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MazeBuffId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MazeBuffId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectRogueBuffCsReq other) { + if (other == null) { + return; + } + if (other.MazeBuffId != 0) { + MazeBuffId = other.MazeBuffId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 104: { + MazeBuffId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 104: { + MazeBuffId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SelectRogueBuffScRsp.cs b/Common/Proto/SelectRogueBuffScRsp.cs new file mode 100644 index 00000000..22caea39 --- /dev/null +++ b/Common/Proto/SelectRogueBuffScRsp.cs @@ -0,0 +1,357 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SelectRogueBuffScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SelectRogueBuffScRsp.proto + public static partial class SelectRogueBuffScRspReflection { + + #region Descriptor + /// File descriptor for SelectRogueBuffScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SelectRogueBuffScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTZWxlY3RSb2d1ZUJ1ZmZTY1JzcC5wcm90bxoZUm9ndWVCdWZmU2VsZWN0", + "SW5mby5wcm90byKGAQoUU2VsZWN0Um9ndWVCdWZmU2NSc3ASFwoPbWF6ZV9i", + "dWZmX2xldmVsGA4gASgNEi4KEGJ1ZmZfc2VsZWN0X2luZm8YBiABKAsyFC5S", + "b2d1ZUJ1ZmZTZWxlY3RJbmZvEhQKDG1hemVfYnVmZl9pZBgEIAEoDRIPCgdy", + "ZXRjb2RlGAcgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueBuffSelectInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SelectRogueBuffScRsp), global::EggLink.DanhengServer.Proto.SelectRogueBuffScRsp.Parser, new[]{ "MazeBuffLevel", "BuffSelectInfo", "MazeBuffId", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SelectRogueBuffScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectRogueBuffScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SelectRogueBuffScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueBuffScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueBuffScRsp(SelectRogueBuffScRsp other) : this() { + mazeBuffLevel_ = other.mazeBuffLevel_; + buffSelectInfo_ = other.buffSelectInfo_ != null ? other.buffSelectInfo_.Clone() : null; + mazeBuffId_ = other.mazeBuffId_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueBuffScRsp Clone() { + return new SelectRogueBuffScRsp(this); + } + + /// Field number for the "maze_buff_level" field. + public const int MazeBuffLevelFieldNumber = 14; + private uint mazeBuffLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MazeBuffLevel { + get { return mazeBuffLevel_; } + set { + mazeBuffLevel_ = value; + } + } + + /// Field number for the "buff_select_info" field. + public const int BuffSelectInfoFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo buffSelectInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo BuffSelectInfo { + get { return buffSelectInfo_; } + set { + buffSelectInfo_ = value; + } + } + + /// Field number for the "maze_buff_id" field. + public const int MazeBuffIdFieldNumber = 4; + private uint mazeBuffId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MazeBuffId { + get { return mazeBuffId_; } + set { + mazeBuffId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 7; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectRogueBuffScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectRogueBuffScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MazeBuffLevel != other.MazeBuffLevel) return false; + if (!object.Equals(BuffSelectInfo, other.BuffSelectInfo)) return false; + if (MazeBuffId != other.MazeBuffId) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MazeBuffLevel != 0) hash ^= MazeBuffLevel.GetHashCode(); + if (buffSelectInfo_ != null) hash ^= BuffSelectInfo.GetHashCode(); + if (MazeBuffId != 0) hash ^= MazeBuffId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MazeBuffId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(MazeBuffId); + } + if (buffSelectInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(BuffSelectInfo); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (MazeBuffLevel != 0) { + output.WriteRawTag(112); + output.WriteUInt32(MazeBuffLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MazeBuffId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(MazeBuffId); + } + if (buffSelectInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(BuffSelectInfo); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (MazeBuffLevel != 0) { + output.WriteRawTag(112); + output.WriteUInt32(MazeBuffLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MazeBuffLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MazeBuffLevel); + } + if (buffSelectInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BuffSelectInfo); + } + if (MazeBuffId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MazeBuffId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectRogueBuffScRsp other) { + if (other == null) { + return; + } + if (other.MazeBuffLevel != 0) { + MazeBuffLevel = other.MazeBuffLevel; + } + if (other.buffSelectInfo_ != null) { + if (buffSelectInfo_ == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo(); + } + BuffSelectInfo.MergeFrom(other.BuffSelectInfo); + } + if (other.MazeBuffId != 0) { + MazeBuffId = other.MazeBuffId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + MazeBuffId = input.ReadUInt32(); + break; + } + case 50: { + if (buffSelectInfo_ == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo(); + } + input.ReadMessage(BuffSelectInfo); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 112: { + MazeBuffLevel = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + MazeBuffId = input.ReadUInt32(); + break; + } + case 50: { + if (buffSelectInfo_ == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo(); + } + input.ReadMessage(BuffSelectInfo); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 112: { + MazeBuffLevel = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SelectRogueDialogueEventCsReq.cs b/Common/Proto/SelectRogueDialogueEventCsReq.cs new file mode 100644 index 00000000..e2c38b47 --- /dev/null +++ b/Common/Proto/SelectRogueDialogueEventCsReq.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SelectRogueDialogueEventCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SelectRogueDialogueEventCsReq.proto + public static partial class SelectRogueDialogueEventCsReqReflection { + + #region Descriptor + /// File descriptor for SelectRogueDialogueEventCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SelectRogueDialogueEventCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiNTZWxlY3RSb2d1ZURpYWxvZ3VlRXZlbnRDc1JlcS5wcm90byJNCh1TZWxl", + "Y3RSb2d1ZURpYWxvZ3VlRXZlbnRDc1JlcRIZChFkaWFsb2d1ZV9ldmVudF9p", + "ZBgDIAEoDRIRCgllbnRpdHlfaWQYBiABKA1CHqoCG0VnZ0xpbmsuRGFuaGVu", + "Z1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SelectRogueDialogueEventCsReq), global::EggLink.DanhengServer.Proto.SelectRogueDialogueEventCsReq.Parser, new[]{ "DialogueEventId", "EntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SelectRogueDialogueEventCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectRogueDialogueEventCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SelectRogueDialogueEventCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueDialogueEventCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueDialogueEventCsReq(SelectRogueDialogueEventCsReq other) : this() { + dialogueEventId_ = other.dialogueEventId_; + entityId_ = other.entityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueDialogueEventCsReq Clone() { + return new SelectRogueDialogueEventCsReq(this); + } + + /// Field number for the "dialogue_event_id" field. + public const int DialogueEventIdFieldNumber = 3; + private uint dialogueEventId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DialogueEventId { + get { return dialogueEventId_; } + set { + dialogueEventId_ = value; + } + } + + /// Field number for the "entity_id" field. + public const int EntityIdFieldNumber = 6; + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { return entityId_; } + set { + entityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectRogueDialogueEventCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectRogueDialogueEventCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DialogueEventId != other.DialogueEventId) return false; + if (EntityId != other.EntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (DialogueEventId != 0) hash ^= DialogueEventId.GetHashCode(); + if (EntityId != 0) hash ^= EntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (DialogueEventId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(DialogueEventId); + } + if (EntityId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (DialogueEventId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(DialogueEventId); + } + if (EntityId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(EntityId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (DialogueEventId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DialogueEventId); + } + if (EntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectRogueDialogueEventCsReq other) { + if (other == null) { + return; + } + if (other.DialogueEventId != 0) { + DialogueEventId = other.DialogueEventId; + } + if (other.EntityId != 0) { + EntityId = other.EntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + DialogueEventId = input.ReadUInt32(); + break; + } + case 48: { + EntityId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + DialogueEventId = input.ReadUInt32(); + break; + } + case 48: { + EntityId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SelectRogueDialogueEventScRsp.cs b/Common/Proto/SelectRogueDialogueEventScRsp.cs new file mode 100644 index 00000000..d3d423fa --- /dev/null +++ b/Common/Proto/SelectRogueDialogueEventScRsp.cs @@ -0,0 +1,347 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SelectRogueDialogueEventScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SelectRogueDialogueEventScRsp.proto + public static partial class SelectRogueDialogueEventScRspReflection { + + #region Descriptor + /// File descriptor for SelectRogueDialogueEventScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SelectRogueDialogueEventScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiNTZWxlY3RSb2d1ZURpYWxvZ3VlRXZlbnRTY1JzcC5wcm90bxoYUm9ndWVE", + "aWFsb2d1ZUV2ZW50LnByb3RvGhREaWFsb2d1ZVJlc3VsdC5wcm90byKeAQod", + "U2VsZWN0Um9ndWVEaWFsb2d1ZUV2ZW50U2NSc3ASGQoRZGlhbG9ndWVfZXZl", + "bnRfaWQYCSABKA0SKAoPZGlhbG9ndWVfcmVzdWx0GAYgAygLMg8uRGlhbG9n", + "dWVSZXN1bHQSJwoKZXZlbnRfZGF0YRgOIAEoCzITLlJvZ3VlRGlhbG9ndWVF", + "dmVudBIPCgdyZXRjb2RlGA8gASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2", + "ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueDialogueEventReflection.Descriptor, global::EggLink.DanhengServer.Proto.DialogueResultReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SelectRogueDialogueEventScRsp), global::EggLink.DanhengServer.Proto.SelectRogueDialogueEventScRsp.Parser, new[]{ "DialogueEventId", "DialogueResult", "EventData", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SelectRogueDialogueEventScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectRogueDialogueEventScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SelectRogueDialogueEventScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueDialogueEventScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueDialogueEventScRsp(SelectRogueDialogueEventScRsp other) : this() { + dialogueEventId_ = other.dialogueEventId_; + dialogueResult_ = other.dialogueResult_.Clone(); + eventData_ = other.eventData_ != null ? other.eventData_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueDialogueEventScRsp Clone() { + return new SelectRogueDialogueEventScRsp(this); + } + + /// Field number for the "dialogue_event_id" field. + public const int DialogueEventIdFieldNumber = 9; + private uint dialogueEventId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DialogueEventId { + get { return dialogueEventId_; } + set { + dialogueEventId_ = value; + } + } + + /// Field number for the "dialogue_result" field. + public const int DialogueResultFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_dialogueResult_codec + = pb::FieldCodec.ForMessage(50, global::EggLink.DanhengServer.Proto.DialogueResult.Parser); + private readonly pbc::RepeatedField dialogueResult_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DialogueResult { + get { return dialogueResult_; } + } + + /// Field number for the "event_data" field. + public const int EventDataFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.RogueDialogueEvent eventData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueDialogueEvent EventData { + get { return eventData_; } + set { + eventData_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 15; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectRogueDialogueEventScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectRogueDialogueEventScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DialogueEventId != other.DialogueEventId) return false; + if(!dialogueResult_.Equals(other.dialogueResult_)) return false; + if (!object.Equals(EventData, other.EventData)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (DialogueEventId != 0) hash ^= DialogueEventId.GetHashCode(); + hash ^= dialogueResult_.GetHashCode(); + if (eventData_ != null) hash ^= EventData.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dialogueResult_.WriteTo(output, _repeated_dialogueResult_codec); + if (DialogueEventId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(DialogueEventId); + } + if (eventData_ != null) { + output.WriteRawTag(114); + output.WriteMessage(EventData); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dialogueResult_.WriteTo(ref output, _repeated_dialogueResult_codec); + if (DialogueEventId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(DialogueEventId); + } + if (eventData_ != null) { + output.WriteRawTag(114); + output.WriteMessage(EventData); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (DialogueEventId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DialogueEventId); + } + size += dialogueResult_.CalculateSize(_repeated_dialogueResult_codec); + if (eventData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EventData); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectRogueDialogueEventScRsp other) { + if (other == null) { + return; + } + if (other.DialogueEventId != 0) { + DialogueEventId = other.DialogueEventId; + } + dialogueResult_.Add(other.dialogueResult_); + if (other.eventData_ != null) { + if (eventData_ == null) { + EventData = new global::EggLink.DanhengServer.Proto.RogueDialogueEvent(); + } + EventData.MergeFrom(other.EventData); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: { + dialogueResult_.AddEntriesFrom(input, _repeated_dialogueResult_codec); + break; + } + case 72: { + DialogueEventId = input.ReadUInt32(); + break; + } + case 114: { + if (eventData_ == null) { + EventData = new global::EggLink.DanhengServer.Proto.RogueDialogueEvent(); + } + input.ReadMessage(EventData); + break; + } + case 120: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: { + dialogueResult_.AddEntriesFrom(ref input, _repeated_dialogueResult_codec); + break; + } + case 72: { + DialogueEventId = input.ReadUInt32(); + break; + } + case 114: { + if (eventData_ == null) { + EventData = new global::EggLink.DanhengServer.Proto.RogueDialogueEvent(); + } + input.ReadMessage(EventData); + break; + } + case 120: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SelectRogueMiracleCsReq.cs b/Common/Proto/SelectRogueMiracleCsReq.cs new file mode 100644 index 00000000..0505d780 --- /dev/null +++ b/Common/Proto/SelectRogueMiracleCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SelectRogueMiracleCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SelectRogueMiracleCsReq.proto + public static partial class SelectRogueMiracleCsReqReflection { + + #region Descriptor + /// File descriptor for SelectRogueMiracleCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SelectRogueMiracleCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1TZWxlY3RSb2d1ZU1pcmFjbGVDc1JlcS5wcm90byItChdTZWxlY3RSb2d1", + "ZU1pcmFjbGVDc1JlcRISCgptaXJhY2xlX2lkGAMgASgNQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SelectRogueMiracleCsReq), global::EggLink.DanhengServer.Proto.SelectRogueMiracleCsReq.Parser, new[]{ "MiracleId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SelectRogueMiracleCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectRogueMiracleCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SelectRogueMiracleCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueMiracleCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueMiracleCsReq(SelectRogueMiracleCsReq other) : this() { + miracleId_ = other.miracleId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueMiracleCsReq Clone() { + return new SelectRogueMiracleCsReq(this); + } + + /// Field number for the "miracle_id" field. + public const int MiracleIdFieldNumber = 3; + private uint miracleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MiracleId { + get { return miracleId_; } + set { + miracleId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectRogueMiracleCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectRogueMiracleCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MiracleId != other.MiracleId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MiracleId != 0) hash ^= MiracleId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MiracleId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(MiracleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MiracleId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(MiracleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MiracleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MiracleId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectRogueMiracleCsReq other) { + if (other == null) { + return; + } + if (other.MiracleId != 0) { + MiracleId = other.MiracleId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + MiracleId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + MiracleId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SelectRogueMiracleScRsp.cs b/Common/Proto/SelectRogueMiracleScRsp.cs new file mode 100644 index 00000000..7505ed6c --- /dev/null +++ b/Common/Proto/SelectRogueMiracleScRsp.cs @@ -0,0 +1,330 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SelectRogueMiracleScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SelectRogueMiracleScRsp.proto + public static partial class SelectRogueMiracleScRspReflection { + + #region Descriptor + /// File descriptor for SelectRogueMiracleScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SelectRogueMiracleScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1TZWxlY3RSb2d1ZU1pcmFjbGVTY1JzcC5wcm90bxocUm9ndWVNaXJhY2xl", + "U2VsZWN0SW5mby5wcm90bxodUm9ndWVBY2hpdmVkTWlyYWNsZUluZm8ucHJv", + "dG8ilgEKF1NlbGVjdFJvZ3VlTWlyYWNsZVNjUnNwEjQKEnJvZ3VlX21pcmFj", + "bGVfaW5mbxgLIAEoCzIYLlJvZ3VlQWNoaXZlZE1pcmFjbGVJbmZvEjQKE21p", + "cmFjbGVfc2VsZWN0X2luZm8YCCABKAsyFy5Sb2d1ZU1pcmFjbGVTZWxlY3RJ", + "bmZvEg8KB3JldGNvZGUYDCABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl", + "ci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueAchivedMiracleInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SelectRogueMiracleScRsp), global::EggLink.DanhengServer.Proto.SelectRogueMiracleScRsp.Parser, new[]{ "RogueMiracleInfo", "MiracleSelectInfo", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SelectRogueMiracleScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectRogueMiracleScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SelectRogueMiracleScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueMiracleScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueMiracleScRsp(SelectRogueMiracleScRsp other) : this() { + rogueMiracleInfo_ = other.rogueMiracleInfo_ != null ? other.rogueMiracleInfo_.Clone() : null; + miracleSelectInfo_ = other.miracleSelectInfo_ != null ? other.miracleSelectInfo_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRogueMiracleScRsp Clone() { + return new SelectRogueMiracleScRsp(this); + } + + /// Field number for the "rogue_miracle_info" field. + public const int RogueMiracleInfoFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.RogueAchivedMiracleInfo rogueMiracleInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueAchivedMiracleInfo RogueMiracleInfo { + get { return rogueMiracleInfo_; } + set { + rogueMiracleInfo_ = value; + } + } + + /// Field number for the "miracle_select_info" field. + public const int MiracleSelectInfoFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo miracleSelectInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo MiracleSelectInfo { + get { return miracleSelectInfo_; } + set { + miracleSelectInfo_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 12; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectRogueMiracleScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectRogueMiracleScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueMiracleInfo, other.RogueMiracleInfo)) return false; + if (!object.Equals(MiracleSelectInfo, other.MiracleSelectInfo)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueMiracleInfo_ != null) hash ^= RogueMiracleInfo.GetHashCode(); + if (miracleSelectInfo_ != null) hash ^= MiracleSelectInfo.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (miracleSelectInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(MiracleSelectInfo); + } + if (rogueMiracleInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RogueMiracleInfo); + } + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (miracleSelectInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(MiracleSelectInfo); + } + if (rogueMiracleInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RogueMiracleInfo); + } + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueMiracleInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueMiracleInfo); + } + if (miracleSelectInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MiracleSelectInfo); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectRogueMiracleScRsp other) { + if (other == null) { + return; + } + if (other.rogueMiracleInfo_ != null) { + if (rogueMiracleInfo_ == null) { + RogueMiracleInfo = new global::EggLink.DanhengServer.Proto.RogueAchivedMiracleInfo(); + } + RogueMiracleInfo.MergeFrom(other.RogueMiracleInfo); + } + if (other.miracleSelectInfo_ != null) { + if (miracleSelectInfo_ == null) { + MiracleSelectInfo = new global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo(); + } + MiracleSelectInfo.MergeFrom(other.MiracleSelectInfo); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + if (miracleSelectInfo_ == null) { + MiracleSelectInfo = new global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo(); + } + input.ReadMessage(MiracleSelectInfo); + break; + } + case 90: { + if (rogueMiracleInfo_ == null) { + RogueMiracleInfo = new global::EggLink.DanhengServer.Proto.RogueAchivedMiracleInfo(); + } + input.ReadMessage(RogueMiracleInfo); + break; + } + case 96: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: { + if (miracleSelectInfo_ == null) { + MiracleSelectInfo = new global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo(); + } + input.ReadMessage(MiracleSelectInfo); + break; + } + case 90: { + if (rogueMiracleInfo_ == null) { + RogueMiracleInfo = new global::EggLink.DanhengServer.Proto.RogueAchivedMiracleInfo(); + } + input.ReadMessage(RogueMiracleInfo); + break; + } + case 96: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SellItemCsReq.cs b/Common/Proto/SellItemCsReq.cs new file mode 100644 index 00000000..ec5bbf3e --- /dev/null +++ b/Common/Proto/SellItemCsReq.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SellItemCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SellItemCsReq.proto + public static partial class SellItemCsReqReflection { + + #region Descriptor + /// File descriptor for SellItemCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SellItemCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNTZWxsSXRlbUNzUmVxLnByb3RvGhJJdGVtQ29zdExpc3QucHJvdG8iSwoN", + "U2VsbEl0ZW1Dc1JlcRITCgt0b19tYXRlcmlhbBgBIAEoCBIlCg5pdGVtX2Nv", + "c3RfbGlzdBgIIAEoCzINLkl0ZW1Db3N0TGlzdEIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SellItemCsReq), global::EggLink.DanhengServer.Proto.SellItemCsReq.Parser, new[]{ "ToMaterial", "ItemCostList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SellItemCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SellItemCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SellItemCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SellItemCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SellItemCsReq(SellItemCsReq other) : this() { + toMaterial_ = other.toMaterial_; + itemCostList_ = other.itemCostList_ != null ? other.itemCostList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SellItemCsReq Clone() { + return new SellItemCsReq(this); + } + + /// Field number for the "to_material" field. + public const int ToMaterialFieldNumber = 1; + private bool toMaterial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ToMaterial { + get { return toMaterial_; } + set { + toMaterial_ = value; + } + } + + /// Field number for the "item_cost_list" field. + public const int ItemCostListFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.ItemCostList itemCostList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemCostList ItemCostList { + get { return itemCostList_; } + set { + itemCostList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SellItemCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SellItemCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ToMaterial != other.ToMaterial) return false; + if (!object.Equals(ItemCostList, other.ItemCostList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ToMaterial != false) hash ^= ToMaterial.GetHashCode(); + if (itemCostList_ != null) hash ^= ItemCostList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ToMaterial != false) { + output.WriteRawTag(8); + output.WriteBool(ToMaterial); + } + if (itemCostList_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ItemCostList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ToMaterial != false) { + output.WriteRawTag(8); + output.WriteBool(ToMaterial); + } + if (itemCostList_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ItemCostList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ToMaterial != false) { + size += 1 + 1; + } + if (itemCostList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemCostList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SellItemCsReq other) { + if (other == null) { + return; + } + if (other.ToMaterial != false) { + ToMaterial = other.ToMaterial; + } + if (other.itemCostList_ != null) { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + ItemCostList.MergeFrom(other.ItemCostList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ToMaterial = input.ReadBool(); + break; + } + case 66: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ToMaterial = input.ReadBool(); + break; + } + case 66: { + if (itemCostList_ == null) { + ItemCostList = new global::EggLink.DanhengServer.Proto.ItemCostList(); + } + input.ReadMessage(ItemCostList); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SellItemScRsp.cs b/Common/Proto/SellItemScRsp.cs new file mode 100644 index 00000000..f46ae0fe --- /dev/null +++ b/Common/Proto/SellItemScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SellItemScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SellItemScRsp.proto + public static partial class SellItemScRspReflection { + + #region Descriptor + /// File descriptor for SellItemScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SellItemScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNTZWxsSXRlbVNjUnNwLnByb3RvGg5JdGVtTGlzdC5wcm90byJFCg1TZWxs", + "SXRlbVNjUnNwEiMKEHJldHVybl9pdGVtX2xpc3QYAiABKAsyCS5JdGVtTGlz", + "dBIPCgdyZXRjb2RlGAEgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu", + "UHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SellItemScRsp), global::EggLink.DanhengServer.Proto.SellItemScRsp.Parser, new[]{ "ReturnItemList", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SellItemScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SellItemScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SellItemScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SellItemScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SellItemScRsp(SellItemScRsp other) : this() { + returnItemList_ = other.returnItemList_ != null ? other.returnItemList_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SellItemScRsp Clone() { + return new SellItemScRsp(this); + } + + /// Field number for the "return_item_list" field. + public const int ReturnItemListFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.ItemList returnItemList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList ReturnItemList { + get { return returnItemList_; } + set { + returnItemList_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SellItemScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SellItemScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ReturnItemList, other.ReturnItemList)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (returnItemList_ != null) hash ^= ReturnItemList.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (returnItemList_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ReturnItemList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (returnItemList_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ReturnItemList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (returnItemList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnItemList); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SellItemScRsp other) { + if (other == null) { + return; + } + if (other.returnItemList_ != null) { + if (returnItemList_ == null) { + ReturnItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + ReturnItemList.MergeFrom(other.ReturnItemList); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 18: { + if (returnItemList_ == null) { + ReturnItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ReturnItemList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 18: { + if (returnItemList_ == null) { + ReturnItemList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ReturnItemList); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SendMsgCsReq.cs b/Common/Proto/SendMsgCsReq.cs new file mode 100644 index 00000000..944b66df --- /dev/null +++ b/Common/Proto/SendMsgCsReq.cs @@ -0,0 +1,375 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SendMsgCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SendMsgCsReq.proto + public static partial class SendMsgCsReqReflection { + + #region Descriptor + /// File descriptor for SendMsgCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SendMsgCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJTZW5kTXNnQ3NSZXEucHJvdG8aDkNoYXRUeXBlLnByb3RvGg1Nc2dUeXBl", + "LnByb3RvInoKDFNlbmRNc2dDc1JlcRITCgt0b191aWRfbGlzdBgEIAMoDRIN", + "CgVlbW90ZRgNIAEoDRIaCghtc2dfdHlwZRgFIAEoDjIILk1zZ1R5cGUSDAoE", + "dGV4dBgMIAEoCRIcCgljaGF0X3R5cGUYBiABKA4yCS5DaGF0VHlwZUIeqgIb", + "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChatTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.MsgTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SendMsgCsReq), global::EggLink.DanhengServer.Proto.SendMsgCsReq.Parser, new[]{ "ToUidList", "Emote", "MsgType", "Text", "ChatType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SendMsgCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendMsgCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SendMsgCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SendMsgCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SendMsgCsReq(SendMsgCsReq other) : this() { + toUidList_ = other.toUidList_.Clone(); + emote_ = other.emote_; + msgType_ = other.msgType_; + text_ = other.text_; + chatType_ = other.chatType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SendMsgCsReq Clone() { + return new SendMsgCsReq(this); + } + + /// Field number for the "to_uid_list" field. + public const int ToUidListFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_toUidList_codec + = pb::FieldCodec.ForUInt32(34); + private readonly pbc::RepeatedField toUidList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ToUidList { + get { return toUidList_; } + } + + /// Field number for the "emote" field. + public const int EmoteFieldNumber = 13; + private uint emote_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Emote { + get { return emote_; } + set { + emote_ = value; + } + } + + /// Field number for the "msg_type" field. + public const int MsgTypeFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.MsgType msgType_ = global::EggLink.DanhengServer.Proto.MsgType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.MsgType MsgType { + get { return msgType_; } + set { + msgType_ = value; + } + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 12; + 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"); + } + } + + /// Field number for the "chat_type" field. + public const int ChatTypeFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.ChatType chatType_ = global::EggLink.DanhengServer.Proto.ChatType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChatType ChatType { + get { return chatType_; } + set { + chatType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SendMsgCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SendMsgCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!toUidList_.Equals(other.toUidList_)) return false; + if (Emote != other.Emote) return false; + if (MsgType != other.MsgType) return false; + if (Text != other.Text) return false; + if (ChatType != other.ChatType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= toUidList_.GetHashCode(); + if (Emote != 0) hash ^= Emote.GetHashCode(); + if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) hash ^= MsgType.GetHashCode(); + if (Text.Length != 0) hash ^= Text.GetHashCode(); + if (ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) hash ^= ChatType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + toUidList_.WriteTo(output, _repeated_toUidList_codec); + if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) { + output.WriteRawTag(40); + output.WriteEnum((int) MsgType); + } + if (ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) { + output.WriteRawTag(48); + output.WriteEnum((int) ChatType); + } + if (Text.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Text); + } + if (Emote != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Emote); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + toUidList_.WriteTo(ref output, _repeated_toUidList_codec); + if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) { + output.WriteRawTag(40); + output.WriteEnum((int) MsgType); + } + if (ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) { + output.WriteRawTag(48); + output.WriteEnum((int) ChatType); + } + if (Text.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Text); + } + if (Emote != 0) { + output.WriteRawTag(104); + output.WriteUInt32(Emote); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += toUidList_.CalculateSize(_repeated_toUidList_codec); + if (Emote != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Emote); + } + if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MsgType); + } + if (Text.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ChatType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SendMsgCsReq other) { + if (other == null) { + return; + } + toUidList_.Add(other.toUidList_); + if (other.Emote != 0) { + Emote = other.Emote; + } + if (other.MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) { + MsgType = other.MsgType; + } + if (other.Text.Length != 0) { + Text = other.Text; + } + if (other.ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) { + ChatType = other.ChatType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: + case 32: { + toUidList_.AddEntriesFrom(input, _repeated_toUidList_codec); + break; + } + case 40: { + MsgType = (global::EggLink.DanhengServer.Proto.MsgType) input.ReadEnum(); + break; + } + case 48: { + ChatType = (global::EggLink.DanhengServer.Proto.ChatType) input.ReadEnum(); + break; + } + case 98: { + Text = input.ReadString(); + break; + } + case 104: { + Emote = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: + case 32: { + toUidList_.AddEntriesFrom(ref input, _repeated_toUidList_codec); + break; + } + case 40: { + MsgType = (global::EggLink.DanhengServer.Proto.MsgType) input.ReadEnum(); + break; + } + case 48: { + ChatType = (global::EggLink.DanhengServer.Proto.ChatType) input.ReadEnum(); + break; + } + case 98: { + Text = input.ReadString(); + break; + } + case 104: { + Emote = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetClientPausedCsReq.cs b/Common/Proto/SetClientPausedCsReq.cs new file mode 100644 index 00000000..d59fcceb --- /dev/null +++ b/Common/Proto/SetClientPausedCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetClientPausedCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetClientPausedCsReq.proto + public static partial class SetClientPausedCsReqReflection { + + #region Descriptor + /// File descriptor for SetClientPausedCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetClientPausedCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTZXRDbGllbnRQYXVzZWRDc1JlcS5wcm90byImChRTZXRDbGllbnRQYXVz", + "ZWRDc1JlcRIOCgZwYXVzZWQYDSABKAhCHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl", + "cnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetClientPausedCsReq), global::EggLink.DanhengServer.Proto.SetClientPausedCsReq.Parser, new[]{ "Paused" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetClientPausedCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetClientPausedCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetClientPausedCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetClientPausedCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetClientPausedCsReq(SetClientPausedCsReq other) : this() { + paused_ = other.paused_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetClientPausedCsReq Clone() { + return new SetClientPausedCsReq(this); + } + + /// Field number for the "paused" field. + public const int PausedFieldNumber = 13; + private bool paused_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Paused { + get { return paused_; } + set { + paused_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetClientPausedCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetClientPausedCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Paused != other.Paused) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Paused != false) hash ^= Paused.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Paused != false) { + output.WriteRawTag(104); + output.WriteBool(Paused); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Paused != false) { + output.WriteRawTag(104); + output.WriteBool(Paused); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Paused != 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(SetClientPausedCsReq other) { + if (other == null) { + return; + } + if (other.Paused != false) { + Paused = other.Paused; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 104: { + Paused = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 104: { + Paused = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetClientPausedScRsp.cs b/Common/Proto/SetClientPausedScRsp.cs new file mode 100644 index 00000000..89f1d6a1 --- /dev/null +++ b/Common/Proto/SetClientPausedScRsp.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetClientPausedScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetClientPausedScRsp.proto + public static partial class SetClientPausedScRspReflection { + + #region Descriptor + /// File descriptor for SetClientPausedScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetClientPausedScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTZXRDbGllbnRQYXVzZWRTY1JzcC5wcm90byI3ChRTZXRDbGllbnRQYXVz", + "ZWRTY1JzcBIOCgZwYXVzZWQYASABKAgSDwoHcmV0Y29kZRgOIAEoDUIeqgIb", + "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetClientPausedScRsp), global::EggLink.DanhengServer.Proto.SetClientPausedScRsp.Parser, new[]{ "Paused", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetClientPausedScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetClientPausedScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetClientPausedScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetClientPausedScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetClientPausedScRsp(SetClientPausedScRsp other) : this() { + paused_ = other.paused_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetClientPausedScRsp Clone() { + return new SetClientPausedScRsp(this); + } + + /// Field number for the "paused" field. + public const int PausedFieldNumber = 1; + private bool paused_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Paused { + get { return paused_; } + set { + paused_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 14; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetClientPausedScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetClientPausedScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Paused != other.Paused) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Paused != false) hash ^= Paused.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Paused != false) { + output.WriteRawTag(8); + output.WriteBool(Paused); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Paused != false) { + output.WriteRawTag(8); + output.WriteBool(Paused); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Paused != false) { + size += 1 + 1; + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetClientPausedScRsp other) { + if (other == null) { + return; + } + if (other.Paused != false) { + Paused = other.Paused; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Paused = input.ReadBool(); + break; + } + case 112: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Paused = input.ReadBool(); + break; + } + case 112: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetFriendMarkCsReq.cs b/Common/Proto/SetFriendMarkCsReq.cs new file mode 100644 index 00000000..34fa8602 --- /dev/null +++ b/Common/Proto/SetFriendMarkCsReq.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetFriendMarkCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetFriendMarkCsReq.proto + public static partial class SetFriendMarkCsReqReflection { + + #region Descriptor + /// File descriptor for SetFriendMarkCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetFriendMarkCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhTZXRGcmllbmRNYXJrQ3NSZXEucHJvdG8iNgoSU2V0RnJpZW5kTWFya0Nz", + "UmVxEhMKC2lzX3NldF9tYXJrGAQgASgIEgsKA3VpZBgLIAEoDUIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetFriendMarkCsReq), global::EggLink.DanhengServer.Proto.SetFriendMarkCsReq.Parser, new[]{ "IsSetMark", "Uid" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetFriendMarkCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetFriendMarkCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetFriendMarkCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetFriendMarkCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetFriendMarkCsReq(SetFriendMarkCsReq other) : this() { + isSetMark_ = other.isSetMark_; + uid_ = other.uid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetFriendMarkCsReq Clone() { + return new SetFriendMarkCsReq(this); + } + + /// Field number for the "is_set_mark" field. + public const int IsSetMarkFieldNumber = 4; + private bool isSetMark_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsSetMark { + get { return isSetMark_; } + set { + isSetMark_ = value; + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 11; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetFriendMarkCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetFriendMarkCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsSetMark != other.IsSetMark) return false; + if (Uid != other.Uid) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (IsSetMark != false) hash ^= IsSetMark.GetHashCode(); + if (Uid != 0) hash ^= Uid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (IsSetMark != false) { + output.WriteRawTag(32); + output.WriteBool(IsSetMark); + } + if (Uid != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (IsSetMark != false) { + output.WriteRawTag(32); + output.WriteBool(IsSetMark); + } + if (Uid != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (IsSetMark != false) { + size += 1 + 1; + } + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetFriendMarkCsReq other) { + if (other == null) { + return; + } + if (other.IsSetMark != false) { + IsSetMark = other.IsSetMark; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + IsSetMark = input.ReadBool(); + break; + } + case 88: { + Uid = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + IsSetMark = input.ReadBool(); + break; + } + case 88: { + Uid = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetFriendMarkScRsp.cs b/Common/Proto/SetFriendMarkScRsp.cs new file mode 100644 index 00000000..177c1930 --- /dev/null +++ b/Common/Proto/SetFriendMarkScRsp.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetFriendMarkScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetFriendMarkScRsp.proto + public static partial class SetFriendMarkScRspReflection { + + #region Descriptor + /// File descriptor for SetFriendMarkScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetFriendMarkScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhTZXRGcmllbmRNYXJrU2NSc3AucHJvdG8iRwoSU2V0RnJpZW5kTWFya1Nj", + "UnNwEgsKA3VpZBgCIAEoDRIPCgdyZXRjb2RlGAggASgNEhMKC2lzX3NldF9t", + "YXJrGAQgASgIQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetFriendMarkScRsp), global::EggLink.DanhengServer.Proto.SetFriendMarkScRsp.Parser, new[]{ "Uid", "Retcode", "IsSetMark" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetFriendMarkScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetFriendMarkScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetFriendMarkScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetFriendMarkScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetFriendMarkScRsp(SetFriendMarkScRsp other) : this() { + uid_ = other.uid_; + retcode_ = other.retcode_; + isSetMark_ = other.isSetMark_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetFriendMarkScRsp Clone() { + return new SetFriendMarkScRsp(this); + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 2; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 8; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "is_set_mark" field. + public const int IsSetMarkFieldNumber = 4; + private bool isSetMark_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsSetMark { + get { return isSetMark_; } + set { + isSetMark_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetFriendMarkScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetFriendMarkScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uid != other.Uid) return false; + if (Retcode != other.Retcode) return false; + if (IsSetMark != other.IsSetMark) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Uid != 0) hash ^= Uid.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (IsSetMark != false) hash ^= IsSetMark.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Uid != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Uid); + } + if (IsSetMark != false) { + output.WriteRawTag(32); + output.WriteBool(IsSetMark); + } + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Uid != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Uid); + } + if (IsSetMark != false) { + output.WriteRawTag(32); + output.WriteBool(IsSetMark); + } + if (Retcode != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (IsSetMark != 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(SetFriendMarkScRsp other) { + if (other == null) { + return; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.IsSetMark != false) { + IsSetMark = other.IsSetMark; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + Uid = input.ReadUInt32(); + break; + } + case 32: { + IsSetMark = input.ReadBool(); + break; + } + case 64: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + Uid = input.ReadUInt32(); + break; + } + case 32: { + IsSetMark = input.ReadBool(); + break; + } + case 64: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetGameplayBirthdayCsReq.cs b/Common/Proto/SetGameplayBirthdayCsReq.cs new file mode 100644 index 00000000..dff39f67 --- /dev/null +++ b/Common/Proto/SetGameplayBirthdayCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetGameplayBirthdayCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetGameplayBirthdayCsReq.proto + public static partial class SetGameplayBirthdayCsReqReflection { + + #region Descriptor + /// File descriptor for SetGameplayBirthdayCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetGameplayBirthdayCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5TZXRHYW1lcGxheUJpcnRoZGF5Q3NSZXEucHJvdG8iLAoYU2V0R2FtZXBs", + "YXlCaXJ0aGRheUNzUmVxEhAKCGJpcnRoZGF5GAQgASgNQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetGameplayBirthdayCsReq), global::EggLink.DanhengServer.Proto.SetGameplayBirthdayCsReq.Parser, new[]{ "Birthday" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetGameplayBirthdayCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetGameplayBirthdayCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetGameplayBirthdayCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetGameplayBirthdayCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetGameplayBirthdayCsReq(SetGameplayBirthdayCsReq other) : this() { + birthday_ = other.birthday_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetGameplayBirthdayCsReq Clone() { + return new SetGameplayBirthdayCsReq(this); + } + + /// Field number for the "birthday" field. + public const int BirthdayFieldNumber = 4; + private uint birthday_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Birthday { + get { return birthday_; } + set { + birthday_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetGameplayBirthdayCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetGameplayBirthdayCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Birthday != other.Birthday) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Birthday != 0) hash ^= Birthday.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Birthday != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Birthday); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Birthday != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Birthday); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Birthday != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Birthday); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetGameplayBirthdayCsReq other) { + if (other == null) { + return; + } + if (other.Birthday != 0) { + Birthday = other.Birthday; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + Birthday = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + Birthday = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetGameplayBirthdayScRsp.cs b/Common/Proto/SetGameplayBirthdayScRsp.cs new file mode 100644 index 00000000..0109ee10 --- /dev/null +++ b/Common/Proto/SetGameplayBirthdayScRsp.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetGameplayBirthdayScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetGameplayBirthdayScRsp.proto + public static partial class SetGameplayBirthdayScRspReflection { + + #region Descriptor + /// File descriptor for SetGameplayBirthdayScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetGameplayBirthdayScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5TZXRHYW1lcGxheUJpcnRoZGF5U2NSc3AucHJvdG8iPQoYU2V0R2FtZXBs", + "YXlCaXJ0aGRheVNjUnNwEg8KB3JldGNvZGUYASABKA0SEAoIYmlydGhkYXkY", + "CyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetGameplayBirthdayScRsp), global::EggLink.DanhengServer.Proto.SetGameplayBirthdayScRsp.Parser, new[]{ "Retcode", "Birthday" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetGameplayBirthdayScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetGameplayBirthdayScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetGameplayBirthdayScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetGameplayBirthdayScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetGameplayBirthdayScRsp(SetGameplayBirthdayScRsp other) : this() { + retcode_ = other.retcode_; + birthday_ = other.birthday_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetGameplayBirthdayScRsp Clone() { + return new SetGameplayBirthdayScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "birthday" field. + public const int BirthdayFieldNumber = 11; + private uint birthday_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Birthday { + get { return birthday_; } + set { + birthday_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetGameplayBirthdayScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetGameplayBirthdayScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (Birthday != other.Birthday) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (Birthday != 0) hash ^= Birthday.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (Birthday != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Birthday); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (Birthday != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Birthday); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (Birthday != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Birthday); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetGameplayBirthdayScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.Birthday != 0) { + Birthday = other.Birthday; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 88: { + Birthday = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 88: { + Birthday = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetHeadIconCsReq.cs b/Common/Proto/SetHeadIconCsReq.cs new file mode 100644 index 00000000..a4944b71 --- /dev/null +++ b/Common/Proto/SetHeadIconCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetHeadIconCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetHeadIconCsReq.proto + public static partial class SetHeadIconCsReqReflection { + + #region Descriptor + /// File descriptor for SetHeadIconCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetHeadIconCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZTZXRIZWFkSWNvbkNzUmVxLnByb3RvIh4KEFNldEhlYWRJY29uQ3NSZXES", + "CgoCaWQYASABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetHeadIconCsReq), global::EggLink.DanhengServer.Proto.SetHeadIconCsReq.Parser, new[]{ "Id" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetHeadIconCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetHeadIconCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetHeadIconCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeadIconCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeadIconCsReq(SetHeadIconCsReq other) : this() { + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeadIconCsReq Clone() { + return new SetHeadIconCsReq(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; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetHeadIconCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetHeadIconCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (Id != 0) { + output.WriteRawTag(8); + 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 (Id != 0) { + output.WriteRawTag(8); + 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 (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(SetHeadIconCsReq other) { + if (other == null) { + return; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetHeadIconScRsp.cs b/Common/Proto/SetHeadIconScRsp.cs new file mode 100644 index 00000000..20267723 --- /dev/null +++ b/Common/Proto/SetHeadIconScRsp.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetHeadIconScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetHeadIconScRsp.proto + public static partial class SetHeadIconScRspReflection { + + #region Descriptor + /// File descriptor for SetHeadIconScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetHeadIconScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZTZXRIZWFkSWNvblNjUnNwLnByb3RvIkEKEFNldEhlYWRJY29uU2NSc3AS", + "HAoUY3VycmVudF9oZWFkX2ljb25faWQYDSABKA0SDwoHcmV0Y29kZRgCIAEo", + "DUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetHeadIconScRsp), global::EggLink.DanhengServer.Proto.SetHeadIconScRsp.Parser, new[]{ "CurrentHeadIconId", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetHeadIconScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetHeadIconScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetHeadIconScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeadIconScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeadIconScRsp(SetHeadIconScRsp other) : this() { + currentHeadIconId_ = other.currentHeadIconId_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeadIconScRsp Clone() { + return new SetHeadIconScRsp(this); + } + + /// Field number for the "current_head_icon_id" field. + public const int CurrentHeadIconIdFieldNumber = 13; + private uint currentHeadIconId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurrentHeadIconId { + get { return currentHeadIconId_; } + set { + currentHeadIconId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 2; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetHeadIconScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetHeadIconScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CurrentHeadIconId != other.CurrentHeadIconId) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CurrentHeadIconId != 0) hash ^= CurrentHeadIconId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + if (CurrentHeadIconId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(CurrentHeadIconId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + if (CurrentHeadIconId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(CurrentHeadIconId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CurrentHeadIconId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurrentHeadIconId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetHeadIconScRsp other) { + if (other == null) { + return; + } + if (other.CurrentHeadIconId != 0) { + CurrentHeadIconId = other.CurrentHeadIconId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 104: { + CurrentHeadIconId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 104: { + CurrentHeadIconId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetHeroBasicTypeCsReq.cs b/Common/Proto/SetHeroBasicTypeCsReq.cs new file mode 100644 index 00000000..2b5bffe7 --- /dev/null +++ b/Common/Proto/SetHeroBasicTypeCsReq.cs @@ -0,0 +1,235 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetHeroBasicTypeCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetHeroBasicTypeCsReq.proto + public static partial class SetHeroBasicTypeCsReqReflection { + + #region Descriptor + /// File descriptor for SetHeroBasicTypeCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetHeroBasicTypeCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTZXRIZXJvQmFzaWNUeXBlQ3NSZXEucHJvdG8aE0hlcm9CYXNpY1R5cGUu", + "cHJvdG8iOwoVU2V0SGVyb0Jhc2ljVHlwZUNzUmVxEiIKCmJhc2ljX3R5cGUY", + "DyABKA4yDi5IZXJvQmFzaWNUeXBlQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2", + "ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.HeroBasicTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetHeroBasicTypeCsReq), global::EggLink.DanhengServer.Proto.SetHeroBasicTypeCsReq.Parser, new[]{ "BasicType" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetHeroBasicTypeCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetHeroBasicTypeCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetHeroBasicTypeCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeroBasicTypeCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeroBasicTypeCsReq(SetHeroBasicTypeCsReq other) : this() { + basicType_ = other.basicType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeroBasicTypeCsReq Clone() { + return new SetHeroBasicTypeCsReq(this); + } + + /// Field number for the "basic_type" field. + public const int BasicTypeFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.HeroBasicType basicType_ = global::EggLink.DanhengServer.Proto.HeroBasicType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.HeroBasicType BasicType { + get { return basicType_; } + set { + basicType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetHeroBasicTypeCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetHeroBasicTypeCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BasicType != other.BasicType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) hash ^= BasicType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + output.WriteRawTag(120); + output.WriteEnum((int) BasicType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + output.WriteRawTag(120); + output.WriteEnum((int) BasicType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BasicType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetHeroBasicTypeCsReq other) { + if (other == null) { + return; + } + if (other.BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + BasicType = other.BasicType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 120: { + BasicType = (global::EggLink.DanhengServer.Proto.HeroBasicType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 120: { + BasicType = (global::EggLink.DanhengServer.Proto.HeroBasicType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetHeroBasicTypeScRsp.cs b/Common/Proto/SetHeroBasicTypeScRsp.cs new file mode 100644 index 00000000..b10d3ac2 --- /dev/null +++ b/Common/Proto/SetHeroBasicTypeScRsp.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetHeroBasicTypeScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetHeroBasicTypeScRsp.proto + public static partial class SetHeroBasicTypeScRspReflection { + + #region Descriptor + /// File descriptor for SetHeroBasicTypeScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetHeroBasicTypeScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTZXRIZXJvQmFzaWNUeXBlU2NSc3AucHJvdG8aE0hlcm9CYXNpY1R5cGUu", + "cHJvdG8iTAoVU2V0SGVyb0Jhc2ljVHlwZVNjUnNwEiIKCmJhc2ljX3R5cGUY", + "CiABKA4yDi5IZXJvQmFzaWNUeXBlEg8KB3JldGNvZGUYAiABKA1CHqoCG0Vn", + "Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.HeroBasicTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetHeroBasicTypeScRsp), global::EggLink.DanhengServer.Proto.SetHeroBasicTypeScRsp.Parser, new[]{ "BasicType", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetHeroBasicTypeScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetHeroBasicTypeScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetHeroBasicTypeScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeroBasicTypeScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeroBasicTypeScRsp(SetHeroBasicTypeScRsp other) : this() { + basicType_ = other.basicType_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeroBasicTypeScRsp Clone() { + return new SetHeroBasicTypeScRsp(this); + } + + /// Field number for the "basic_type" field. + public const int BasicTypeFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.HeroBasicType basicType_ = global::EggLink.DanhengServer.Proto.HeroBasicType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.HeroBasicType BasicType { + get { return basicType_; } + set { + basicType_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 2; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetHeroBasicTypeScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetHeroBasicTypeScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BasicType != other.BasicType) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) hash ^= BasicType.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + if (BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + output.WriteRawTag(80); + output.WriteEnum((int) BasicType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Retcode); + } + if (BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + output.WriteRawTag(80); + output.WriteEnum((int) BasicType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BasicType); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetHeroBasicTypeScRsp other) { + if (other == null) { + return; + } + if (other.BasicType != global::EggLink.DanhengServer.Proto.HeroBasicType.None) { + BasicType = other.BasicType; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 80: { + BasicType = (global::EggLink.DanhengServer.Proto.HeroBasicType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + Retcode = input.ReadUInt32(); + break; + } + case 80: { + BasicType = (global::EggLink.DanhengServer.Proto.HeroBasicType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetLineupNameCsReq.cs b/Common/Proto/SetLineupNameCsReq.cs new file mode 100644 index 00000000..bc37a8c1 --- /dev/null +++ b/Common/Proto/SetLineupNameCsReq.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetLineupNameCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetLineupNameCsReq.proto + public static partial class SetLineupNameCsReqReflection { + + #region Descriptor + /// File descriptor for SetLineupNameCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetLineupNameCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhTZXRMaW5ldXBOYW1lQ3NSZXEucHJvdG8iMQoSU2V0TGluZXVwTmFtZUNz", + "UmVxEgwKBG5hbWUYByABKAkSDQoFaW5kZXgYCCABKA1CHqoCG0VnZ0xpbmsu", + "RGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetLineupNameCsReq), global::EggLink.DanhengServer.Proto.SetLineupNameCsReq.Parser, new[]{ "Name", "Index" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetLineupNameCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLineupNameCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetLineupNameCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetLineupNameCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetLineupNameCsReq(SetLineupNameCsReq other) : this() { + name_ = other.name_; + index_ = other.index_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetLineupNameCsReq Clone() { + return new SetLineupNameCsReq(this); + } + + /// Field number for the "name" field. + 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"); + } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 8; + private uint index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Index { + get { return index_; } + set { + index_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetLineupNameCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetLineupNameCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Index != other.Index) return false; + 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 (Index != 0) hash ^= Index.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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(58); + output.WriteString(Name); + } + if (Index != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Index); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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(58); + output.WriteString(Name); + } + if (Index != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Index); + } + if (_unknownFields != 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 (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Index); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetLineupNameCsReq other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Index != 0) { + Index = other.Index; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + Name = input.ReadString(); + break; + } + case 64: { + Index = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + Name = input.ReadString(); + break; + } + case 64: { + Index = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetLineupNameScRsp.cs b/Common/Proto/SetLineupNameScRsp.cs new file mode 100644 index 00000000..d3bff896 --- /dev/null +++ b/Common/Proto/SetLineupNameScRsp.cs @@ -0,0 +1,308 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetLineupNameScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetLineupNameScRsp.proto + public static partial class SetLineupNameScRspReflection { + + #region Descriptor + /// File descriptor for SetLineupNameScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetLineupNameScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhTZXRMaW5ldXBOYW1lU2NSc3AucHJvdG8iQgoSU2V0TGluZXVwTmFtZVNj", + "UnNwEg0KBWluZGV4GAYgASgNEg8KB3JldGNvZGUYCSABKA0SDAoEbmFtZRgP", + "IAEoCUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetLineupNameScRsp), global::EggLink.DanhengServer.Proto.SetLineupNameScRsp.Parser, new[]{ "Index", "Retcode", "Name" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetLineupNameScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLineupNameScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetLineupNameScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetLineupNameScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetLineupNameScRsp(SetLineupNameScRsp other) : this() { + index_ = other.index_; + retcode_ = other.retcode_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetLineupNameScRsp Clone() { + return new SetLineupNameScRsp(this); + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 6; + private uint index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 9; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetLineupNameScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetLineupNameScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Index != other.Index) return false; + if (Retcode != other.Retcode) 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 (Index != 0) hash ^= Index.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.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 (Index != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Index); + } + if (Retcode != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Retcode); + } + if (Name.Length != 0) { + output.WriteRawTag(122); + 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 (Index != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Index); + } + if (Retcode != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Retcode); + } + if (Name.Length != 0) { + output.WriteRawTag(122); + 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 (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Index); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + 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(SetLineupNameScRsp other) { + if (other == null) { + return; + } + if (other.Index != 0) { + Index = other.Index; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 48: { + Index = input.ReadUInt32(); + break; + } + case 72: { + Retcode = input.ReadUInt32(); + break; + } + case 122: { + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 48: { + Index = input.ReadUInt32(); + break; + } + case 72: { + Retcode = input.ReadUInt32(); + break; + } + case 122: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetNicknameCsReq.cs b/Common/Proto/SetNicknameCsReq.cs new file mode 100644 index 00000000..7d81cf3f --- /dev/null +++ b/Common/Proto/SetNicknameCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetNicknameCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetNicknameCsReq.proto + public static partial class SetNicknameCsReqReflection { + + #region Descriptor + /// File descriptor for SetNicknameCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetNicknameCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZTZXROaWNrbmFtZUNzUmVxLnByb3RvIiQKEFNldE5pY2tuYW1lQ3NSZXES", + "EAoIbmlja25hbWUYDiABKAlCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetNicknameCsReq), global::EggLink.DanhengServer.Proto.SetNicknameCsReq.Parser, new[]{ "Nickname" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetNicknameCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetNicknameCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetNicknameCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetNicknameCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetNicknameCsReq(SetNicknameCsReq other) : this() { + nickname_ = other.nickname_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetNicknameCsReq Clone() { + return new SetNicknameCsReq(this); + } + + /// Field number for the "nickname" field. + public const int NicknameFieldNumber = 14; + private string nickname_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Nickname { + get { return nickname_; } + set { + nickname_ = 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 SetNicknameCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetNicknameCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Nickname != other.Nickname) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Nickname.Length != 0) hash ^= Nickname.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Nickname.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Nickname); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Nickname.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Nickname); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Nickname.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Nickname); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetNicknameCsReq other) { + if (other == null) { + return; + } + if (other.Nickname.Length != 0) { + Nickname = other.Nickname; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + Nickname = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + Nickname = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetSignatureCsReq.cs b/Common/Proto/SetSignatureCsReq.cs new file mode 100644 index 00000000..f476f32c --- /dev/null +++ b/Common/Proto/SetSignatureCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetSignatureCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetSignatureCsReq.proto + public static partial class SetSignatureCsReqReflection { + + #region Descriptor + /// File descriptor for SetSignatureCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetSignatureCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdTZXRTaWduYXR1cmVDc1JlcS5wcm90byImChFTZXRTaWduYXR1cmVDc1Jl", + "cRIRCglzaWduYXR1cmUYCCABKAlCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl", + "ci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetSignatureCsReq), global::EggLink.DanhengServer.Proto.SetSignatureCsReq.Parser, new[]{ "Signature" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetSignatureCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSignatureCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetSignatureCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSignatureCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSignatureCsReq(SetSignatureCsReq other) : this() { + signature_ = other.signature_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSignatureCsReq Clone() { + return new SetSignatureCsReq(this); + } + + /// Field number for the "signature" field. + public const int SignatureFieldNumber = 8; + private string signature_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Signature { + get { return signature_; } + set { + signature_ = 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 SetSignatureCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetSignatureCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Signature != other.Signature) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Signature.Length != 0) hash ^= Signature.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Signature.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Signature); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Signature.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Signature); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Signature.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Signature); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetSignatureCsReq other) { + if (other == null) { + return; + } + if (other.Signature.Length != 0) { + Signature = other.Signature; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + Signature = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: { + Signature = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SetSignatureScRsp.cs b/Common/Proto/SetSignatureScRsp.cs new file mode 100644 index 00000000..e68df1bd --- /dev/null +++ b/Common/Proto/SetSignatureScRsp.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetSignatureScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SetSignatureScRsp.proto + public static partial class SetSignatureScRspReflection { + + #region Descriptor + /// File descriptor for SetSignatureScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetSignatureScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdTZXRTaWduYXR1cmVTY1JzcC5wcm90byI3ChFTZXRTaWduYXR1cmVTY1Jz", + "cBIPCgdyZXRjb2RlGA4gASgNEhEKCXNpZ25hdHVyZRgIIAEoCUIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SetSignatureScRsp), global::EggLink.DanhengServer.Proto.SetSignatureScRsp.Parser, new[]{ "Retcode", "Signature" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetSignatureScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSignatureScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SetSignatureScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSignatureScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSignatureScRsp(SetSignatureScRsp other) : this() { + retcode_ = other.retcode_; + signature_ = other.signature_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSignatureScRsp Clone() { + return new SetSignatureScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 14; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "signature" field. + public const int SignatureFieldNumber = 8; + private string signature_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Signature { + get { return signature_; } + set { + signature_ = 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 SetSignatureScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetSignatureScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (Signature != other.Signature) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (Signature.Length != 0) hash ^= Signature.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Signature.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Signature); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Signature.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Signature); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (Signature.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Signature); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetSignatureScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.Signature.Length != 0) { + Signature = other.Signature; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 66: { + Signature = input.ReadString(); + break; + } + case 112: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 66: { + Signature = input.ReadString(); + break; + } + case 112: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Shop.cs b/Common/Proto/Shop.cs new file mode 100644 index 00000000..887adf02 --- /dev/null +++ b/Common/Proto/Shop.cs @@ -0,0 +1,448 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Shop.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from Shop.proto + public static partial class ShopReflection { + + #region Descriptor + /// File descriptor for Shop.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ShopReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgpTaG9wLnByb3RvGgtHb29kcy5wcm90byKgAQoEU2hvcBISCgpjaXR5X2xl", + "dmVsGA0gASgNEhIKCmJlZ2luX3RpbWUYBCABKAMSEAoIZW5kX3RpbWUYCiAB", + "KAMSGgoKZ29vZHNfbGlzdBgIIAMoCzIGLkdvb2RzEhAKCGNpdHlfZXhwGAEg", + "ASgNEh8KF2NpdHlfdGFrZW5fbGV2ZWxfcmV3YXJkGA4gASgEEg8KB3Nob3Bf", + "aWQYByABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GoodsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Shop), global::EggLink.DanhengServer.Proto.Shop.Parser, new[]{ "CityLevel", "BeginTime", "EndTime", "GoodsList", "CityExp", "CityTakenLevelReward", "ShopId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Shop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Shop()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.ShopReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Shop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Shop(Shop other) : this() { + cityLevel_ = other.cityLevel_; + beginTime_ = other.beginTime_; + endTime_ = other.endTime_; + goodsList_ = other.goodsList_.Clone(); + cityExp_ = other.cityExp_; + cityTakenLevelReward_ = other.cityTakenLevelReward_; + shopId_ = other.shopId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Shop Clone() { + return new Shop(this); + } + + /// Field number for the "city_level" field. + public const int CityLevelFieldNumber = 13; + private uint cityLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CityLevel { + get { return cityLevel_; } + set { + cityLevel_ = value; + } + } + + /// Field number for the "begin_time" field. + public const int BeginTimeFieldNumber = 4; + private long beginTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BeginTime { + get { return beginTime_; } + set { + beginTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 10; + private long endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "goods_list" field. + public const int GoodsListFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_goodsList_codec + = pb::FieldCodec.ForMessage(66, global::EggLink.DanhengServer.Proto.Goods.Parser); + private readonly pbc::RepeatedField goodsList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GoodsList { + get { return goodsList_; } + } + + /// Field number for the "city_exp" field. + public const int CityExpFieldNumber = 1; + private uint cityExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CityExp { + get { return cityExp_; } + set { + cityExp_ = value; + } + } + + /// Field number for the "city_taken_level_reward" field. + public const int CityTakenLevelRewardFieldNumber = 14; + private ulong cityTakenLevelReward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong CityTakenLevelReward { + get { return cityTakenLevelReward_; } + set { + cityTakenLevelReward_ = value; + } + } + + /// Field number for the "shop_id" field. + public const int ShopIdFieldNumber = 7; + private uint shopId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ShopId { + get { return shopId_; } + set { + shopId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Shop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Shop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CityLevel != other.CityLevel) return false; + if (BeginTime != other.BeginTime) return false; + if (EndTime != other.EndTime) return false; + if(!goodsList_.Equals(other.goodsList_)) return false; + if (CityExp != other.CityExp) return false; + if (CityTakenLevelReward != other.CityTakenLevelReward) return false; + if (ShopId != other.ShopId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CityLevel != 0) hash ^= CityLevel.GetHashCode(); + if (BeginTime != 0L) hash ^= BeginTime.GetHashCode(); + if (EndTime != 0L) hash ^= EndTime.GetHashCode(); + hash ^= goodsList_.GetHashCode(); + if (CityExp != 0) hash ^= CityExp.GetHashCode(); + if (CityTakenLevelReward != 0UL) hash ^= CityTakenLevelReward.GetHashCode(); + if (ShopId != 0) hash ^= ShopId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CityExp != 0) { + output.WriteRawTag(8); + output.WriteUInt32(CityExp); + } + if (BeginTime != 0L) { + output.WriteRawTag(32); + output.WriteInt64(BeginTime); + } + if (ShopId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ShopId); + } + goodsList_.WriteTo(output, _repeated_goodsList_codec); + if (EndTime != 0L) { + output.WriteRawTag(80); + output.WriteInt64(EndTime); + } + if (CityLevel != 0) { + output.WriteRawTag(104); + output.WriteUInt32(CityLevel); + } + if (CityTakenLevelReward != 0UL) { + output.WriteRawTag(112); + output.WriteUInt64(CityTakenLevelReward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CityExp != 0) { + output.WriteRawTag(8); + output.WriteUInt32(CityExp); + } + if (BeginTime != 0L) { + output.WriteRawTag(32); + output.WriteInt64(BeginTime); + } + if (ShopId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ShopId); + } + goodsList_.WriteTo(ref output, _repeated_goodsList_codec); + if (EndTime != 0L) { + output.WriteRawTag(80); + output.WriteInt64(EndTime); + } + if (CityLevel != 0) { + output.WriteRawTag(104); + output.WriteUInt32(CityLevel); + } + if (CityTakenLevelReward != 0UL) { + output.WriteRawTag(112); + output.WriteUInt64(CityTakenLevelReward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CityLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CityLevel); + } + if (BeginTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BeginTime); + } + if (EndTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime); + } + size += goodsList_.CalculateSize(_repeated_goodsList_codec); + if (CityExp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CityExp); + } + if (CityTakenLevelReward != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CityTakenLevelReward); + } + if (ShopId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ShopId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Shop other) { + if (other == null) { + return; + } + if (other.CityLevel != 0) { + CityLevel = other.CityLevel; + } + if (other.BeginTime != 0L) { + BeginTime = other.BeginTime; + } + if (other.EndTime != 0L) { + EndTime = other.EndTime; + } + goodsList_.Add(other.goodsList_); + if (other.CityExp != 0) { + CityExp = other.CityExp; + } + if (other.CityTakenLevelReward != 0UL) { + CityTakenLevelReward = other.CityTakenLevelReward; + } + if (other.ShopId != 0) { + ShopId = other.ShopId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + CityExp = input.ReadUInt32(); + break; + } + case 32: { + BeginTime = input.ReadInt64(); + break; + } + case 56: { + ShopId = input.ReadUInt32(); + break; + } + case 66: { + goodsList_.AddEntriesFrom(input, _repeated_goodsList_codec); + break; + } + case 80: { + EndTime = input.ReadInt64(); + break; + } + case 104: { + CityLevel = input.ReadUInt32(); + break; + } + case 112: { + CityTakenLevelReward = input.ReadUInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + CityExp = input.ReadUInt32(); + break; + } + case 32: { + BeginTime = input.ReadInt64(); + break; + } + case 56: { + ShopId = input.ReadUInt32(); + break; + } + case 66: { + goodsList_.AddEntriesFrom(ref input, _repeated_goodsList_codec); + break; + } + case 80: { + EndTime = input.ReadInt64(); + break; + } + case 104: { + CityLevel = input.ReadUInt32(); + break; + } + case 112: { + CityTakenLevelReward = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SimpleInfo.cs b/Common/Proto/SimpleInfo.cs new file mode 100644 index 00000000..16d2d353 --- /dev/null +++ b/Common/Proto/SimpleInfo.cs @@ -0,0 +1,600 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SimpleInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SimpleInfo.proto + public static partial class SimpleInfoReflection { + + #region Descriptor + /// File descriptor for SimpleInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SimpleInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBTaW1wbGVJbmZvLnByb3RvGhZBc3Npc3RTaW1wbGVJbmZvLnByb3RvGhhG", + "cmllbmRPbmxpbmVTdGF0dXMucHJvdG8aElBsYXRmb3JtVHlwZS5wcm90byKm", + "AgoKU2ltcGxlSW5mbxIRCglzaWduYXR1cmUYBiABKAkSEQoJaXNfYmFubmVk", + "GAwgASgIEi0KEmFzc2lzdF9zaW1wbGVfaW5mbxgLIAMoCzIRLkFzc2lzdFNp", + "bXBsZUluZm8SJAoNcGxhdGZvcm1fdHlwZRgFIAEoDjINLlBsYXRmb3JtVHlw", + "ZRIYChBsYXN0X2FjdGl2ZV90aW1lGAkgASgDEioKDW9ubGluZV9zdGF0dXMY", + "BCABKA4yEy5GcmllbmRPbmxpbmVTdGF0dXMSEQoJaGVhZF9pY29uGAMgASgN", + "EhAKCG5pY2tuYW1lGA0gASgJEhYKDmNoYXRfYnViYmxlX2lkGAIgASgNEgsK", + "A3VpZBgBIAEoDRINCgVsZXZlbBgIIAEoDUIeqgIbRWdnTGluay5EYW5oZW5n", + "U2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AssistSimpleInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.FriendOnlineStatusReflection.Descriptor, global::EggLink.DanhengServer.Proto.PlatformTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SimpleInfo), global::EggLink.DanhengServer.Proto.SimpleInfo.Parser, new[]{ "Signature", "IsBanned", "AssistSimpleInfo", "PlatformType", "LastActiveTime", "OnlineStatus", "HeadIcon", "Nickname", "ChatBubbleId", "Uid", "Level" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SimpleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SimpleInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SimpleInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SimpleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SimpleInfo(SimpleInfo other) : this() { + signature_ = other.signature_; + isBanned_ = other.isBanned_; + assistSimpleInfo_ = other.assistSimpleInfo_.Clone(); + platformType_ = other.platformType_; + lastActiveTime_ = other.lastActiveTime_; + onlineStatus_ = other.onlineStatus_; + headIcon_ = other.headIcon_; + nickname_ = other.nickname_; + chatBubbleId_ = other.chatBubbleId_; + uid_ = other.uid_; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SimpleInfo Clone() { + return new SimpleInfo(this); + } + + /// Field number for the "signature" field. + public const int SignatureFieldNumber = 6; + private string signature_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Signature { + get { return signature_; } + set { + signature_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_banned" field. + public const int IsBannedFieldNumber = 12; + private bool isBanned_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsBanned { + get { return isBanned_; } + set { + isBanned_ = value; + } + } + + /// Field number for the "assist_simple_info" field. + public const int AssistSimpleInfoFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_assistSimpleInfo_codec + = pb::FieldCodec.ForMessage(90, global::EggLink.DanhengServer.Proto.AssistSimpleInfo.Parser); + private readonly pbc::RepeatedField assistSimpleInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AssistSimpleInfo { + get { return assistSimpleInfo_; } + } + + /// Field number for the "platform_type" field. + public const int PlatformTypeFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.PlatformType platformType_ = global::EggLink.DanhengServer.Proto.PlatformType.Editor; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.PlatformType PlatformType { + get { return platformType_; } + set { + platformType_ = value; + } + } + + /// Field number for the "last_active_time" field. + public const int LastActiveTimeFieldNumber = 9; + private long lastActiveTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long LastActiveTime { + get { return lastActiveTime_; } + set { + lastActiveTime_ = value; + } + } + + /// Field number for the "online_status" field. + public const int OnlineStatusFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.FriendOnlineStatus onlineStatus_ = global::EggLink.DanhengServer.Proto.FriendOnlineStatus.Offline; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.FriendOnlineStatus OnlineStatus { + get { return onlineStatus_; } + set { + onlineStatus_ = value; + } + } + + /// Field number for the "head_icon" field. + public const int HeadIconFieldNumber = 3; + private uint headIcon_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint HeadIcon { + get { return headIcon_; } + set { + headIcon_ = value; + } + } + + /// Field number for the "nickname" field. + public const int NicknameFieldNumber = 13; + private string nickname_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Nickname { + get { return nickname_; } + set { + nickname_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "chat_bubble_id" field. + public const int ChatBubbleIdFieldNumber = 2; + private uint chatBubbleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ChatBubbleId { + get { return chatBubbleId_; } + set { + chatBubbleId_ = value; + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 1; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 8; + 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 SimpleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SimpleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Signature != other.Signature) return false; + if (IsBanned != other.IsBanned) return false; + if(!assistSimpleInfo_.Equals(other.assistSimpleInfo_)) return false; + if (PlatformType != other.PlatformType) return false; + if (LastActiveTime != other.LastActiveTime) return false; + if (OnlineStatus != other.OnlineStatus) return false; + if (HeadIcon != other.HeadIcon) return false; + if (Nickname != other.Nickname) return false; + if (ChatBubbleId != other.ChatBubbleId) return false; + if (Uid != other.Uid) 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 (Signature.Length != 0) hash ^= Signature.GetHashCode(); + if (IsBanned != false) hash ^= IsBanned.GetHashCode(); + hash ^= assistSimpleInfo_.GetHashCode(); + if (PlatformType != global::EggLink.DanhengServer.Proto.PlatformType.Editor) hash ^= PlatformType.GetHashCode(); + if (LastActiveTime != 0L) hash ^= LastActiveTime.GetHashCode(); + if (OnlineStatus != global::EggLink.DanhengServer.Proto.FriendOnlineStatus.Offline) hash ^= OnlineStatus.GetHashCode(); + if (HeadIcon != 0) hash ^= HeadIcon.GetHashCode(); + if (Nickname.Length != 0) hash ^= Nickname.GetHashCode(); + if (ChatBubbleId != 0) hash ^= ChatBubbleId.GetHashCode(); + if (Uid != 0) hash ^= Uid.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 (Uid != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Uid); + } + if (ChatBubbleId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ChatBubbleId); + } + if (HeadIcon != 0) { + output.WriteRawTag(24); + output.WriteUInt32(HeadIcon); + } + if (OnlineStatus != global::EggLink.DanhengServer.Proto.FriendOnlineStatus.Offline) { + output.WriteRawTag(32); + output.WriteEnum((int) OnlineStatus); + } + if (PlatformType != global::EggLink.DanhengServer.Proto.PlatformType.Editor) { + output.WriteRawTag(40); + output.WriteEnum((int) PlatformType); + } + if (Signature.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Signature); + } + if (Level != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Level); + } + if (LastActiveTime != 0L) { + output.WriteRawTag(72); + output.WriteInt64(LastActiveTime); + } + assistSimpleInfo_.WriteTo(output, _repeated_assistSimpleInfo_codec); + if (IsBanned != false) { + output.WriteRawTag(96); + output.WriteBool(IsBanned); + } + if (Nickname.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Nickname); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Uid != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Uid); + } + if (ChatBubbleId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ChatBubbleId); + } + if (HeadIcon != 0) { + output.WriteRawTag(24); + output.WriteUInt32(HeadIcon); + } + if (OnlineStatus != global::EggLink.DanhengServer.Proto.FriendOnlineStatus.Offline) { + output.WriteRawTag(32); + output.WriteEnum((int) OnlineStatus); + } + if (PlatformType != global::EggLink.DanhengServer.Proto.PlatformType.Editor) { + output.WriteRawTag(40); + output.WriteEnum((int) PlatformType); + } + if (Signature.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Signature); + } + if (Level != 0) { + output.WriteRawTag(64); + output.WriteUInt32(Level); + } + if (LastActiveTime != 0L) { + output.WriteRawTag(72); + output.WriteInt64(LastActiveTime); + } + assistSimpleInfo_.WriteTo(ref output, _repeated_assistSimpleInfo_codec); + if (IsBanned != false) { + output.WriteRawTag(96); + output.WriteBool(IsBanned); + } + if (Nickname.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Nickname); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Signature.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Signature); + } + if (IsBanned != false) { + size += 1 + 1; + } + size += assistSimpleInfo_.CalculateSize(_repeated_assistSimpleInfo_codec); + if (PlatformType != global::EggLink.DanhengServer.Proto.PlatformType.Editor) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlatformType); + } + if (LastActiveTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(LastActiveTime); + } + if (OnlineStatus != global::EggLink.DanhengServer.Proto.FriendOnlineStatus.Offline) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OnlineStatus); + } + if (HeadIcon != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(HeadIcon); + } + if (Nickname.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Nickname); + } + if (ChatBubbleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChatBubbleId); + } + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + 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(SimpleInfo other) { + if (other == null) { + return; + } + if (other.Signature.Length != 0) { + Signature = other.Signature; + } + if (other.IsBanned != false) { + IsBanned = other.IsBanned; + } + assistSimpleInfo_.Add(other.assistSimpleInfo_); + if (other.PlatformType != global::EggLink.DanhengServer.Proto.PlatformType.Editor) { + PlatformType = other.PlatformType; + } + if (other.LastActiveTime != 0L) { + LastActiveTime = other.LastActiveTime; + } + if (other.OnlineStatus != global::EggLink.DanhengServer.Proto.FriendOnlineStatus.Offline) { + OnlineStatus = other.OnlineStatus; + } + if (other.HeadIcon != 0) { + HeadIcon = other.HeadIcon; + } + if (other.Nickname.Length != 0) { + Nickname = other.Nickname; + } + if (other.ChatBubbleId != 0) { + ChatBubbleId = other.ChatBubbleId; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Uid = input.ReadUInt32(); + break; + } + case 16: { + ChatBubbleId = input.ReadUInt32(); + break; + } + case 24: { + HeadIcon = input.ReadUInt32(); + break; + } + case 32: { + OnlineStatus = (global::EggLink.DanhengServer.Proto.FriendOnlineStatus) input.ReadEnum(); + break; + } + case 40: { + PlatformType = (global::EggLink.DanhengServer.Proto.PlatformType) input.ReadEnum(); + break; + } + case 50: { + Signature = input.ReadString(); + break; + } + case 64: { + Level = input.ReadUInt32(); + break; + } + case 72: { + LastActiveTime = input.ReadInt64(); + break; + } + case 90: { + assistSimpleInfo_.AddEntriesFrom(input, _repeated_assistSimpleInfo_codec); + break; + } + case 96: { + IsBanned = input.ReadBool(); + break; + } + case 106: { + Nickname = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Uid = input.ReadUInt32(); + break; + } + case 16: { + ChatBubbleId = input.ReadUInt32(); + break; + } + case 24: { + HeadIcon = input.ReadUInt32(); + break; + } + case 32: { + OnlineStatus = (global::EggLink.DanhengServer.Proto.FriendOnlineStatus) input.ReadEnum(); + break; + } + case 40: { + PlatformType = (global::EggLink.DanhengServer.Proto.PlatformType) input.ReadEnum(); + break; + } + case 50: { + Signature = input.ReadString(); + break; + } + case 64: { + Level = input.ReadUInt32(); + break; + } + case 72: { + LastActiveTime = input.ReadInt64(); + break; + } + case 90: { + assistSimpleInfo_.AddEntriesFrom(ref input, _repeated_assistSimpleInfo_codec); + break; + } + case 96: { + IsBanned = input.ReadBool(); + break; + } + case 106: { + Nickname = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SpBarInfo.cs b/Common/Proto/SpBarInfo.cs new file mode 100644 index 00000000..80a676e0 --- /dev/null +++ b/Common/Proto/SpBarInfo.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SpBarInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SpBarInfo.proto + public static partial class SpBarInfoReflection { + + #region Descriptor + /// File descriptor for SpBarInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SpBarInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg9TcEJhckluZm8ucHJvdG8iKwoJU3BCYXJJbmZvEg4KBmN1cl9zcBgBIAEo", + "DRIOCgZtYXhfc3AYAiABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SpBarInfo), global::EggLink.DanhengServer.Proto.SpBarInfo.Parser, new[]{ "CurSp", "MaxSp" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SpBarInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpBarInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SpBarInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SpBarInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SpBarInfo(SpBarInfo other) : this() { + curSp_ = other.curSp_; + maxSp_ = other.maxSp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SpBarInfo Clone() { + return new SpBarInfo(this); + } + + /// Field number for the "cur_sp" field. + public const int CurSpFieldNumber = 1; + private uint curSp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CurSp { + get { return curSp_; } + set { + curSp_ = value; + } + } + + /// Field number for the "max_sp" field. + public const int MaxSpFieldNumber = 2; + private uint maxSp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxSp { + get { return maxSp_; } + set { + maxSp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SpBarInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SpBarInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CurSp != other.CurSp) return false; + if (MaxSp != other.MaxSp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CurSp != 0) hash ^= CurSp.GetHashCode(); + if (MaxSp != 0) hash ^= MaxSp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CurSp != 0) { + output.WriteRawTag(8); + output.WriteUInt32(CurSp); + } + if (MaxSp != 0) { + output.WriteRawTag(16); + output.WriteUInt32(MaxSp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CurSp != 0) { + output.WriteRawTag(8); + output.WriteUInt32(CurSp); + } + if (MaxSp != 0) { + output.WriteRawTag(16); + output.WriteUInt32(MaxSp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CurSp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurSp); + } + if (MaxSp != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxSp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SpBarInfo other) { + if (other == null) { + return; + } + if (other.CurSp != 0) { + CurSp = other.CurSp; + } + if (other.MaxSp != 0) { + MaxSp = other.MaxSp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + CurSp = input.ReadUInt32(); + break; + } + case 16: { + MaxSp = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + CurSp = input.ReadUInt32(); + break; + } + case 16: { + MaxSp = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/StaminaInfoScNotify.cs b/Common/Proto/StaminaInfoScNotify.cs new file mode 100644 index 00000000..996106bf --- /dev/null +++ b/Common/Proto/StaminaInfoScNotify.cs @@ -0,0 +1,309 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StaminaInfoScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from StaminaInfoScNotify.proto + public static partial class StaminaInfoScNotifyReflection { + + #region Descriptor + /// File descriptor for StaminaInfoScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StaminaInfoScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlTdGFtaW5hSW5mb1NjTm90aWZ5LnByb3RvIloKE1N0YW1pbmFJbmZvU2NO", + "b3RpZnkSGQoRbmV4dF9yZWNvdmVyX3RpbWUYCyABKAMSDwoHc3RhbWluYRgD", + "IAEoDRIXCg9yZXNlcnZlX3N0YW1pbmEYByABKA1CHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.StaminaInfoScNotify), global::EggLink.DanhengServer.Proto.StaminaInfoScNotify.Parser, new[]{ "NextRecoverTime", "Stamina", "ReserveStamina" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StaminaInfoScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StaminaInfoScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.StaminaInfoScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StaminaInfoScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StaminaInfoScNotify(StaminaInfoScNotify other) : this() { + nextRecoverTime_ = other.nextRecoverTime_; + stamina_ = other.stamina_; + reserveStamina_ = other.reserveStamina_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StaminaInfoScNotify Clone() { + return new StaminaInfoScNotify(this); + } + + /// Field number for the "next_recover_time" field. + public const int NextRecoverTimeFieldNumber = 11; + private long nextRecoverTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NextRecoverTime { + get { return nextRecoverTime_; } + set { + nextRecoverTime_ = value; + } + } + + /// Field number for the "stamina" field. + public const int StaminaFieldNumber = 3; + private uint stamina_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Stamina { + get { return stamina_; } + set { + stamina_ = value; + } + } + + /// Field number for the "reserve_stamina" field. + public const int ReserveStaminaFieldNumber = 7; + private uint reserveStamina_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ReserveStamina { + get { return reserveStamina_; } + set { + reserveStamina_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StaminaInfoScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StaminaInfoScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NextRecoverTime != other.NextRecoverTime) return false; + if (Stamina != other.Stamina) return false; + if (ReserveStamina != other.ReserveStamina) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (NextRecoverTime != 0L) hash ^= NextRecoverTime.GetHashCode(); + if (Stamina != 0) hash ^= Stamina.GetHashCode(); + if (ReserveStamina != 0) hash ^= ReserveStamina.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Stamina != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Stamina); + } + if (ReserveStamina != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ReserveStamina); + } + if (NextRecoverTime != 0L) { + output.WriteRawTag(88); + output.WriteInt64(NextRecoverTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Stamina != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Stamina); + } + if (ReserveStamina != 0) { + output.WriteRawTag(56); + output.WriteUInt32(ReserveStamina); + } + if (NextRecoverTime != 0L) { + output.WriteRawTag(88); + output.WriteInt64(NextRecoverTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (NextRecoverTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NextRecoverTime); + } + if (Stamina != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Stamina); + } + if (ReserveStamina != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ReserveStamina); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StaminaInfoScNotify other) { + if (other == null) { + return; + } + if (other.NextRecoverTime != 0L) { + NextRecoverTime = other.NextRecoverTime; + } + if (other.Stamina != 0) { + Stamina = other.Stamina; + } + if (other.ReserveStamina != 0) { + ReserveStamina = other.ReserveStamina; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Stamina = input.ReadUInt32(); + break; + } + case 56: { + ReserveStamina = input.ReadUInt32(); + break; + } + case 88: { + NextRecoverTime = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Stamina = input.ReadUInt32(); + break; + } + case 56: { + ReserveStamina = input.ReadUInt32(); + break; + } + case 88: { + NextRecoverTime = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/StartChallengeCsReq.cs b/Common/Proto/StartChallengeCsReq.cs new file mode 100644 index 00000000..116c6418 --- /dev/null +++ b/Common/Proto/StartChallengeCsReq.cs @@ -0,0 +1,282 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartChallengeCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from StartChallengeCsReq.proto + public static partial class StartChallengeCsReqReflection { + + #region Descriptor + /// File descriptor for StartChallengeCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartChallengeCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlTdGFydENoYWxsZW5nZUNzUmVxLnByb3RvGh1TdGFydENoYWxsZW5nZVN0", + "b3J5SW5mby5wcm90byJZChNTdGFydENoYWxsZW5nZUNzUmVxEiwKCnN0b3J5", + "X2luZm8YCiABKAsyGC5TdGFydENoYWxsZW5nZVN0b3J5SW5mbxIUCgxjaGFs", + "bGVuZ2VfaWQYBCABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90", + "b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.StartChallengeStoryInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.StartChallengeCsReq), global::EggLink.DanhengServer.Proto.StartChallengeCsReq.Parser, new[]{ "StoryInfo", "ChallengeId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StartChallengeCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartChallengeCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.StartChallengeCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartChallengeCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartChallengeCsReq(StartChallengeCsReq other) : this() { + storyInfo_ = other.storyInfo_ != null ? other.storyInfo_.Clone() : null; + challengeId_ = other.challengeId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartChallengeCsReq Clone() { + return new StartChallengeCsReq(this); + } + + /// Field number for the "story_info" field. + public const int StoryInfoFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.StartChallengeStoryInfo storyInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.StartChallengeStoryInfo StoryInfo { + get { return storyInfo_; } + set { + storyInfo_ = value; + } + } + + /// Field number for the "challenge_id" field. + public const int ChallengeIdFieldNumber = 4; + private uint challengeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ChallengeId { + get { return challengeId_; } + set { + challengeId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartChallengeCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartChallengeCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StoryInfo, other.StoryInfo)) return false; + if (ChallengeId != other.ChallengeId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (storyInfo_ != null) hash ^= StoryInfo.GetHashCode(); + if (ChallengeId != 0) hash ^= ChallengeId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ChallengeId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ChallengeId); + } + if (storyInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(StoryInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ChallengeId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ChallengeId); + } + if (storyInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(StoryInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (storyInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StoryInfo); + } + if (ChallengeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChallengeId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartChallengeCsReq other) { + if (other == null) { + return; + } + if (other.storyInfo_ != null) { + if (storyInfo_ == null) { + StoryInfo = new global::EggLink.DanhengServer.Proto.StartChallengeStoryInfo(); + } + StoryInfo.MergeFrom(other.StoryInfo); + } + if (other.ChallengeId != 0) { + ChallengeId = other.ChallengeId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + ChallengeId = input.ReadUInt32(); + break; + } + case 82: { + if (storyInfo_ == null) { + StoryInfo = new global::EggLink.DanhengServer.Proto.StartChallengeStoryInfo(); + } + input.ReadMessage(StoryInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + ChallengeId = input.ReadUInt32(); + break; + } + case 82: { + if (storyInfo_ == null) { + StoryInfo = new global::EggLink.DanhengServer.Proto.StartChallengeStoryInfo(); + } + input.ReadMessage(StoryInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/StartChallengeScRsp.cs b/Common/Proto/StartChallengeScRsp.cs new file mode 100644 index 00000000..221297b9 --- /dev/null +++ b/Common/Proto/StartChallengeScRsp.cs @@ -0,0 +1,375 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartChallengeScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from StartChallengeScRsp.proto + public static partial class StartChallengeScRspReflection { + + #region Descriptor + /// File descriptor for StartChallengeScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartChallengeScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlTdGFydENoYWxsZW5nZVNjUnNwLnByb3RvGhNDaGFsbGVuZ2VJbmZvLnBy", + "b3RvGhBMaW5ldXBJbmZvLnByb3RvGg9TY2VuZUluZm8ucHJvdG8ihgEKE1N0", + "YXJ0Q2hhbGxlbmdlU2NSc3ASJgoOY2hhbGxlbmdlX2luZm8YBiABKAsyDi5D", + "aGFsbGVuZ2VJbmZvEhkKBXNjZW5lGA8gASgLMgouU2NlbmVJbmZvEhsKBmxp", + "bmV1cBgNIAEoCzILLkxpbmV1cEluZm8SDwoHcmV0Y29kZRgHIAEoDUIeqgIb", + "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChallengeInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.LineupInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.StartChallengeScRsp), global::EggLink.DanhengServer.Proto.StartChallengeScRsp.Parser, new[]{ "ChallengeInfo", "Scene", "Lineup", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StartChallengeScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartChallengeScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.StartChallengeScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartChallengeScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartChallengeScRsp(StartChallengeScRsp other) : this() { + challengeInfo_ = other.challengeInfo_ != null ? other.challengeInfo_.Clone() : null; + scene_ = other.scene_ != null ? other.scene_.Clone() : null; + lineup_ = other.lineup_ != null ? other.lineup_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartChallengeScRsp Clone() { + return new StartChallengeScRsp(this); + } + + /// Field number for the "challenge_info" field. + public const int ChallengeInfoFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.ChallengeInfo challengeInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChallengeInfo ChallengeInfo { + get { return challengeInfo_; } + set { + challengeInfo_ = value; + } + } + + /// Field number for the "scene" field. + public const int SceneFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.SceneInfo scene_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneInfo Scene { + get { return scene_; } + set { + scene_ = value; + } + } + + /// Field number for the "lineup" field. + public const int LineupFieldNumber = 13; + private global::EggLink.DanhengServer.Proto.LineupInfo lineup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.LineupInfo Lineup { + get { return lineup_; } + set { + lineup_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 7; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartChallengeScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartChallengeScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ChallengeInfo, other.ChallengeInfo)) return false; + if (!object.Equals(Scene, other.Scene)) return false; + if (!object.Equals(Lineup, other.Lineup)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (challengeInfo_ != null) hash ^= ChallengeInfo.GetHashCode(); + if (scene_ != null) hash ^= Scene.GetHashCode(); + if (lineup_ != null) hash ^= Lineup.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (challengeInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ChallengeInfo); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (lineup_ != null) { + output.WriteRawTag(106); + output.WriteMessage(Lineup); + } + if (scene_ != null) { + output.WriteRawTag(122); + output.WriteMessage(Scene); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (challengeInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ChallengeInfo); + } + if (Retcode != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Retcode); + } + if (lineup_ != null) { + output.WriteRawTag(106); + output.WriteMessage(Lineup); + } + if (scene_ != null) { + output.WriteRawTag(122); + output.WriteMessage(Scene); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (challengeInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChallengeInfo); + } + if (scene_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scene); + } + if (lineup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lineup); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartChallengeScRsp other) { + if (other == null) { + return; + } + if (other.challengeInfo_ != null) { + if (challengeInfo_ == null) { + ChallengeInfo = new global::EggLink.DanhengServer.Proto.ChallengeInfo(); + } + ChallengeInfo.MergeFrom(other.ChallengeInfo); + } + if (other.scene_ != null) { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + Scene.MergeFrom(other.Scene); + } + if (other.lineup_ != null) { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + Lineup.MergeFrom(other.Lineup); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 50: { + if (challengeInfo_ == null) { + ChallengeInfo = new global::EggLink.DanhengServer.Proto.ChallengeInfo(); + } + input.ReadMessage(ChallengeInfo); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 122: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 50: { + if (challengeInfo_ == null) { + ChallengeInfo = new global::EggLink.DanhengServer.Proto.ChallengeInfo(); + } + input.ReadMessage(ChallengeInfo); + break; + } + case 56: { + Retcode = input.ReadUInt32(); + break; + } + case 106: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 122: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/StartChallengeStoryBuffInfo.cs b/Common/Proto/StartChallengeStoryBuffInfo.cs new file mode 100644 index 00000000..25b95669 --- /dev/null +++ b/Common/Proto/StartChallengeStoryBuffInfo.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartChallengeStoryBuffInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from StartChallengeStoryBuffInfo.proto + public static partial class StartChallengeStoryBuffInfoReflection { + + #region Descriptor + /// File descriptor for StartChallengeStoryBuffInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartChallengeStoryBuffInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiFTdGFydENoYWxsZW5nZVN0b3J5QnVmZkluZm8ucHJvdG8iTQobU3RhcnRD", + "aGFsbGVuZ2VTdG9yeUJ1ZmZJbmZvEhYKDnN0b3J5X2J1ZmZfb25lGAggASgN", + "EhYKDnN0b3J5X2J1ZmZfdHdvGAkgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", + "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.StartChallengeStoryBuffInfo), global::EggLink.DanhengServer.Proto.StartChallengeStoryBuffInfo.Parser, new[]{ "StoryBuffOne", "StoryBuffTwo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StartChallengeStoryBuffInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartChallengeStoryBuffInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.StartChallengeStoryBuffInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartChallengeStoryBuffInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartChallengeStoryBuffInfo(StartChallengeStoryBuffInfo other) : this() { + storyBuffOne_ = other.storyBuffOne_; + storyBuffTwo_ = other.storyBuffTwo_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartChallengeStoryBuffInfo Clone() { + return new StartChallengeStoryBuffInfo(this); + } + + /// Field number for the "story_buff_one" field. + public const int StoryBuffOneFieldNumber = 8; + private uint storyBuffOne_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StoryBuffOne { + get { return storyBuffOne_; } + set { + storyBuffOne_ = value; + } + } + + /// Field number for the "story_buff_two" field. + public const int StoryBuffTwoFieldNumber = 9; + private uint storyBuffTwo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StoryBuffTwo { + get { return storyBuffTwo_; } + set { + storyBuffTwo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartChallengeStoryBuffInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartChallengeStoryBuffInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StoryBuffOne != other.StoryBuffOne) return false; + if (StoryBuffTwo != other.StoryBuffTwo) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (StoryBuffOne != 0) hash ^= StoryBuffOne.GetHashCode(); + if (StoryBuffTwo != 0) hash ^= StoryBuffTwo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StoryBuffOne != 0) { + output.WriteRawTag(64); + output.WriteUInt32(StoryBuffOne); + } + if (StoryBuffTwo != 0) { + output.WriteRawTag(72); + output.WriteUInt32(StoryBuffTwo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (StoryBuffOne != 0) { + output.WriteRawTag(64); + output.WriteUInt32(StoryBuffOne); + } + if (StoryBuffTwo != 0) { + output.WriteRawTag(72); + output.WriteUInt32(StoryBuffTwo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (StoryBuffOne != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StoryBuffOne); + } + if (StoryBuffTwo != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StoryBuffTwo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartChallengeStoryBuffInfo other) { + if (other == null) { + return; + } + if (other.StoryBuffOne != 0) { + StoryBuffOne = other.StoryBuffOne; + } + if (other.StoryBuffTwo != 0) { + StoryBuffTwo = other.StoryBuffTwo; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + StoryBuffOne = input.ReadUInt32(); + break; + } + case 72: { + StoryBuffTwo = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + StoryBuffOne = input.ReadUInt32(); + break; + } + case 72: { + StoryBuffTwo = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/StartChallengeStoryInfo.cs b/Common/Proto/StartChallengeStoryInfo.cs new file mode 100644 index 00000000..b4258fc4 --- /dev/null +++ b/Common/Proto/StartChallengeStoryInfo.cs @@ -0,0 +1,245 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartChallengeStoryInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from StartChallengeStoryInfo.proto + public static partial class StartChallengeStoryInfoReflection { + + #region Descriptor + /// File descriptor for StartChallengeStoryInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartChallengeStoryInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1TdGFydENoYWxsZW5nZVN0b3J5SW5mby5wcm90bxohU3RhcnRDaGFsbGVu", + "Z2VTdG9yeUJ1ZmZJbmZvLnByb3RvIlAKF1N0YXJ0Q2hhbGxlbmdlU3RvcnlJ", + "bmZvEjUKD3N0b3J5X2J1ZmZfaW5mbxgCIAEoCzIcLlN0YXJ0Q2hhbGxlbmdl", + "U3RvcnlCdWZmSW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.StartChallengeStoryBuffInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.StartChallengeStoryInfo), global::EggLink.DanhengServer.Proto.StartChallengeStoryInfo.Parser, new[]{ "StoryBuffInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StartChallengeStoryInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartChallengeStoryInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.StartChallengeStoryInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartChallengeStoryInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartChallengeStoryInfo(StartChallengeStoryInfo other) : this() { + storyBuffInfo_ = other.storyBuffInfo_ != null ? other.storyBuffInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartChallengeStoryInfo Clone() { + return new StartChallengeStoryInfo(this); + } + + /// Field number for the "story_buff_info" field. + public const int StoryBuffInfoFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.StartChallengeStoryBuffInfo storyBuffInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.StartChallengeStoryBuffInfo StoryBuffInfo { + get { return storyBuffInfo_; } + set { + storyBuffInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartChallengeStoryInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartChallengeStoryInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StoryBuffInfo, other.StoryBuffInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (storyBuffInfo_ != null) hash ^= StoryBuffInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (storyBuffInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StoryBuffInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (storyBuffInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StoryBuffInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (storyBuffInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StoryBuffInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartChallengeStoryInfo other) { + if (other == null) { + return; + } + if (other.storyBuffInfo_ != null) { + if (storyBuffInfo_ == null) { + StoryBuffInfo = new global::EggLink.DanhengServer.Proto.StartChallengeStoryBuffInfo(); + } + StoryBuffInfo.MergeFrom(other.StoryBuffInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (storyBuffInfo_ == null) { + StoryBuffInfo = new global::EggLink.DanhengServer.Proto.StartChallengeStoryBuffInfo(); + } + input.ReadMessage(StoryBuffInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (storyBuffInfo_ == null) { + StoryBuffInfo = new global::EggLink.DanhengServer.Proto.StartChallengeStoryBuffInfo(); + } + input.ReadMessage(StoryBuffInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/StartCocoonStageCsReq.cs b/Common/Proto/StartCocoonStageCsReq.cs new file mode 100644 index 00000000..72999089 --- /dev/null +++ b/Common/Proto/StartCocoonStageCsReq.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartCocoonStageCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from StartCocoonStageCsReq.proto + public static partial class StartCocoonStageCsReqReflection { + + #region Descriptor + /// File descriptor for StartCocoonStageCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartCocoonStageCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTdGFydENvY29vblN0YWdlQ3NSZXEucHJvdG8iZQoVU3RhcnRDb2Nvb25T", + "dGFnZUNzUmVxEhEKCWNvY29vbl9pZBgFIAEoDRITCgt3b3JsZF9sZXZlbBgH", + "IAEoDRIMCgR3YXZlGA4gASgNEhYKDnByb3BfZW50aXR5X2lkGAYgASgNQh6q", + "AhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.StartCocoonStageCsReq), global::EggLink.DanhengServer.Proto.StartCocoonStageCsReq.Parser, new[]{ "CocoonId", "WorldLevel", "Wave", "PropEntityId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StartCocoonStageCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartCocoonStageCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.StartCocoonStageCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartCocoonStageCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartCocoonStageCsReq(StartCocoonStageCsReq other) : this() { + cocoonId_ = other.cocoonId_; + worldLevel_ = other.worldLevel_; + wave_ = other.wave_; + propEntityId_ = other.propEntityId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartCocoonStageCsReq Clone() { + return new StartCocoonStageCsReq(this); + } + + /// Field number for the "cocoon_id" field. + public const int CocoonIdFieldNumber = 5; + private uint cocoonId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CocoonId { + get { return cocoonId_; } + set { + cocoonId_ = value; + } + } + + /// Field number for the "world_level" field. + public const int WorldLevelFieldNumber = 7; + private uint worldLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WorldLevel { + get { return worldLevel_; } + set { + worldLevel_ = value; + } + } + + /// Field number for the "wave" field. + public const int WaveFieldNumber = 14; + private uint wave_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Wave { + get { return wave_; } + set { + wave_ = value; + } + } + + /// Field number for the "prop_entity_id" field. + public const int PropEntityIdFieldNumber = 6; + private uint propEntityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PropEntityId { + get { return propEntityId_; } + set { + propEntityId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartCocoonStageCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartCocoonStageCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CocoonId != other.CocoonId) return false; + if (WorldLevel != other.WorldLevel) return false; + if (Wave != other.Wave) return false; + if (PropEntityId != other.PropEntityId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CocoonId != 0) hash ^= CocoonId.GetHashCode(); + if (WorldLevel != 0) hash ^= WorldLevel.GetHashCode(); + if (Wave != 0) hash ^= Wave.GetHashCode(); + if (PropEntityId != 0) hash ^= PropEntityId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CocoonId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(CocoonId); + } + if (PropEntityId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(PropEntityId); + } + if (WorldLevel != 0) { + output.WriteRawTag(56); + output.WriteUInt32(WorldLevel); + } + if (Wave != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Wave); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CocoonId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(CocoonId); + } + if (PropEntityId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(PropEntityId); + } + if (WorldLevel != 0) { + output.WriteRawTag(56); + output.WriteUInt32(WorldLevel); + } + if (Wave != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Wave); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CocoonId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CocoonId); + } + if (WorldLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldLevel); + } + if (Wave != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Wave); + } + if (PropEntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PropEntityId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartCocoonStageCsReq other) { + if (other == null) { + return; + } + if (other.CocoonId != 0) { + CocoonId = other.CocoonId; + } + if (other.WorldLevel != 0) { + WorldLevel = other.WorldLevel; + } + if (other.Wave != 0) { + Wave = other.Wave; + } + if (other.PropEntityId != 0) { + PropEntityId = other.PropEntityId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + CocoonId = input.ReadUInt32(); + break; + } + case 48: { + PropEntityId = input.ReadUInt32(); + break; + } + case 56: { + WorldLevel = input.ReadUInt32(); + break; + } + case 112: { + Wave = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + CocoonId = input.ReadUInt32(); + break; + } + case 48: { + PropEntityId = input.ReadUInt32(); + break; + } + case 56: { + WorldLevel = input.ReadUInt32(); + break; + } + case 112: { + Wave = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/StartCocoonStageScRsp.cs b/Common/Proto/StartCocoonStageScRsp.cs new file mode 100644 index 00000000..0cc9b2c5 --- /dev/null +++ b/Common/Proto/StartCocoonStageScRsp.cs @@ -0,0 +1,394 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartCocoonStageScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from StartCocoonStageScRsp.proto + public static partial class StartCocoonStageScRspReflection { + + #region Descriptor + /// File descriptor for StartCocoonStageScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartCocoonStageScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTdGFydENvY29vblN0YWdlU2NSc3AucHJvdG8aFVNjZW5lQmF0dGxlSW5m", + "by5wcm90byKIAQoVU3RhcnRDb2Nvb25TdGFnZVNjUnNwEhYKDnByb3BfZW50", + "aXR5X2lkGAggASgNEiUKC2JhdHRsZV9pbmZvGAYgASgLMhAuU2NlbmVCYXR0", + "bGVJbmZvEhEKCWNvY29vbl9pZBgBIAEoDRIPCgdyZXRjb2RlGA8gASgNEgwK", + "BHdhdmUYBCABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneBattleInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.StartCocoonStageScRsp), global::EggLink.DanhengServer.Proto.StartCocoonStageScRsp.Parser, new[]{ "PropEntityId", "BattleInfo", "CocoonId", "Retcode", "Wave" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StartCocoonStageScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartCocoonStageScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.StartCocoonStageScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartCocoonStageScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartCocoonStageScRsp(StartCocoonStageScRsp other) : this() { + propEntityId_ = other.propEntityId_; + battleInfo_ = other.battleInfo_ != null ? other.battleInfo_.Clone() : null; + cocoonId_ = other.cocoonId_; + retcode_ = other.retcode_; + wave_ = other.wave_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartCocoonStageScRsp Clone() { + return new StartCocoonStageScRsp(this); + } + + /// Field number for the "prop_entity_id" field. + public const int PropEntityIdFieldNumber = 8; + private uint propEntityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PropEntityId { + get { return propEntityId_; } + set { + propEntityId_ = value; + } + } + + /// Field number for the "battle_info" field. + public const int BattleInfoFieldNumber = 6; + private global::EggLink.DanhengServer.Proto.SceneBattleInfo battleInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneBattleInfo BattleInfo { + get { return battleInfo_; } + set { + battleInfo_ = value; + } + } + + /// Field number for the "cocoon_id" field. + public const int CocoonIdFieldNumber = 1; + private uint cocoonId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint CocoonId { + get { return cocoonId_; } + set { + cocoonId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 15; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "wave" field. + public const int WaveFieldNumber = 4; + private uint wave_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Wave { + get { return wave_; } + set { + wave_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartCocoonStageScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartCocoonStageScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PropEntityId != other.PropEntityId) return false; + if (!object.Equals(BattleInfo, other.BattleInfo)) return false; + if (CocoonId != other.CocoonId) return false; + if (Retcode != other.Retcode) return false; + if (Wave != other.Wave) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PropEntityId != 0) hash ^= PropEntityId.GetHashCode(); + if (battleInfo_ != null) hash ^= BattleInfo.GetHashCode(); + if (CocoonId != 0) hash ^= CocoonId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (Wave != 0) hash ^= Wave.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CocoonId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(CocoonId); + } + if (Wave != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Wave); + } + if (battleInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(BattleInfo); + } + if (PropEntityId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(PropEntityId); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CocoonId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(CocoonId); + } + if (Wave != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Wave); + } + if (battleInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(BattleInfo); + } + if (PropEntityId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(PropEntityId); + } + if (Retcode != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PropEntityId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PropEntityId); + } + if (battleInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BattleInfo); + } + if (CocoonId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CocoonId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (Wave != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Wave); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartCocoonStageScRsp other) { + if (other == null) { + return; + } + if (other.PropEntityId != 0) { + PropEntityId = other.PropEntityId; + } + if (other.battleInfo_ != null) { + if (battleInfo_ == null) { + BattleInfo = new global::EggLink.DanhengServer.Proto.SceneBattleInfo(); + } + BattleInfo.MergeFrom(other.BattleInfo); + } + if (other.CocoonId != 0) { + CocoonId = other.CocoonId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.Wave != 0) { + Wave = other.Wave; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + CocoonId = input.ReadUInt32(); + break; + } + case 32: { + Wave = input.ReadUInt32(); + break; + } + case 50: { + if (battleInfo_ == null) { + BattleInfo = new global::EggLink.DanhengServer.Proto.SceneBattleInfo(); + } + input.ReadMessage(BattleInfo); + break; + } + case 64: { + PropEntityId = input.ReadUInt32(); + break; + } + case 120: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + CocoonId = input.ReadUInt32(); + break; + } + case 32: { + Wave = input.ReadUInt32(); + break; + } + case 50: { + if (battleInfo_ == null) { + BattleInfo = new global::EggLink.DanhengServer.Proto.SceneBattleInfo(); + } + input.ReadMessage(BattleInfo); + break; + } + case 64: { + PropEntityId = input.ReadUInt32(); + break; + } + case 120: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/StartFinishSubMissionScNotify.cs b/Common/Proto/StartFinishSubMissionScNotify.cs new file mode 100644 index 00000000..a905801a --- /dev/null +++ b/Common/Proto/StartFinishSubMissionScNotify.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartFinishSubMissionScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from StartFinishSubMissionScNotify.proto + public static partial class StartFinishSubMissionScNotifyReflection { + + #region Descriptor + /// File descriptor for StartFinishSubMissionScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartFinishSubMissionScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiNTdGFydEZpbmlzaFN1Yk1pc3Npb25TY05vdGlmeS5wcm90byIzCh1TdGFy", + "dEZpbmlzaFN1Yk1pc3Npb25TY05vdGlmeRISCgptaXNzaW9uX2lkGAIgASgN", + "Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.StartFinishSubMissionScNotify), global::EggLink.DanhengServer.Proto.StartFinishSubMissionScNotify.Parser, new[]{ "MissionId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StartFinishSubMissionScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartFinishSubMissionScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.StartFinishSubMissionScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartFinishSubMissionScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartFinishSubMissionScNotify(StartFinishSubMissionScNotify other) : this() { + missionId_ = other.missionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartFinishSubMissionScNotify Clone() { + return new StartFinishSubMissionScNotify(this); + } + + /// Field number for the "mission_id" field. + public const int MissionIdFieldNumber = 2; + private uint missionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MissionId { + get { return missionId_; } + set { + missionId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartFinishSubMissionScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartFinishSubMissionScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MissionId != other.MissionId) return false; + 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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(16); + output.WriteUInt32(MissionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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(16); + output.WriteUInt32(MissionId); + } + if (_unknownFields != 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.ComputeUInt32Size(MissionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartFinishSubMissionScNotify other) { + if (other == null) { + return; + } + if (other.MissionId != 0) { + MissionId = other.MissionId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + MissionId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + MissionId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/StartRogueCsReq.cs b/Common/Proto/StartRogueCsReq.cs new file mode 100644 index 00000000..f398cc64 --- /dev/null +++ b/Common/Proto/StartRogueCsReq.cs @@ -0,0 +1,337 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartRogueCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from StartRogueCsReq.proto + public static partial class StartRogueCsReqReflection { + + #region Descriptor + /// File descriptor for StartRogueCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartRogueCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVTdGFydFJvZ3VlQ3NSZXEucHJvdG8iagoPU3RhcnRSb2d1ZUNzUmVxEhsK", + "E2Jhc2VfYXZhdGFyX2lkX2xpc3QYCyADKA0SDwoHYXJlYV9pZBgBIAEoDRIU", + "CgxidWZmX2Flb25faWQYAyABKA0SEwoLRUNKRUZISEFDTUkYDCABKA1CHqoC", + "G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.StartRogueCsReq), global::EggLink.DanhengServer.Proto.StartRogueCsReq.Parser, new[]{ "BaseAvatarIdList", "AreaId", "BuffAeonId", "ECJEFHHACMI" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StartRogueCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartRogueCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.StartRogueCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartRogueCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartRogueCsReq(StartRogueCsReq other) : this() { + baseAvatarIdList_ = other.baseAvatarIdList_.Clone(); + areaId_ = other.areaId_; + buffAeonId_ = other.buffAeonId_; + eCJEFHHACMI_ = other.eCJEFHHACMI_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartRogueCsReq Clone() { + return new StartRogueCsReq(this); + } + + /// Field number for the "base_avatar_id_list" field. + public const int BaseAvatarIdListFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_baseAvatarIdList_codec + = pb::FieldCodec.ForUInt32(90); + private readonly pbc::RepeatedField baseAvatarIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BaseAvatarIdList { + get { return baseAvatarIdList_; } + } + + /// Field number for the "area_id" field. + public const int AreaIdFieldNumber = 1; + private uint areaId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint AreaId { + get { return areaId_; } + set { + areaId_ = value; + } + } + + /// Field number for the "buff_aeon_id" field. + public const int BuffAeonIdFieldNumber = 3; + private uint buffAeonId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BuffAeonId { + get { return buffAeonId_; } + set { + buffAeonId_ = value; + } + } + + /// Field number for the "ECJEFHHACMI" field. + public const int ECJEFHHACMIFieldNumber = 12; + private uint eCJEFHHACMI_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ECJEFHHACMI { + get { return eCJEFHHACMI_; } + set { + eCJEFHHACMI_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartRogueCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartRogueCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!baseAvatarIdList_.Equals(other.baseAvatarIdList_)) return false; + if (AreaId != other.AreaId) return false; + if (BuffAeonId != other.BuffAeonId) return false; + if (ECJEFHHACMI != other.ECJEFHHACMI) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= baseAvatarIdList_.GetHashCode(); + if (AreaId != 0) hash ^= AreaId.GetHashCode(); + if (BuffAeonId != 0) hash ^= BuffAeonId.GetHashCode(); + if (ECJEFHHACMI != 0) hash ^= ECJEFHHACMI.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AreaId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(AreaId); + } + if (BuffAeonId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(BuffAeonId); + } + baseAvatarIdList_.WriteTo(output, _repeated_baseAvatarIdList_codec); + if (ECJEFHHACMI != 0) { + output.WriteRawTag(96); + output.WriteUInt32(ECJEFHHACMI); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AreaId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(AreaId); + } + if (BuffAeonId != 0) { + output.WriteRawTag(24); + output.WriteUInt32(BuffAeonId); + } + baseAvatarIdList_.WriteTo(ref output, _repeated_baseAvatarIdList_codec); + if (ECJEFHHACMI != 0) { + output.WriteRawTag(96); + output.WriteUInt32(ECJEFHHACMI); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += baseAvatarIdList_.CalculateSize(_repeated_baseAvatarIdList_codec); + if (AreaId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AreaId); + } + if (BuffAeonId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffAeonId); + } + if (ECJEFHHACMI != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ECJEFHHACMI); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartRogueCsReq other) { + if (other == null) { + return; + } + baseAvatarIdList_.Add(other.baseAvatarIdList_); + if (other.AreaId != 0) { + AreaId = other.AreaId; + } + if (other.BuffAeonId != 0) { + BuffAeonId = other.BuffAeonId; + } + if (other.ECJEFHHACMI != 0) { + ECJEFHHACMI = other.ECJEFHHACMI; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + AreaId = input.ReadUInt32(); + break; + } + case 24: { + BuffAeonId = input.ReadUInt32(); + break; + } + case 90: + case 88: { + baseAvatarIdList_.AddEntriesFrom(input, _repeated_baseAvatarIdList_codec); + break; + } + case 96: { + ECJEFHHACMI = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + AreaId = input.ReadUInt32(); + break; + } + case 24: { + BuffAeonId = input.ReadUInt32(); + break; + } + case 90: + case 88: { + baseAvatarIdList_.AddEntriesFrom(ref input, _repeated_baseAvatarIdList_codec); + break; + } + case 96: { + ECJEFHHACMI = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/StartRogueScRsp.cs b/Common/Proto/StartRogueScRsp.cs new file mode 100644 index 00000000..894eb0dc --- /dev/null +++ b/Common/Proto/StartRogueScRsp.cs @@ -0,0 +1,375 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartRogueScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from StartRogueScRsp.proto + public static partial class StartRogueScRspReflection { + + #region Descriptor + /// File descriptor for StartRogueScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartRogueScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVTdGFydFJvZ3VlU2NSc3AucHJvdG8aD1JvZ3VlSW5mby5wcm90bxoPU2Nl", + "bmVJbmZvLnByb3RvGhBMaW5ldXBJbmZvLnByb3RvInoKD1N0YXJ0Um9ndWVT", + "Y1JzcBIPCgdyZXRjb2RlGAEgASgNEhsKBmxpbmV1cBgHIAEoCzILLkxpbmV1", + "cEluZm8SGQoFc2NlbmUYCCABKAsyCi5TY2VuZUluZm8SHgoKcm9ndWVfaW5m", + "bxgMIAEoCzIKLlJvZ3VlSW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy", + "LlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.LineupInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.StartRogueScRsp), global::EggLink.DanhengServer.Proto.StartRogueScRsp.Parser, new[]{ "Retcode", "Lineup", "Scene", "RogueInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StartRogueScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartRogueScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.StartRogueScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartRogueScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartRogueScRsp(StartRogueScRsp other) : this() { + retcode_ = other.retcode_; + lineup_ = other.lineup_ != null ? other.lineup_.Clone() : null; + scene_ = other.scene_ != null ? other.scene_.Clone() : null; + rogueInfo_ = other.rogueInfo_ != null ? other.rogueInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartRogueScRsp Clone() { + return new StartRogueScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 1; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "lineup" field. + public const int LineupFieldNumber = 7; + private global::EggLink.DanhengServer.Proto.LineupInfo lineup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.LineupInfo Lineup { + get { return lineup_; } + set { + lineup_ = value; + } + } + + /// Field number for the "scene" field. + public const int SceneFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.SceneInfo scene_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.SceneInfo Scene { + get { return scene_; } + set { + scene_ = value; + } + } + + /// Field number for the "rogue_info" field. + public const int RogueInfoFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.RogueInfo rogueInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueInfo RogueInfo { + get { return rogueInfo_; } + set { + rogueInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartRogueScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartRogueScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (!object.Equals(Lineup, other.Lineup)) return false; + if (!object.Equals(Scene, other.Scene)) return false; + if (!object.Equals(RogueInfo, other.RogueInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (lineup_ != null) hash ^= Lineup.GetHashCode(); + if (scene_ != null) hash ^= Scene.GetHashCode(); + if (rogueInfo_ != null) hash ^= RogueInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (lineup_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Lineup); + } + if (scene_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Scene); + } + if (rogueInfo_ != null) { + output.WriteRawTag(98); + output.WriteMessage(RogueInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Retcode); + } + if (lineup_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Lineup); + } + if (scene_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Scene); + } + if (rogueInfo_ != null) { + output.WriteRawTag(98); + output.WriteMessage(RogueInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (lineup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lineup); + } + if (scene_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scene); + } + if (rogueInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartRogueScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.lineup_ != null) { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + Lineup.MergeFrom(other.Lineup); + } + if (other.scene_ != null) { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + Scene.MergeFrom(other.Scene); + } + if (other.rogueInfo_ != null) { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.RogueInfo(); + } + RogueInfo.MergeFrom(other.RogueInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 58: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 66: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + case 98: { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.RogueInfo(); + } + input.ReadMessage(RogueInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Retcode = input.ReadUInt32(); + break; + } + case 58: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 66: { + if (scene_ == null) { + Scene = new global::EggLink.DanhengServer.Proto.SceneInfo(); + } + input.ReadMessage(Scene); + break; + } + case 98: { + if (rogueInfo_ == null) { + RogueInfo = new global::EggLink.DanhengServer.Proto.RogueInfo(); + } + input.ReadMessage(RogueInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SwapLineupCsReq.cs b/Common/Proto/SwapLineupCsReq.cs new file mode 100644 index 00000000..ab5f5ca7 --- /dev/null +++ b/Common/Proto/SwapLineupCsReq.cs @@ -0,0 +1,422 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SwapLineupCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SwapLineupCsReq.proto + public static partial class SwapLineupCsReqReflection { + + #region Descriptor + /// File descriptor for SwapLineupCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SwapLineupCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVTd2FwTGluZXVwQ3NSZXEucHJvdG8aFUV4dHJhTGluZXVwVHlwZS5wcm90", + "byKXAQoPU3dhcExpbmV1cENzUmVxEhAKCHNyY19zbG90GAEgASgNEhAKCHBs", + "YW5lX2lkGAggASgNEg0KBWluZGV4GAcgASgNEisKEWV4dHJhX2xpbmV1cF90", + "eXBlGAsgASgOMhAuRXh0cmFMaW5ldXBUeXBlEhIKCmlzX3ZpcnR1YWwYBiAB", + "KAgSEAoIZHN0X3Nsb3QYAyABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl", + "ci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ExtraLineupTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SwapLineupCsReq), global::EggLink.DanhengServer.Proto.SwapLineupCsReq.Parser, new[]{ "SrcSlot", "PlaneId", "Index", "ExtraLineupType", "IsVirtual", "DstSlot" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SwapLineupCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwapLineupCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SwapLineupCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapLineupCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapLineupCsReq(SwapLineupCsReq other) : this() { + srcSlot_ = other.srcSlot_; + planeId_ = other.planeId_; + index_ = other.index_; + extraLineupType_ = other.extraLineupType_; + isVirtual_ = other.isVirtual_; + dstSlot_ = other.dstSlot_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwapLineupCsReq Clone() { + return new SwapLineupCsReq(this); + } + + /// Field number for the "src_slot" field. + public const int SrcSlotFieldNumber = 1; + private uint srcSlot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SrcSlot { + get { return srcSlot_; } + set { + srcSlot_ = value; + } + } + + /// Field number for the "plane_id" field. + public const int PlaneIdFieldNumber = 8; + private uint planeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PlaneId { + get { return planeId_; } + set { + planeId_ = value; + } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 7; + private uint index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Index { + get { return index_; } + set { + index_ = value; + } + } + + /// Field number for the "extra_lineup_type" field. + public const int ExtraLineupTypeFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.ExtraLineupType extraLineupType_ = global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ExtraLineupType ExtraLineupType { + get { return extraLineupType_; } + set { + extraLineupType_ = value; + } + } + + /// Field number for the "is_virtual" field. + public const int IsVirtualFieldNumber = 6; + private bool isVirtual_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsVirtual { + get { return isVirtual_; } + set { + isVirtual_ = value; + } + } + + /// Field number for the "dst_slot" field. + public const int DstSlotFieldNumber = 3; + private uint dstSlot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DstSlot { + get { return dstSlot_; } + set { + dstSlot_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwapLineupCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwapLineupCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SrcSlot != other.SrcSlot) return false; + if (PlaneId != other.PlaneId) return false; + if (Index != other.Index) return false; + if (ExtraLineupType != other.ExtraLineupType) return false; + if (IsVirtual != other.IsVirtual) return false; + if (DstSlot != other.DstSlot) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (SrcSlot != 0) hash ^= SrcSlot.GetHashCode(); + if (PlaneId != 0) hash ^= PlaneId.GetHashCode(); + if (Index != 0) hash ^= Index.GetHashCode(); + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) hash ^= ExtraLineupType.GetHashCode(); + if (IsVirtual != false) hash ^= IsVirtual.GetHashCode(); + if (DstSlot != 0) hash ^= DstSlot.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SrcSlot != 0) { + output.WriteRawTag(8); + output.WriteUInt32(SrcSlot); + } + if (DstSlot != 0) { + output.WriteRawTag(24); + output.WriteUInt32(DstSlot); + } + if (IsVirtual != false) { + output.WriteRawTag(48); + output.WriteBool(IsVirtual); + } + if (Index != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Index); + } + if (PlaneId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(PlaneId); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(88); + output.WriteEnum((int) ExtraLineupType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SrcSlot != 0) { + output.WriteRawTag(8); + output.WriteUInt32(SrcSlot); + } + if (DstSlot != 0) { + output.WriteRawTag(24); + output.WriteUInt32(DstSlot); + } + if (IsVirtual != false) { + output.WriteRawTag(48); + output.WriteBool(IsVirtual); + } + if (Index != 0) { + output.WriteRawTag(56); + output.WriteUInt32(Index); + } + if (PlaneId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(PlaneId); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + output.WriteRawTag(88); + output.WriteEnum((int) ExtraLineupType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SrcSlot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SrcSlot); + } + if (PlaneId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlaneId); + } + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Index); + } + if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtraLineupType); + } + if (IsVirtual != false) { + size += 1 + 1; + } + if (DstSlot != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DstSlot); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwapLineupCsReq other) { + if (other == null) { + return; + } + if (other.SrcSlot != 0) { + SrcSlot = other.SrcSlot; + } + if (other.PlaneId != 0) { + PlaneId = other.PlaneId; + } + if (other.Index != 0) { + Index = other.Index; + } + if (other.ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { + ExtraLineupType = other.ExtraLineupType; + } + if (other.IsVirtual != false) { + IsVirtual = other.IsVirtual; + } + if (other.DstSlot != 0) { + DstSlot = other.DstSlot; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SrcSlot = input.ReadUInt32(); + break; + } + case 24: { + DstSlot = input.ReadUInt32(); + break; + } + case 48: { + IsVirtual = input.ReadBool(); + break; + } + case 56: { + Index = input.ReadUInt32(); + break; + } + case 64: { + PlaneId = input.ReadUInt32(); + break; + } + case 88: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SrcSlot = input.ReadUInt32(); + break; + } + case 24: { + DstSlot = input.ReadUInt32(); + break; + } + case 48: { + IsVirtual = input.ReadBool(); + break; + } + case 56: { + Index = input.ReadUInt32(); + break; + } + case 64: { + PlaneId = input.ReadUInt32(); + break; + } + case 88: { + ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SwitchLineupIndexCsReq.cs b/Common/Proto/SwitchLineupIndexCsReq.cs new file mode 100644 index 00000000..e76167a8 --- /dev/null +++ b/Common/Proto/SwitchLineupIndexCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SwitchLineupIndexCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SwitchLineupIndexCsReq.proto + public static partial class SwitchLineupIndexCsReqReflection { + + #region Descriptor + /// File descriptor for SwitchLineupIndexCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SwitchLineupIndexCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxTd2l0Y2hMaW5ldXBJbmRleENzUmVxLnByb3RvIicKFlN3aXRjaExpbmV1", + "cEluZGV4Q3NSZXESDQoFaW5kZXgYDSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVu", + "Z1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SwitchLineupIndexCsReq), global::EggLink.DanhengServer.Proto.SwitchLineupIndexCsReq.Parser, new[]{ "Index" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SwitchLineupIndexCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwitchLineupIndexCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SwitchLineupIndexCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwitchLineupIndexCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwitchLineupIndexCsReq(SwitchLineupIndexCsReq other) : this() { + index_ = other.index_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwitchLineupIndexCsReq Clone() { + return new SwitchLineupIndexCsReq(this); + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 13; + private uint index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Index { + get { return index_; } + set { + index_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwitchLineupIndexCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwitchLineupIndexCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Index != other.Index) return false; + 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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(104); + output.WriteUInt32(Index); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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(104); + output.WriteUInt32(Index); + } + if (_unknownFields != 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.ComputeUInt32Size(Index); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwitchLineupIndexCsReq other) { + if (other == null) { + return; + } + if (other.Index != 0) { + Index = other.Index; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 104: { + Index = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 104: { + Index = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SwitchLineupIndexScRsp.cs b/Common/Proto/SwitchLineupIndexScRsp.cs new file mode 100644 index 00000000..cad64044 --- /dev/null +++ b/Common/Proto/SwitchLineupIndexScRsp.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SwitchLineupIndexScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SwitchLineupIndexScRsp.proto + public static partial class SwitchLineupIndexScRspReflection { + + #region Descriptor + /// File descriptor for SwitchLineupIndexScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SwitchLineupIndexScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChxTd2l0Y2hMaW5ldXBJbmRleFNjUnNwLnByb3RvIjgKFlN3aXRjaExpbmV1", + "cEluZGV4U2NSc3ASDwoHcmV0Y29kZRgEIAEoDRINCgVpbmRleBgGIAEoDUIe", + "qgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SwitchLineupIndexScRsp), global::EggLink.DanhengServer.Proto.SwitchLineupIndexScRsp.Parser, new[]{ "Retcode", "Index" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SwitchLineupIndexScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwitchLineupIndexScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SwitchLineupIndexScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwitchLineupIndexScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwitchLineupIndexScRsp(SwitchLineupIndexScRsp other) : this() { + retcode_ = other.retcode_; + index_ = other.index_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SwitchLineupIndexScRsp Clone() { + return new SwitchLineupIndexScRsp(this); + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 4; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "index" field. + public const int IndexFieldNumber = 6; + private uint index_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Index { + get { return index_; } + set { + index_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SwitchLineupIndexScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SwitchLineupIndexScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Retcode != other.Retcode) return false; + if (Index != other.Index) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (Index != 0) hash ^= Index.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + if (Index != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Index); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Retcode); + } + if (Index != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Index); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (Index != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Index); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SwitchLineupIndexScRsp other) { + if (other == null) { + return; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.Index != 0) { + Index = other.Index; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 48: { + Index = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + Retcode = input.ReadUInt32(); + break; + } + case 48: { + Index = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncApplyFriendScNotify.cs b/Common/Proto/SyncApplyFriendScNotify.cs new file mode 100644 index 00000000..a9c77778 --- /dev/null +++ b/Common/Proto/SyncApplyFriendScNotify.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncApplyFriendScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncApplyFriendScNotify.proto + public static partial class SyncApplyFriendScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncApplyFriendScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncApplyFriendScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1TeW5jQXBwbHlGcmllbmRTY05vdGlmeS5wcm90bxoVRnJpZW5kQXBwbHlJ", + "bmZvLnByb3RvIkYKF1N5bmNBcHBseUZyaWVuZFNjTm90aWZ5EisKEWZyaWVu", + "ZF9hcHBseV9pbmZvGAwgASgLMhAuRnJpZW5kQXBwbHlJbmZvQh6qAhtFZ2dM", + "aW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.FriendApplyInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncApplyFriendScNotify), global::EggLink.DanhengServer.Proto.SyncApplyFriendScNotify.Parser, new[]{ "FriendApplyInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncApplyFriendScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncApplyFriendScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncApplyFriendScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncApplyFriendScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncApplyFriendScNotify(SyncApplyFriendScNotify other) : this() { + friendApplyInfo_ = other.friendApplyInfo_ != null ? other.friendApplyInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncApplyFriendScNotify Clone() { + return new SyncApplyFriendScNotify(this); + } + + /// Field number for the "friend_apply_info" field. + public const int FriendApplyInfoFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.FriendApplyInfo friendApplyInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.FriendApplyInfo FriendApplyInfo { + get { return friendApplyInfo_; } + set { + friendApplyInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncApplyFriendScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncApplyFriendScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(FriendApplyInfo, other.FriendApplyInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (friendApplyInfo_ != null) hash ^= FriendApplyInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (friendApplyInfo_ != null) { + output.WriteRawTag(98); + output.WriteMessage(FriendApplyInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (friendApplyInfo_ != null) { + output.WriteRawTag(98); + output.WriteMessage(FriendApplyInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (friendApplyInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FriendApplyInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncApplyFriendScNotify other) { + if (other == null) { + return; + } + if (other.friendApplyInfo_ != null) { + if (friendApplyInfo_ == null) { + FriendApplyInfo = new global::EggLink.DanhengServer.Proto.FriendApplyInfo(); + } + FriendApplyInfo.MergeFrom(other.FriendApplyInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 98: { + if (friendApplyInfo_ == null) { + FriendApplyInfo = new global::EggLink.DanhengServer.Proto.FriendApplyInfo(); + } + input.ReadMessage(FriendApplyInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 98: { + if (friendApplyInfo_ == null) { + FriendApplyInfo = new global::EggLink.DanhengServer.Proto.FriendApplyInfo(); + } + input.ReadMessage(FriendApplyInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncChessRogueNousValueScNotify.cs b/Common/Proto/SyncChessRogueNousValueScNotify.cs new file mode 100644 index 00000000..a9c3c72b --- /dev/null +++ b/Common/Proto/SyncChessRogueNousValueScNotify.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncChessRogueNousValueScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncChessRogueNousValueScNotify.proto + public static partial class SyncChessRogueNousValueScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncChessRogueNousValueScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncChessRogueNousValueScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiVTeW5jQ2hlc3NSb2d1ZU5vdXNWYWx1ZVNjTm90aWZ5LnByb3RvGhlDaGVz", + "c1JvZ3VlTm91c1ZhbHVlLnByb3RvIkYKH1N5bmNDaGVzc1JvZ3VlTm91c1Zh", + "bHVlU2NOb3RpZnkSIwoFdmFsdWUYDCABKAsyFC5DaGVzc1JvZ3VlTm91c1Zh", + "bHVlQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueNousValueReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncChessRogueNousValueScNotify), global::EggLink.DanhengServer.Proto.SyncChessRogueNousValueScNotify.Parser, new[]{ "Value" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncChessRogueNousValueScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncChessRogueNousValueScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncChessRogueNousValueScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncChessRogueNousValueScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncChessRogueNousValueScNotify(SyncChessRogueNousValueScNotify other) : this() { + value_ = other.value_ != null ? other.value_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncChessRogueNousValueScNotify Clone() { + return new SyncChessRogueNousValueScNotify(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 12; + private global::EggLink.DanhengServer.Proto.ChessRogueNousValue value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ChessRogueNousValue Value { + get { return value_; } + set { + value_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncChessRogueNousValueScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncChessRogueNousValueScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(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 (value_ != null) 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 (value_ != null) { + output.WriteRawTag(98); + output.WriteMessage(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 (value_ != null) { + output.WriteRawTag(98); + output.WriteMessage(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 (value_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncChessRogueNousValueScNotify other) { + if (other == null) { + return; + } + if (other.value_ != null) { + if (value_ == null) { + Value = new global::EggLink.DanhengServer.Proto.ChessRogueNousValue(); + } + Value.MergeFrom(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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 98: { + if (value_ == null) { + Value = new global::EggLink.DanhengServer.Proto.ChessRogueNousValue(); + } + input.ReadMessage(Value); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 98: { + if (value_ == null) { + Value = new global::EggLink.DanhengServer.Proto.ChessRogueNousValue(); + } + input.ReadMessage(Value); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncClientResVersionCsReq.cs b/Common/Proto/SyncClientResVersionCsReq.cs new file mode 100644 index 00000000..482837d8 --- /dev/null +++ b/Common/Proto/SyncClientResVersionCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncClientResVersionCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncClientResVersionCsReq.proto + public static partial class SyncClientResVersionCsReqReflection { + + #region Descriptor + /// File descriptor for SyncClientResVersionCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncClientResVersionCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9TeW5jQ2xpZW50UmVzVmVyc2lvbkNzUmVxLnByb3RvIjcKGVN5bmNDbGll", + "bnRSZXNWZXJzaW9uQ3NSZXESGgoSY2xpZW50X3Jlc192ZXJzaW9uGA8gASgN", + "Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncClientResVersionCsReq), global::EggLink.DanhengServer.Proto.SyncClientResVersionCsReq.Parser, new[]{ "ClientResVersion" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncClientResVersionCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncClientResVersionCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncClientResVersionCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncClientResVersionCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncClientResVersionCsReq(SyncClientResVersionCsReq other) : this() { + clientResVersion_ = other.clientResVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncClientResVersionCsReq Clone() { + return new SyncClientResVersionCsReq(this); + } + + /// Field number for the "client_res_version" field. + public const int ClientResVersionFieldNumber = 15; + private uint clientResVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClientResVersion { + get { return clientResVersion_; } + set { + clientResVersion_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncClientResVersionCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncClientResVersionCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClientResVersion != other.ClientResVersion) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ClientResVersion != 0) hash ^= ClientResVersion.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ClientResVersion != 0) { + output.WriteRawTag(120); + output.WriteUInt32(ClientResVersion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ClientResVersion != 0) { + output.WriteRawTag(120); + output.WriteUInt32(ClientResVersion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ClientResVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClientResVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncClientResVersionCsReq other) { + if (other == null) { + return; + } + if (other.ClientResVersion != 0) { + ClientResVersion = other.ClientResVersion; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 120: { + ClientResVersion = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 120: { + ClientResVersion = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncClientResVersionScRsp.cs b/Common/Proto/SyncClientResVersionScRsp.cs new file mode 100644 index 00000000..28f73a08 --- /dev/null +++ b/Common/Proto/SyncClientResVersionScRsp.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncClientResVersionScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncClientResVersionScRsp.proto + public static partial class SyncClientResVersionScRspReflection { + + #region Descriptor + /// File descriptor for SyncClientResVersionScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncClientResVersionScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch9TeW5jQ2xpZW50UmVzVmVyc2lvblNjUnNwLnByb3RvIkgKGVN5bmNDbGll", + "bnRSZXNWZXJzaW9uU2NSc3ASGgoSY2xpZW50X3Jlc192ZXJzaW9uGAUgASgN", + "Eg8KB3JldGNvZGUYDCABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q", + "cm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncClientResVersionScRsp), global::EggLink.DanhengServer.Proto.SyncClientResVersionScRsp.Parser, new[]{ "ClientResVersion", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncClientResVersionScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncClientResVersionScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncClientResVersionScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncClientResVersionScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncClientResVersionScRsp(SyncClientResVersionScRsp other) : this() { + clientResVersion_ = other.clientResVersion_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncClientResVersionScRsp Clone() { + return new SyncClientResVersionScRsp(this); + } + + /// Field number for the "client_res_version" field. + public const int ClientResVersionFieldNumber = 5; + private uint clientResVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClientResVersion { + get { return clientResVersion_; } + set { + clientResVersion_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 12; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncClientResVersionScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncClientResVersionScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClientResVersion != other.ClientResVersion) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ClientResVersion != 0) hash ^= ClientResVersion.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ClientResVersion != 0) { + output.WriteRawTag(40); + output.WriteUInt32(ClientResVersion); + } + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ClientResVersion != 0) { + output.WriteRawTag(40); + output.WriteUInt32(ClientResVersion); + } + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ClientResVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClientResVersion); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncClientResVersionScRsp other) { + if (other == null) { + return; + } + if (other.ClientResVersion != 0) { + ClientResVersion = other.ClientResVersion; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + ClientResVersion = input.ReadUInt32(); + break; + } + case 96: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + ClientResVersion = input.ReadUInt32(); + break; + } + case 96: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncDeleteFriendScNotify.cs b/Common/Proto/SyncDeleteFriendScNotify.cs new file mode 100644 index 00000000..8a22090c --- /dev/null +++ b/Common/Proto/SyncDeleteFriendScNotify.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncDeleteFriendScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncDeleteFriendScNotify.proto + public static partial class SyncDeleteFriendScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncDeleteFriendScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncDeleteFriendScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5TeW5jRGVsZXRlRnJpZW5kU2NOb3RpZnkucHJvdG8iJwoYU3luY0RlbGV0", + "ZUZyaWVuZFNjTm90aWZ5EgsKA3VpZBgPIAEoDUIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncDeleteFriendScNotify), global::EggLink.DanhengServer.Proto.SyncDeleteFriendScNotify.Parser, new[]{ "Uid" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncDeleteFriendScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncDeleteFriendScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncDeleteFriendScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncDeleteFriendScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncDeleteFriendScNotify(SyncDeleteFriendScNotify other) : this() { + uid_ = other.uid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncDeleteFriendScNotify Clone() { + return new SyncDeleteFriendScNotify(this); + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 15; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncDeleteFriendScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncDeleteFriendScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uid != other.Uid) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Uid != 0) hash ^= Uid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Uid != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Uid != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncDeleteFriendScNotify other) { + if (other == null) { + return; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 120: { + Uid = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 120: { + Uid = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncEntityBuffChangeListScNotify.cs b/Common/Proto/SyncEntityBuffChangeListScNotify.cs new file mode 100644 index 00000000..77cc9cc2 --- /dev/null +++ b/Common/Proto/SyncEntityBuffChangeListScNotify.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncEntityBuffChangeListScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncEntityBuffChangeListScNotify.proto + public static partial class SyncEntityBuffChangeListScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncEntityBuffChangeListScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncEntityBuffChangeListScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZTeW5jRW50aXR5QnVmZkNoYW5nZUxpc3RTY05vdGlmeS5wcm90bxoaRW50", + "aXR5QnVmZkNoYW5nZUluZm8ucHJvdG8iWAogU3luY0VudGl0eUJ1ZmZDaGFu", + "Z2VMaXN0U2NOb3RpZnkSNAoVZW50aXR5X2J1ZmZfaW5mb19saXN0GA0gAygL", + "MhUuRW50aXR5QnVmZkNoYW5nZUluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl", + "cnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.EntityBuffChangeInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncEntityBuffChangeListScNotify), global::EggLink.DanhengServer.Proto.SyncEntityBuffChangeListScNotify.Parser, new[]{ "EntityBuffInfoList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncEntityBuffChangeListScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncEntityBuffChangeListScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncEntityBuffChangeListScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncEntityBuffChangeListScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncEntityBuffChangeListScNotify(SyncEntityBuffChangeListScNotify other) : this() { + entityBuffInfoList_ = other.entityBuffInfoList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncEntityBuffChangeListScNotify Clone() { + return new SyncEntityBuffChangeListScNotify(this); + } + + /// Field number for the "entity_buff_info_list" field. + public const int EntityBuffInfoListFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_entityBuffInfoList_codec + = pb::FieldCodec.ForMessage(106, global::EggLink.DanhengServer.Proto.EntityBuffChangeInfo.Parser); + private readonly pbc::RepeatedField entityBuffInfoList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EntityBuffInfoList { + get { return entityBuffInfoList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncEntityBuffChangeListScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncEntityBuffChangeListScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!entityBuffInfoList_.Equals(other.entityBuffInfoList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= entityBuffInfoList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + entityBuffInfoList_.WriteTo(output, _repeated_entityBuffInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + entityBuffInfoList_.WriteTo(ref output, _repeated_entityBuffInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += entityBuffInfoList_.CalculateSize(_repeated_entityBuffInfoList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncEntityBuffChangeListScNotify other) { + if (other == null) { + return; + } + entityBuffInfoList_.Add(other.entityBuffInfoList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 106: { + entityBuffInfoList_.AddEntriesFrom(input, _repeated_entityBuffInfoList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 106: { + entityBuffInfoList_.AddEntriesFrom(ref input, _repeated_entityBuffInfoList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncHandleFriendScNotify.cs b/Common/Proto/SyncHandleFriendScNotify.cs new file mode 100644 index 00000000..7860a780 --- /dev/null +++ b/Common/Proto/SyncHandleFriendScNotify.cs @@ -0,0 +1,319 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncHandleFriendScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncHandleFriendScNotify.proto + public static partial class SyncHandleFriendScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncHandleFriendScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncHandleFriendScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5TeW5jSGFuZGxlRnJpZW5kU2NOb3RpZnkucHJvdG8aFEZyaWVuZExpc3RJ", + "bmZvLnByb3RvImsKGFN5bmNIYW5kbGVGcmllbmRTY05vdGlmeRILCgN1aWQY", + "DyABKA0SKwoSaGFuZGxlX2ZyaWVuZF9pbmZvGAIgASgLMg8uRnJpZW5kTGlz", + "dEluZm8SFQoNaGFuZGxlX3Jlc3VsdBgHIAEoCEIeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.FriendListInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncHandleFriendScNotify), global::EggLink.DanhengServer.Proto.SyncHandleFriendScNotify.Parser, new[]{ "Uid", "HandleFriendInfo", "HandleResult" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncHandleFriendScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncHandleFriendScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncHandleFriendScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncHandleFriendScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncHandleFriendScNotify(SyncHandleFriendScNotify other) : this() { + uid_ = other.uid_; + handleFriendInfo_ = other.handleFriendInfo_ != null ? other.handleFriendInfo_.Clone() : null; + handleResult_ = other.handleResult_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncHandleFriendScNotify Clone() { + return new SyncHandleFriendScNotify(this); + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 15; + private uint uid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + /// Field number for the "handle_friend_info" field. + public const int HandleFriendInfoFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.FriendListInfo handleFriendInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.FriendListInfo HandleFriendInfo { + get { return handleFriendInfo_; } + set { + handleFriendInfo_ = value; + } + } + + /// Field number for the "handle_result" field. + public const int HandleResultFieldNumber = 7; + private bool handleResult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HandleResult { + get { return handleResult_; } + set { + handleResult_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncHandleFriendScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncHandleFriendScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uid != other.Uid) return false; + if (!object.Equals(HandleFriendInfo, other.HandleFriendInfo)) return false; + if (HandleResult != other.HandleResult) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Uid != 0) hash ^= Uid.GetHashCode(); + if (handleFriendInfo_ != null) hash ^= HandleFriendInfo.GetHashCode(); + if (HandleResult != false) hash ^= HandleResult.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (handleFriendInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(HandleFriendInfo); + } + if (HandleResult != false) { + output.WriteRawTag(56); + output.WriteBool(HandleResult); + } + if (Uid != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (handleFriendInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(HandleFriendInfo); + } + if (HandleResult != false) { + output.WriteRawTag(56); + output.WriteBool(HandleResult); + } + if (Uid != 0) { + output.WriteRawTag(120); + output.WriteUInt32(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (handleFriendInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HandleFriendInfo); + } + if (HandleResult != 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(SyncHandleFriendScNotify other) { + if (other == null) { + return; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + if (other.handleFriendInfo_ != null) { + if (handleFriendInfo_ == null) { + HandleFriendInfo = new global::EggLink.DanhengServer.Proto.FriendListInfo(); + } + HandleFriendInfo.MergeFrom(other.HandleFriendInfo); + } + if (other.HandleResult != false) { + HandleResult = other.HandleResult; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + if (handleFriendInfo_ == null) { + HandleFriendInfo = new global::EggLink.DanhengServer.Proto.FriendListInfo(); + } + input.ReadMessage(HandleFriendInfo); + break; + } + case 56: { + HandleResult = input.ReadBool(); + break; + } + case 120: { + Uid = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + if (handleFriendInfo_ == null) { + HandleFriendInfo = new global::EggLink.DanhengServer.Proto.FriendListInfo(); + } + input.ReadMessage(HandleFriendInfo); + break; + } + case 56: { + HandleResult = input.ReadBool(); + break; + } + case 120: { + Uid = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncLineupNotify.cs b/Common/Proto/SyncLineupNotify.cs new file mode 100644 index 00000000..6b9a84e3 --- /dev/null +++ b/Common/Proto/SyncLineupNotify.cs @@ -0,0 +1,273 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncLineupNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncLineupNotify.proto + public static partial class SyncLineupNotifyReflection { + + #region Descriptor + /// File descriptor for SyncLineupNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncLineupNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZTeW5jTGluZXVwTm90aWZ5LnByb3RvGhBTeW5jUmVhc29uLnByb3RvGhBM", + "aW5ldXBJbmZvLnByb3RvIlEKEFN5bmNMaW5ldXBOb3RpZnkSIAoLcmVhc29u", + "X2xpc3QYCyADKA4yCy5TeW5jUmVhc29uEhsKBmxpbmV1cBgBIAEoCzILLkxp", + "bmV1cEluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SyncReasonReflection.Descriptor, global::EggLink.DanhengServer.Proto.LineupInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncLineupNotify), global::EggLink.DanhengServer.Proto.SyncLineupNotify.Parser, new[]{ "ReasonList", "Lineup" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncLineupNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncLineupNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncLineupNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncLineupNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncLineupNotify(SyncLineupNotify other) : this() { + reasonList_ = other.reasonList_.Clone(); + lineup_ = other.lineup_ != null ? other.lineup_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncLineupNotify Clone() { + return new SyncLineupNotify(this); + } + + /// Field number for the "reason_list" field. + public const int ReasonListFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_reasonList_codec + = pb::FieldCodec.ForEnum(90, x => (int) x, x => (global::EggLink.DanhengServer.Proto.SyncReason) x); + private readonly pbc::RepeatedField reasonList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ReasonList { + get { return reasonList_; } + } + + /// Field number for the "lineup" field. + public const int LineupFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.LineupInfo lineup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.LineupInfo Lineup { + get { return lineup_; } + set { + lineup_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncLineupNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncLineupNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!reasonList_.Equals(other.reasonList_)) return false; + if (!object.Equals(Lineup, other.Lineup)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= reasonList_.GetHashCode(); + if (lineup_ != null) hash ^= Lineup.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (lineup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Lineup); + } + reasonList_.WriteTo(output, _repeated_reasonList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (lineup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Lineup); + } + reasonList_.WriteTo(ref output, _repeated_reasonList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += reasonList_.CalculateSize(_repeated_reasonList_codec); + if (lineup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lineup); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncLineupNotify other) { + if (other == null) { + return; + } + reasonList_.Add(other.reasonList_); + if (other.lineup_ != null) { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + Lineup.MergeFrom(other.Lineup); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 90: + case 88: { + reasonList_.AddEntriesFrom(input, _repeated_reasonList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (lineup_ == null) { + Lineup = new global::EggLink.DanhengServer.Proto.LineupInfo(); + } + input.ReadMessage(Lineup); + break; + } + case 90: + case 88: { + reasonList_.AddEntriesFrom(ref input, _repeated_reasonList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncReason.cs b/Common/Proto/SyncReason.cs new file mode 100644 index 00000000..d8d4999d --- /dev/null +++ b/Common/Proto/SyncReason.cs @@ -0,0 +1,52 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncReason.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncReason.proto + public static partial class SyncReasonReflection { + + #region Descriptor + /// File descriptor for SyncReason.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncReasonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBTeW5jUmVhc29uLnByb3RvKpQBCgpTeW5jUmVhc29uEhQKEFNZTkNfUkVB", + "U09OX05PTkUQABIWChJTWU5DX1JFQVNPTl9NUF9BREQQARIfChtTWU5DX1JF", + "QVNPTl9NUF9BRERfUFJPUF9ISVQQAhIWChJTWU5DX1JFQVNPTl9IUF9BREQQ", + "AxIfChtTWU5DX1JFQVNPTl9IUF9BRERfUFJPUF9ISVQQBEIeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::EggLink.DanhengServer.Proto.SyncReason), }, null, null)); + } + #endregion + + } + #region Enums + public enum SyncReason { + [pbr::OriginalName("SYNC_REASON_NONE")] None = 0, + [pbr::OriginalName("SYNC_REASON_MP_ADD")] MpAdd = 1, + [pbr::OriginalName("SYNC_REASON_MP_ADD_PROP_HIT")] MpAddPropHit = 2, + [pbr::OriginalName("SYNC_REASON_HP_ADD")] HpAdd = 3, + [pbr::OriginalName("SYNC_REASON_HP_ADD_PROP_HIT")] HpAddPropHit = 4, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncRogueBuffSelectInfoScNotify.cs b/Common/Proto/SyncRogueBuffSelectInfoScNotify.cs new file mode 100644 index 00000000..a2771b1c --- /dev/null +++ b/Common/Proto/SyncRogueBuffSelectInfoScNotify.cs @@ -0,0 +1,245 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncRogueBuffSelectInfoScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncRogueBuffSelectInfoScNotify.proto + public static partial class SyncRogueBuffSelectInfoScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncRogueBuffSelectInfoScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncRogueBuffSelectInfoScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiVTeW5jUm9ndWVCdWZmU2VsZWN0SW5mb1NjTm90aWZ5LnByb3RvGhlSb2d1", + "ZUJ1ZmZTZWxlY3RJbmZvLnByb3RvIlEKH1N5bmNSb2d1ZUJ1ZmZTZWxlY3RJ", + "bmZvU2NOb3RpZnkSLgoQYnVmZl9zZWxlY3RfaW5mbxgFIAEoCzIULlJvZ3Vl", + "QnVmZlNlbGVjdEluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90", + "b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueBuffSelectInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncRogueBuffSelectInfoScNotify), global::EggLink.DanhengServer.Proto.SyncRogueBuffSelectInfoScNotify.Parser, new[]{ "BuffSelectInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncRogueBuffSelectInfoScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncRogueBuffSelectInfoScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncRogueBuffSelectInfoScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueBuffSelectInfoScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueBuffSelectInfoScNotify(SyncRogueBuffSelectInfoScNotify other) : this() { + buffSelectInfo_ = other.buffSelectInfo_ != null ? other.buffSelectInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueBuffSelectInfoScNotify Clone() { + return new SyncRogueBuffSelectInfoScNotify(this); + } + + /// Field number for the "buff_select_info" field. + public const int BuffSelectInfoFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo buffSelectInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo BuffSelectInfo { + get { return buffSelectInfo_; } + set { + buffSelectInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncRogueBuffSelectInfoScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncRogueBuffSelectInfoScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BuffSelectInfo, other.BuffSelectInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (buffSelectInfo_ != null) hash ^= BuffSelectInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (buffSelectInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(BuffSelectInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (buffSelectInfo_ != null) { + output.WriteRawTag(42); + output.WriteMessage(BuffSelectInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (buffSelectInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BuffSelectInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncRogueBuffSelectInfoScNotify other) { + if (other == null) { + return; + } + if (other.buffSelectInfo_ != null) { + if (buffSelectInfo_ == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo(); + } + BuffSelectInfo.MergeFrom(other.BuffSelectInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + if (buffSelectInfo_ == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo(); + } + input.ReadMessage(BuffSelectInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + if (buffSelectInfo_ == null) { + BuffSelectInfo = new global::EggLink.DanhengServer.Proto.RogueBuffSelectInfo(); + } + input.ReadMessage(BuffSelectInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncRogueCommonActionResultScNotify.cs b/Common/Proto/SyncRogueCommonActionResultScNotify.cs new file mode 100644 index 00000000..b485347c --- /dev/null +++ b/Common/Proto/SyncRogueCommonActionResultScNotify.cs @@ -0,0 +1,285 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncRogueCommonActionResultScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncRogueCommonActionResultScNotify.proto + public static partial class SyncRogueCommonActionResultScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncRogueCommonActionResultScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncRogueCommonActionResultScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CilTeW5jUm9ndWVDb21tb25BY3Rpb25SZXN1bHRTY05vdGlmeS5wcm90bxoX", + "Um9ndWVBY3Rpb25SZXN1bHQucHJvdG8iXgojU3luY1JvZ3VlQ29tbW9uQWN0", + "aW9uUmVzdWx0U2NOb3RpZnkSIgoGYWN0aW9uGAsgASgLMhIuUm9ndWVBY3Rp", + "b25SZXN1bHQSEwoLT0NQQk5CUEFNRU4YBSABKA1CHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueActionResultReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncRogueCommonActionResultScNotify), global::EggLink.DanhengServer.Proto.SyncRogueCommonActionResultScNotify.Parser, new[]{ "Action", "OCPBNBPAMEN" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncRogueCommonActionResultScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncRogueCommonActionResultScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncRogueCommonActionResultScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueCommonActionResultScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueCommonActionResultScNotify(SyncRogueCommonActionResultScNotify other) : this() { + action_ = other.action_ != null ? other.action_.Clone() : null; + oCPBNBPAMEN_ = other.oCPBNBPAMEN_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueCommonActionResultScNotify Clone() { + return new SyncRogueCommonActionResultScNotify(this); + } + + /// Field number for the "action" field. + public const int ActionFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.RogueActionResult action_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueActionResult Action { + get { return action_; } + set { + action_ = value; + } + } + + /// Field number for the "OCPBNBPAMEN" field. + public const int OCPBNBPAMENFieldNumber = 5; + private uint oCPBNBPAMEN_; + /// + ///PBCHNCIJKNA MDBPDPDDHBC = 12; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OCPBNBPAMEN { + get { return oCPBNBPAMEN_; } + set { + oCPBNBPAMEN_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncRogueCommonActionResultScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncRogueCommonActionResultScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Action, other.Action)) return false; + if (OCPBNBPAMEN != other.OCPBNBPAMEN) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (action_ != null) hash ^= Action.GetHashCode(); + if (OCPBNBPAMEN != 0) hash ^= OCPBNBPAMEN.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (OCPBNBPAMEN != 0) { + output.WriteRawTag(40); + output.WriteUInt32(OCPBNBPAMEN); + } + if (action_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Action); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (OCPBNBPAMEN != 0) { + output.WriteRawTag(40); + output.WriteUInt32(OCPBNBPAMEN); + } + if (action_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Action); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (action_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Action); + } + if (OCPBNBPAMEN != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OCPBNBPAMEN); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncRogueCommonActionResultScNotify other) { + if (other == null) { + return; + } + if (other.action_ != null) { + if (action_ == null) { + Action = new global::EggLink.DanhengServer.Proto.RogueActionResult(); + } + Action.MergeFrom(other.Action); + } + if (other.OCPBNBPAMEN != 0) { + OCPBNBPAMEN = other.OCPBNBPAMEN; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + OCPBNBPAMEN = input.ReadUInt32(); + break; + } + case 90: { + if (action_ == null) { + Action = new global::EggLink.DanhengServer.Proto.RogueActionResult(); + } + input.ReadMessage(Action); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + OCPBNBPAMEN = input.ReadUInt32(); + break; + } + case 90: { + if (action_ == null) { + Action = new global::EggLink.DanhengServer.Proto.RogueActionResult(); + } + input.ReadMessage(Action); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncRogueCommonPendingActionScNotify.cs b/Common/Proto/SyncRogueCommonPendingActionScNotify.cs new file mode 100644 index 00000000..cd322770 --- /dev/null +++ b/Common/Proto/SyncRogueCommonPendingActionScNotify.cs @@ -0,0 +1,286 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncRogueCommonPendingActionScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncRogueCommonPendingActionScNotify.proto + public static partial class SyncRogueCommonPendingActionScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncRogueCommonPendingActionScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncRogueCommonPendingActionScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CipTeW5jUm9ndWVDb21tb25QZW5kaW5nQWN0aW9uU2NOb3RpZnkucHJvdG8a", + "HlJvZ3VlQ29tbW9uUGVuZGluZ0FjdGlvbi5wcm90byKAAQokU3luY1JvZ3Vl", + "Q29tbW9uUGVuZGluZ0FjdGlvblNjTm90aWZ5Ej4KG3JvZ3VlX2NvbW1vbl9w", + "ZW5kaW5nX2FjdGlvbhgPIAEoCzIZLlJvZ3VlQ29tbW9uUGVuZGluZ0FjdGlv", + "bhIYChByb2d1ZV92ZXJzaW9uX2lkGAIgASgNQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueCommonPendingActionReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncRogueCommonPendingActionScNotify), global::EggLink.DanhengServer.Proto.SyncRogueCommonPendingActionScNotify.Parser, new[]{ "RogueCommonPendingAction", "RogueVersionId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncRogueCommonPendingActionScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncRogueCommonPendingActionScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncRogueCommonPendingActionScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueCommonPendingActionScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueCommonPendingActionScNotify(SyncRogueCommonPendingActionScNotify other) : this() { + rogueCommonPendingAction_ = other.rogueCommonPendingAction_ != null ? other.rogueCommonPendingAction_.Clone() : null; + rogueVersionId_ = other.rogueVersionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueCommonPendingActionScNotify Clone() { + return new SyncRogueCommonPendingActionScNotify(this); + } + + /// Field number for the "rogue_common_pending_action" field. + public const int RogueCommonPendingActionFieldNumber = 15; + private global::EggLink.DanhengServer.Proto.RogueCommonPendingAction rogueCommonPendingAction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueCommonPendingAction RogueCommonPendingAction { + get { return rogueCommonPendingAction_; } + set { + rogueCommonPendingAction_ = value; + } + } + + /// Field number for the "rogue_version_id" field. + public const int RogueVersionIdFieldNumber = 2; + private uint rogueVersionId_; + /// + /// JDBCNGPFDHF + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RogueVersionId { + get { return rogueVersionId_; } + set { + rogueVersionId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncRogueCommonPendingActionScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncRogueCommonPendingActionScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueCommonPendingAction, other.RogueCommonPendingAction)) return false; + if (RogueVersionId != other.RogueVersionId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueCommonPendingAction_ != null) hash ^= RogueCommonPendingAction.GetHashCode(); + if (RogueVersionId != 0) hash ^= RogueVersionId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RogueVersionId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(RogueVersionId); + } + if (rogueCommonPendingAction_ != null) { + output.WriteRawTag(122); + output.WriteMessage(RogueCommonPendingAction); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RogueVersionId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(RogueVersionId); + } + if (rogueCommonPendingAction_ != null) { + output.WriteRawTag(122); + output.WriteMessage(RogueCommonPendingAction); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueCommonPendingAction_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueCommonPendingAction); + } + if (RogueVersionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RogueVersionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncRogueCommonPendingActionScNotify other) { + if (other == null) { + return; + } + if (other.rogueCommonPendingAction_ != null) { + if (rogueCommonPendingAction_ == null) { + RogueCommonPendingAction = new global::EggLink.DanhengServer.Proto.RogueCommonPendingAction(); + } + RogueCommonPendingAction.MergeFrom(other.RogueCommonPendingAction); + } + if (other.RogueVersionId != 0) { + RogueVersionId = other.RogueVersionId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + RogueVersionId = input.ReadUInt32(); + break; + } + case 122: { + if (rogueCommonPendingAction_ == null) { + RogueCommonPendingAction = new global::EggLink.DanhengServer.Proto.RogueCommonPendingAction(); + } + input.ReadMessage(RogueCommonPendingAction); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + RogueVersionId = input.ReadUInt32(); + break; + } + case 122: { + if (rogueCommonPendingAction_ == null) { + RogueCommonPendingAction = new global::EggLink.DanhengServer.Proto.RogueCommonPendingAction(); + } + input.ReadMessage(RogueCommonPendingAction); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncRogueDialogueEventDataScNotify.cs b/Common/Proto/SyncRogueDialogueEventDataScNotify.cs new file mode 100644 index 00000000..6e616886 --- /dev/null +++ b/Common/Proto/SyncRogueDialogueEventDataScNotify.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncRogueDialogueEventDataScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncRogueDialogueEventDataScNotify.proto + public static partial class SyncRogueDialogueEventDataScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncRogueDialogueEventDataScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncRogueDialogueEventDataScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CihTeW5jUm9ndWVEaWFsb2d1ZUV2ZW50RGF0YVNjTm90aWZ5LnByb3RvGhhS", + "b2d1ZURpYWxvZ3VlRXZlbnQucHJvdG8iVwoiU3luY1JvZ3VlRGlhbG9ndWVF", + "dmVudERhdGFTY05vdGlmeRIxChRyb2d1ZV9kaWFsb2d1ZV9ldmVudBgBIAMo", + "CzITLlJvZ3VlRGlhbG9ndWVFdmVudEIeqgIbRWdnTGluay5EYW5oZW5nU2Vy", + "dmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueDialogueEventReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncRogueDialogueEventDataScNotify), global::EggLink.DanhengServer.Proto.SyncRogueDialogueEventDataScNotify.Parser, new[]{ "RogueDialogueEvent" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncRogueDialogueEventDataScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncRogueDialogueEventDataScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncRogueDialogueEventDataScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueDialogueEventDataScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueDialogueEventDataScNotify(SyncRogueDialogueEventDataScNotify other) : this() { + rogueDialogueEvent_ = other.rogueDialogueEvent_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueDialogueEventDataScNotify Clone() { + return new SyncRogueDialogueEventDataScNotify(this); + } + + /// Field number for the "rogue_dialogue_event" field. + public const int RogueDialogueEventFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_rogueDialogueEvent_codec + = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.RogueDialogueEvent.Parser); + private readonly pbc::RepeatedField rogueDialogueEvent_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RogueDialogueEvent { + get { return rogueDialogueEvent_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncRogueDialogueEventDataScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncRogueDialogueEventDataScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rogueDialogueEvent_.Equals(other.rogueDialogueEvent_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= rogueDialogueEvent_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + rogueDialogueEvent_.WriteTo(output, _repeated_rogueDialogueEvent_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + rogueDialogueEvent_.WriteTo(ref output, _repeated_rogueDialogueEvent_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += rogueDialogueEvent_.CalculateSize(_repeated_rogueDialogueEvent_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncRogueDialogueEventDataScNotify other) { + if (other == null) { + return; + } + rogueDialogueEvent_.Add(other.rogueDialogueEvent_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + rogueDialogueEvent_.AddEntriesFrom(input, _repeated_rogueDialogueEvent_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + rogueDialogueEvent_.AddEntriesFrom(ref input, _repeated_rogueDialogueEvent_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncRogueFinishScNotify.cs b/Common/Proto/SyncRogueFinishScNotify.cs new file mode 100644 index 00000000..ee464efb --- /dev/null +++ b/Common/Proto/SyncRogueFinishScNotify.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncRogueFinishScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncRogueFinishScNotify.proto + public static partial class SyncRogueFinishScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncRogueFinishScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncRogueFinishScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1TeW5jUm9ndWVGaW5pc2hTY05vdGlmeS5wcm90bxoVUm9ndWVGaW5pc2hJ", + "bmZvLnByb3RvIkAKF1N5bmNSb2d1ZUZpbmlzaFNjTm90aWZ5EiUKC2Zpbmlz", + "aF9pbmZvGAMgASgLMhAuUm9ndWVGaW5pc2hJbmZvQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueFinishInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncRogueFinishScNotify), global::EggLink.DanhengServer.Proto.SyncRogueFinishScNotify.Parser, new[]{ "FinishInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncRogueFinishScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncRogueFinishScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncRogueFinishScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueFinishScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueFinishScNotify(SyncRogueFinishScNotify other) : this() { + finishInfo_ = other.finishInfo_ != null ? other.finishInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueFinishScNotify Clone() { + return new SyncRogueFinishScNotify(this); + } + + /// Field number for the "finish_info" field. + public const int FinishInfoFieldNumber = 3; + private global::EggLink.DanhengServer.Proto.RogueFinishInfo finishInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueFinishInfo FinishInfo { + get { return finishInfo_; } + set { + finishInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncRogueFinishScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncRogueFinishScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(FinishInfo, other.FinishInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (finishInfo_ != null) hash ^= FinishInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (finishInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (finishInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (finishInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FinishInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncRogueFinishScNotify other) { + if (other == null) { + return; + } + if (other.finishInfo_ != null) { + if (finishInfo_ == null) { + FinishInfo = new global::EggLink.DanhengServer.Proto.RogueFinishInfo(); + } + FinishInfo.MergeFrom(other.FinishInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + if (finishInfo_ == null) { + FinishInfo = new global::EggLink.DanhengServer.Proto.RogueFinishInfo(); + } + input.ReadMessage(FinishInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + if (finishInfo_ == null) { + FinishInfo = new global::EggLink.DanhengServer.Proto.RogueFinishInfo(); + } + input.ReadMessage(FinishInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncRogueMapRoomScNotify.cs b/Common/Proto/SyncRogueMapRoomScNotify.cs new file mode 100644 index 00000000..a6d462be --- /dev/null +++ b/Common/Proto/SyncRogueMapRoomScNotify.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncRogueMapRoomScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncRogueMapRoomScNotify.proto + public static partial class SyncRogueMapRoomScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncRogueMapRoomScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncRogueMapRoomScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5TeW5jUm9ndWVNYXBSb29tU2NOb3RpZnkucHJvdG8aD1JvZ3VlUm9vbS5w", + "cm90byJIChhTeW5jUm9ndWVNYXBSb29tU2NOb3RpZnkSHAoIY3VyX3Jvb20Y", + "ByABKAsyCi5Sb2d1ZVJvb20SDgoGbWFwX2lkGA8gASgNQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueRoomReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncRogueMapRoomScNotify), global::EggLink.DanhengServer.Proto.SyncRogueMapRoomScNotify.Parser, new[]{ "CurRoom", "MapId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncRogueMapRoomScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncRogueMapRoomScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncRogueMapRoomScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueMapRoomScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueMapRoomScNotify(SyncRogueMapRoomScNotify other) : this() { + curRoom_ = other.curRoom_ != null ? other.curRoom_.Clone() : null; + mapId_ = other.mapId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueMapRoomScNotify Clone() { + return new SyncRogueMapRoomScNotify(this); + } + + /// Field number for the "cur_room" field. + public const int CurRoomFieldNumber = 7; + private global::EggLink.DanhengServer.Proto.RogueRoom curRoom_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueRoom CurRoom { + get { return curRoom_; } + set { + curRoom_ = value; + } + } + + /// Field number for the "map_id" field. + public const int MapIdFieldNumber = 15; + private uint mapId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MapId { + get { return mapId_; } + set { + mapId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncRogueMapRoomScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncRogueMapRoomScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CurRoom, other.CurRoom)) return false; + if (MapId != other.MapId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (curRoom_ != null) hash ^= CurRoom.GetHashCode(); + if (MapId != 0) hash ^= MapId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (curRoom_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CurRoom); + } + if (MapId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(MapId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (curRoom_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CurRoom); + } + if (MapId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(MapId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (curRoom_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurRoom); + } + if (MapId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MapId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncRogueMapRoomScNotify other) { + if (other == null) { + return; + } + if (other.curRoom_ != null) { + if (curRoom_ == null) { + CurRoom = new global::EggLink.DanhengServer.Proto.RogueRoom(); + } + CurRoom.MergeFrom(other.CurRoom); + } + if (other.MapId != 0) { + MapId = other.MapId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + if (curRoom_ == null) { + CurRoom = new global::EggLink.DanhengServer.Proto.RogueRoom(); + } + input.ReadMessage(CurRoom); + break; + } + case 120: { + MapId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + if (curRoom_ == null) { + CurRoom = new global::EggLink.DanhengServer.Proto.RogueRoom(); + } + input.ReadMessage(CurRoom); + break; + } + case 120: { + MapId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncRogueMiracleSelectInfoScNotify.cs b/Common/Proto/SyncRogueMiracleSelectInfoScNotify.cs new file mode 100644 index 00000000..cb354111 --- /dev/null +++ b/Common/Proto/SyncRogueMiracleSelectInfoScNotify.cs @@ -0,0 +1,245 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncRogueMiracleSelectInfoScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncRogueMiracleSelectInfoScNotify.proto + public static partial class SyncRogueMiracleSelectInfoScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncRogueMiracleSelectInfoScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncRogueMiracleSelectInfoScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CihTeW5jUm9ndWVNaXJhY2xlU2VsZWN0SW5mb1NjTm90aWZ5LnByb3RvGhxS", + "b2d1ZU1pcmFjbGVTZWxlY3RJbmZvLnByb3RvIloKIlN5bmNSb2d1ZU1pcmFj", + "bGVTZWxlY3RJbmZvU2NOb3RpZnkSNAoTbWlyYWNsZV9zZWxlY3RfaW5mbxgH", + "IAEoCzIXLlJvZ3VlTWlyYWNsZVNlbGVjdEluZm9CHqoCG0VnZ0xpbmsuRGFu", + "aGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncRogueMiracleSelectInfoScNotify), global::EggLink.DanhengServer.Proto.SyncRogueMiracleSelectInfoScNotify.Parser, new[]{ "MiracleSelectInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncRogueMiracleSelectInfoScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncRogueMiracleSelectInfoScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncRogueMiracleSelectInfoScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueMiracleSelectInfoScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueMiracleSelectInfoScNotify(SyncRogueMiracleSelectInfoScNotify other) : this() { + miracleSelectInfo_ = other.miracleSelectInfo_ != null ? other.miracleSelectInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueMiracleSelectInfoScNotify Clone() { + return new SyncRogueMiracleSelectInfoScNotify(this); + } + + /// Field number for the "miracle_select_info" field. + public const int MiracleSelectInfoFieldNumber = 7; + private global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo miracleSelectInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo MiracleSelectInfo { + get { return miracleSelectInfo_; } + set { + miracleSelectInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncRogueMiracleSelectInfoScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncRogueMiracleSelectInfoScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MiracleSelectInfo, other.MiracleSelectInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (miracleSelectInfo_ != null) hash ^= MiracleSelectInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (miracleSelectInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(MiracleSelectInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (miracleSelectInfo_ != null) { + output.WriteRawTag(58); + output.WriteMessage(MiracleSelectInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (miracleSelectInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MiracleSelectInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncRogueMiracleSelectInfoScNotify other) { + if (other == null) { + return; + } + if (other.miracleSelectInfo_ != null) { + if (miracleSelectInfo_ == null) { + MiracleSelectInfo = new global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo(); + } + MiracleSelectInfo.MergeFrom(other.MiracleSelectInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + if (miracleSelectInfo_ == null) { + MiracleSelectInfo = new global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo(); + } + input.ReadMessage(MiracleSelectInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + if (miracleSelectInfo_ == null) { + MiracleSelectInfo = new global::EggLink.DanhengServer.Proto.RogueMiracleSelectInfo(); + } + input.ReadMessage(MiracleSelectInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncRogueStatusScNotify.cs b/Common/Proto/SyncRogueStatusScNotify.cs new file mode 100644 index 00000000..86d24210 --- /dev/null +++ b/Common/Proto/SyncRogueStatusScNotify.cs @@ -0,0 +1,235 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncRogueStatusScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncRogueStatusScNotify.proto + public static partial class SyncRogueStatusScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncRogueStatusScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncRogueStatusScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1TeW5jUm9ndWVTdGF0dXNTY05vdGlmeS5wcm90bxoRUm9ndWVTdGF0dXMu", + "cHJvdG8iPQoXU3luY1JvZ3VlU3RhdHVzU2NOb3RpZnkSIgoMcm9ndWVfc3Rh", + "dHVzGAsgASgOMgwuUm9ndWVTdGF0dXNCHqoCG0VnZ0xpbmsuRGFuaGVuZ1Nl", + "cnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueStatusReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncRogueStatusScNotify), global::EggLink.DanhengServer.Proto.SyncRogueStatusScNotify.Parser, new[]{ "RogueStatus" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncRogueStatusScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncRogueStatusScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncRogueStatusScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueStatusScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueStatusScNotify(SyncRogueStatusScNotify other) : this() { + rogueStatus_ = other.rogueStatus_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueStatusScNotify Clone() { + return new SyncRogueStatusScNotify(this); + } + + /// Field number for the "rogue_status" field. + public const int RogueStatusFieldNumber = 11; + private global::EggLink.DanhengServer.Proto.RogueStatus rogueStatus_ = global::EggLink.DanhengServer.Proto.RogueStatus.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueStatus RogueStatus { + get { return rogueStatus_; } + set { + rogueStatus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncRogueStatusScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncRogueStatusScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RogueStatus != other.RogueStatus) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RogueStatus != global::EggLink.DanhengServer.Proto.RogueStatus.None) hash ^= RogueStatus.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RogueStatus != global::EggLink.DanhengServer.Proto.RogueStatus.None) { + output.WriteRawTag(88); + output.WriteEnum((int) RogueStatus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RogueStatus != global::EggLink.DanhengServer.Proto.RogueStatus.None) { + output.WriteRawTag(88); + output.WriteEnum((int) RogueStatus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RogueStatus != global::EggLink.DanhengServer.Proto.RogueStatus.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RogueStatus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncRogueStatusScNotify other) { + if (other == null) { + return; + } + if (other.RogueStatus != global::EggLink.DanhengServer.Proto.RogueStatus.None) { + RogueStatus = other.RogueStatus; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 88: { + RogueStatus = (global::EggLink.DanhengServer.Proto.RogueStatus) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 88: { + RogueStatus = (global::EggLink.DanhengServer.Proto.RogueStatus) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/SyncRogueVirtualItemInfoScNotify.cs b/Common/Proto/SyncRogueVirtualItemInfoScNotify.cs new file mode 100644 index 00000000..02bbc3b4 --- /dev/null +++ b/Common/Proto/SyncRogueVirtualItemInfoScNotify.cs @@ -0,0 +1,245 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SyncRogueVirtualItemInfoScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from SyncRogueVirtualItemInfoScNotify.proto + public static partial class SyncRogueVirtualItemInfoScNotifyReflection { + + #region Descriptor + /// File descriptor for SyncRogueVirtualItemInfoScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SyncRogueVirtualItemInfoScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZTeW5jUm9ndWVWaXJ0dWFsSXRlbUluZm9TY05vdGlmeS5wcm90bxoaUm9n", + "dWVWaXJ0dWFsSXRlbUluZm8ucHJvdG8iWgogU3luY1JvZ3VlVmlydHVhbEl0", + "ZW1JbmZvU2NOb3RpZnkSNgoXcm9ndWVfdmlydHVhbF9pdGVtX2luZm8YBCAB", + "KAsyFS5Sb2d1ZVZpcnR1YWxJdGVtSW5mb0IeqgIbRWdnTGluay5EYW5oZW5n", + "U2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueVirtualItemInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SyncRogueVirtualItemInfoScNotify), global::EggLink.DanhengServer.Proto.SyncRogueVirtualItemInfoScNotify.Parser, new[]{ "RogueVirtualItemInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SyncRogueVirtualItemInfoScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncRogueVirtualItemInfoScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.SyncRogueVirtualItemInfoScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueVirtualItemInfoScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueVirtualItemInfoScNotify(SyncRogueVirtualItemInfoScNotify other) : this() { + rogueVirtualItemInfo_ = other.rogueVirtualItemInfo_ != null ? other.rogueVirtualItemInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SyncRogueVirtualItemInfoScNotify Clone() { + return new SyncRogueVirtualItemInfoScNotify(this); + } + + /// Field number for the "rogue_virtual_item_info" field. + public const int RogueVirtualItemInfoFieldNumber = 4; + private global::EggLink.DanhengServer.Proto.RogueVirtualItemInfo rogueVirtualItemInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RogueVirtualItemInfo RogueVirtualItemInfo { + get { return rogueVirtualItemInfo_; } + set { + rogueVirtualItemInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SyncRogueVirtualItemInfoScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SyncRogueVirtualItemInfoScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RogueVirtualItemInfo, other.RogueVirtualItemInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rogueVirtualItemInfo_ != null) hash ^= RogueVirtualItemInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rogueVirtualItemInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RogueVirtualItemInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rogueVirtualItemInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RogueVirtualItemInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rogueVirtualItemInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueVirtualItemInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SyncRogueVirtualItemInfoScNotify other) { + if (other == null) { + return; + } + if (other.rogueVirtualItemInfo_ != null) { + if (rogueVirtualItemInfo_ == null) { + RogueVirtualItemInfo = new global::EggLink.DanhengServer.Proto.RogueVirtualItemInfo(); + } + RogueVirtualItemInfo.MergeFrom(other.RogueVirtualItemInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 34: { + if (rogueVirtualItemInfo_ == null) { + RogueVirtualItemInfo = new global::EggLink.DanhengServer.Proto.RogueVirtualItemInfo(); + } + input.ReadMessage(RogueVirtualItemInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + if (rogueVirtualItemInfo_ == null) { + RogueVirtualItemInfo = new global::EggLink.DanhengServer.Proto.RogueVirtualItemInfo(); + } + input.ReadMessage(RogueVirtualItemInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/TakeChallengeRewardCsReq.cs b/Common/Proto/TakeChallengeRewardCsReq.cs new file mode 100644 index 00000000..495f5802 --- /dev/null +++ b/Common/Proto/TakeChallengeRewardCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TakeChallengeRewardCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from TakeChallengeRewardCsReq.proto + public static partial class TakeChallengeRewardCsReqReflection { + + #region Descriptor + /// File descriptor for TakeChallengeRewardCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TakeChallengeRewardCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5UYWtlQ2hhbGxlbmdlUmV3YXJkQ3NSZXEucHJvdG8iLAoYVGFrZUNoYWxs", + "ZW5nZVJld2FyZENzUmVxEhAKCGdyb3VwX2lkGAEgASgNQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TakeChallengeRewardCsReq), global::EggLink.DanhengServer.Proto.TakeChallengeRewardCsReq.Parser, new[]{ "GroupId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TakeChallengeRewardCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TakeChallengeRewardCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.TakeChallengeRewardCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeChallengeRewardCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeChallengeRewardCsReq(TakeChallengeRewardCsReq other) : this() { + groupId_ = other.groupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeChallengeRewardCsReq Clone() { + return new TakeChallengeRewardCsReq(this); + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 1; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TakeChallengeRewardCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TakeChallengeRewardCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupId != other.GroupId) return false; + 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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.WriteUInt32(GroupId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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.WriteUInt32(GroupId); + } + if (_unknownFields != 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.ComputeUInt32Size(GroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TakeChallengeRewardCsReq other) { + if (other == null) { + return; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + GroupId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + GroupId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/TakeChallengeRewardScRsp.cs b/Common/Proto/TakeChallengeRewardScRsp.cs new file mode 100644 index 00000000..6b606d4e --- /dev/null +++ b/Common/Proto/TakeChallengeRewardScRsp.cs @@ -0,0 +1,299 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TakeChallengeRewardScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from TakeChallengeRewardScRsp.proto + public static partial class TakeChallengeRewardScRspReflection { + + #region Descriptor + /// File descriptor for TakeChallengeRewardScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TakeChallengeRewardScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5UYWtlQ2hhbGxlbmdlUmV3YXJkU2NSc3AucHJvdG8aHlRha2VuQ2hhbGxl", + "bmdlUmV3YXJkSW5mby5wcm90byJzChhUYWtlQ2hhbGxlbmdlUmV3YXJkU2NS", + "c3ASNAoRdGFrZW5fcmV3YXJkX2xpc3QYCiADKAsyGS5UYWtlbkNoYWxsZW5n", + "ZVJld2FyZEluZm8SEAoIZ3JvdXBfaWQYBiABKA0SDwoHcmV0Y29kZRgOIAEo", + "DUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.TakenChallengeRewardInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TakeChallengeRewardScRsp), global::EggLink.DanhengServer.Proto.TakeChallengeRewardScRsp.Parser, new[]{ "TakenRewardList", "GroupId", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TakeChallengeRewardScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TakeChallengeRewardScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.TakeChallengeRewardScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeChallengeRewardScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeChallengeRewardScRsp(TakeChallengeRewardScRsp other) : this() { + takenRewardList_ = other.takenRewardList_.Clone(); + groupId_ = other.groupId_; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeChallengeRewardScRsp Clone() { + return new TakeChallengeRewardScRsp(this); + } + + /// Field number for the "taken_reward_list" field. + public const int TakenRewardListFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_takenRewardList_codec + = pb::FieldCodec.ForMessage(82, global::EggLink.DanhengServer.Proto.TakenChallengeRewardInfo.Parser); + private readonly pbc::RepeatedField takenRewardList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TakenRewardList { + get { return takenRewardList_; } + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 6; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 14; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TakeChallengeRewardScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TakeChallengeRewardScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!takenRewardList_.Equals(other.takenRewardList_)) return false; + if (GroupId != other.GroupId) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= takenRewardList_.GetHashCode(); + if (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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(48); + output.WriteUInt32(GroupId); + } + takenRewardList_.WriteTo(output, _repeated_takenRewardList_codec); + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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(48); + output.WriteUInt32(GroupId); + } + takenRewardList_.WriteTo(ref output, _repeated_takenRewardList_codec); + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += takenRewardList_.CalculateSize(_repeated_takenRewardList_codec); + if (GroupId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GroupId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TakeChallengeRewardScRsp other) { + if (other == null) { + return; + } + takenRewardList_.Add(other.takenRewardList_); + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 48: { + GroupId = input.ReadUInt32(); + break; + } + case 82: { + takenRewardList_.AddEntriesFrom(input, _repeated_takenRewardList_codec); + break; + } + case 112: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 48: { + GroupId = input.ReadUInt32(); + break; + } + case 82: { + takenRewardList_.AddEntriesFrom(ref input, _repeated_takenRewardList_codec); + break; + } + case 112: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/TakeMailAttachmentCsReq.cs b/Common/Proto/TakeMailAttachmentCsReq.cs new file mode 100644 index 00000000..bfde2317 --- /dev/null +++ b/Common/Proto/TakeMailAttachmentCsReq.cs @@ -0,0 +1,263 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TakeMailAttachmentCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from TakeMailAttachmentCsReq.proto + public static partial class TakeMailAttachmentCsReqReflection { + + #region Descriptor + /// File descriptor for TakeMailAttachmentCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TakeMailAttachmentCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1UYWtlTWFpbEF0dGFjaG1lbnRDc1JlcS5wcm90byJLChdUYWtlTWFpbEF0", + "dGFjaG1lbnRDc1JlcRIUCgxtYWlsX2lkX2xpc3QYDCADKA0SGgoSb3B0aW9u", + "YWxfcmV3YXJkX2lkGAkgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu", + "UHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TakeMailAttachmentCsReq), global::EggLink.DanhengServer.Proto.TakeMailAttachmentCsReq.Parser, new[]{ "MailIdList", "OptionalRewardId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TakeMailAttachmentCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TakeMailAttachmentCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.TakeMailAttachmentCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeMailAttachmentCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeMailAttachmentCsReq(TakeMailAttachmentCsReq other) : this() { + mailIdList_ = other.mailIdList_.Clone(); + optionalRewardId_ = other.optionalRewardId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeMailAttachmentCsReq Clone() { + return new TakeMailAttachmentCsReq(this); + } + + /// Field number for the "mail_id_list" field. + public const int MailIdListFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_mailIdList_codec + = pb::FieldCodec.ForUInt32(98); + private readonly pbc::RepeatedField mailIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MailIdList { + get { return mailIdList_; } + } + + /// Field number for the "optional_reward_id" field. + public const int OptionalRewardIdFieldNumber = 9; + private uint optionalRewardId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OptionalRewardId { + get { return optionalRewardId_; } + set { + optionalRewardId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TakeMailAttachmentCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TakeMailAttachmentCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!mailIdList_.Equals(other.mailIdList_)) return false; + if (OptionalRewardId != other.OptionalRewardId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= mailIdList_.GetHashCode(); + if (OptionalRewardId != 0) hash ^= OptionalRewardId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (OptionalRewardId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(OptionalRewardId); + } + mailIdList_.WriteTo(output, _repeated_mailIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (OptionalRewardId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(OptionalRewardId); + } + mailIdList_.WriteTo(ref output, _repeated_mailIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += mailIdList_.CalculateSize(_repeated_mailIdList_codec); + if (OptionalRewardId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalRewardId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TakeMailAttachmentCsReq other) { + if (other == null) { + return; + } + mailIdList_.Add(other.mailIdList_); + if (other.OptionalRewardId != 0) { + OptionalRewardId = other.OptionalRewardId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 72: { + OptionalRewardId = input.ReadUInt32(); + break; + } + case 98: + case 96: { + mailIdList_.AddEntriesFrom(input, _repeated_mailIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 72: { + OptionalRewardId = input.ReadUInt32(); + break; + } + case 98: + case 96: { + mailIdList_.AddEntriesFrom(ref input, _repeated_mailIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/TakeMailAttachmentScRsp.cs b/Common/Proto/TakeMailAttachmentScRsp.cs new file mode 100644 index 00000000..a0db2195 --- /dev/null +++ b/Common/Proto/TakeMailAttachmentScRsp.cs @@ -0,0 +1,310 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TakeMailAttachmentScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from TakeMailAttachmentScRsp.proto + public static partial class TakeMailAttachmentScRspReflection { + + #region Descriptor + /// File descriptor for TakeMailAttachmentScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TakeMailAttachmentScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch1UYWtlTWFpbEF0dGFjaG1lbnRTY1JzcC5wcm90bxoOSXRlbUxpc3QucHJv", + "dG8iZAoXVGFrZU1haWxBdHRhY2htZW50U2NSc3ASGQoRc3VjY19tYWlsX2lk", + "X2xpc3QYDSADKA0SHQoKYXR0YWNobWVudBgFIAEoCzIJLkl0ZW1MaXN0Eg8K", + "B3JldGNvZGUYCSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90", + "b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TakeMailAttachmentScRsp), global::EggLink.DanhengServer.Proto.TakeMailAttachmentScRsp.Parser, new[]{ "SuccMailIdList", "Attachment", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TakeMailAttachmentScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TakeMailAttachmentScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.TakeMailAttachmentScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeMailAttachmentScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeMailAttachmentScRsp(TakeMailAttachmentScRsp other) : this() { + succMailIdList_ = other.succMailIdList_.Clone(); + attachment_ = other.attachment_ != null ? other.attachment_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeMailAttachmentScRsp Clone() { + return new TakeMailAttachmentScRsp(this); + } + + /// Field number for the "succ_mail_id_list" field. + public const int SuccMailIdListFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_succMailIdList_codec + = pb::FieldCodec.ForUInt32(106); + private readonly pbc::RepeatedField succMailIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SuccMailIdList { + get { return succMailIdList_; } + } + + /// Field number for the "attachment" field. + public const int AttachmentFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.ItemList attachment_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList Attachment { + get { return attachment_; } + set { + attachment_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 9; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TakeMailAttachmentScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TakeMailAttachmentScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!succMailIdList_.Equals(other.succMailIdList_)) return false; + if (!object.Equals(Attachment, other.Attachment)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= succMailIdList_.GetHashCode(); + if (attachment_ != null) hash ^= Attachment.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (attachment_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Attachment); + } + if (Retcode != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Retcode); + } + succMailIdList_.WriteTo(output, _repeated_succMailIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (attachment_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Attachment); + } + if (Retcode != 0) { + output.WriteRawTag(72); + output.WriteUInt32(Retcode); + } + succMailIdList_.WriteTo(ref output, _repeated_succMailIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += succMailIdList_.CalculateSize(_repeated_succMailIdList_codec); + if (attachment_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Attachment); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TakeMailAttachmentScRsp other) { + if (other == null) { + return; + } + succMailIdList_.Add(other.succMailIdList_); + if (other.attachment_ != null) { + if (attachment_ == null) { + Attachment = new global::EggLink.DanhengServer.Proto.ItemList(); + } + Attachment.MergeFrom(other.Attachment); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + if (attachment_ == null) { + Attachment = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Attachment); + break; + } + case 72: { + Retcode = input.ReadUInt32(); + break; + } + case 106: + case 104: { + succMailIdList_.AddEntriesFrom(input, _repeated_succMailIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + if (attachment_ == null) { + Attachment = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Attachment); + break; + } + case 72: { + Retcode = input.ReadUInt32(); + break; + } + case 106: + case 104: { + succMailIdList_.AddEntriesFrom(ref input, _repeated_succMailIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/TakeOffEquipmentCsReq.cs b/Common/Proto/TakeOffEquipmentCsReq.cs new file mode 100644 index 00000000..bd144a77 --- /dev/null +++ b/Common/Proto/TakeOffEquipmentCsReq.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TakeOffEquipmentCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from TakeOffEquipmentCsReq.proto + public static partial class TakeOffEquipmentCsReqReflection { + + #region Descriptor + /// File descriptor for TakeOffEquipmentCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TakeOffEquipmentCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtUYWtlT2ZmRXF1aXBtZW50Q3NSZXEucHJvdG8iLwoVVGFrZU9mZkVxdWlw", + "bWVudENzUmVxEhYKDmJhc2VfYXZhdGFyX2lkGAcgASgNQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TakeOffEquipmentCsReq), global::EggLink.DanhengServer.Proto.TakeOffEquipmentCsReq.Parser, new[]{ "BaseAvatarId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TakeOffEquipmentCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TakeOffEquipmentCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.TakeOffEquipmentCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeOffEquipmentCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeOffEquipmentCsReq(TakeOffEquipmentCsReq other) : this() { + baseAvatarId_ = other.baseAvatarId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeOffEquipmentCsReq Clone() { + return new TakeOffEquipmentCsReq(this); + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 7; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TakeOffEquipmentCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TakeOffEquipmentCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BaseAvatarId != other.BaseAvatarId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BaseAvatarId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BaseAvatarId != 0) { + output.WriteRawTag(56); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TakeOffEquipmentCsReq other) { + if (other == null) { + return; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 56: { + BaseAvatarId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 56: { + BaseAvatarId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/TakeOffRelicCsReq.cs b/Common/Proto/TakeOffRelicCsReq.cs new file mode 100644 index 00000000..3eb0275b --- /dev/null +++ b/Common/Proto/TakeOffRelicCsReq.cs @@ -0,0 +1,262 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TakeOffRelicCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from TakeOffRelicCsReq.proto + public static partial class TakeOffRelicCsReqReflection { + + #region Descriptor + /// File descriptor for TakeOffRelicCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TakeOffRelicCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdUYWtlT2ZmUmVsaWNDc1JlcS5wcm90byI+ChFUYWtlT2ZmUmVsaWNDc1Jl", + "cRIWCg5iYXNlX2F2YXRhcl9pZBgIIAEoDRIRCglzbG90X2xpc3QYBSADKA1C", + "HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TakeOffRelicCsReq), global::EggLink.DanhengServer.Proto.TakeOffRelicCsReq.Parser, new[]{ "BaseAvatarId", "SlotList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TakeOffRelicCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TakeOffRelicCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.TakeOffRelicCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeOffRelicCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeOffRelicCsReq(TakeOffRelicCsReq other) : this() { + baseAvatarId_ = other.baseAvatarId_; + slotList_ = other.slotList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakeOffRelicCsReq Clone() { + return new TakeOffRelicCsReq(this); + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 8; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + /// Field number for the "slot_list" field. + public const int SlotListFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_slotList_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField slotList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SlotList { + get { return slotList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TakeOffRelicCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TakeOffRelicCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BaseAvatarId != other.BaseAvatarId) return false; + if(!slotList_.Equals(other.slotList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + hash ^= slotList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + slotList_.WriteTo(output, _repeated_slotList_codec); + if (BaseAvatarId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + slotList_.WriteTo(ref output, _repeated_slotList_codec); + if (BaseAvatarId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(BaseAvatarId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + size += slotList_.CalculateSize(_repeated_slotList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TakeOffRelicCsReq other) { + if (other == null) { + return; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + slotList_.Add(other.slotList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: + case 40: { + slotList_.AddEntriesFrom(input, _repeated_slotList_codec); + break; + } + case 64: { + BaseAvatarId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: + case 40: { + slotList_.AddEntriesFrom(ref input, _repeated_slotList_codec); + break; + } + case 64: { + BaseAvatarId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/TakePromotionRewardCsReq.cs b/Common/Proto/TakePromotionRewardCsReq.cs new file mode 100644 index 00000000..be5cfd74 --- /dev/null +++ b/Common/Proto/TakePromotionRewardCsReq.cs @@ -0,0 +1,272 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TakePromotionRewardCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from TakePromotionRewardCsReq.proto + public static partial class TakePromotionRewardCsReqReflection { + + #region Descriptor + /// File descriptor for TakePromotionRewardCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TakePromotionRewardCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5UYWtlUHJvbW90aW9uUmV3YXJkQ3NSZXEucHJvdG8iRQoYVGFrZVByb21v", + "dGlvblJld2FyZENzUmVxEhYKDmJhc2VfYXZhdGFyX2lkGAUgASgNEhEKCXBy", + "b21vdGlvbhgKIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3Rv", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TakePromotionRewardCsReq), global::EggLink.DanhengServer.Proto.TakePromotionRewardCsReq.Parser, new[]{ "BaseAvatarId", "Promotion" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TakePromotionRewardCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TakePromotionRewardCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.TakePromotionRewardCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakePromotionRewardCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakePromotionRewardCsReq(TakePromotionRewardCsReq other) : this() { + baseAvatarId_ = other.baseAvatarId_; + promotion_ = other.promotion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakePromotionRewardCsReq Clone() { + return new TakePromotionRewardCsReq(this); + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 5; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + /// Field number for the "promotion" field. + public const int PromotionFieldNumber = 10; + private uint promotion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Promotion { + get { return promotion_; } + set { + promotion_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TakePromotionRewardCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TakePromotionRewardCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BaseAvatarId != other.BaseAvatarId) return false; + if (Promotion != other.Promotion) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (Promotion != 0) hash ^= Promotion.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BaseAvatarId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BaseAvatarId); + } + if (Promotion != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Promotion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BaseAvatarId != 0) { + output.WriteRawTag(40); + output.WriteUInt32(BaseAvatarId); + } + if (Promotion != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Promotion); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (Promotion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Promotion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TakePromotionRewardCsReq other) { + if (other == null) { + return; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + if (other.Promotion != 0) { + Promotion = other.Promotion; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 80: { + Promotion = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 80: { + Promotion = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/TakePromotionRewardScRsp.cs b/Common/Proto/TakePromotionRewardScRsp.cs new file mode 100644 index 00000000..9c9c92cf --- /dev/null +++ b/Common/Proto/TakePromotionRewardScRsp.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TakePromotionRewardScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from TakePromotionRewardScRsp.proto + public static partial class TakePromotionRewardScRspReflection { + + #region Descriptor + /// File descriptor for TakePromotionRewardScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TakePromotionRewardScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5UYWtlUHJvbW90aW9uUmV3YXJkU2NSc3AucHJvdG8aDkl0ZW1MaXN0LnBy", + "b3RvIksKGFRha2VQcm9tb3Rpb25SZXdhcmRTY1JzcBIeCgtyZXdhcmRfbGlz", + "dBgKIAEoCzIJLkl0ZW1MaXN0Eg8KB3JldGNvZGUYDCABKA1CHqoCG0VnZ0xp", + "bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TakePromotionRewardScRsp), global::EggLink.DanhengServer.Proto.TakePromotionRewardScRsp.Parser, new[]{ "RewardList", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TakePromotionRewardScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TakePromotionRewardScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.TakePromotionRewardScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakePromotionRewardScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakePromotionRewardScRsp(TakePromotionRewardScRsp other) : this() { + rewardList_ = other.rewardList_ != null ? other.rewardList_.Clone() : null; + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakePromotionRewardScRsp Clone() { + return new TakePromotionRewardScRsp(this); + } + + /// Field number for the "reward_list" field. + public const int RewardListFieldNumber = 10; + private global::EggLink.DanhengServer.Proto.ItemList rewardList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList RewardList { + get { return rewardList_; } + set { + rewardList_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 12; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TakePromotionRewardScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TakePromotionRewardScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RewardList, other.RewardList)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rewardList_ != null) hash ^= RewardList.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rewardList_ != null) { + output.WriteRawTag(82); + output.WriteMessage(RewardList); + } + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rewardList_ != null) { + output.WriteRawTag(82); + output.WriteMessage(RewardList); + } + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rewardList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RewardList); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TakePromotionRewardScRsp other) { + if (other == null) { + return; + } + if (other.rewardList_ != null) { + if (rewardList_ == null) { + RewardList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + RewardList.MergeFrom(other.RewardList); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 82: { + if (rewardList_ == null) { + RewardList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(RewardList); + break; + } + case 96: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 82: { + if (rewardList_ == null) { + RewardList = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(RewardList); + break; + } + case 96: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/TakenChallengeRewardInfo.cs b/Common/Proto/TakenChallengeRewardInfo.cs new file mode 100644 index 00000000..535846b3 --- /dev/null +++ b/Common/Proto/TakenChallengeRewardInfo.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TakenChallengeRewardInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from TakenChallengeRewardInfo.proto + public static partial class TakenChallengeRewardInfoReflection { + + #region Descriptor + /// File descriptor for TakenChallengeRewardInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TakenChallengeRewardInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5UYWtlbkNoYWxsZW5nZVJld2FyZEluZm8ucHJvdG8aDkl0ZW1MaXN0LnBy", + "b3RvIkkKGFRha2VuQ2hhbGxlbmdlUmV3YXJkSW5mbxIZCgZyZXdhcmQYDiAB", + "KAsyCS5JdGVtTGlzdBISCgpzdGFyX2NvdW50GAkgASgNQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TakenChallengeRewardInfo), global::EggLink.DanhengServer.Proto.TakenChallengeRewardInfo.Parser, new[]{ "Reward", "StarCount" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TakenChallengeRewardInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TakenChallengeRewardInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.TakenChallengeRewardInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakenChallengeRewardInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakenChallengeRewardInfo(TakenChallengeRewardInfo other) : this() { + reward_ = other.reward_ != null ? other.reward_.Clone() : null; + starCount_ = other.starCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TakenChallengeRewardInfo Clone() { + return new TakenChallengeRewardInfo(this); + } + + /// Field number for the "reward" field. + public const int RewardFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.ItemList reward_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList Reward { + get { return reward_; } + set { + reward_ = value; + } + } + + /// Field number for the "star_count" field. + public const int StarCountFieldNumber = 9; + private uint starCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint StarCount { + get { return starCount_; } + set { + starCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TakenChallengeRewardInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TakenChallengeRewardInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Reward, other.Reward)) return false; + if (StarCount != other.StarCount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (reward_ != null) hash ^= Reward.GetHashCode(); + if (StarCount != 0) hash ^= StarCount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StarCount != 0) { + output.WriteRawTag(72); + output.WriteUInt32(StarCount); + } + if (reward_ != null) { + output.WriteRawTag(114); + output.WriteMessage(Reward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (StarCount != 0) { + output.WriteRawTag(72); + output.WriteUInt32(StarCount); + } + if (reward_ != null) { + output.WriteRawTag(114); + output.WriteMessage(Reward); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (reward_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Reward); + } + if (StarCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StarCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TakenChallengeRewardInfo other) { + if (other == null) { + return; + } + if (other.reward_ != null) { + if (reward_ == null) { + Reward = new global::EggLink.DanhengServer.Proto.ItemList(); + } + Reward.MergeFrom(other.Reward); + } + if (other.StarCount != 0) { + StarCount = other.StarCount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 72: { + StarCount = input.ReadUInt32(); + break; + } + case 114: { + if (reward_ == null) { + Reward = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Reward); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 72: { + StarCount = input.ReadUInt32(); + break; + } + case 114: { + if (reward_ == null) { + Reward = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(Reward); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/TextJoinInfo.cs b/Common/Proto/TextJoinInfo.cs new file mode 100644 index 00000000..7a63bc7d --- /dev/null +++ b/Common/Proto/TextJoinInfo.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TextJoinInfo.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from TextJoinInfo.proto + public static partial class TextJoinInfoReflection { + + #region Descriptor + /// File descriptor for TextJoinInfo.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TextJoinInfoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJUZXh0Sm9pbkluZm8ucHJvdG8iQQoMVGV4dEpvaW5JbmZvEhQKDHRleHRf", + "aXRlbV9pZBgBIAEoDRIbChN0ZXh0X2l0ZW1fY29uZmlnX2lkGAYgASgNQh6q", + "AhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TextJoinInfo), global::EggLink.DanhengServer.Proto.TextJoinInfo.Parser, new[]{ "TextItemId", "TextItemConfigId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TextJoinInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextJoinInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.TextJoinInfoReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TextJoinInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TextJoinInfo(TextJoinInfo other) : this() { + textItemId_ = other.textItemId_; + textItemConfigId_ = other.textItemConfigId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TextJoinInfo Clone() { + return new TextJoinInfo(this); + } + + /// Field number for the "text_item_id" field. + public const int TextItemIdFieldNumber = 1; + private uint textItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TextItemId { + get { return textItemId_; } + set { + textItemId_ = value; + } + } + + /// Field number for the "text_item_config_id" field. + public const int TextItemConfigIdFieldNumber = 6; + private uint textItemConfigId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint TextItemConfigId { + get { return textItemConfigId_; } + set { + textItemConfigId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TextJoinInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TextJoinInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TextItemId != other.TextItemId) return false; + if (TextItemConfigId != other.TextItemConfigId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TextItemId != 0) hash ^= TextItemId.GetHashCode(); + if (TextItemConfigId != 0) hash ^= TextItemConfigId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TextItemId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TextItemId); + } + if (TextItemConfigId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(TextItemConfigId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TextItemId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(TextItemId); + } + if (TextItemConfigId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(TextItemConfigId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TextItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TextItemId); + } + if (TextItemConfigId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TextItemConfigId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TextJoinInfo other) { + if (other == null) { + return; + } + if (other.TextItemId != 0) { + TextItemId = other.TextItemId; + } + if (other.TextItemConfigId != 0) { + TextItemConfigId = other.TextItemConfigId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + TextItemId = input.ReadUInt32(); + break; + } + case 48: { + TextItemConfigId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + TextItemId = input.ReadUInt32(); + break; + } + case 48: { + TextItemConfigId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/TextJoinQueryCsReq.cs b/Common/Proto/TextJoinQueryCsReq.cs new file mode 100644 index 00000000..41893740 --- /dev/null +++ b/Common/Proto/TextJoinQueryCsReq.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TextJoinQueryCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from TextJoinQueryCsReq.proto + public static partial class TextJoinQueryCsReqReflection { + + #region Descriptor + /// File descriptor for TextJoinQueryCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TextJoinQueryCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhUZXh0Sm9pblF1ZXJ5Q3NSZXEucHJvdG8iLwoSVGV4dEpvaW5RdWVyeUNz", + "UmVxEhkKEXRleHRfam9pbl9pZF9saXN0GA8gAygNQh6qAhtFZ2dMaW5rLkRh", + "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TextJoinQueryCsReq), global::EggLink.DanhengServer.Proto.TextJoinQueryCsReq.Parser, new[]{ "TextJoinIdList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TextJoinQueryCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextJoinQueryCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.TextJoinQueryCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TextJoinQueryCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TextJoinQueryCsReq(TextJoinQueryCsReq other) : this() { + textJoinIdList_ = other.textJoinIdList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TextJoinQueryCsReq Clone() { + return new TextJoinQueryCsReq(this); + } + + /// Field number for the "text_join_id_list" field. + public const int TextJoinIdListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_textJoinIdList_codec + = pb::FieldCodec.ForUInt32(122); + private readonly pbc::RepeatedField textJoinIdList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TextJoinIdList { + get { return textJoinIdList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TextJoinQueryCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TextJoinQueryCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!textJoinIdList_.Equals(other.textJoinIdList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= textJoinIdList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + textJoinIdList_.WriteTo(output, _repeated_textJoinIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + textJoinIdList_.WriteTo(ref output, _repeated_textJoinIdList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += textJoinIdList_.CalculateSize(_repeated_textJoinIdList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TextJoinQueryCsReq other) { + if (other == null) { + return; + } + textJoinIdList_.Add(other.textJoinIdList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 122: + case 120: { + textJoinIdList_.AddEntriesFrom(input, _repeated_textJoinIdList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 122: + case 120: { + textJoinIdList_.AddEntriesFrom(ref input, _repeated_textJoinIdList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/TextJoinQueryScRsp.cs b/Common/Proto/TextJoinQueryScRsp.cs new file mode 100644 index 00000000..ef6f00ba --- /dev/null +++ b/Common/Proto/TextJoinQueryScRsp.cs @@ -0,0 +1,261 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: TextJoinQueryScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from TextJoinQueryScRsp.proto + public static partial class TextJoinQueryScRspReflection { + + #region Descriptor + /// File descriptor for TextJoinQueryScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TextJoinQueryScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhUZXh0Sm9pblF1ZXJ5U2NSc3AucHJvdG8aElRleHRKb2luSW5mby5wcm90", + "byJMChJUZXh0Sm9pblF1ZXJ5U2NSc3ASJQoOdGV4dF9qb2luX2xpc3QYDyAD", + "KAsyDS5UZXh0Sm9pbkluZm8SDwoHcmV0Y29kZRgDIAEoDUIeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.TextJoinInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.TextJoinQueryScRsp), global::EggLink.DanhengServer.Proto.TextJoinQueryScRsp.Parser, new[]{ "TextJoinList", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TextJoinQueryScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextJoinQueryScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.TextJoinQueryScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TextJoinQueryScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TextJoinQueryScRsp(TextJoinQueryScRsp other) : this() { + textJoinList_ = other.textJoinList_.Clone(); + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TextJoinQueryScRsp Clone() { + return new TextJoinQueryScRsp(this); + } + + /// Field number for the "text_join_list" field. + public const int TextJoinListFieldNumber = 15; + private static readonly pb::FieldCodec _repeated_textJoinList_codec + = pb::FieldCodec.ForMessage(122, global::EggLink.DanhengServer.Proto.TextJoinInfo.Parser); + private readonly pbc::RepeatedField textJoinList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TextJoinList { + get { return textJoinList_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 3; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TextJoinQueryScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TextJoinQueryScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!textJoinList_.Equals(other.textJoinList_)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= textJoinList_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + textJoinList_.WriteTo(output, _repeated_textJoinList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Retcode != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Retcode); + } + textJoinList_.WriteTo(ref output, _repeated_textJoinList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += textJoinList_.CalculateSize(_repeated_textJoinList_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TextJoinQueryScRsp other) { + if (other == null) { + return; + } + textJoinList_.Add(other.textJoinList_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 122: { + textJoinList_.AddEntriesFrom(input, _repeated_textJoinList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 24: { + Retcode = input.ReadUInt32(); + break; + } + case 122: { + textJoinList_.AddEntriesFrom(ref input, _repeated_textJoinList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/UnlockBackGroundMusicCsReq.cs b/Common/Proto/UnlockBackGroundMusicCsReq.cs new file mode 100644 index 00000000..935108fd --- /dev/null +++ b/Common/Proto/UnlockBackGroundMusicCsReq.cs @@ -0,0 +1,225 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UnlockBackGroundMusicCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from UnlockBackGroundMusicCsReq.proto + public static partial class UnlockBackGroundMusicCsReqReflection { + + #region Descriptor + /// File descriptor for UnlockBackGroundMusicCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UnlockBackGroundMusicCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBVbmxvY2tCYWNrR3JvdW5kTXVzaWNDc1JlcS5wcm90byIwChpVbmxvY2tC", + "YWNrR3JvdW5kTXVzaWNDc1JlcRISCgp1bmxvY2tfaWRzGAUgAygNQh6qAhtF", + "Z2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UnlockBackGroundMusicCsReq), global::EggLink.DanhengServer.Proto.UnlockBackGroundMusicCsReq.Parser, new[]{ "UnlockIds" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UnlockBackGroundMusicCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnlockBackGroundMusicCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.UnlockBackGroundMusicCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockBackGroundMusicCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockBackGroundMusicCsReq(UnlockBackGroundMusicCsReq other) : this() { + unlockIds_ = other.unlockIds_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockBackGroundMusicCsReq Clone() { + return new UnlockBackGroundMusicCsReq(this); + } + + /// Field number for the "unlock_ids" field. + public const int UnlockIdsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_unlockIds_codec + = pb::FieldCodec.ForUInt32(42); + private readonly pbc::RepeatedField unlockIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnlockIds { + get { return unlockIds_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UnlockBackGroundMusicCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnlockBackGroundMusicCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!unlockIds_.Equals(other.unlockIds_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= unlockIds_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + unlockIds_.WriteTo(output, _repeated_unlockIds_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + unlockIds_.WriteTo(ref output, _repeated_unlockIds_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += unlockIds_.CalculateSize(_repeated_unlockIds_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnlockBackGroundMusicCsReq other) { + if (other == null) { + return; + } + unlockIds_.Add(other.unlockIds_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: + case 40: { + unlockIds_.AddEntriesFrom(input, _repeated_unlockIds_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: + case 40: { + unlockIds_.AddEntriesFrom(ref input, _repeated_unlockIds_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/UnlockBackGroundMusicScRsp.cs b/Common/Proto/UnlockBackGroundMusicScRsp.cs new file mode 100644 index 00000000..d4ee34ce --- /dev/null +++ b/Common/Proto/UnlockBackGroundMusicScRsp.cs @@ -0,0 +1,290 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UnlockBackGroundMusicScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from UnlockBackGroundMusicScRsp.proto + public static partial class UnlockBackGroundMusicScRspReflection { + + #region Descriptor + /// File descriptor for UnlockBackGroundMusicScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UnlockBackGroundMusicScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiBVbmxvY2tCYWNrR3JvdW5kTXVzaWNTY1JzcC5wcm90bxoTVW5sb2NrZWRN", + "dXNpYy5wcm90byJnChpVbmxvY2tCYWNrR3JvdW5kTXVzaWNTY1JzcBIiCgpt", + "dXNpY19saXN0GAIgAygLMg4uVW5sb2NrZWRNdXNpYxIUCgx1bmxvY2tlZF9p", + "ZHMYBCADKA0SDwoHcmV0Y29kZRgMIAEoDUIeqgIbRWdnTGluay5EYW5oZW5n", + "U2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.UnlockedMusicReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UnlockBackGroundMusicScRsp), global::EggLink.DanhengServer.Proto.UnlockBackGroundMusicScRsp.Parser, new[]{ "MusicList", "UnlockedIds", "Retcode" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UnlockBackGroundMusicScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnlockBackGroundMusicScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.UnlockBackGroundMusicScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockBackGroundMusicScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockBackGroundMusicScRsp(UnlockBackGroundMusicScRsp other) : this() { + musicList_ = other.musicList_.Clone(); + unlockedIds_ = other.unlockedIds_.Clone(); + retcode_ = other.retcode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockBackGroundMusicScRsp Clone() { + return new UnlockBackGroundMusicScRsp(this); + } + + /// Field number for the "music_list" field. + public const int MusicListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_musicList_codec + = pb::FieldCodec.ForMessage(18, global::EggLink.DanhengServer.Proto.UnlockedMusic.Parser); + private readonly pbc::RepeatedField musicList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MusicList { + get { return musicList_; } + } + + /// Field number for the "unlocked_ids" field. + public const int UnlockedIdsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_unlockedIds_codec + = pb::FieldCodec.ForUInt32(34); + private readonly pbc::RepeatedField unlockedIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnlockedIds { + get { return unlockedIds_; } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 12; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UnlockBackGroundMusicScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnlockBackGroundMusicScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!musicList_.Equals(other.musicList_)) return false; + if(!unlockedIds_.Equals(other.unlockedIds_)) return false; + if (Retcode != other.Retcode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= musicList_.GetHashCode(); + hash ^= unlockedIds_.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + musicList_.WriteTo(output, _repeated_musicList_codec); + unlockedIds_.WriteTo(output, _repeated_unlockedIds_codec); + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + musicList_.WriteTo(ref output, _repeated_musicList_codec); + unlockedIds_.WriteTo(ref output, _repeated_unlockedIds_codec); + if (Retcode != 0) { + output.WriteRawTag(96); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += musicList_.CalculateSize(_repeated_musicList_codec); + size += unlockedIds_.CalculateSize(_repeated_unlockedIds_codec); + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnlockBackGroundMusicScRsp other) { + if (other == null) { + return; + } + musicList_.Add(other.musicList_); + unlockedIds_.Add(other.unlockedIds_); + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + musicList_.AddEntriesFrom(input, _repeated_musicList_codec); + break; + } + case 34: + case 32: { + unlockedIds_.AddEntriesFrom(input, _repeated_unlockedIds_codec); + break; + } + case 96: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + musicList_.AddEntriesFrom(ref input, _repeated_musicList_codec); + break; + } + case 34: + case 32: { + unlockedIds_.AddEntriesFrom(ref input, _repeated_unlockedIds_codec); + break; + } + case 96: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/UnlockChatBubbleScNotify.cs b/Common/Proto/UnlockChatBubbleScNotify.cs new file mode 100644 index 00000000..06811479 --- /dev/null +++ b/Common/Proto/UnlockChatBubbleScNotify.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UnlockChatBubbleScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from UnlockChatBubbleScNotify.proto + public static partial class UnlockChatBubbleScNotifyReflection { + + #region Descriptor + /// File descriptor for UnlockChatBubbleScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UnlockChatBubbleScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5VbmxvY2tDaGF0QnViYmxlU2NOb3RpZnkucHJvdG8iLQoYVW5sb2NrQ2hh", + "dEJ1YmJsZVNjTm90aWZ5EhEKCWJ1YmJsZV9pZBgJIAEoDUIeqgIbRWdnTGlu", + "ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UnlockChatBubbleScNotify), global::EggLink.DanhengServer.Proto.UnlockChatBubbleScNotify.Parser, new[]{ "BubbleId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UnlockChatBubbleScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnlockChatBubbleScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.UnlockChatBubbleScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockChatBubbleScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockChatBubbleScNotify(UnlockChatBubbleScNotify other) : this() { + bubbleId_ = other.bubbleId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockChatBubbleScNotify Clone() { + return new UnlockChatBubbleScNotify(this); + } + + /// Field number for the "bubble_id" field. + public const int BubbleIdFieldNumber = 9; + private uint bubbleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BubbleId { + get { return bubbleId_; } + set { + bubbleId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UnlockChatBubbleScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnlockChatBubbleScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BubbleId != other.BubbleId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (BubbleId != 0) hash ^= BubbleId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (BubbleId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(BubbleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BubbleId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(BubbleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BubbleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BubbleId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnlockChatBubbleScNotify other) { + if (other == null) { + return; + } + if (other.BubbleId != 0) { + BubbleId = other.BubbleId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 72: { + BubbleId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 72: { + BubbleId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/UnlockPhoneThemeScNotify.cs b/Common/Proto/UnlockPhoneThemeScNotify.cs new file mode 100644 index 00000000..a3d55f47 --- /dev/null +++ b/Common/Proto/UnlockPhoneThemeScNotify.cs @@ -0,0 +1,234 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UnlockPhoneThemeScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from UnlockPhoneThemeScNotify.proto + public static partial class UnlockPhoneThemeScNotifyReflection { + + #region Descriptor + /// File descriptor for UnlockPhoneThemeScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UnlockPhoneThemeScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ch5VbmxvY2tQaG9uZVRoZW1lU2NOb3RpZnkucHJvdG8iLAoYVW5sb2NrUGhv", + "bmVUaGVtZVNjTm90aWZ5EhAKCHRoZW1lX2lkGAQgASgNQh6qAhtFZ2dMaW5r", + "LkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UnlockPhoneThemeScNotify), global::EggLink.DanhengServer.Proto.UnlockPhoneThemeScNotify.Parser, new[]{ "ThemeId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UnlockPhoneThemeScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnlockPhoneThemeScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.UnlockPhoneThemeScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockPhoneThemeScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockPhoneThemeScNotify(UnlockPhoneThemeScNotify other) : this() { + themeId_ = other.themeId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockPhoneThemeScNotify Clone() { + return new UnlockPhoneThemeScNotify(this); + } + + /// Field number for the "theme_id" field. + public const int ThemeIdFieldNumber = 4; + private uint themeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ThemeId { + get { return themeId_; } + set { + themeId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UnlockPhoneThemeScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnlockPhoneThemeScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ThemeId != other.ThemeId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ThemeId != 0) hash ^= ThemeId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ThemeId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ThemeId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ThemeId != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ThemeId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ThemeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ThemeId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnlockPhoneThemeScNotify other) { + if (other == null) { + return; + } + if (other.ThemeId != 0) { + ThemeId = other.ThemeId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + ThemeId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + ThemeId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/UnlockSkilltreeCsReq.cs b/Common/Proto/UnlockSkilltreeCsReq.cs new file mode 100644 index 00000000..1a5e9f9b --- /dev/null +++ b/Common/Proto/UnlockSkilltreeCsReq.cs @@ -0,0 +1,298 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UnlockSkilltreeCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from UnlockSkilltreeCsReq.proto + public static partial class UnlockSkilltreeCsReqReflection { + + #region Descriptor + /// File descriptor for UnlockSkilltreeCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UnlockSkilltreeCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpVbmxvY2tTa2lsbHRyZWVDc1JlcS5wcm90bxoOSXRlbUNvc3QucHJvdG8i", + "VQoUVW5sb2NrU2tpbGx0cmVlQ3NSZXESDQoFbGV2ZWwYBSABKA0SEAoIcG9p", + "bnRfaWQYDSABKA0SHAoJaXRlbV9saXN0GA4gAygLMgkuSXRlbUNvc3RCHqoC", + "G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UnlockSkilltreeCsReq), global::EggLink.DanhengServer.Proto.UnlockSkilltreeCsReq.Parser, new[]{ "Level", "PointId", "ItemList" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UnlockSkilltreeCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnlockSkilltreeCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.UnlockSkilltreeCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockSkilltreeCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockSkilltreeCsReq(UnlockSkilltreeCsReq other) : this() { + level_ = other.level_; + pointId_ = other.pointId_; + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockSkilltreeCsReq Clone() { + return new UnlockSkilltreeCsReq(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 5; + 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 "point_id" field. + public const int PointIdFieldNumber = 13; + private uint pointId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PointId { + get { return pointId_; } + set { + pointId_ = value; + } + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 14; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.ItemCost.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UnlockSkilltreeCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnlockSkilltreeCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) return false; + if (PointId != other.PointId) return false; + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Level != 0) hash ^= Level.GetHashCode(); + if (PointId != 0) hash ^= PointId.GetHashCode(); + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Level != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Level); + } + if (PointId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(PointId); + } + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Level != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Level); + } + if (PointId != 0) { + output.WriteRawTag(104); + output.WriteUInt32(PointId); + } + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Level != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); + } + if (PointId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PointId); + } + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnlockSkilltreeCsReq other) { + if (other == null) { + return; + } + if (other.Level != 0) { + Level = other.Level; + } + if (other.PointId != 0) { + PointId = other.PointId; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 40: { + Level = input.ReadUInt32(); + break; + } + case 104: { + PointId = input.ReadUInt32(); + break; + } + case 114: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 40: { + Level = input.ReadUInt32(); + break; + } + case 104: { + PointId = input.ReadUInt32(); + break; + } + case 114: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/UnlockSkilltreeScRsp.cs b/Common/Proto/UnlockSkilltreeScRsp.cs new file mode 100644 index 00000000..9de6601c --- /dev/null +++ b/Common/Proto/UnlockSkilltreeScRsp.cs @@ -0,0 +1,346 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UnlockSkilltreeScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from UnlockSkilltreeScRsp.proto + public static partial class UnlockSkilltreeScRspReflection { + + #region Descriptor + /// File descriptor for UnlockSkilltreeScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UnlockSkilltreeScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpVbmxvY2tTa2lsbHRyZWVTY1JzcC5wcm90byJgChRVbmxvY2tTa2lsbHRy", + "ZWVTY1JzcBIWCg5iYXNlX2F2YXRhcl9pZBgLIAEoDRIQCghwb2ludF9pZBgJ", + "IAEoDRIPCgdyZXRjb2RlGA4gASgNEg0KBWxldmVsGAogASgNQh6qAhtFZ2dM", + "aW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UnlockSkilltreeScRsp), global::EggLink.DanhengServer.Proto.UnlockSkilltreeScRsp.Parser, new[]{ "BaseAvatarId", "PointId", "Retcode", "Level" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UnlockSkilltreeScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnlockSkilltreeScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.UnlockSkilltreeScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockSkilltreeScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockSkilltreeScRsp(UnlockSkilltreeScRsp other) : this() { + baseAvatarId_ = other.baseAvatarId_; + pointId_ = other.pointId_; + retcode_ = other.retcode_; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockSkilltreeScRsp Clone() { + return new UnlockSkilltreeScRsp(this); + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 11; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + /// Field number for the "point_id" field. + public const int PointIdFieldNumber = 9; + private uint pointId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PointId { + get { return pointId_; } + set { + pointId_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 14; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 10; + 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 UnlockSkilltreeScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnlockSkilltreeScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BaseAvatarId != other.BaseAvatarId) return false; + if (PointId != other.PointId) return false; + if (Retcode != other.Retcode) 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 (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (PointId != 0) hash ^= PointId.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.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 (PointId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(PointId); + } + if (Level != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Level); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(BaseAvatarId); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PointId != 0) { + output.WriteRawTag(72); + output.WriteUInt32(PointId); + } + if (Level != 0) { + output.WriteRawTag(80); + output.WriteUInt32(Level); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(88); + output.WriteUInt32(BaseAvatarId); + } + if (Retcode != 0) { + output.WriteRawTag(112); + output.WriteUInt32(Retcode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (PointId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PointId); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + 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(UnlockSkilltreeScRsp other) { + if (other == null) { + return; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + if (other.PointId != 0) { + PointId = other.PointId; + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 72: { + PointId = input.ReadUInt32(); + break; + } + case 80: { + Level = input.ReadUInt32(); + break; + } + case 88: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 112: { + Retcode = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 72: { + PointId = input.ReadUInt32(); + break; + } + case 80: { + Level = input.ReadUInt32(); + break; + } + case 88: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 112: { + Retcode = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/UnlockedMusic.cs b/Common/Proto/UnlockedMusic.cs new file mode 100644 index 00000000..f1d5b3f8 --- /dev/null +++ b/Common/Proto/UnlockedMusic.cs @@ -0,0 +1,311 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UnlockedMusic.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from UnlockedMusic.proto + public static partial class UnlockedMusicReflection { + + #region Descriptor + /// File descriptor for UnlockedMusic.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UnlockedMusicReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChNVbmxvY2tlZE11c2ljLnByb3RvIj4KDVVubG9ja2VkTXVzaWMSEAoIZ3Jv", + "dXBfaWQYDCABKA0SDwoHdW5rYm9vbBgPIAEoCBIKCgJpZBgEIAEoDUIeqgIb", + "RWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UnlockedMusic), global::EggLink.DanhengServer.Proto.UnlockedMusic.Parser, new[]{ "GroupId", "Unkbool", "Id" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UnlockedMusic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnlockedMusic()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.UnlockedMusicReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockedMusic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockedMusic(UnlockedMusic other) : this() { + groupId_ = other.groupId_; + unkbool_ = other.unkbool_; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockedMusic Clone() { + return new UnlockedMusic(this); + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 12; + private uint groupId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint GroupId { + get { return groupId_; } + set { + groupId_ = value; + } + } + + /// Field number for the "unkbool" field. + public const int UnkboolFieldNumber = 15; + private bool unkbool_; + /// + /// is_played + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Unkbool { + get { return unkbool_; } + set { + unkbool_ = value; + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 4; + 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 UnlockedMusic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnlockedMusic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupId != other.GroupId) return false; + if (Unkbool != other.Unkbool) 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 (GroupId != 0) hash ^= GroupId.GetHashCode(); + if (Unkbool != false) hash ^= Unkbool.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 (Id != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(GroupId); + } + if (Unkbool != false) { + output.WriteRawTag(120); + output.WriteBool(Unkbool); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_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(32); + output.WriteUInt32(Id); + } + if (GroupId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(GroupId); + } + if (Unkbool != false) { + output.WriteRawTag(120); + output.WriteBool(Unkbool); + } + if (_unknownFields != 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.ComputeUInt32Size(GroupId); + } + if (Unkbool != false) { + size += 1 + 1; + } + 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(UnlockedMusic other) { + if (other == null) { + return; + } + if (other.GroupId != 0) { + GroupId = other.GroupId; + } + if (other.Unkbool != false) { + Unkbool = other.Unkbool; + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 32: { + Id = input.ReadUInt32(); + break; + } + case 96: { + GroupId = input.ReadUInt32(); + break; + } + case 120: { + Unkbool = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 32: { + Id = input.ReadUInt32(); + break; + } + case 96: { + GroupId = input.ReadUInt32(); + break; + } + case 120: { + Unkbool = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/UpdateEnergyScNotify.cs b/Common/Proto/UpdateEnergyScNotify.cs new file mode 100644 index 00000000..bb8c4ed8 --- /dev/null +++ b/Common/Proto/UpdateEnergyScNotify.cs @@ -0,0 +1,244 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UpdateEnergyScNotify.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from UpdateEnergyScNotify.proto + public static partial class UpdateEnergyScNotifyReflection { + + #region Descriptor + /// File descriptor for UpdateEnergyScNotify.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UpdateEnergyScNotifyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpVcGRhdGVFbmVyZ3lTY05vdGlmeS5wcm90bxoXUm90YXRvckVuZXJneUlu", + "Zm8ucHJvdG8iPwoUVXBkYXRlRW5lcmd5U2NOb3RpZnkSJwoLZW5lcmd5X2lu", + "Zm8YASABKAsyEi5Sb3RhdG9yRW5lcmd5SW5mb0IeqgIbRWdnTGluay5EYW5o", + "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RotatorEnergyInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UpdateEnergyScNotify), global::EggLink.DanhengServer.Proto.UpdateEnergyScNotify.Parser, new[]{ "EnergyInfo" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateEnergyScNotify : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateEnergyScNotify()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.UpdateEnergyScNotifyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateEnergyScNotify() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateEnergyScNotify(UpdateEnergyScNotify other) : this() { + energyInfo_ = other.energyInfo_ != null ? other.energyInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateEnergyScNotify Clone() { + return new UpdateEnergyScNotify(this); + } + + /// Field number for the "energy_info" field. + public const int EnergyInfoFieldNumber = 1; + private global::EggLink.DanhengServer.Proto.RotatorEnergyInfo energyInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.RotatorEnergyInfo EnergyInfo { + get { return energyInfo_; } + set { + energyInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateEnergyScNotify); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateEnergyScNotify other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(EnergyInfo, other.EnergyInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (energyInfo_ != null) hash ^= EnergyInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (energyInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(EnergyInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (energyInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(EnergyInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (energyInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EnergyInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateEnergyScNotify other) { + if (other == null) { + return; + } + if (other.energyInfo_ != null) { + if (energyInfo_ == null) { + EnergyInfo = new global::EggLink.DanhengServer.Proto.RotatorEnergyInfo(); + } + EnergyInfo.MergeFrom(other.EnergyInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (energyInfo_ == null) { + EnergyInfo = new global::EggLink.DanhengServer.Proto.RotatorEnergyInfo(); + } + input.ReadMessage(EnergyInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (energyInfo_ == null) { + EnergyInfo = new global::EggLink.DanhengServer.Proto.RotatorEnergyInfo(); + } + input.ReadMessage(EnergyInfo); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/UseItemCsReq.cs b/Common/Proto/UseItemCsReq.cs new file mode 100644 index 00000000..5f2a2d96 --- /dev/null +++ b/Common/Proto/UseItemCsReq.cs @@ -0,0 +1,385 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UseItemCsReq.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from UseItemCsReq.proto + public static partial class UseItemCsReqReflection { + + #region Descriptor + /// File descriptor for UseItemCsReq.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UseItemCsReqReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJVc2VJdGVtQ3NSZXEucHJvdG8aEEF2YXRhclR5cGUucHJvdG8ilQEKDFVz", + "ZUl0ZW1Dc1JlcRIkCg91c2VfYXZhdGFyX3R5cGUYDiABKA4yCy5BdmF0YXJU", + "eXBlEhMKC3VzZV9pdGVtX2lkGAIgASgNEhoKEm9wdGlvbmFsX3Jld2FyZF9p", + "ZBgPIAEoDRIWCg51c2VfaXRlbV9jb3VudBgHIAEoDRIWCg5iYXNlX2F2YXRh", + "cl9pZBgMIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.AvatarTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UseItemCsReq), global::EggLink.DanhengServer.Proto.UseItemCsReq.Parser, new[]{ "UseAvatarType", "UseItemId", "OptionalRewardId", "UseItemCount", "BaseAvatarId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UseItemCsReq : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UseItemCsReq()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.UseItemCsReqReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UseItemCsReq() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UseItemCsReq(UseItemCsReq other) : this() { + useAvatarType_ = other.useAvatarType_; + useItemId_ = other.useItemId_; + optionalRewardId_ = other.optionalRewardId_; + useItemCount_ = other.useItemCount_; + baseAvatarId_ = other.baseAvatarId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UseItemCsReq Clone() { + return new UseItemCsReq(this); + } + + /// Field number for the "use_avatar_type" field. + public const int UseAvatarTypeFieldNumber = 14; + private global::EggLink.DanhengServer.Proto.AvatarType useAvatarType_ = global::EggLink.DanhengServer.Proto.AvatarType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.AvatarType UseAvatarType { + get { return useAvatarType_; } + set { + useAvatarType_ = value; + } + } + + /// Field number for the "use_item_id" field. + public const int UseItemIdFieldNumber = 2; + private uint useItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UseItemId { + get { return useItemId_; } + set { + useItemId_ = value; + } + } + + /// Field number for the "optional_reward_id" field. + public const int OptionalRewardIdFieldNumber = 15; + private uint optionalRewardId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OptionalRewardId { + get { return optionalRewardId_; } + set { + optionalRewardId_ = value; + } + } + + /// Field number for the "use_item_count" field. + public const int UseItemCountFieldNumber = 7; + private uint useItemCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UseItemCount { + get { return useItemCount_; } + set { + useItemCount_ = value; + } + } + + /// Field number for the "base_avatar_id" field. + public const int BaseAvatarIdFieldNumber = 12; + private uint baseAvatarId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint BaseAvatarId { + get { return baseAvatarId_; } + set { + baseAvatarId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UseItemCsReq); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UseItemCsReq other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UseAvatarType != other.UseAvatarType) return false; + if (UseItemId != other.UseItemId) return false; + if (OptionalRewardId != other.OptionalRewardId) return false; + if (UseItemCount != other.UseItemCount) return false; + if (BaseAvatarId != other.BaseAvatarId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) hash ^= UseAvatarType.GetHashCode(); + if (UseItemId != 0) hash ^= UseItemId.GetHashCode(); + if (OptionalRewardId != 0) hash ^= OptionalRewardId.GetHashCode(); + if (UseItemCount != 0) hash ^= UseItemCount.GetHashCode(); + if (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (UseItemId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(UseItemId); + } + if (UseItemCount != 0) { + output.WriteRawTag(56); + output.WriteUInt32(UseItemCount); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(BaseAvatarId); + } + if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(112); + output.WriteEnum((int) UseAvatarType); + } + if (OptionalRewardId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(OptionalRewardId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (UseItemId != 0) { + output.WriteRawTag(16); + output.WriteUInt32(UseItemId); + } + if (UseItemCount != 0) { + output.WriteRawTag(56); + output.WriteUInt32(UseItemCount); + } + if (BaseAvatarId != 0) { + output.WriteRawTag(96); + output.WriteUInt32(BaseAvatarId); + } + if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + output.WriteRawTag(112); + output.WriteEnum((int) UseAvatarType); + } + if (OptionalRewardId != 0) { + output.WriteRawTag(120); + output.WriteUInt32(OptionalRewardId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) UseAvatarType); + } + if (UseItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UseItemId); + } + if (OptionalRewardId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalRewardId); + } + if (UseItemCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UseItemCount); + } + if (BaseAvatarId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UseItemCsReq other) { + if (other == null) { + return; + } + if (other.UseAvatarType != global::EggLink.DanhengServer.Proto.AvatarType.None) { + UseAvatarType = other.UseAvatarType; + } + if (other.UseItemId != 0) { + UseItemId = other.UseItemId; + } + if (other.OptionalRewardId != 0) { + OptionalRewardId = other.OptionalRewardId; + } + if (other.UseItemCount != 0) { + UseItemCount = other.UseItemCount; + } + if (other.BaseAvatarId != 0) { + BaseAvatarId = other.BaseAvatarId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + UseItemId = input.ReadUInt32(); + break; + } + case 56: { + UseItemCount = input.ReadUInt32(); + break; + } + case 96: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 112: { + UseAvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 120: { + OptionalRewardId = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + UseItemId = input.ReadUInt32(); + break; + } + case 56: { + UseItemCount = input.ReadUInt32(); + break; + } + case 96: { + BaseAvatarId = input.ReadUInt32(); + break; + } + case 112: { + UseAvatarType = (global::EggLink.DanhengServer.Proto.AvatarType) input.ReadEnum(); + break; + } + case 120: { + OptionalRewardId = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/UseItemScRsp.cs b/Common/Proto/UseItemScRsp.cs new file mode 100644 index 00000000..b78dab56 --- /dev/null +++ b/Common/Proto/UseItemScRsp.cs @@ -0,0 +1,356 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UseItemScRsp.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from UseItemScRsp.proto + public static partial class UseItemScRspReflection { + + #region Descriptor + /// File descriptor for UseItemScRsp.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UseItemScRspReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJVc2VJdGVtU2NSc3AucHJvdG8aDkl0ZW1MaXN0LnByb3RvImwKDFVzZUl0", + "ZW1TY1JzcBIeCgtyZXR1cm5fZGF0YRgJIAEoCzIJLkl0ZW1MaXN0Eg8KB3Jl", + "dGNvZGUYCyABKA0SFgoOdXNlX2l0ZW1fY291bnQYDyABKA0SEwoLdXNlX2l0", + "ZW1faWQYCCABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IG", + "cHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UseItemScRsp), global::EggLink.DanhengServer.Proto.UseItemScRsp.Parser, new[]{ "ReturnData", "Retcode", "UseItemCount", "UseItemId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UseItemScRsp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UseItemScRsp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.UseItemScRspReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UseItemScRsp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UseItemScRsp(UseItemScRsp other) : this() { + returnData_ = other.returnData_ != null ? other.returnData_.Clone() : null; + retcode_ = other.retcode_; + useItemCount_ = other.useItemCount_; + useItemId_ = other.useItemId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UseItemScRsp Clone() { + return new UseItemScRsp(this); + } + + /// Field number for the "return_data" field. + public const int ReturnDataFieldNumber = 9; + private global::EggLink.DanhengServer.Proto.ItemList returnData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::EggLink.DanhengServer.Proto.ItemList ReturnData { + get { return returnData_; } + set { + returnData_ = value; + } + } + + /// Field number for the "retcode" field. + public const int RetcodeFieldNumber = 11; + private uint retcode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Retcode { + get { return retcode_; } + set { + retcode_ = value; + } + } + + /// Field number for the "use_item_count" field. + public const int UseItemCountFieldNumber = 15; + private uint useItemCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UseItemCount { + get { return useItemCount_; } + set { + useItemCount_ = value; + } + } + + /// Field number for the "use_item_id" field. + public const int UseItemIdFieldNumber = 8; + private uint useItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint UseItemId { + get { return useItemId_; } + set { + useItemId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UseItemScRsp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UseItemScRsp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ReturnData, other.ReturnData)) return false; + if (Retcode != other.Retcode) return false; + if (UseItemCount != other.UseItemCount) return false; + if (UseItemId != other.UseItemId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (returnData_ != null) hash ^= ReturnData.GetHashCode(); + if (Retcode != 0) hash ^= Retcode.GetHashCode(); + if (UseItemCount != 0) hash ^= UseItemCount.GetHashCode(); + if (UseItemId != 0) hash ^= UseItemId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (UseItemId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(UseItemId); + } + if (returnData_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ReturnData); + } + if (Retcode != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Retcode); + } + if (UseItemCount != 0) { + output.WriteRawTag(120); + output.WriteUInt32(UseItemCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (UseItemId != 0) { + output.WriteRawTag(64); + output.WriteUInt32(UseItemId); + } + if (returnData_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ReturnData); + } + if (Retcode != 0) { + output.WriteRawTag(88); + output.WriteUInt32(Retcode); + } + if (UseItemCount != 0) { + output.WriteRawTag(120); + output.WriteUInt32(UseItemCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (returnData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnData); + } + if (Retcode != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); + } + if (UseItemCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UseItemCount); + } + if (UseItemId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UseItemId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UseItemScRsp other) { + if (other == null) { + return; + } + if (other.returnData_ != null) { + if (returnData_ == null) { + ReturnData = new global::EggLink.DanhengServer.Proto.ItemList(); + } + ReturnData.MergeFrom(other.ReturnData); + } + if (other.Retcode != 0) { + Retcode = other.Retcode; + } + if (other.UseItemCount != 0) { + UseItemCount = other.UseItemCount; + } + if (other.UseItemId != 0) { + UseItemId = other.UseItemId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 64: { + UseItemId = input.ReadUInt32(); + break; + } + case 74: { + if (returnData_ == null) { + ReturnData = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ReturnData); + break; + } + case 88: { + Retcode = input.ReadUInt32(); + break; + } + case 120: { + UseItemCount = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 64: { + UseItemId = input.ReadUInt32(); + break; + } + case 74: { + if (returnData_ == null) { + ReturnData = new global::EggLink.DanhengServer.Proto.ItemList(); + } + input.ReadMessage(ReturnData); + break; + } + case 88: { + Retcode = input.ReadUInt32(); + break; + } + case 120: { + UseItemCount = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/Vector.cs b/Common/Proto/Vector.cs new file mode 100644 index 00000000..8bff5814 --- /dev/null +++ b/Common/Proto/Vector.cs @@ -0,0 +1,308 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Vector.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from Vector.proto + public static partial class VectorReflection { + + #region Descriptor + /// File descriptor for Vector.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VectorReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxWZWN0b3IucHJvdG8iKQoGVmVjdG9yEgkKAXkYAiABKBESCQoBeBgMIAEo", + "ERIJCgF6GAsgASgRQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Vector), global::EggLink.DanhengServer.Proto.Vector.Parser, new[]{ "Y", "X", "Z" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Vector : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.VectorReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector(Vector other) : this() { + y_ = other.y_; + x_ = other.x_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector Clone() { + return new Vector(this); + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { return y_; } + set { + y_ = value; + } + } + + /// Field number for the "x" field. + public const int XFieldNumber = 12; + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { return x_; } + set { + x_ = value; + } + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 11; + private int z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z { + get { return z_; } + set { + z_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y != other.Y) return false; + if (X != other.X) return false; + if (Z != other.Z) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Y != 0) hash ^= Y.GetHashCode(); + if (X != 0) hash ^= X.GetHashCode(); + if (Z != 0) hash ^= Z.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Y != 0) { + output.WriteRawTag(16); + output.WriteSInt32(Y); + } + if (Z != 0) { + output.WriteRawTag(88); + output.WriteSInt32(Z); + } + if (X != 0) { + output.WriteRawTag(96); + output.WriteSInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Y != 0) { + output.WriteRawTag(16); + output.WriteSInt32(Y); + } + if (Z != 0) { + output.WriteRawTag(88); + output.WriteSInt32(Z); + } + if (X != 0) { + output.WriteRawTag(96); + output.WriteSInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Y != 0) { + size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Y); + } + if (X != 0) { + size += 1 + pb::CodedOutputStream.ComputeSInt32Size(X); + } + if (Z != 0) { + size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Z); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector other) { + if (other == null) { + return; + } + if (other.Y != 0) { + Y = other.Y; + } + if (other.X != 0) { + X = other.X; + } + if (other.Z != 0) { + Z = other.Z; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + Y = input.ReadSInt32(); + break; + } + case 88: { + Z = input.ReadSInt32(); + break; + } + case 96: { + X = input.ReadSInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + Y = input.ReadSInt32(); + break; + } + case 88: { + Z = input.ReadSInt32(); + break; + } + case 96: { + X = input.ReadSInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Proto/VideoVersionKey.cs b/Common/Proto/VideoVersionKey.cs new file mode 100644 index 00000000..85397a2e --- /dev/null +++ b/Common/Proto/VideoVersionKey.cs @@ -0,0 +1,271 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VideoVersionKey.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from VideoVersionKey.proto + public static partial class VideoVersionKeyReflection { + + #region Descriptor + /// File descriptor for VideoVersionKey.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VideoVersionKeyReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVWaWRlb1ZlcnNpb25LZXkucHJvdG8iLwoPVmlkZW9WZXJzaW9uS2V5Eg8K", + "B3ZlcnNpb24YBiABKA0SCwoDa2V5GAwgASgNQh6qAhtFZ2dMaW5rLkRhbmhl", + "bmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.VideoVersionKey), global::EggLink.DanhengServer.Proto.VideoVersionKey.Parser, new[]{ "Version", "Key" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VideoVersionKey : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoVersionKey()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.VideoVersionKeyReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoVersionKey() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoVersionKey(VideoVersionKey other) : this() { + version_ = other.version_; + key_ = other.key_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoVersionKey Clone() { + return new VideoVersionKey(this); + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 6; + private uint version_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Version { + get { return version_; } + set { + version_ = value; + } + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 12; + private uint key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Key { + get { return key_; } + set { + key_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VideoVersionKey); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VideoVersionKey other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Version != other.Version) 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 (Version != 0) hash ^= Version.GetHashCode(); + if (Key != 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 (Version != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Version); + } + if (Key != 0) { + output.WriteRawTag(96); + output.WriteUInt32(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 (Version != 0) { + output.WriteRawTag(48); + output.WriteUInt32(Version); + } + if (Key != 0) { + output.WriteRawTag(96); + output.WriteUInt32(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 (Version != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Version); + } + if (Key != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Key); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VideoVersionKey other) { + if (other == null) { + return; + } + if (other.Version != 0) { + Version = other.Version; + } + if (other.Key != 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 48: { + Version = input.ReadUInt32(); + break; + } + case 96: { + Key = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 48: { + Version = input.ReadUInt32(); + break; + } + case 96: { + Key = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Common/Util/ConfigManager.cs b/Common/Util/ConfigManager.cs new file mode 100644 index 00000000..80e10738 --- /dev/null +++ b/Common/Util/ConfigManager.cs @@ -0,0 +1,32 @@ +using EggLink.DanhengServer.Configuration; +using Newtonsoft.Json; + +namespace EggLink.DanhengServer.Util +{ + public static class ConfigManager + { + public static Logger logger = new("ConfigManager"); + public static ConfigContainer Config { get; private set; } = new ConfigContainer(); + public static void LoadConfig() + { + var file = new FileInfo("config.json"); + if (!file.Exists) + { + logger.Warn("Config file not found, creating a new one"); + Config = new ConfigContainer(); + SaveConfig(); + } + using (var reader = new StreamReader(file.OpenRead())) + { + var json = reader.ReadToEnd(); + Config = JsonConvert.DeserializeObject(json); + } + } + + public static void SaveConfig() + { + var json = JsonConvert.SerializeObject(Config, Formatting.Indented); + File.WriteAllText("config.json", json); + } + } +} diff --git a/Common/Util/Crypto.cs b/Common/Util/Crypto.cs new file mode 100644 index 00000000..01ad505f --- /dev/null +++ b/Common/Util/Crypto.cs @@ -0,0 +1,50 @@ +using System; +using System.Buffers.Text; +using System.Collections.Generic; +using System.Linq; +using System.Security.Cryptography; +using System.Text; +using System.Threading.Tasks; + +namespace EggLink.DanhengServer.Util +{ + internal class Crypto + { + private static Random secureRandom = new(); + public static Logger logger = new("Crypto"); + public static void Xor(byte[] packet, byte[] key) + { + try + { + for (int i = 0; i < packet.Length; i++) + { + packet[i] ^= key[i % key.Length]; + } + } + catch (Exception e) + { + logger.Error("Crypto error.", e); + } + } + + // Simple way to create a unique session key + public static string CreateSessionKey(string accountUid) + { + byte[] random = new byte[64]; + secureRandom.NextBytes(random); + + string temp = accountUid + "." + DateTime.Now.Ticks + "." + secureRandom.ToString(); + + try + { + byte[] bytes = SHA512.HashData(Encoding.UTF8.GetBytes(temp)); + return Convert.ToBase64String(bytes); + } + catch + { + byte[] bytes = SHA512.HashData(Encoding.UTF8.GetBytes(temp)); + return Convert.ToBase64String(bytes); + } + } + } +} diff --git a/Common/Util/Logger.cs b/Common/Util/Logger.cs new file mode 100644 index 00000000..9d8f3c8e --- /dev/null +++ b/Common/Util/Logger.cs @@ -0,0 +1,123 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EggLink.DanhengServer.Util +{ + public class Logger + { + private readonly string ModuleName; + private static FileInfo LogFile; + + public Logger(string moduleName) + { + ModuleName = moduleName; + } + + public void Log(string message, LoggerLevel level) + { + Console.Write("["); + Console.ForegroundColor = ConsoleColor.DarkCyan; + Console.Write(DateTime.Now.ToString("HH:mm:ss")); + Console.ResetColor(); + Console.Write("] "); + Console.Write("["); + Console.ForegroundColor = ConsoleColor.DarkGray; + Console.Write(ModuleName); + Console.ResetColor(); + Console.Write("] "); + Console.Write("["); + Console.ForegroundColor = (ConsoleColor)level; + Console.Write(level); + Console.ResetColor(); + Console.WriteLine("] " + message); + + var logMessage = $"[{DateTime.Now:HH:mm:ss}] [{ModuleName}] [{level}] {message}"; + WriteToFile(logMessage); + } + + public void Info(string message, Exception e = null) + { + Log(message, LoggerLevel.INFO); + if (e != null) + { + Log(e.Message, LoggerLevel.INFO); + Log(e.StackTrace, LoggerLevel.INFO); + } + } + + public void Warn(string message, Exception e = null) + { + Log(message, LoggerLevel.WARN); + if (e != null) + { + Log(e.Message, LoggerLevel.WARN); + Log(e.StackTrace, LoggerLevel.WARN); + } + } + + public void Error(string message, Exception e = null) + { + Log(message, LoggerLevel.ERROR); + if (e != null) + { + Log(e.Message, LoggerLevel.ERROR); + Log(e.StackTrace, LoggerLevel.ERROR); + } + } + + public void Fatal(string message, Exception e = null) + { + Log(message, LoggerLevel.FATAL); + if (e != null) + { + Log(e.Message, LoggerLevel.FATAL); + Log(e.StackTrace, LoggerLevel.FATAL); + } + } + + public void Debug(string message, Exception e = null) + { + Log(message, LoggerLevel.DEBUG); + if (e != null) + { + Log(e.Message, LoggerLevel.DEBUG); + Log(e.StackTrace, LoggerLevel.DEBUG); + } + } + + public static void SetLogFile(FileInfo file) + { + LogFile = file; + } + + public static void WriteToFile(string message) + { + if (LogFile == null) + { + throw new Exception("LogFile is not set"); + } + using (StreamWriter sw = LogFile.AppendText()) + { + sw.WriteLine(message); + } + } + } + + public enum LoggerLevel + { + INFO = ConsoleColor.Cyan, + WARN = ConsoleColor.Yellow, + ERROR = ConsoleColor.Red, + FATAL = ConsoleColor.DarkRed, + DEBUG = ConsoleColor.Blue + } + + public class LoggerLevelHelper + { + + } +} diff --git a/DanhengServer.sln b/DanhengServer.sln new file mode 100644 index 00000000..7a646f12 --- /dev/null +++ b/DanhengServer.sln @@ -0,0 +1,42 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34616.47 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebServer", "WebServer\WebServer.csproj", "{A84C0D8D-BF2E-449A-A46C-F5BE6FD2F42F}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common", "Common\Common.csproj", "{0690883A-D749-42F3-88CB-41D2F627C862}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GameServer", "GameServer\GameServer.csproj", "{8E3A0EA5-F4BC-4478-AEB9-CAAC07F10BD3}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "解决方案项", "解决方案项", "{D0C7E85C-E906-4605-B521-9AB961C66F18}" + ProjectSection(SolutionItems) = preProject + README.md = README.md + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A84C0D8D-BF2E-449A-A46C-F5BE6FD2F42F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A84C0D8D-BF2E-449A-A46C-F5BE6FD2F42F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A84C0D8D-BF2E-449A-A46C-F5BE6FD2F42F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A84C0D8D-BF2E-449A-A46C-F5BE6FD2F42F}.Release|Any CPU.Build.0 = Release|Any CPU + {0690883A-D749-42F3-88CB-41D2F627C862}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0690883A-D749-42F3-88CB-41D2F627C862}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0690883A-D749-42F3-88CB-41D2F627C862}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0690883A-D749-42F3-88CB-41D2F627C862}.Release|Any CPU.Build.0 = Release|Any CPU + {8E3A0EA5-F4BC-4478-AEB9-CAAC07F10BD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8E3A0EA5-F4BC-4478-AEB9-CAAC07F10BD3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8E3A0EA5-F4BC-4478-AEB9-CAAC07F10BD3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8E3A0EA5-F4BC-4478-AEB9-CAAC07F10BD3}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {05A94C2B-B569-45D2-AB39-3F26D02E421A} + EndGlobalSection +EndGlobal diff --git a/GameServer/Data/Excel/AvatarConfigExcel.cs b/GameServer/Data/Excel/AvatarConfigExcel.cs new file mode 100644 index 00000000..e4cf9404 --- /dev/null +++ b/GameServer/Data/Excel/AvatarConfigExcel.cs @@ -0,0 +1,18 @@ +namespace EggLink.DanhengServer.Data.Excel +{ + [ResourceEntity("AvatarConfig.json", true)] + internal class AvatarConfigExcel : ExcelResource + { + public int AvatarID { get; set; } = 0; + + public override int GetId() + { + return AvatarID; + } + + public override void Loaded() + { + GameData.AvatarConfigData.Add(AvatarID, this); + } + } +} diff --git a/GameServer/Data/Excel/StageConfigExcel.cs b/GameServer/Data/Excel/StageConfigExcel.cs new file mode 100644 index 00000000..f124d728 --- /dev/null +++ b/GameServer/Data/Excel/StageConfigExcel.cs @@ -0,0 +1,36 @@ +using System.Collections.Generic; + +namespace EggLink.DanhengServer.Data.Excel +{ + [ResourceEntity("StageConfig.json", false)] + internal class StageConfigExcel : ExcelResource + { + public int StageID { get; set; } = 0; + public HashName StageName { get; set; } = new HashName(); + public List MonsterList { get; set; } = new List(); + + + public override int GetId() + { + return StageID; + } + public override void Loaded() + { + GameData.StageConfigData.Add(StageID, this); + } + } + + internal class StageMonsterList + { + public int Monster0 { get; set; } = 0; + public int Monster1 { get; set; } = 0; + public int Monster2 { get; set; } = 0; + public int Monster3 { get; set; } = 0; + public int Monster4 { get; set; } = 0; + } + + internal class HashName + { + public long Hash { get; set; } = 0; + } +} diff --git a/GameServer/Data/ExcelResource.cs b/GameServer/Data/ExcelResource.cs new file mode 100644 index 00000000..c48af346 --- /dev/null +++ b/GameServer/Data/ExcelResource.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EggLink.DanhengServer.Data +{ + internal abstract class ExcelResource + { + public abstract int GetId(); + + public virtual void Loaded() + { + } + + public virtual void Finalized() + { + } + } +} diff --git a/GameServer/Data/GameData.cs b/GameServer/Data/GameData.cs new file mode 100644 index 00000000..110746a2 --- /dev/null +++ b/GameServer/Data/GameData.cs @@ -0,0 +1,11 @@ +using EggLink.DanhengServer.Data.Excel; +using System.Collections.Generic; + +namespace EggLink.DanhengServer.Data +{ + internal static class GameData + { + public static Dictionary AvatarConfigData { get; private set; } = new Dictionary(); + public static Dictionary StageConfigData { get; private set; } = new Dictionary(); + } +} diff --git a/GameServer/Data/ResourceEntity.cs b/GameServer/Data/ResourceEntity.cs new file mode 100644 index 00000000..8caf5f11 --- /dev/null +++ b/GameServer/Data/ResourceEntity.cs @@ -0,0 +1,18 @@ +using System; + +namespace EggLink.DanhengServer.Data +{ + + [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] + internal class ResourceEntity : Attribute + { + public string FileName { get; private set; } + public bool IsCritical { get; private set; } // If the resource is critical, the server will not start if it is not found + + public ResourceEntity(string fileName, bool isCritical = false) + { + FileName = fileName; + IsCritical = isCritical; + } + } +} diff --git a/GameServer/Data/ResourceManager.cs b/GameServer/Data/ResourceManager.cs new file mode 100644 index 00000000..27b4ff08 --- /dev/null +++ b/GameServer/Data/ResourceManager.cs @@ -0,0 +1,93 @@ +using System; +using System.IO; +using System.Reflection; +using EggLink.DanhengServer.Program; +using EggLink.DanhengServer.Util; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; + +namespace EggLink.DanhengServer.Data +{ + internal class ResourceManager + { + public static Logger Logger { get; private set; } = new Logger("ResourceManager"); + public static void LoadGameData() + { + LoadExcel(); + } + + public static void LoadExcel() + { + var classes = Assembly.GetExecutingAssembly().GetTypes(); // Get all classes in the assembly + foreach (var cls in classes) + { + var attribute = (ResourceEntity)Attribute.GetCustomAttribute(cls, typeof(ResourceEntity)); + + if (attribute != null) + { + var resource = (ExcelResource)Activator.CreateInstance(cls); + var path = EntryPoint.GetConfig().Path.ResourcePath + "/ExcelOutput/" + attribute.FileName; + var file = new FileInfo(path); + if (!file.Exists) + { + if (attribute.IsCritical) + { + throw new FileNotFoundException($"File {path} not found"); + } + else + { + Logger.Warn($"File {path} not found"); + continue; + } + } + var json = file.OpenText().ReadToEnd(); + var count = 0; + using (var reader = new JsonTextReader(new StringReader(json))) + { + reader.Read(); + if (reader.TokenType == JsonToken.StartArray) + { + // array + var jArray = JArray.Parse(json); + foreach (var item in jArray) + { + var res = JsonConvert.DeserializeObject(item.ToString(), cls); + ((ExcelResource)res).Loaded(); + count++; + } + } + else if (reader.TokenType == JsonToken.StartObject) + { + // dictionary + var jObject = JObject.Parse(json); + foreach (var item in jObject) + { + var id = int.Parse(item.Key); + var obj = item.Value; + var instance = JsonConvert.DeserializeObject(obj.ToString(), cls); + if (instance == null) + { + // Deserialize as JObject to handle nested dictionaries + var nestedObject = JsonConvert.DeserializeObject(obj.ToString()); + + // Process only if it's a top-level dictionary, not nested + if (nestedObject.Count > 0 && nestedObject.First.First.Type != JTokenType.Object) + { + ((ExcelResource)instance).Loaded(); + } + } + else + { + ((ExcelResource)instance).Loaded(); + } + count++; + } + } + } + Logger.Info($"Loaded {count} {cls.Name}s."); + } + } + } + + } +} diff --git a/GameServer/GameServer.csproj b/GameServer/GameServer.csproj new file mode 100644 index 00000000..1c6ed6d9 --- /dev/null +++ b/GameServer/GameServer.csproj @@ -0,0 +1,27 @@ + + + + Exe + net8.0 + enable + enable + EggLink.DanhengServer + EggLink.DanhengServer.Program.EntryPoint + + + + + + + + + + + + + + + + + + diff --git a/GameServer/Program/EntryPoint.cs b/GameServer/Program/EntryPoint.cs new file mode 100644 index 00000000..2c62c5e1 --- /dev/null +++ b/GameServer/Program/EntryPoint.cs @@ -0,0 +1,81 @@ +using EggLink.DanhengServer.Util; +using EggLink.DanhengServer.Data; +using EggLink.DanhengServer.Configuration; +using EggLink.DanhengServer.WebServer; +using EggLink.DanhengServer.Database; +using System.Runtime.InteropServices; + +namespace EggLink.DanhengServer.Program +{ + public class EntryPoint + { + private static Logger logger = new("Program"); + public static DatabaseHelper DatabaseHelper = new(); + public static void Main(string[] args) + { + var time = DateTime.Now; + // Initialize the logfile + var counter = 0; + FileInfo file; + while (true) + { + file = new FileInfo(GetConfig().Path.LogPath + $"\\{DateTime.Now:yyyy-MM-dd}-{++counter}.log"); + if (!file.Exists && file.Directory != null) + { + file.Directory.Create(); + break; + } + } + Logger.SetLogFile(file); + // Starting the server + logger.Info("Starting DanhengServer..."); + // Load the config + logger.Info("Loading config..."); + try + { + ConfigManager.LoadConfig(); + } catch (Exception e) + { + logger.Error("Failed to load config", e); + Console.ReadLine(); + return; + } + // Load the game data + logger.Info("Loading game data..."); + try + { + ResourceManager.LoadGameData(); + } catch (Exception e) + { + logger.Error("Failed to load game data", e); + Console.ReadLine(); + return; + } + // Initialize the database + try + { + DatabaseHelper.Initialize(); + } catch (Exception e) + { + logger.Error("Failed to initialize database", e); + Console.ReadLine(); + return; + } + + WebProgram.Main([$"--urls=http://{GetConfig().HttpServer.PublicAddress}:{GetConfig().HttpServer.PublicPort}/"]); + logger.Info($"DispatchServer is running on http://{GetConfig().HttpServer.PublicAddress}:{GetConfig().HttpServer.PublicPort}/"); + + var elapsed = DateTime.Now - time; + logger.Info($"Done in {elapsed.TotalSeconds.ToString()[..4]}s! Type '/help' to get help of commands."); + while (true) + { + Console.ReadLine(); + } + } + + public static ConfigContainer GetConfig() + { + return ConfigManager.Config; + } + } +} diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 00000000..0ad25db4 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/README.md b/README.md new file mode 100644 index 00000000..1489d9fe --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Danheng Server +This project is building! The game cannot run correctly! \ No newline at end of file diff --git a/WebServer/Controllers/DispatchRoutes.cs b/WebServer/Controllers/DispatchRoutes.cs new file mode 100644 index 00000000..acf41800 --- /dev/null +++ b/WebServer/Controllers/DispatchRoutes.cs @@ -0,0 +1,73 @@ +using EggLink.DanhengServer.Configuration; +using EggLink.DanhengServer.Proto; +using EggLink.DanhengServer.Util; +using EggLink.DanhengServer.WebServer.Handler; +using EggLink.DanhengServer.WebServer.Objects; +using Google.Protobuf; +using Microsoft.AspNetCore.Mvc; +using Newtonsoft.Json; + +namespace EggLink.DanhengServer.WebServer.Controllers +{ + [ApiController] + [Route("/")] + public class DispatchRoutes + { + public static ConfigContainer config = ConfigManager.Config; + public static Logger Logger = new("DispatchServer"); + + [HttpGet("query_dispatch")] + public string QueryDispatch() + { + var data = new DispatchRegionData(); + data.RegionList.Add(new RegionEntry() + { + Name = config.GameServer.GameServerId, + DispatchUrl = $"{config.HttpServer.GetDisplayAddress()}/query_gateway", + EnvType = "2", + DisplayName = config.GameServer.GameServerName + }); + Logger.Info("Client request: query_dispatch"); + return Convert.ToBase64String(data.ToByteArray()); + } + + [HttpPost("/account/risky/api/check")] + public string RiskyCheck() => "{\"retcode\":0,\"message\":\"OK\",\"data\":{\"id\":\"none\",\"action\":\"ACTION_NONE\",\"geetest\":null}}"; + + // === AUTHENTICATION === + [HttpPost("/hkrpg_global/mdk/shield/api/login")] + public JsonResult Login([FromBody] LoginReqJson req) => new UsernameLoginHandler().Handle(req.account, req.password, req.is_crypto); + [HttpPost("/hkrpg_global/mdk/shield/api/verify")] + public JsonResult Verify([FromBody] VerifyReqJson req) => new TokenLoginHandler().Handle(req.uid, req.token); + [HttpPost("/hkrpg_global/combo/granter/login/v2/login")] + public JsonResult LoginV2([FromBody] LoginV2ReqJson req) => new ComboTokenGranterHandler().Handle(req.app_id, req.channel_id, req.data, req.device, req.sign); + + [HttpGet("/hkrpg_global/combo/granter/api/getConfig")] + public string GetConfig() => "{\"retcode\":0,\"message\":\"OK\",\"data\":{\"protocol\":true,\"qr_enabled\":false,\"log_level\":\"INFO\",\"announce_url\":\"\",\"push_alias_type\":0,\"disable_ysdk_guard\":true,\"enable_announce_pic_popup\":false,\"app_name\":\"崩�??RPG\",\"qr_enabled_apps\":{\"bbs\":false,\"cloud\":false},\"qr_app_icons\":{\"app\":\"\",\"bbs\":\"\",\"cloud\":\"\"},\"qr_cloud_display_name\":\"\",\"enable_user_center\":true,\"functional_switch_configs\":{}}}"; + + + [HttpGet("/hkrpg_global/mdk/shield/api/loadConfig")] + public string LoadConfig() => "{\"retcode\":0,\"message\":\"OK\",\"data\":{\"id\":24,\"game_key\":\"hkrpg_global\",\"client\":\"PC\",\"identity\":\"I_IDENTITY\",\"guest\":false,\"ignore_versions\":\"\",\"scene\":\"S_NORMAL\",\"name\":\"崩�??RPG\",\"disable_regist\":false,\"enable_email_captcha\":false,\"thirdparty\":[\"fb\",\"tw\",\"gl\",\"ap\"],\"disable_mmt\":false,\"server_guest\":false,\"thirdparty_ignore\":{},\"enable_ps_bind_account\":false,\"thirdparty_login_configs\":{\"tw\":{\"token_type\":\"TK_GAME_TOKEN\",\"game_token_expires_in\":2592000},\"ap\":{\"token_type\":\"TK_GAME_TOKEN\",\"game_token_expires_in\":604800},\"fb\":{\"token_type\":\"TK_GAME_TOKEN\",\"game_token_expires_in\":2592000},\"gl\":{\"token_type\":\"TK_GAME_TOKEN\",\"game_token_expires_in\":604800}},\"initialize_firebase\":false,\"bbs_auth_login\":false,\"bbs_auth_login_ignore\":[],\"fetch_instance_id\":false,\"enable_flash_login\":false}}"; + + + // === EXTRA === + + [HttpPost("/hkrpg_global/combo/granter/api/compareProtocolVersion")] + public string CompareProtocolVer() => "{\"retcode\":0,\"message\":\"OK\",\"data\":{\"modified\":false,\"protocol\":null}}"; + [HttpGet("/hkrpg_global/mdk/agreement/api/getAgreementInfos")] + public string GetAgreementInfo() => "{\"retcode\":0,\"message\":\"OK\",\"data\":{\"marketing_agreements\":[]}}"; + + [HttpGet("/combo/box/api/config/sdk/combo")] + public string Combo() => "{\"retcode\":0,\"message\":\"OK\",\"data\":{\"vals\":{\"kibana_pc_config\":\"{ \\\"enable\\\": 0, \\\"level\\\": \\\"Info\\\",\\\"modules\\\": [\\\"download\\\"] }\\n\",\"network_report_config\":\"{ \\\"enable\\\": 0, \\\"status_codes\\\": [206], \\\"url_paths\\\": [\\\"dataUpload\\\", \\\"red_dot\\\"] }\\n\",\"list_price_tierv2_enable\":\"false\\n\",\"pay_payco_centered_host\":\"bill.payco.com\",\"telemetry_config\":\"{\\n \\\"dataupload_enable\\\": 0,\\n}\",\"enable_web_dpi\":\"true\"}}}"; + [HttpGet("/combo/box/api/config/sw/precache")] + public string Precache() => "{\"retcode\":0,\"message\":\"OK\",\"data\":{\"vals\":{\"url\":\"\",\"enable\":\"false\"}}}"; + + [HttpGet("/device-fp/api/getFp")] + public JsonResult GetFp([FromQuery] string device_fp) => new FingerprintHandler().GetFp(device_fp); + [HttpGet("/device-fp/api/getExtList")] + public string GetExtList() => "{\"retcode\":0,\"message\":\"OK\",\"data\":{\"code\":200,\"msg\":\"ok\",\"ext_list\":[],\"pkg_list\":[],\"pkg_str\":\"/vK5WTh5SS3SAj8Zm0qPWg==\"}}"; + + [HttpPost("/data_abtest_api/config/experiment/list")] + public string GetExperimentList() => "{\"retcode\":0,\"success\":true,\"message\":\"\",\"data\":[{\"code\":1000,\"type\":2,\"config_id\":\"14\",\"period_id\":\"6125_197\",\"version\":\"1\",\"configs\":{\"cardType\":\"direct\"}}]}"; + } +} diff --git a/WebServer/Controllers/GateServerRoutes.cs b/WebServer/Controllers/GateServerRoutes.cs new file mode 100644 index 00000000..a5adfb71 --- /dev/null +++ b/WebServer/Controllers/GateServerRoutes.cs @@ -0,0 +1,13 @@ +using EggLink.DanhengServer.Server.Http.Handler; +using Microsoft.AspNetCore.Mvc; + +namespace EggLink.DanhengServer.WebServer.Controllers +{ + [ApiController] + [Route("/")] + public class GateServerRoutes + { + [HttpGet("/query_gateway")] + public string QueryGateway() => new QueryGatewayHandler().Data; + } +} diff --git a/WebServer/Controllers/LogServerRoutes.cs b/WebServer/Controllers/LogServerRoutes.cs new file mode 100644 index 00000000..4df27f24 --- /dev/null +++ b/WebServer/Controllers/LogServerRoutes.cs @@ -0,0 +1,17 @@ +using Microsoft.AspNetCore.Mvc; + +namespace EggLink.DanhengServer.WebServer.Controllers +{ + [ApiController] + [Route("/")] + public class LogServerRoutes + { + [HttpPost("/sdk/dataUpload")] + [HttpPost("/crashdump/dataUpload")] + [HttpPost("/apm/dataUpload")] + public JsonResult LogUpload() => new("{\"code\":0}"); + + [HttpPost("/common/h5log/log/batch")] + public JsonResult BatchUpload() => new("{\"retcode\":0,\"message\":\"success\",\"data\":null}"); + } +} diff --git a/WebServer/Handler/ComboTokenGranterHandler.cs b/WebServer/Handler/ComboTokenGranterHandler.cs new file mode 100644 index 00000000..0e4ddfec --- /dev/null +++ b/WebServer/Handler/ComboTokenGranterHandler.cs @@ -0,0 +1,40 @@ +using EggLink.DanhengServer.Database.Account; +using EggLink.DanhengServer.WebServer.Objects; +using Microsoft.AspNetCore.Mvc; +using Newtonsoft.Json; + +namespace EggLink.DanhengServer.WebServer.Handler +{ + public class ComboTokenGranterHandler + { + public JsonResult Handle(int app_id, int channel_id, string data, string device, string sign) + { + var tokenData = JsonConvert.DeserializeObject(data); + ComboTokenResJson res = new ComboTokenResJson(); + if (tokenData == null) + { + res.retcode = -202; + res.message = "Invalid login data"; + return new JsonResult(res); + } + AccountData? account = AccountData.GetAccountByUid(long.Parse(tokenData.uid)) as AccountData; + if (account == null) + { + res.retcode = -201; + res.message = "Game account cache information error"; + return new JsonResult(res); + } else + { + res.message = "OK"; + res.data = new ComboTokenResJson.LoginData(account.Uid.ToString(), account.GenerateComboToken()); + } + return new JsonResult(res); + } + } + public class LoginTokenData + { + public string uid { get; set; } + public string token { get; set; } + public bool guest { get; set; } + } +} diff --git a/WebServer/Handler/FingerprintHandler.cs b/WebServer/Handler/FingerprintHandler.cs new file mode 100644 index 00000000..d579da0a --- /dev/null +++ b/WebServer/Handler/FingerprintHandler.cs @@ -0,0 +1,45 @@ +using Microsoft.AspNetCore.Mvc; +using Newtonsoft.Json; +using static EggLink.DanhengServer.WebServer.Handler.FingerprintResJson; + +namespace EggLink.DanhengServer.WebServer.Handler +{ + public class FingerprintHandler + { + public JsonResult GetFp(string device_fp) + { + FingerprintResJson res = new(); + if (device_fp == null) + { + res.retcode = -202; + res.message = "Error"; + } else + { + res.message = "OK"; + res.data = new FingerprintDataJson(device_fp); + } + return new JsonResult(res); + } + } + + public class FingerprintResJson + { + public string message { get; set; } + public int retcode { get; set; } + public FingerprintDataJson data { get; set; } + + public class FingerprintDataJson + { + public string device_fp { get; set; } + public string message { get; set; } + public int code { get; set; } + + public FingerprintDataJson(String fp) + { + code = 200; + message = "OK"; + device_fp = fp; + } + } + } +} diff --git a/WebServer/Handler/QueryGatewayHandler.cs b/WebServer/Handler/QueryGatewayHandler.cs new file mode 100644 index 00000000..08c136e6 --- /dev/null +++ b/WebServer/Handler/QueryGatewayHandler.cs @@ -0,0 +1,55 @@ +using EggLink.DanhengServer.Proto; +using EggLink.DanhengServer.Util; +using Google.Protobuf; + +namespace EggLink.DanhengServer.Server.Http.Handler +{ + internal class QueryGatewayHandler + { + public static Logger Logger = new("GatewayServer"); + public string Data; + public QueryGatewayHandler() + { + var config = ConfigManager.Config; + var urlData = config.DownloadUrl; + + // build gateway proto + var gateServer = new Gateserver() { + RegionName = config.GameServer.GameServerId, + Ip = config.GameServer.PublicAddress, + Port = (uint)config.GameServer.PublicPort, + Msg = "Access verification failed. Please check if you have logged in to the correct account and server.", + Unk1 = true, + Unk2 = true, + Unk3 = true, + Unk4 = true, + Unk5 = true + }; + + if (urlData.AssetBundleUrl != null) + { + gateServer.AssetBundleUrl = urlData.AssetBundleUrl; + } + + if (urlData.ExResourceUrl != null) + { + gateServer.ExResourceUrl = urlData.ExResourceUrl; + } + + if (urlData.LuaUrl != null) + { + gateServer.LuaUrl = urlData.LuaUrl; + gateServer.MdkResVersion = urlData.LuaUrl.Split('/')[urlData.LuaUrl.Split('/').Length - 1].Split('_')[1]; + } + + if (urlData.IfixUrl != null) + { + gateServer.IfixUrl = urlData.IfixUrl; + gateServer.IfixVersion = urlData.IfixUrl.Split('/')[urlData.IfixUrl.Split('/').Length - 1].Split('_')[1]; + } + Logger.Info("Client request: query_gateway"); + + Data = Convert.ToBase64String(gateServer.ToByteArray()); + } + } +} diff --git a/WebServer/Handler/TokenLoginHandler.cs b/WebServer/Handler/TokenLoginHandler.cs new file mode 100644 index 00000000..842dc90b --- /dev/null +++ b/WebServer/Handler/TokenLoginHandler.cs @@ -0,0 +1,27 @@ +using EggLink.DanhengServer.Database.Account; +using EggLink.DanhengServer.WebServer.Objects; +using Microsoft.AspNetCore.Mvc; +using static EggLink.DanhengServer.WebServer.Objects.LoginResJson; + +namespace EggLink.DanhengServer.WebServer.Handler +{ + public class TokenLoginHandler + { + public JsonResult Handle(string uid, string token) + { + AccountData? account = AccountData.GetAccountByUid(long.Parse(uid)) as AccountData; + var res = new LoginResJson(); + if (account == null || !account.DispatchToken.Equals(token)) + { + res.retcode = -201; + res.message = "Game account cache information error"; + } + else + { + res.message = "OK"; + res.data = new VerifyData(account.Uid.ToString(), account.Username + "@egglink.me", token); + } + return new JsonResult(res); + } + } +} diff --git a/WebServer/Handler/UsernameLoginHandler.cs b/WebServer/Handler/UsernameLoginHandler.cs new file mode 100644 index 00000000..0de9cb3b --- /dev/null +++ b/WebServer/Handler/UsernameLoginHandler.cs @@ -0,0 +1,37 @@ +using Microsoft.AspNetCore.Mvc; +using EggLink.DanhengServer.Database.Account; +using EggLink.DanhengServer.Util; +using static EggLink.DanhengServer.WebServer.Objects.LoginResJson; +using EggLink.DanhengServer.WebServer.Objects; + +namespace EggLink.DanhengServer.WebServer.Handler +{ + public class UsernameLoginHandler + { + public JsonResult Handle(string account, string password, bool isCrypto) + { + LoginResJson res = new(); + AccountData accountData = (AccountData)AccountData.GetAccountByUserName(account); + + if (accountData == null) + { + if (ConfigManager.Config.ServerOption.AutoCreateUser) + { + AccountHelper.CreateAccount(account, 0); + accountData = (AccountData)AccountData.GetAccountByUserName(account); + } + else + { + return new JsonResult(new LoginResJson { message = "Account not found", retcode = -201 }); + } + } + if (accountData != null) + { + res.message = "OK"; + res.data = new VerifyData(accountData.Uid.ToString(), accountData.Username + "@egglink.me", accountData.GenerateDispatchToken()); + } + + return new JsonResult(res); + } + } +} diff --git a/WebServer/Objects/ComboTokenResJson.cs b/WebServer/Objects/ComboTokenResJson.cs new file mode 100644 index 00000000..c80ce805 --- /dev/null +++ b/WebServer/Objects/ComboTokenResJson.cs @@ -0,0 +1,26 @@ +namespace EggLink.DanhengServer.WebServer.Objects +{ + public class ComboTokenResJson + { + public string message { get; set; } + public int retcode { get; set; } + public LoginData data { get; set; } = null; + + public class LoginData + { + public int account_type { get; set; } = 1; + public bool heartbeat { get; set; } + public string combo_id { get; set; } + public string combo_token { get; set; } + public string open_id { get; set; } + public string data { get; set; } = "{\"guest\":false}"; + public string fatigue_remind { get; set; } = null; // ? + + public LoginData(string openId, string comboToken) + { + open_id = openId; + combo_token = comboToken; + } + } + } +} diff --git a/WebServer/Objects/LoginResJson.cs b/WebServer/Objects/LoginResJson.cs new file mode 100644 index 00000000..32e2088b --- /dev/null +++ b/WebServer/Objects/LoginResJson.cs @@ -0,0 +1,49 @@ +namespace EggLink.DanhengServer.WebServer.Objects +{ + public class LoginResJson + { + public string message { get; set; } + public int retcode { get; set; } + public VerifyData data { get; set; } + + public class VerifyData + { + public VerifyAccountData account { get; set; } = new(); + public bool device_grant_required { get; set; } = false; + public string realname_operation { get; set; } = "NONE"; + public bool realperson_required { get; set; } = false; + public bool safe_mobile_required { get; set; } = false; + + public VerifyData(string accountUid, string email, string token) + { + account.uid = accountUid; + account.email = email; + account.token = token; + } + } + + public class VerifyAccountData + { + public string uid { get; set; } + public string name { get; set; } = ""; + public string email { get; set; } = ""; + public string mobile { get; set; } = ""; + public string is_email_verify { get; set; } = "0"; + public string realname { get; set; } = ""; + public string identity_card { get; set; } = ""; + public string token { get; set; } + public string safe_mobile { get; set; } = ""; + public string facebook_name { get; set; } = ""; + public string twitter_name { get; set; } = ""; + public string game_center_name { get; set; } = ""; + public string google_name { get; set; } = ""; + public string apple_name { get; set; } = ""; + public string sony_name { get; set; } = ""; + public string tap_name { get; set; } = ""; + public string country { get; set; } = "US"; + public string reactivate_ticket { get; set; } = ""; + public string area_code { get; set; } = "**"; + public string device_grant_ticket { get; set; } = ""; + } + } +} diff --git a/WebServer/Objects/RequestBodies.cs b/WebServer/Objects/RequestBodies.cs new file mode 100644 index 00000000..8b4c515d --- /dev/null +++ b/WebServer/Objects/RequestBodies.cs @@ -0,0 +1,24 @@ +namespace EggLink.DanhengServer.WebServer.Objects +{ + public class LoginReqJson + { + public string account { get; set; } + public string password { get; set; } + public bool is_crypto { get; set; } + } + + public class VerifyReqJson + { + public string uid { get; set; } + public string token { get; set; } + } + + public class LoginV2ReqJson + { + public int app_id { get; set; } + public int channel_id { get; set; } + public string data { get; set; } + public string device { get; set; } + public string sign { get; set; } + } +} diff --git a/WebServer/Properties/launchSettings.json b/WebServer/Properties/launchSettings.json new file mode 100644 index 00000000..6843679a --- /dev/null +++ b/WebServer/Properties/launchSettings.json @@ -0,0 +1,41 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:47165", + "sslPort": 44309 + } + }, + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "http://localhost:5242", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:7100;http://localhost:5242", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/WebServer/WebProgram.cs b/WebServer/WebProgram.cs new file mode 100644 index 00000000..d02304d8 --- /dev/null +++ b/WebServer/WebProgram.cs @@ -0,0 +1,61 @@ +using EggLink.DanhengServer.Util; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore; +using Microsoft.AspNetCore.Server.Kestrel.Core; +using System.Net; + +namespace EggLink.DanhengServer.WebServer +{ + public class WebProgram + { + public static void Main(string[] args) + { + BuildWebHost(args).Start(); + } + + public static IWebHost BuildWebHost(string[] args) => + WebHost.CreateDefaultBuilder(args) + .UseStartup() + .UseKestrel(options =>//ÉèÖÃKestrel·þÎñÆ÷ + { + options.Listen(IPAddress.Any, 443, listenOptions => + { + listenOptions.UseHttps( + ConfigManager.Config.KeyStore.KeyStorePath, + ConfigManager.Config.KeyStore.KeyStorePassword); + }); + }) + .ConfigureLogging((hostingContext, logging) => + { + logging.ClearProviders(); + }) + .Build(); + } + + public class Startup + { + public void ConfigureServices(IServiceCollection services) + { + services.AddControllers(); + } + + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) + { + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + } + + app.UseHttpsRedirection(); + + app.UseRouting(); + + app.UseAuthorization(); + + app.UseEndpoints(endpoints => + { + endpoints.MapControllers(); + }); + } + } +} diff --git a/WebServer/WebServer.csproj b/WebServer/WebServer.csproj new file mode 100644 index 00000000..50bf9dc4 --- /dev/null +++ b/WebServer/WebServer.csproj @@ -0,0 +1,21 @@ + + + + net8.0 + enable + enable + EggLink.DanhengServer.WebServer + Library + + + + + + + + + + + + + diff --git a/WebServer/appsettings.Development.json b/WebServer/appsettings.Development.json new file mode 100644 index 00000000..0c208ae9 --- /dev/null +++ b/WebServer/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/WebServer/appsettings.json b/WebServer/appsettings.json new file mode 100644 index 00000000..10f68b8c --- /dev/null +++ b/WebServer/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/WebServer/certificate.p12 b/WebServer/certificate.p12 new file mode 100644 index 0000000000000000000000000000000000000000..f845e141fd05e9d6dbbe05eaf63812b85d2c9e68 GIT binary patch literal 2611 zcmai$XEYm(7seBb5PR=ELeN)QBlbwus!?idDT=6CL2Fcz#;ny^MUA%hj9OJiY;8%3 z+SI63O6^@<@A>~v-;eKyd+vFj=iGC@-19pZfu)ir1A-7(=pqCv5vdz_KntV*=3${D zU@Ua-!X_fHVAQ`6Bo7Ogxv(yV02fXC-vo%T{3FO|5&8)Dzmf*Q1EzE{?GzDIYcwDu zqXZymAe8^xMg}DZAb26rJCV9TXAl@D0cI$j3rTj>XcUa@b=wj0s;>{jf(Vw^w?l&^ z+B_yu$euXYoX0Y0U4>+aX*@o#$48F?k-ZI>9h6A({i{jiTDLksnoI=&%DmDcJ9y4>9~mvl2jqJycTVX3#)BMXNQ5uX@}@!mzb>s+B74v|uJ;RXbvgRqhS*AqL)dXXF4dpe$PU7LJjG*7Pk^ z6%yhHujNC%%}&%O%X^#1FIk_j<;yf0Gm7yJG=GQ0(Ily&f-yBQj+Olp?>b>d4ze22r?JBo=dt@b%awDdQTCkNO3VsXZb zYa54E8Z$4S-JY6%l+ox;hpT9b6bqJ(6tal9wwgmR^KrR*xhuL**_~oG{6sqht&%c1 z7Q7GAMH5#V9Q=Yd=0#aVxj(-;hd;iHlGymjhU~ntFETBSu2sPrU?!{Gd&1rxJpE(g(;+F8cDa zBQ-dzR=rC&r+R0Zv#a?*cd$haB>1X;i3Z&0-G-V0BK`n<; z8V1wnj*3h0NQ-O_eo=vfZTaPExG|`m+9z{KhjUJzB<5_#X1Kd{$1I&t0Q42fmwZCp z%jb?o4QhRJzc`$>vVX*Ou5aV)Q7l{bo-7Mh)ONJhpt(x|LoG8rWALy@#p4#CaYD;S zH39e*|I@YzrHOq%$d7z~P{KI&RN(x`m=2i-n{&?G@XmyE>o>Io`*uzkuFX$g0g9K- z?@kpSb1w2xl<2r^j7eW<%;FWKcB%LA@A2LY&`_4bpp{yE6GiV*_s&g-^w%=QB|fZO z5`P!LvWa!L8ALjQYh_0FTo+hCnnbZKBR$sU+(V}@K2kRs8tV1^mcI=lL6JB7Lshz& zD5-M$xEFSAloy6OrVXI=)^!wSU4@aM=*~Ts9gD_2Tdvu%(|YtFZK^H*V%=6coy$v! zT8Ur95mQ~R-gFg(xtCYxd6(mw3wnJsN!FgnubtNGVS3M^)eR+T*pq}x@k&R;DVc;D zv9@iYBfkahQrhL*_LUS?;ma6!8l&B0huBtN>A3a`ePJ@^eEL-fz`EwI{_M#7E^LpBa)VI+pFK2GK(dSQ@`ZWn zzkqV8H3-;z=j^_ z^yiNwIK8GOmwgnzWsfwa<4F>=2ost4_57B}8;>=rZ*>cHPXdcu8Xw-$$WJuUKLPSBu{sjT97S10;MJfRYZ@?Wr*QFJCHY&j@Yw237qMwDZS&89(uqDV z$#CUjAYL<1QyO!js1VdEpw76rjIqHf-BjQ>o7czf7Crnbzgke%9^=irgZ9M39AR8= z>x-yrf6>H|fc^?fF{{+fseM^0t-O zh?eRku$(s^YttMhy1=8a&Xv|4N1x^31-5kYD4WF<1GdnJkiWFK`sPXNf9bsC3642b zO;r=mtS>o|76(iw zpMc8vkb^u)KaoQrznN#brkzDHIBb)X{HwBbnXzZnAzT~kGjT^|EAlJE%yd|3DbJtOH;JUXU|;jJNBZrCE^)LFK<1x z*+%bu*f6r)KIAAb9YD*dVt~J5dxYw-9++~Q4)noQIEMX@x~a34q{qL1=0DCf+AoyQ z<_*^)*es|>rg86Fzr6Ff_W2&)FD0KKC1UqaU&VE)(Z!#2CSMdx6-O>*M-+mDA5jQR z#AO8SpLdH4NDcrC{8~wdlc0`XdZQUa`obJ6U