From 0537e9cc4c7856a7c6f88bbbaa908a80c4ee677e Mon Sep 17 00:00:00 2001 From: Melledy <52122272+Melledy@users.noreply.github.com> Date: Tue, 19 Apr 2022 10:02:20 -0700 Subject: [PATCH] Initial commit --- .gitattributes | 2 + .gitignore | 2 + README.md | 2 + proto/AbilityAppliedAbility.proto | 13 ++ proto/AbilityAppliedModifier.proto | 23 +++ proto/AbilityAttachedModifier.proto | 11 ++ proto/AbilityChangeNotify.proto | 10 + proto/AbilityControlBlock.proto | 9 + proto/AbilityEmbryo.proto | 9 + proto/AbilityIdentifier.proto | 12 ++ proto/AbilityInvocationsNotify.proto | 9 + proto/AbilityInvokeArgument.proto | 48 +++++ proto/AbilityInvokeEntry.proto | 17 ++ proto/AbilityInvokeEntryHead.proto | 13 ++ proto/AbilityMixinRecoverInfo.proto | 16 ++ proto/AbilityScalarType.proto | 13 ++ proto/AbilityScalarValueEntry.proto | 17 ++ proto/AbilityString.proto | 10 + proto/AbilitySyncStateInfo.proto | 16 ++ proto/ActionReasonType.proto | 179 ++++++++++++++++++ proto/ActivityInfo.proto | 47 +++++ proto/ActivityNullDetailInfo.proto | 7 + proto/ActivityWatcherInfo.proto | 10 + proto/AiSkillCdInfo.proto | 8 + proto/AiSyncInfo.proto | 8 + proto/AiThreatInfo.proto | 7 + proto/AnimatorParameterValueInfo.proto | 10 + proto/AnimatorParameterValueInfoPair.proto | 10 + proto/AskAddFriendNotify.proto | 10 + proto/AskAddFriendReq.proto | 7 + proto/AskAddFriendRsp.proto | 9 + proto/AttackHitEffectResult.proto | 12 ++ proto/AttackResult.proto | 40 ++++ proto/AvatarAddNotify.proto | 10 + proto/AvatarChangeCostumeNotify.proto | 9 + proto/AvatarChangeCostumeReq.proto | 8 + proto/AvatarChangeCostumeRsp.proto | 9 + proto/AvatarDataNotify.proto | 16 ++ proto/AvatarDieAnimationEndReq.proto | 11 ++ proto/AvatarDieAnimationEndRsp.proto | 9 + proto/AvatarEnterSceneInfo.proto | 17 ++ proto/AvatarEquipAffixInfo.proto | 8 + proto/AvatarEquipChangeNotify.proto | 15 ++ proto/AvatarExpeditionState.proto | 10 + proto/AvatarFetterInfo.proto | 14 ++ proto/AvatarFightPropNotify.proto | 8 + proto/AvatarFightPropUpdateNotify.proto | 8 + proto/AvatarFlycloakChangeNotify.proto | 8 + proto/AvatarGainCostumeNotify.proto | 7 + proto/AvatarGainFlycloakNotify.proto | 7 + proto/AvatarInfo.proto | 37 ++++ proto/AvatarLifeStateChangeNotify.proto | 14 ++ proto/AvatarPromoteReq.proto | 7 + proto/AvatarPromoteRsp.proto | 8 + proto/AvatarPropNotify.proto | 8 + proto/AvatarSkillChangeNotify.proto | 12 ++ proto/AvatarSkillInfo.proto | 9 + proto/AvatarSkillUpgradeReq.proto | 9 + proto/AvatarSkillUpgradeRsp.proto | 11 ++ proto/AvatarTeam.proto | 8 + proto/AvatarTeamResonanceInfo.proto | 10 + proto/AvatarTeamUpdateNotify.proto | 10 + proto/AvatarUnlockTalentNotify.proto | 10 + proto/AvatarUpgradeReq.proto | 9 + proto/AvatarUpgradeRsp.proto | 12 ++ proto/AvatarWearFlycloakReq.proto | 8 + proto/AvatarWearFlycloakRsp.proto | 9 + proto/Birthday.proto | 8 + proto/BlockInfo.proto | 10 + proto/CalcWeaponUpgradeReturnItemsReq.proto | 11 ++ proto/CalcWeaponUpgradeReturnItemsRsp.proto | 11 ++ proto/ChangeAvatarReq.proto | 12 ++ proto/ChangeAvatarRsp.proto | 9 + proto/ChangeGameTimeReq.proto | 8 + proto/ChangeGameTimeRsp.proto | 8 + proto/ChangeHpReason.proto | 31 +++ proto/ChangeMpTeamAvatarReq.proto | 8 + proto/ChangeMpTeamAvatarRsp.proto | 9 + proto/ChangeTeamNameReq.proto | 8 + proto/ChangeTeamNameRsp.proto | 9 + proto/ChatInfo.proto | 18 ++ proto/ChooseCurAvatarTeamReq.proto | 7 + proto/ChooseCurAvatarTeamRsp.proto | 8 + proto/CityInfo.proto | 9 + proto/ClientAbilityChangeNotify.proto | 10 + proto/ClientAbilityInitBeginNotify.proto | 7 + proto/ClientAbilityInitFinishNotify.proto | 10 + proto/CombatInvocationsNotify.proto | 9 + proto/CombatInvokeEntry.proto | 12 ++ proto/CombatTypeArgument.proto | 21 ++ proto/CoopCg.proto | 8 + proto/CoopChapter.proto | 21 ++ proto/CoopChapterState.proto | 10 + proto/CoopDataNotify.proto | 12 ++ proto/CoopPoint.proto | 11 ++ proto/CoopPointState.proto | 9 + proto/CoopReward.proto | 10 + proto/CoopRewardState.proto | 9 + proto/CountDownDelete.proto | 7 + proto/DateTimeDelete.proto | 7 + proto/DealAddFriendReq.proto | 10 + proto/DealAddFriendResultType.proto | 8 + proto/DealAddFriendRsp.proto | 11 ++ proto/DelTeamEntityNotify.proto | 8 + proto/DelayWeekCountDownDelete.proto | 7 + proto/DeleteFriendNotify.proto | 7 + proto/DeleteFriendReq.proto | 7 + proto/DeleteFriendRsp.proto | 8 + proto/DestroyMaterialReq.proto | 9 + proto/DestroyMaterialRsp.proto | 9 + proto/DoGachaReq.proto | 11 ++ proto/DoGachaRsp.proto | 20 ++ proto/DropHintNotify.proto | 10 + proto/DungeonEntryInfo.proto | 17 ++ proto/DungeonEntryInfoReq.proto | 7 + proto/DungeonEntryInfoRsp.proto | 12 ++ proto/EnterSceneDoneRsp.proto | 8 + proto/EnterScenePeerNotify.proto | 10 + proto/EnterSceneReadyRsp.proto | 8 + proto/EnterType.proto | 17 ++ proto/EnterWorldAreaReq.proto | 8 + proto/EnterWorldAreaRsp.proto | 8 + proto/EntityAiSyncNotify.proto | 10 + proto/EntityAuthorityInfo.proto | 17 ++ proto/EntityClientData.proto | 9 + proto/EntityEnvironmentInfo.proto | 8 + proto/EntityFightPropChangeReasonNotify.proto | 15 ++ proto/EntityFightPropUpdateNotify.proto | 8 + proto/EntityMoveInfo.proto | 13 ++ proto/EntityPropNotify.proto | 10 + proto/EntityRendererChangedInfo.proto | 9 + proto/Equip.proto | 14 ++ proto/EvtAiSyncCombatThreatInfoNotify.proto | 9 + proto/EvtAiSyncSkillCdNotify.proto | 9 + proto/EvtBeingHitInfo.proto | 10 + proto/EvtBeingHitNotify.proto | 11 ++ proto/EvtBeingHitsCombineNotify.proto | 11 ++ proto/EvtCreateGadgetNotify.proto | 24 +++ proto/EvtDestroyGadgetNotify.proto | 10 + proto/EvtHittingOtherInfo.proto | 10 + proto/FeatureBlockInfo.proto | 8 + proto/FetterData.proto | 9 + proto/FightPropPair.proto | 8 + proto/ForwardType.proto | 15 ++ proto/FriendBrief.proto | 31 +++ proto/FriendEnterHomeOption.proto | 9 + proto/FriendOnlineState.proto | 8 + proto/Furniture.proto | 7 + proto/GachaInfo.proto | 29 +++ proto/GachaItem.proto | 14 ++ proto/GachaTransferItem.proto | 10 + proto/GachaUpInfo.proto | 8 + proto/GadgetBornType.proto | 13 ++ proto/GadgetClientParam.proto | 12 ++ proto/GadgetCrucibleInfo.proto | 7 + proto/GadgetInteractReq.proto | 14 ++ proto/GadgetInteractRsp.proto | 14 ++ proto/GadgetPlayInfo.proto | 17 ++ proto/GetActivityInfoRsp.proto | 11 ++ proto/GetAllUnlockNameCardRsp.proto | 8 + proto/GetAuthkeyReq.proto | 9 + proto/GetAuthkeyRsp.proto | 12 ++ proto/GetGachaInfoRsp.proto | 11 ++ proto/GetPlayerAskFriendListRsp.proto | 10 + proto/GetPlayerBlacklistRsp.proto | 10 + proto/GetPlayerFriendListRsp.proto | 11 ++ proto/GetPlayerSocialDetailReq.proto | 7 + proto/GetPlayerSocialDetailRsp.proto | 10 + proto/GetPlayerTokenReq.proto | 11 ++ proto/GetPlayerTokenRsp.proto | 19 ++ proto/GetSceneAreaReq.proto | 8 + proto/GetSceneAreaRsp.proto | 12 ++ proto/GetScenePointReq.proto | 8 + proto/GetScenePointRsp.proto | 16 ++ proto/GetShopReq.proto | 7 + proto/GetShopRsp.proto | 10 + proto/GetShopmallDataRsp.proto | 8 + proto/GetWorldMpInfoRsp.proto | 9 + proto/H5ActivityIdsNotify.proto | 7 + proto/HeadImage.proto | 7 + proto/HitColliderType.proto | 10 + proto/HitCollision.proto | 15 ++ proto/HostPlayerNotify.proto | 8 + proto/InterOpType.proto | 8 + proto/InteractType.proto | 17 ++ proto/Item.proto | 17 ++ proto/ItemAddHintNotify.proto | 16 ++ proto/ItemExceedLimitNotify.proto | 10 + proto/ItemGivingReq.proto | 11 ++ proto/ItemGivingRsp.proto | 8 + proto/ItemHint.proto | 9 + proto/ItemParam.proto | 8 + proto/LifeStateChangeNotify.proto | 14 ++ proto/MPLevelEntityInfo.proto | 11 ++ proto/MapMarkFromType.proto | 9 + proto/MapMarkPoint.proto | 17 ++ proto/MapMarkPointType.proto | 12 ++ proto/MarkMapReq.proto | 12 ++ proto/MassivePropParam.proto | 10 + proto/MassivePropSyncInfo.proto | 10 + proto/Material.proto | 10 + proto/MaterialDeleteInfo.proto | 16 ++ proto/MaterialInfo.proto | 8 + proto/MathQuaternion.proto | 10 + proto/ModifierDurability.proto | 8 + proto/MonsterBornType.proto | 9 + proto/MonsterRoute.proto | 12 ++ proto/MotionInfo.proto | 18 ++ proto/MotionState.proto | 53 ++++++ proto/MovingPlatformType.proto | 7 + proto/MpSettingType.proto | 9 + proto/OnlinePlayerInfo.proto | 20 ++ proto/OpenStateUpdateNotify.proto | 7 + proto/Operation.proto | 10 + proto/PacketHead.proto | 8 + proto/PingReq.proto | 8 + proto/PingRsp.proto | 9 + proto/PlatformInfo.proto | 25 +++ proto/PlayerApplyEnterMpNotify.proto | 10 + proto/PlayerApplyEnterMpReason.proto | 19 ++ proto/PlayerApplyEnterMpReq.proto | 7 + proto/PlayerApplyEnterMpResultNotify.proto | 12 ++ proto/PlayerApplyEnterMpResultReq.proto | 8 + proto/PlayerApplyEnterMpResultRsp.proto | 10 + proto/PlayerApplyEnterMpRsp.proto | 9 + proto/PlayerChatNotify.proto | 10 + proto/PlayerChatReq.proto | 10 + proto/PlayerChatRsp.proto | 8 + proto/PlayerDataNotify.proto | 13 ++ proto/PlayerDieType.proto | 15 ++ proto/PlayerEnterSceneInfoNotify.proto | 15 ++ proto/PlayerEnterSceneNotify.proto | 25 +++ proto/PlayerGameTimeNotify.proto | 8 + proto/PlayerGetForceQuitBanInfoRsp.proto | 9 + proto/PlayerLocationInfo.proto | 11 ++ proto/PlayerLoginReq.proto | 41 ++++ proto/PlayerLoginRsp.proto | 41 ++++ proto/PlayerPropNotify.proto | 9 + proto/PlayerRTTInfo.proto | 8 + proto/PlayerSetPauseReq.proto | 7 + proto/PlayerStoreNotify.proto | 12 ++ proto/PlayerTimeNotify.proto | 9 + proto/PostEnterSceneRsp.proto | 8 + proto/PrivateChatNotify.proto | 9 + proto/PrivateChatReq.proto | 11 ++ proto/PrivateChatRsp.proto | 8 + proto/PropChangeReason.proto | 20 ++ proto/PropPair.proto | 10 + proto/PropValue.proto | 12 ++ proto/ProtEntityType.proto | 21 ++ proto/ProudSkillChangeNotify.proto | 10 + proto/ProudSkillExtraLevelNotify.proto | 10 + proto/PullPrivateChatReq.proto | 9 + proto/PullPrivateChatRsp.proto | 10 + proto/PullRecentChatRsp.proto | 10 + proto/QueryCurrRegionHttpRsp.proto | 14 ++ proto/QueryRegionListHttpRsp.proto | 13 ++ proto/RegionInfo.proto | 29 +++ proto/RegionSimpleInfo.proto | 10 + proto/Reliquary.proto | 11 ++ proto/ReliquaryPromoteReq.proto | 8 + proto/ReliquaryPromoteRsp.proto | 12 ++ proto/ReliquaryUpgradeReq.proto | 11 ++ proto/ReliquaryUpgradeRsp.proto | 13 ++ proto/ResVersionConfig.proto | 11 ++ proto/ResinCard.proto | 10 + proto/ResinChangeNotify.proto | 9 + proto/ResinCostType.proto | 12 ++ proto/Route.proto | 10 + proto/RoutePoint.proto | 19 ++ proto/SceneAreaWeatherNotify.proto | 11 ++ proto/SceneAvatarInfo.proto | 28 +++ proto/SceneEntityAiInfo.proto | 16 ++ proto/SceneEntityAppearNotify.proto | 12 ++ proto/SceneEntityDisappearNotify.proto | 10 + proto/SceneEntityInfo.proto | 39 ++++ proto/SceneEntityMoveNotify.proto | 12 ++ proto/SceneForceUnlockNotify.proto | 8 + proto/SceneGadgetInfo.proto | 43 +++++ proto/SceneInitFinishRsp.proto | 8 + proto/SceneKickPlayerNotify.proto | 8 + proto/SceneKickPlayerReq.proto | 7 + proto/SceneKickPlayerRsp.proto | 8 + proto/SceneMonsterInfo.proto | 30 +++ proto/SceneNpcInfo.proto | 10 + proto/ScenePlayerInfo.proto | 14 ++ proto/ScenePlayerInfoNotify.proto | 9 + proto/ScenePlayerLocationNotify.proto | 10 + proto/SceneReliquaryInfo.proto | 10 + proto/SceneTeamAvatar.proto | 29 +++ proto/SceneTeamUpdateNotify.proto | 10 + proto/SceneTimeNotify.proto | 9 + proto/SceneUnlockInfo.proto | 9 + proto/SceneUnlockInfoNotify.proto | 9 + proto/SceneWeaponInfo.proto | 16 ++ proto/ServantInfo.proto | 8 + proto/ServerBuff.proto | 12 ++ proto/ServerTimeNotify.proto | 7 + proto/SetEquipLockStateReq.proto | 8 + proto/SetEquipLockStateRsp.proto | 9 + proto/SetNameCardReq.proto | 7 + proto/SetNameCardRsp.proto | 8 + proto/SetPlayerBornDataReq.proto | 8 + proto/SetPlayerHeadImageReq.proto | 7 + proto/SetPlayerHeadImageRsp.proto | 10 + proto/SetPlayerNameReq.proto | 7 + proto/SetPlayerNameRsp.proto | 8 + proto/SetPlayerPropReq.proto | 9 + proto/SetPlayerPropRsp.proto | 7 + proto/SetPlayerSignatureReq.proto | 7 + proto/SetPlayerSignatureRsp.proto | 8 + proto/SetUpAvatarTeamReq.proto | 9 + proto/SetUpAvatarTeamRsp.proto | 10 + proto/Shop.proto | 17 ++ proto/ShopCardProduct.proto | 18 ++ proto/ShopGoods.proto | 24 +++ proto/ShopGoodsDisableType.proto | 9 + proto/ShopMcoinProduct.proto | 13 ++ proto/ShortAbilityHashPair.proto | 8 + proto/SocialDetail.proto | 34 ++++ proto/SocialShowAvatarInfo.proto | 8 + proto/StoreItemChangeNotify.proto | 11 ++ proto/StoreItemDelNotify.proto | 10 + proto/StoreType.proto | 9 + proto/StoreWeightLimitNotify.proto | 14 ++ proto/SyncScenePlayTeamEntityNotify.proto | 8 + proto/SyncTeamEntityNotify.proto | 10 + proto/SystemHint.proto | 7 + proto/TakeoffEquipReq.proto | 8 + proto/TakeoffEquipRsp.proto | 9 + proto/TeamEnterSceneInfo.proto | 11 ++ proto/TeamEntityInfo.proto | 11 ++ proto/TeamResonanceChangeNotify.proto | 9 + proto/TowerAllDataRsp.proto | 27 +++ proto/TowerCurLevelRecord.proto | 13 ++ proto/TowerFloorRecord.proto | 12 ++ proto/TowerLevelRecord.proto | 8 + proto/TowerMonthlyBrief.proto | 10 + proto/TowerTeam.proto | 8 + proto/TrackingIOInfo.proto | 13 ++ proto/TrialAvatarGrantRecord.proto | 8 + proto/TrialAvatarInfo.proto | 12 ++ proto/UnionCmd.proto | 8 + proto/UnionCmdNotify.proto | 9 + proto/UnlockAvatarTalentReq.proto | 8 + proto/UnlockAvatarTalentRsp.proto | 9 + proto/UnlockNameCardNotify.proto | 7 + proto/UseItemReq.proto | 11 ++ proto/UseItemRsp.proto | 11 ++ proto/Vector.proto | 9 + proto/VisionType.proto | 21 ++ proto/Weapon.proto | 10 + proto/WeaponAwakenReq.proto | 9 + proto/WeaponAwakenRsp.proto | 12 ++ proto/WeaponPromoteReq.proto | 7 + proto/WeaponPromoteRsp.proto | 10 + proto/WeaponUpgradeReq.proto | 11 ++ proto/WeaponUpgradeRsp.proto | 13 ++ proto/WearEquipReq.proto | 8 + proto/WearEquipRsp.proto | 9 + proto/WeeklyBossResinDiscountInfo.proto | 10 + proto/WorldDataNotify.proto | 9 + proto/WorldPlayerDieNotify.proto | 14 ++ proto/WorldPlayerInfoNotify.proto | 10 + proto/WorldPlayerLocationNotify.proto | 9 + proto/WorldPlayerRTTNotify.proto | 9 + proto/WorldPlayerReviveRsp.proto | 7 + 367 files changed, 4497 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 README.md create mode 100644 proto/AbilityAppliedAbility.proto create mode 100644 proto/AbilityAppliedModifier.proto create mode 100644 proto/AbilityAttachedModifier.proto create mode 100644 proto/AbilityChangeNotify.proto create mode 100644 proto/AbilityControlBlock.proto create mode 100644 proto/AbilityEmbryo.proto create mode 100644 proto/AbilityIdentifier.proto create mode 100644 proto/AbilityInvocationsNotify.proto create mode 100644 proto/AbilityInvokeArgument.proto create mode 100644 proto/AbilityInvokeEntry.proto create mode 100644 proto/AbilityInvokeEntryHead.proto create mode 100644 proto/AbilityMixinRecoverInfo.proto create mode 100644 proto/AbilityScalarType.proto create mode 100644 proto/AbilityScalarValueEntry.proto create mode 100644 proto/AbilityString.proto create mode 100644 proto/AbilitySyncStateInfo.proto create mode 100644 proto/ActionReasonType.proto create mode 100644 proto/ActivityInfo.proto create mode 100644 proto/ActivityNullDetailInfo.proto create mode 100644 proto/ActivityWatcherInfo.proto create mode 100644 proto/AiSkillCdInfo.proto create mode 100644 proto/AiSyncInfo.proto create mode 100644 proto/AiThreatInfo.proto create mode 100644 proto/AnimatorParameterValueInfo.proto create mode 100644 proto/AnimatorParameterValueInfoPair.proto create mode 100644 proto/AskAddFriendNotify.proto create mode 100644 proto/AskAddFriendReq.proto create mode 100644 proto/AskAddFriendRsp.proto create mode 100644 proto/AttackHitEffectResult.proto create mode 100644 proto/AttackResult.proto create mode 100644 proto/AvatarAddNotify.proto create mode 100644 proto/AvatarChangeCostumeNotify.proto create mode 100644 proto/AvatarChangeCostumeReq.proto create mode 100644 proto/AvatarChangeCostumeRsp.proto create mode 100644 proto/AvatarDataNotify.proto create mode 100644 proto/AvatarDieAnimationEndReq.proto create mode 100644 proto/AvatarDieAnimationEndRsp.proto create mode 100644 proto/AvatarEnterSceneInfo.proto create mode 100644 proto/AvatarEquipAffixInfo.proto create mode 100644 proto/AvatarEquipChangeNotify.proto create mode 100644 proto/AvatarExpeditionState.proto create mode 100644 proto/AvatarFetterInfo.proto create mode 100644 proto/AvatarFightPropNotify.proto create mode 100644 proto/AvatarFightPropUpdateNotify.proto create mode 100644 proto/AvatarFlycloakChangeNotify.proto create mode 100644 proto/AvatarGainCostumeNotify.proto create mode 100644 proto/AvatarGainFlycloakNotify.proto create mode 100644 proto/AvatarInfo.proto create mode 100644 proto/AvatarLifeStateChangeNotify.proto create mode 100644 proto/AvatarPromoteReq.proto create mode 100644 proto/AvatarPromoteRsp.proto create mode 100644 proto/AvatarPropNotify.proto create mode 100644 proto/AvatarSkillChangeNotify.proto create mode 100644 proto/AvatarSkillInfo.proto create mode 100644 proto/AvatarSkillUpgradeReq.proto create mode 100644 proto/AvatarSkillUpgradeRsp.proto create mode 100644 proto/AvatarTeam.proto create mode 100644 proto/AvatarTeamResonanceInfo.proto create mode 100644 proto/AvatarTeamUpdateNotify.proto create mode 100644 proto/AvatarUnlockTalentNotify.proto create mode 100644 proto/AvatarUpgradeReq.proto create mode 100644 proto/AvatarUpgradeRsp.proto create mode 100644 proto/AvatarWearFlycloakReq.proto create mode 100644 proto/AvatarWearFlycloakRsp.proto create mode 100644 proto/Birthday.proto create mode 100644 proto/BlockInfo.proto create mode 100644 proto/CalcWeaponUpgradeReturnItemsReq.proto create mode 100644 proto/CalcWeaponUpgradeReturnItemsRsp.proto create mode 100644 proto/ChangeAvatarReq.proto create mode 100644 proto/ChangeAvatarRsp.proto create mode 100644 proto/ChangeGameTimeReq.proto create mode 100644 proto/ChangeGameTimeRsp.proto create mode 100644 proto/ChangeHpReason.proto create mode 100644 proto/ChangeMpTeamAvatarReq.proto create mode 100644 proto/ChangeMpTeamAvatarRsp.proto create mode 100644 proto/ChangeTeamNameReq.proto create mode 100644 proto/ChangeTeamNameRsp.proto create mode 100644 proto/ChatInfo.proto create mode 100644 proto/ChooseCurAvatarTeamReq.proto create mode 100644 proto/ChooseCurAvatarTeamRsp.proto create mode 100644 proto/CityInfo.proto create mode 100644 proto/ClientAbilityChangeNotify.proto create mode 100644 proto/ClientAbilityInitBeginNotify.proto create mode 100644 proto/ClientAbilityInitFinishNotify.proto create mode 100644 proto/CombatInvocationsNotify.proto create mode 100644 proto/CombatInvokeEntry.proto create mode 100644 proto/CombatTypeArgument.proto create mode 100644 proto/CoopCg.proto create mode 100644 proto/CoopChapter.proto create mode 100644 proto/CoopChapterState.proto create mode 100644 proto/CoopDataNotify.proto create mode 100644 proto/CoopPoint.proto create mode 100644 proto/CoopPointState.proto create mode 100644 proto/CoopReward.proto create mode 100644 proto/CoopRewardState.proto create mode 100644 proto/CountDownDelete.proto create mode 100644 proto/DateTimeDelete.proto create mode 100644 proto/DealAddFriendReq.proto create mode 100644 proto/DealAddFriendResultType.proto create mode 100644 proto/DealAddFriendRsp.proto create mode 100644 proto/DelTeamEntityNotify.proto create mode 100644 proto/DelayWeekCountDownDelete.proto create mode 100644 proto/DeleteFriendNotify.proto create mode 100644 proto/DeleteFriendReq.proto create mode 100644 proto/DeleteFriendRsp.proto create mode 100644 proto/DestroyMaterialReq.proto create mode 100644 proto/DestroyMaterialRsp.proto create mode 100644 proto/DoGachaReq.proto create mode 100644 proto/DoGachaRsp.proto create mode 100644 proto/DropHintNotify.proto create mode 100644 proto/DungeonEntryInfo.proto create mode 100644 proto/DungeonEntryInfoReq.proto create mode 100644 proto/DungeonEntryInfoRsp.proto create mode 100644 proto/EnterSceneDoneRsp.proto create mode 100644 proto/EnterScenePeerNotify.proto create mode 100644 proto/EnterSceneReadyRsp.proto create mode 100644 proto/EnterType.proto create mode 100644 proto/EnterWorldAreaReq.proto create mode 100644 proto/EnterWorldAreaRsp.proto create mode 100644 proto/EntityAiSyncNotify.proto create mode 100644 proto/EntityAuthorityInfo.proto create mode 100644 proto/EntityClientData.proto create mode 100644 proto/EntityEnvironmentInfo.proto create mode 100644 proto/EntityFightPropChangeReasonNotify.proto create mode 100644 proto/EntityFightPropUpdateNotify.proto create mode 100644 proto/EntityMoveInfo.proto create mode 100644 proto/EntityPropNotify.proto create mode 100644 proto/EntityRendererChangedInfo.proto create mode 100644 proto/Equip.proto create mode 100644 proto/EvtAiSyncCombatThreatInfoNotify.proto create mode 100644 proto/EvtAiSyncSkillCdNotify.proto create mode 100644 proto/EvtBeingHitInfo.proto create mode 100644 proto/EvtBeingHitNotify.proto create mode 100644 proto/EvtBeingHitsCombineNotify.proto create mode 100644 proto/EvtCreateGadgetNotify.proto create mode 100644 proto/EvtDestroyGadgetNotify.proto create mode 100644 proto/EvtHittingOtherInfo.proto create mode 100644 proto/FeatureBlockInfo.proto create mode 100644 proto/FetterData.proto create mode 100644 proto/FightPropPair.proto create mode 100644 proto/ForwardType.proto create mode 100644 proto/FriendBrief.proto create mode 100644 proto/FriendEnterHomeOption.proto create mode 100644 proto/FriendOnlineState.proto create mode 100644 proto/Furniture.proto create mode 100644 proto/GachaInfo.proto create mode 100644 proto/GachaItem.proto create mode 100644 proto/GachaTransferItem.proto create mode 100644 proto/GachaUpInfo.proto create mode 100644 proto/GadgetBornType.proto create mode 100644 proto/GadgetClientParam.proto create mode 100644 proto/GadgetCrucibleInfo.proto create mode 100644 proto/GadgetInteractReq.proto create mode 100644 proto/GadgetInteractRsp.proto create mode 100644 proto/GadgetPlayInfo.proto create mode 100644 proto/GetActivityInfoRsp.proto create mode 100644 proto/GetAllUnlockNameCardRsp.proto create mode 100644 proto/GetAuthkeyReq.proto create mode 100644 proto/GetAuthkeyRsp.proto create mode 100644 proto/GetGachaInfoRsp.proto create mode 100644 proto/GetPlayerAskFriendListRsp.proto create mode 100644 proto/GetPlayerBlacklistRsp.proto create mode 100644 proto/GetPlayerFriendListRsp.proto create mode 100644 proto/GetPlayerSocialDetailReq.proto create mode 100644 proto/GetPlayerSocialDetailRsp.proto create mode 100644 proto/GetPlayerTokenReq.proto create mode 100644 proto/GetPlayerTokenRsp.proto create mode 100644 proto/GetSceneAreaReq.proto create mode 100644 proto/GetSceneAreaRsp.proto create mode 100644 proto/GetScenePointReq.proto create mode 100644 proto/GetScenePointRsp.proto create mode 100644 proto/GetShopReq.proto create mode 100644 proto/GetShopRsp.proto create mode 100644 proto/GetShopmallDataRsp.proto create mode 100644 proto/GetWorldMpInfoRsp.proto create mode 100644 proto/H5ActivityIdsNotify.proto create mode 100644 proto/HeadImage.proto create mode 100644 proto/HitColliderType.proto create mode 100644 proto/HitCollision.proto create mode 100644 proto/HostPlayerNotify.proto create mode 100644 proto/InterOpType.proto create mode 100644 proto/InteractType.proto create mode 100644 proto/Item.proto create mode 100644 proto/ItemAddHintNotify.proto create mode 100644 proto/ItemExceedLimitNotify.proto create mode 100644 proto/ItemGivingReq.proto create mode 100644 proto/ItemGivingRsp.proto create mode 100644 proto/ItemHint.proto create mode 100644 proto/ItemParam.proto create mode 100644 proto/LifeStateChangeNotify.proto create mode 100644 proto/MPLevelEntityInfo.proto create mode 100644 proto/MapMarkFromType.proto create mode 100644 proto/MapMarkPoint.proto create mode 100644 proto/MapMarkPointType.proto create mode 100644 proto/MarkMapReq.proto create mode 100644 proto/MassivePropParam.proto create mode 100644 proto/MassivePropSyncInfo.proto create mode 100644 proto/Material.proto create mode 100644 proto/MaterialDeleteInfo.proto create mode 100644 proto/MaterialInfo.proto create mode 100644 proto/MathQuaternion.proto create mode 100644 proto/ModifierDurability.proto create mode 100644 proto/MonsterBornType.proto create mode 100644 proto/MonsterRoute.proto create mode 100644 proto/MotionInfo.proto create mode 100644 proto/MotionState.proto create mode 100644 proto/MovingPlatformType.proto create mode 100644 proto/MpSettingType.proto create mode 100644 proto/OnlinePlayerInfo.proto create mode 100644 proto/OpenStateUpdateNotify.proto create mode 100644 proto/Operation.proto create mode 100644 proto/PacketHead.proto create mode 100644 proto/PingReq.proto create mode 100644 proto/PingRsp.proto create mode 100644 proto/PlatformInfo.proto create mode 100644 proto/PlayerApplyEnterMpNotify.proto create mode 100644 proto/PlayerApplyEnterMpReason.proto create mode 100644 proto/PlayerApplyEnterMpReq.proto create mode 100644 proto/PlayerApplyEnterMpResultNotify.proto create mode 100644 proto/PlayerApplyEnterMpResultReq.proto create mode 100644 proto/PlayerApplyEnterMpResultRsp.proto create mode 100644 proto/PlayerApplyEnterMpRsp.proto create mode 100644 proto/PlayerChatNotify.proto create mode 100644 proto/PlayerChatReq.proto create mode 100644 proto/PlayerChatRsp.proto create mode 100644 proto/PlayerDataNotify.proto create mode 100644 proto/PlayerDieType.proto create mode 100644 proto/PlayerEnterSceneInfoNotify.proto create mode 100644 proto/PlayerEnterSceneNotify.proto create mode 100644 proto/PlayerGameTimeNotify.proto create mode 100644 proto/PlayerGetForceQuitBanInfoRsp.proto create mode 100644 proto/PlayerLocationInfo.proto create mode 100644 proto/PlayerLoginReq.proto create mode 100644 proto/PlayerLoginRsp.proto create mode 100644 proto/PlayerPropNotify.proto create mode 100644 proto/PlayerRTTInfo.proto create mode 100644 proto/PlayerSetPauseReq.proto create mode 100644 proto/PlayerStoreNotify.proto create mode 100644 proto/PlayerTimeNotify.proto create mode 100644 proto/PostEnterSceneRsp.proto create mode 100644 proto/PrivateChatNotify.proto create mode 100644 proto/PrivateChatReq.proto create mode 100644 proto/PrivateChatRsp.proto create mode 100644 proto/PropChangeReason.proto create mode 100644 proto/PropPair.proto create mode 100644 proto/PropValue.proto create mode 100644 proto/ProtEntityType.proto create mode 100644 proto/ProudSkillChangeNotify.proto create mode 100644 proto/ProudSkillExtraLevelNotify.proto create mode 100644 proto/PullPrivateChatReq.proto create mode 100644 proto/PullPrivateChatRsp.proto create mode 100644 proto/PullRecentChatRsp.proto create mode 100644 proto/QueryCurrRegionHttpRsp.proto create mode 100644 proto/QueryRegionListHttpRsp.proto create mode 100644 proto/RegionInfo.proto create mode 100644 proto/RegionSimpleInfo.proto create mode 100644 proto/Reliquary.proto create mode 100644 proto/ReliquaryPromoteReq.proto create mode 100644 proto/ReliquaryPromoteRsp.proto create mode 100644 proto/ReliquaryUpgradeReq.proto create mode 100644 proto/ReliquaryUpgradeRsp.proto create mode 100644 proto/ResVersionConfig.proto create mode 100644 proto/ResinCard.proto create mode 100644 proto/ResinChangeNotify.proto create mode 100644 proto/ResinCostType.proto create mode 100644 proto/Route.proto create mode 100644 proto/RoutePoint.proto create mode 100644 proto/SceneAreaWeatherNotify.proto create mode 100644 proto/SceneAvatarInfo.proto create mode 100644 proto/SceneEntityAiInfo.proto create mode 100644 proto/SceneEntityAppearNotify.proto create mode 100644 proto/SceneEntityDisappearNotify.proto create mode 100644 proto/SceneEntityInfo.proto create mode 100644 proto/SceneEntityMoveNotify.proto create mode 100644 proto/SceneForceUnlockNotify.proto create mode 100644 proto/SceneGadgetInfo.proto create mode 100644 proto/SceneInitFinishRsp.proto create mode 100644 proto/SceneKickPlayerNotify.proto create mode 100644 proto/SceneKickPlayerReq.proto create mode 100644 proto/SceneKickPlayerRsp.proto create mode 100644 proto/SceneMonsterInfo.proto create mode 100644 proto/SceneNpcInfo.proto create mode 100644 proto/ScenePlayerInfo.proto create mode 100644 proto/ScenePlayerInfoNotify.proto create mode 100644 proto/ScenePlayerLocationNotify.proto create mode 100644 proto/SceneReliquaryInfo.proto create mode 100644 proto/SceneTeamAvatar.proto create mode 100644 proto/SceneTeamUpdateNotify.proto create mode 100644 proto/SceneTimeNotify.proto create mode 100644 proto/SceneUnlockInfo.proto create mode 100644 proto/SceneUnlockInfoNotify.proto create mode 100644 proto/SceneWeaponInfo.proto create mode 100644 proto/ServantInfo.proto create mode 100644 proto/ServerBuff.proto create mode 100644 proto/ServerTimeNotify.proto create mode 100644 proto/SetEquipLockStateReq.proto create mode 100644 proto/SetEquipLockStateRsp.proto create mode 100644 proto/SetNameCardReq.proto create mode 100644 proto/SetNameCardRsp.proto create mode 100644 proto/SetPlayerBornDataReq.proto create mode 100644 proto/SetPlayerHeadImageReq.proto create mode 100644 proto/SetPlayerHeadImageRsp.proto create mode 100644 proto/SetPlayerNameReq.proto create mode 100644 proto/SetPlayerNameRsp.proto create mode 100644 proto/SetPlayerPropReq.proto create mode 100644 proto/SetPlayerPropRsp.proto create mode 100644 proto/SetPlayerSignatureReq.proto create mode 100644 proto/SetPlayerSignatureRsp.proto create mode 100644 proto/SetUpAvatarTeamReq.proto create mode 100644 proto/SetUpAvatarTeamRsp.proto create mode 100644 proto/Shop.proto create mode 100644 proto/ShopCardProduct.proto create mode 100644 proto/ShopGoods.proto create mode 100644 proto/ShopGoodsDisableType.proto create mode 100644 proto/ShopMcoinProduct.proto create mode 100644 proto/ShortAbilityHashPair.proto create mode 100644 proto/SocialDetail.proto create mode 100644 proto/SocialShowAvatarInfo.proto create mode 100644 proto/StoreItemChangeNotify.proto create mode 100644 proto/StoreItemDelNotify.proto create mode 100644 proto/StoreType.proto create mode 100644 proto/StoreWeightLimitNotify.proto create mode 100644 proto/SyncScenePlayTeamEntityNotify.proto create mode 100644 proto/SyncTeamEntityNotify.proto create mode 100644 proto/SystemHint.proto create mode 100644 proto/TakeoffEquipReq.proto create mode 100644 proto/TakeoffEquipRsp.proto create mode 100644 proto/TeamEnterSceneInfo.proto create mode 100644 proto/TeamEntityInfo.proto create mode 100644 proto/TeamResonanceChangeNotify.proto create mode 100644 proto/TowerAllDataRsp.proto create mode 100644 proto/TowerCurLevelRecord.proto create mode 100644 proto/TowerFloorRecord.proto create mode 100644 proto/TowerLevelRecord.proto create mode 100644 proto/TowerMonthlyBrief.proto create mode 100644 proto/TowerTeam.proto create mode 100644 proto/TrackingIOInfo.proto create mode 100644 proto/TrialAvatarGrantRecord.proto create mode 100644 proto/TrialAvatarInfo.proto create mode 100644 proto/UnionCmd.proto create mode 100644 proto/UnionCmdNotify.proto create mode 100644 proto/UnlockAvatarTalentReq.proto create mode 100644 proto/UnlockAvatarTalentRsp.proto create mode 100644 proto/UnlockNameCardNotify.proto create mode 100644 proto/UseItemReq.proto create mode 100644 proto/UseItemRsp.proto create mode 100644 proto/Vector.proto create mode 100644 proto/VisionType.proto create mode 100644 proto/Weapon.proto create mode 100644 proto/WeaponAwakenReq.proto create mode 100644 proto/WeaponAwakenRsp.proto create mode 100644 proto/WeaponPromoteReq.proto create mode 100644 proto/WeaponPromoteRsp.proto create mode 100644 proto/WeaponUpgradeReq.proto create mode 100644 proto/WeaponUpgradeRsp.proto create mode 100644 proto/WearEquipReq.proto create mode 100644 proto/WearEquipRsp.proto create mode 100644 proto/WeeklyBossResinDiscountInfo.proto create mode 100644 proto/WorldDataNotify.proto create mode 100644 proto/WorldPlayerDieNotify.proto create mode 100644 proto/WorldPlayerInfoNotify.proto create mode 100644 proto/WorldPlayerLocationNotify.proto create mode 100644 proto/WorldPlayerRTTNotify.proto create mode 100644 proto/WorldPlayerReviveRsp.proto diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f78da9f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +proto/auto/ +proto/protoc.exe diff --git a/README.md b/README.md new file mode 100644 index 0000000..236cc77 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Grasscutter-Protos + Protobuf files for Grasscutter diff --git a/proto/AbilityAppliedAbility.proto b/proto/AbilityAppliedAbility.proto new file mode 100644 index 0000000..f9fd845 --- /dev/null +++ b/proto/AbilityAppliedAbility.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityScalarValueEntry.proto"; +import "AbilityString.proto"; + +message AbilityAppliedAbility { + AbilityString abilityName = 1; + AbilityString abilityOverride = 2; + repeated AbilityScalarValueEntry overrideMap = 3; + uint32 instancedAbilityId = 4; +} diff --git a/proto/AbilityAppliedModifier.proto b/proto/AbilityAppliedModifier.proto new file mode 100644 index 0000000..857fd8c --- /dev/null +++ b/proto/AbilityAppliedModifier.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityAttachedModifier.proto"; +import "AbilityString.proto"; +import "ModifierDurability.proto"; + +message AbilityAppliedModifier { + int32 modifierLocalId = 1; + uint32 parentAbilityEntityId = 2; + AbilityString parentAbilityName = 3; + AbilityString parentAbilityOverride = 4; + uint32 instancedAbilityId = 5; + uint32 instancedModifierId = 6; + float existDuration = 7; + AbilityAttachedModifier attachedInstancedModifier = 8; + uint32 applyEntityId = 9; + bool isAttachedParentAbility = 10; + ModifierDurability modifierDurability = 11; + uint32 sbuffUid = 12; + bool isServerbuffModifier = 13; +} diff --git a/proto/AbilityAttachedModifier.proto b/proto/AbilityAttachedModifier.proto new file mode 100644 index 0000000..c99cb84 --- /dev/null +++ b/proto/AbilityAttachedModifier.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AbilityAttachedModifier { + bool isInvalid = 1; + uint32 ownerEntityId = 2; + uint32 instancedModifierId = 3; + bool isServerbuffModifier = 4; + int32 attachNameHash = 5; +} diff --git a/proto/AbilityChangeNotify.proto b/proto/AbilityChangeNotify.proto new file mode 100644 index 0000000..4a3a63e --- /dev/null +++ b/proto/AbilityChangeNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityControlBlock.proto"; + +message AbilityChangeNotify { + uint32 entityId = 1; + AbilityControlBlock abilityControlBlock = 2; +} diff --git a/proto/AbilityControlBlock.proto b/proto/AbilityControlBlock.proto new file mode 100644 index 0000000..d47c3c9 --- /dev/null +++ b/proto/AbilityControlBlock.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityEmbryo.proto"; + +message AbilityControlBlock { + repeated AbilityEmbryo abilityEmbryoList = 1; +} diff --git a/proto/AbilityEmbryo.proto b/proto/AbilityEmbryo.proto new file mode 100644 index 0000000..edbb26b --- /dev/null +++ b/proto/AbilityEmbryo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AbilityEmbryo { + uint32 abilityId = 1; + fixed32 abilityNameHash = 2; + fixed32 abilityOverrideNameHash = 3; +} diff --git a/proto/AbilityIdentifier.proto b/proto/AbilityIdentifier.proto new file mode 100644 index 0000000..f1ddecd --- /dev/null +++ b/proto/AbilityIdentifier.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AbilityIdentifier { + uint32 instancedAbilityId = 1; + uint32 abilityCasterId = 2; + int32 localId = 3; + uint32 instancedModifierId = 4; + uint32 modifierOwnerId = 5; + bool isServerbuffModifier = 6; +} diff --git a/proto/AbilityInvocationsNotify.proto b/proto/AbilityInvocationsNotify.proto new file mode 100644 index 0000000..a385354 --- /dev/null +++ b/proto/AbilityInvocationsNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityInvokeEntry.proto"; + +message AbilityInvocationsNotify { + repeated AbilityInvokeEntry invokes = 1; +} diff --git a/proto/AbilityInvokeArgument.proto b/proto/AbilityInvokeArgument.proto new file mode 100644 index 0000000..a569832 --- /dev/null +++ b/proto/AbilityInvokeArgument.proto @@ -0,0 +1,48 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum AbilityInvokeArgument { + AbilityNone = 0; + AbilityMetaModifierChange = 1; + AbilityMetaCommandModifierChangeRequest = 2; + AbilityMetaSpecialFloatArgument = 3; + AbilityMetaOverrideParam = 4; + AbilityMetaClearOverrideParam = 5; + AbilityMetaReinitOverridemap = 6; + AbilityMetaGlobalFloatValue = 7; + AbilityMetaClearGlobalFloatValue = 8; + AbilityMetaAbilityElementStrength = 9; + AbilityMetaAddOrGetAbilityAndTrigger = 10; + AbilityMetaSetKilledSetate = 11; + AbilityMetaSetAbilityTrigger = 12; + AbilityMetaAddNewAbility = 13; + AbilityMetaRemoveAbility = 14; + AbilityMetaSetModifierApplyEntity = 15; + AbilityMetaModifierDurabilityChange = 16; + AbilityMetaElementReactionVisual = 17; + AbilityMetaSetPoseParameter = 18; + AbilityMetaUpdateBaseReactionDamage = 19; + AbilityActionTriggerAbility = 50; + AbilityActionSetCrashDamage = 51; + AbilityActionEffect = 52; + AbilityActionSummon = 53; + AbilityActionBlink = 54; + AbilityActionCreateGadget = 55; + AbilityActionApplyLevelModifier = 56; + AbilityActionGenerateElemBall = 57; + AbilityActionSetRandomOverrideMapValue = 58; + AbilityActionServerMonsterLog = 59; + AbilityMixinAvatarSteerByCamera = 100; + AbilityMixinMonsterDefend = 101; + AbilityMixinWindZone = 102; + AbilityMixinCostStamina = 103; + AbilityMixinEliteShield = 104; + AbilityMixinElementShield = 105; + AbilityMixinGlobalShield = 106; + AbilityMixinShieldBar = 107; + AbilityMixinWindSeedSpawner = 108; + AbilityMixinDoActionByElementReaction = 109; + AbilityMixinFieldEntityCountChange = 110; + AbilityMixinScenePropSync = 111; +} diff --git a/proto/AbilityInvokeEntry.proto b/proto/AbilityInvokeEntry.proto new file mode 100644 index 0000000..9a31043 --- /dev/null +++ b/proto/AbilityInvokeEntry.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityInvokeArgument.proto"; +import "AbilityInvokeEntryHead.proto"; +import "ForwardType.proto"; + +message AbilityInvokeEntry { + AbilityInvokeEntryHead head = 1; + AbilityInvokeArgument argumentType = 2; + bytes abilityData = 3; + uint32 entityId = 4; + ForwardType forwardType = 5; + uint32 forwardPeer = 6; + uint32 eventId = 7; +} diff --git a/proto/AbilityInvokeEntryHead.proto b/proto/AbilityInvokeEntryHead.proto new file mode 100644 index 0000000..de7196c --- /dev/null +++ b/proto/AbilityInvokeEntryHead.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AbilityInvokeEntryHead { + uint32 instancedAbilityId = 1; + uint32 instancedModifierId = 2; + int32 localId = 3; + int32 modifierConfigLocalId = 4; + uint32 targetId = 5; + bool isServerbuffModifier = 6; + uint32 serverBuffUid = 7; +} diff --git a/proto/AbilityMixinRecoverInfo.proto b/proto/AbilityMixinRecoverInfo.proto new file mode 100644 index 0000000..a23f0d4 --- /dev/null +++ b/proto/AbilityMixinRecoverInfo.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MassivePropSyncInfo.proto"; + +message AbilityMixinRecoverInfo { + oneof source { + uint32 instancedAbilityId = 1; + uint32 instancedModifierId = 2; + } + uint32 localId = 3; + repeated uint32 dataList = 4; + bool isServerbuffModifier = 5; + repeated MassivePropSyncInfo massivePropList = 6; +} diff --git a/proto/AbilityScalarType.proto b/proto/AbilityScalarType.proto new file mode 100644 index 0000000..9f5ce16 --- /dev/null +++ b/proto/AbilityScalarType.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum AbilityScalarType { + Unknow = 0; + Float = 1; + Int = 2; + Bool = 3; + Trigger = 4; + String = 5; + Uint = 6; +} diff --git a/proto/AbilityScalarValueEntry.proto b/proto/AbilityScalarValueEntry.proto new file mode 100644 index 0000000..7455d99 --- /dev/null +++ b/proto/AbilityScalarValueEntry.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityScalarType.proto"; +import "AbilityString.proto"; + +message AbilityScalarValueEntry { + AbilityString key = 1; + AbilityScalarType valueType = 2; + oneof value { + float floatValue = 3; + string stringValue = 4; + int32 intValue = 5; + uint32 uintValue = 6; + } +} diff --git a/proto/AbilityString.proto b/proto/AbilityString.proto new file mode 100644 index 0000000..1e8254a --- /dev/null +++ b/proto/AbilityString.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AbilityString { + oneof type { + string str = 1; + uint32 hash = 2; + } +} diff --git a/proto/AbilitySyncStateInfo.proto b/proto/AbilitySyncStateInfo.proto new file mode 100644 index 0000000..ec103e2 --- /dev/null +++ b/proto/AbilitySyncStateInfo.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityAppliedAbility.proto"; +import "AbilityAppliedModifier.proto"; +import "AbilityMixinRecoverInfo.proto"; +import "AbilityScalarValueEntry.proto"; + +message AbilitySyncStateInfo { + bool isInited = 1; + repeated AbilityScalarValueEntry dynamicValueMap = 2; + repeated AbilityAppliedAbility appliedAbilities = 3; + repeated AbilityAppliedModifier appliedModifiers = 4; + repeated AbilityMixinRecoverInfo mixinRecoverInfos = 5; +} diff --git a/proto/ActionReasonType.proto b/proto/ActionReasonType.proto new file mode 100644 index 0000000..29f2639 --- /dev/null +++ b/proto/ActionReasonType.proto @@ -0,0 +1,179 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ActionReasonType { + ActionReasonNone = 0; + ActionReasonQuestItem = 1; + ActionReasonQuestReward = 2; + ActionReasonTrifle = 3; + ActionReasonShop = 4; + ActionReasonPlayerUpgradeReward = 5; + ActionReasonAddAvatar = 6; + ActionReasonGadgetEnvAnimal = 7; + ActionReasonMonsterEnvAnimal = 8; + ActionReasonCompound = 9; + ActionReasonCook = 10; + ActionReasonGather = 11; + ActionReasonMailAttachment = 12; + ActionReasonCityLevelupReturn = 15; + ActionReasonCityLevelupReward = 17; + ActionReasonAreaExploreReward = 18; + ActionReasonUnlockPointReward = 19; + ActionReasonDungeonFirstPass = 20; + ActionReasonDungeonPass = 21; + ActionReasonChangeElemType = 23; + ActionReasonFetterOpen = 25; + ActionReasonDailyTaskScore = 26; + ActionReasonDailyTaskHost = 27; + ActionReasonRandTaskHost = 28; + ActionReasonExpedition = 29; + ActionReasonGacha = 30; + ActionReasonCombine = 31; + ActionReasonRandTaskGuest = 32; + ActionReasonDailyTaskGuest = 33; + ActionReasonForgeOutput = 34; + ActionReasonForgeReturn = 35; + ActionReasonInitAvatar = 36; + ActionReasonMonsterDie = 37; + ActionReasonGm = 38; + ActionReasonOpenChest = 39; + ActionReasonGadgetDie = 40; + ActionReasonMonsterChangeHp = 41; + ActionReasonSubfieldDrop = 42; + ActionReasonPushTipsReward = 43; + ActionReasonActivityMonsterDrop = 44; + ActionReasonActivityGather = 45; + ActionReasonActivitySubfieldDrop = 46; + ActionReasonTowerScheduleReward = 47; + ActionReasonTowerFloorStarReward = 48; + ActionReasonTowerFirstPassReward = 49; + ActionReasonTowerDailyReward = 50; + ActionReasonHitClientTrivialEntity = 51; + ActionReasonOpenWorldBossChest = 52; + ActionReasonMaterialDeleteReturn = 53; + ActionReasonSignInReward = 54; + ActionReasonOpenBlossomChest = 55; + ActionReasonRecharge = 56; + ActionReasonBonusActivityReward = 57; + ActionReasonTowerCommemorativeReward = 58; + ActionReasonTowerSkipFloorReward = 59; + ActionReasonRechargeBonus = 60; + ActionReasonRechargeCard = 61; + ActionReasonRechargeCardDaily = 62; + ActionReasonRechargeCardReplace = 63; + ActionReasonRechargeCardReplaceFree = 64; + ActionReasonRechargePlayReplace = 65; + ActionReasonMpPlayTakeReward = 66; + ActionReasonActivityWatcher = 67; + ActionReasonSalesmanDeliverItem = 68; + ActionReasonSalesmanReward = 69; + ActionReasonRebate = 70; + ActionReasonMcoinExchangeHcoin = 71; + ActionReasonDailyTaskExchangeLegendaryKey = 72; + ActionReasonUnlockPersonLine = 73; + ActionReasonFetterLevelReward = 74; + ActionReasonBuyResin = 75; + ActionReasonRechargePackage = 76; + ActionReasonDeliveryDailyReward = 77; + ActionReasonCityReputationLevel = 78; + ActionReasonCityReputationQuest = 79; + ActionReasonCityReputationRequest = 80; + ActionReasonCityReputationExplore = 81; + ActionReasonOffergingLevel = 82; + ActionReasonRoutineHost = 83; + ActionReasonRoutineGuest = 84; + ActionReasonTreasureMapSpotToken = 89; + ActionReasonTreasureMapBonusLevelReward = 90; + ActionReasonTreasureMapMpReward = 91; + ActionReasonConvert = 92; + ActionReasonOverflowTransform = 93; + ActionReasonActivityAvatarSelectionReward = 96; + ActionReasonActivityWatcherBatch = 97; + ActionReasonHitTreeDrop = 98; + ActionReasonGetHomeLevelupReward = 99; + ActionReasonHomeDefaultFurniture = 100; + ActionReasonActivityCond = 101; + ActionReasonBattlePassNotify = 102; + ActionReasonPlayerUseItem = 1001; + ActionReasonDropItem = 1002; + ActionReasonWeaponUpgrade = 1011; + ActionReasonWeaponPromote = 1012; + ActionReasonWeaponAwaken = 1013; + ActionReasonRelicUpgrade = 1014; + ActionReasonAbility = 1015; + ActionReasonDungeonStatueDrop = 1016; + ActionReasonOfflineMsg = 1017; + ActionReasonAvatarUpgrade = 1018; + ActionReasonAvatarPromote = 1019; + ActionReasonQuestAction = 1021; + ActionReasonCityLevelup = 1022; + ActionReasonUpgradeSkill = 1024; + ActionReasonUnlockTalent = 1025; + ActionReasonUpgradeProudSkill = 1026; + ActionReasonPlayerLevelLimitUp = 1027; + ActionReasonDungeonDaily = 1028; + ActionReasonItemGiving = 1030; + ActionReasonForgeCost = 1031; + ActionReasonInvestigationReward = 1032; + ActionReasonInvestigationTargetReward = 1033; + ActionReasonGadgetInteract = 1034; + ActionReasonSeaLampCiMaterial = 1036; + ActionReasonSeaLampContributionReward = 1037; + ActionReasonSeaLampPhaseReward = 1038; + ActionReasonSeaLampFlyLamp = 1039; + ActionReasonAutoRecover = 1040; + ActionReasonActivityExpireItem = 1041; + ActionReasonSubCoinNegative = 1042; + ActionReasonBargainDeduct = 1043; + ActionReasonBattlePassPaidReward = 1044; + ActionReasonBattlePassLevelReward = 1045; + ActionReasonTrialAvatarActivityFirstPassReward = 1046; + ActionReasonBuyBattlePassLevel = 1047; + ActionReasonGrantBirthdayBenefit = 1048; + ActionReasonAchievementReward = 1049; + ActionReasonAchievementGoalReward = 1050; + ActionReasonFirstShareToSocialNetwork = 1051; + ActionReasonDestroyMaterial = 1052; + ActionReasonCodexLevelupReward = 1053; + ActionReasonHuntingOfferReward = 1054; + ActionReasonUseWidgetAnchorPoint = 1055; + ActionReasonUseWidgetBonfire = 1056; + ActionReasonUngradeWeaponReturnMaterial = 1057; + ActionReasonUseWidgetOneoffGatherPointDetector = 1058; + ActionReasonUseWidgetClientCollector = 1059; + ActionReasonUseWidgetClientDetector = 1060; + ActionReasonTakeGeneralReward = 1061; + ActionReasonAsterTakeSpecialReward = 1062; + ActionReasonRemoveCodexBook = 1063; + ActionReasonOfferingItem = 1064; + ActionReasonUseWidgetGadgetBuilder = 1065; + ActionReasonEffigyFirstPassReward = 1066; + ActionReasonEffigyReward = 1067; + ActionReasonReunionFirstGiftReward = 1068; + ActionReasonReunionSignInReward = 1069; + ActionReasonReunionWatcherReward = 1070; + ActionReasonSalesmanMpReward = 1071; + ActionReasionAvatarPromoteReward = 1072; + ActionReasonBlessingRedeemReward = 1073; + ActionMiracleRingReward = 1074; + ActionReasonExpeditionReward = 1075; + ActionReasonTreasureMapRemoveDetector = 1076; + ActionReasonMechanicusDungeonTicket = 1077; + ActionReasonMechanicusLevelupGear = 1078; + ActionReasonMechanicusBattleSettle = 1079; + ActionReasonRegionSearchReward = 1080; + ActionReasonUnlockCoopChapter = 1081; + ActionReasonTakeCoopReward = 1082; + ActionReasonFleurFairDungeonReward = 1083; + ActionReasonActivityScore = 1084; + ActionReasonChannellerSlabOneoffDungeonReward = 1085; + ActionReasonFurnitureMakeStart = 1086; + ActionReasonFurnitureMakeTake = 1087; + ActionReasonFurnitureMakeCancel = 1088; + ActionReasonFurnitureMakeFastFinish = 1089; + ActionReasonChannellerSlabLoopDungeonFirstPassReward = 1090; + ActionReasonChannellerSlabLoopDungeonScoreReward = 1091; + ActionReasonHomeLimitedShopBuy = 1092; + ActionReasonHomeCoinCollect = 1093; +} diff --git a/proto/ActivityInfo.proto b/proto/ActivityInfo.proto new file mode 100644 index 0000000..836f7d1 --- /dev/null +++ b/proto/ActivityInfo.proto @@ -0,0 +1,47 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ActivityNullDetailInfo.proto"; +import "ActivityWatcherInfo.proto"; + +message ActivityInfo { + uint32 activityId = 1; + uint32 scheduleId = 2; + uint32 beginTime = 3; + uint32 endTime = 4; + uint32 activityType = 5; + bool isPlayOpenAnim = 6; + bool isFinished = 7; + bool isStarting = 8; + repeated ActivityWatcherInfo watcherInfoList = 9; + repeated uint32 meetCondList = 10; + repeated uint32 expireCondList = 15; + uint32 selectedAvatarRewardId = 17; + map activityCoinMap = 18; + uint32 scoreLimit = 19; + uint32 curScore = 20; + repeated uint32 takenRewardList = 24; + oneof detail { + ActivityNullDetailInfo samLampInfo = 11; + ActivityNullDetailInfo crucibleInfo = 12; + ActivityNullDetailInfo salesmanInfo = 13; + ActivityNullDetailInfo trialAvatarInfo = 14; + ActivityNullDetailInfo deliveryInfo = 16; + ActivityNullDetailInfo asterInfo = 21; + ActivityNullDetailInfo flightInfo = 25; + ActivityNullDetailInfo dragonSpineInfo = 31; + ActivityNullDetailInfo effigyInfo = 32; + ActivityNullDetailInfo treasureMapInfo = 35; + ActivityNullDetailInfo blessingInfo = 41; + ActivityNullDetailInfo seaLampInfo = 42; + ActivityNullDetailInfo expeditionInfo = 43; + ActivityNullDetailInfo arenaChallengeInfo = 44; + ActivityNullDetailInfo fleurFairInfo = 51; + ActivityNullDetailInfo waterSpiritInfo = 52; + ActivityNullDetailInfo challnelerSlabInfo = 61; + ActivityNullDetailInfo mistTrialActivityInfo = 62; + ActivityNullDetailInfo hideAndSeekInfo = 63; + ActivityNullDetailInfo findHilichurlInfo = 64; + } +} diff --git a/proto/ActivityNullDetailInfo.proto b/proto/ActivityNullDetailInfo.proto new file mode 100644 index 0000000..90ee784 --- /dev/null +++ b/proto/ActivityNullDetailInfo.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ActivityNullDetailInfo { + +} diff --git a/proto/ActivityWatcherInfo.proto b/proto/ActivityWatcherInfo.proto new file mode 100644 index 0000000..eb4e005 --- /dev/null +++ b/proto/ActivityWatcherInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ActivityWatcherInfo { + uint32 watcherId = 1; + uint32 curProgress = 2; + uint32 totalProgress = 3; + bool isTakenReward = 4; +} diff --git a/proto/AiSkillCdInfo.proto b/proto/AiSkillCdInfo.proto new file mode 100644 index 0000000..ad5f072 --- /dev/null +++ b/proto/AiSkillCdInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AiSkillCdInfo { + map skillCdMap = 1; + map skillGroupCdMap = 2; +} diff --git a/proto/AiSyncInfo.proto b/proto/AiSyncInfo.proto new file mode 100644 index 0000000..1dc25b8 --- /dev/null +++ b/proto/AiSyncInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AiSyncInfo { + uint32 entityId = 1; + bool hasPathToTarget = 2; +} diff --git a/proto/AiThreatInfo.proto b/proto/AiThreatInfo.proto new file mode 100644 index 0000000..eb4ceeb --- /dev/null +++ b/proto/AiThreatInfo.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AiThreatInfo { + map aiThreatMap = 1; +} diff --git a/proto/AnimatorParameterValueInfo.proto b/proto/AnimatorParameterValueInfo.proto new file mode 100644 index 0000000..0735f51 --- /dev/null +++ b/proto/AnimatorParameterValueInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AnimatorParameterValueInfo { + uint32 paraType = 1; + int32 intVal = 2; + float floatVal = 3; + bool boolVal = 4; +} diff --git a/proto/AnimatorParameterValueInfoPair.proto b/proto/AnimatorParameterValueInfoPair.proto new file mode 100644 index 0000000..1ead0b9 --- /dev/null +++ b/proto/AnimatorParameterValueInfoPair.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AnimatorParameterValueInfo.proto"; + +message AnimatorParameterValueInfoPair { + int32 name = 1; + AnimatorParameterValueInfo animatorPara = 2; +} diff --git a/proto/AskAddFriendNotify.proto b/proto/AskAddFriendNotify.proto new file mode 100644 index 0000000..ab5f6ef --- /dev/null +++ b/proto/AskAddFriendNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendBrief.proto"; + +message AskAddFriendNotify { + uint32 targetUid = 1; + FriendBrief targetFriendBrief = 2; +} diff --git a/proto/AskAddFriendReq.proto b/proto/AskAddFriendReq.proto new file mode 100644 index 0000000..ac8a908 --- /dev/null +++ b/proto/AskAddFriendReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AskAddFriendReq { + uint32 targetUid = 1; +} diff --git a/proto/AskAddFriendRsp.proto b/proto/AskAddFriendRsp.proto new file mode 100644 index 0000000..4893ea2 --- /dev/null +++ b/proto/AskAddFriendRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AskAddFriendRsp { + int32 retcode = 1; + uint32 targetUid = 2; + uint32 param = 3; +} diff --git a/proto/AttackHitEffectResult.proto b/proto/AttackHitEffectResult.proto new file mode 100644 index 0000000..d997b7a --- /dev/null +++ b/proto/AttackHitEffectResult.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AttackHitEffectResult { + uint32 hitEffLevel = 1; + float retreatStrength = 2; + float airStrength = 3; + float hitHaltTime = 4; + float hitHaltTimeScale = 5; + uint32 originalHitEffLevel = 6; +} diff --git a/proto/AttackResult.proto b/proto/AttackResult.proto new file mode 100644 index 0000000..9b14987 --- /dev/null +++ b/proto/AttackResult.proto @@ -0,0 +1,40 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityIdentifier.proto"; +import "AttackHitEffectResult.proto"; +import "HitCollision.proto"; +import "Vector.proto"; + +message AttackResult { + uint32 attackerId = 1; + uint32 defenseId = 2; + string animEventId = 3; + AbilityIdentifier abilityIdentifier = 4; + float damage = 6; + bool isCrit = 7; + HitCollision hitCollision = 8; + uint32 hitPosType = 9; + uint32 endureBreak = 10; + Vector resolvedDir = 11; + int32 hitRetreatAngleCompat = 12; + AttackHitEffectResult hitEffResult = 13; + uint32 elementType = 14; + bool useGadgetDamageAction = 19; + uint32 gadgetDamageActionIdx = 20; + bool isResistText = 22; + uint32 criticalRand = 23; + float elementAmplifyRate = 24; + float damageShield = 26; + bool muteElementHurt = 27; + uint32 amplifyReactionType = 30; + uint32 addhurtReactionType = 31; + uint32 bulletFlyTimeMs = 32; + uint32 attackCount = 33; + uint32 hashedAnimEventId = 34; + uint32 attackTimestampMs = 36; + float endureDelta = 37; + uint32 targetType = 38; + float elementDurabilityAttenuation = 39; +} diff --git a/proto/AvatarAddNotify.proto b/proto/AvatarAddNotify.proto new file mode 100644 index 0000000..1bbd17d --- /dev/null +++ b/proto/AvatarAddNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarInfo.proto"; + +message AvatarAddNotify { + AvatarInfo avatar = 1; + bool isInTeam = 2; +} diff --git a/proto/AvatarChangeCostumeNotify.proto b/proto/AvatarChangeCostumeNotify.proto new file mode 100644 index 0000000..86a64ad --- /dev/null +++ b/proto/AvatarChangeCostumeNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneEntityInfo.proto"; + +message AvatarChangeCostumeNotify { + SceneEntityInfo entity = 1; +} diff --git a/proto/AvatarChangeCostumeReq.proto b/proto/AvatarChangeCostumeReq.proto new file mode 100644 index 0000000..6a83f94 --- /dev/null +++ b/proto/AvatarChangeCostumeReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarChangeCostumeReq { + uint64 avatarGuid = 1; + uint32 costumeId = 2; +} diff --git a/proto/AvatarChangeCostumeRsp.proto b/proto/AvatarChangeCostumeRsp.proto new file mode 100644 index 0000000..a5a3490 --- /dev/null +++ b/proto/AvatarChangeCostumeRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarChangeCostumeRsp { + uint32 retcode = 1; + uint64 avatarGuid = 2; + uint32 costumeId = 3; +} diff --git a/proto/AvatarDataNotify.proto b/proto/AvatarDataNotify.proto new file mode 100644 index 0000000..356d972 --- /dev/null +++ b/proto/AvatarDataNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarInfo.proto"; +import "AvatarTeam.proto"; + +message AvatarDataNotify { + repeated AvatarInfo avatarList = 1; + map avatarTeamMap = 2; + uint32 curAvatarTeamId = 3; + fixed64 chooseAvatarGuid = 4; + repeated uint64 tempAvatarGuidList = 5; + repeated uint32 ownedFlycloakList = 6; + repeated uint32 ownedCostumeList = 7; +} diff --git a/proto/AvatarDieAnimationEndReq.proto b/proto/AvatarDieAnimationEndReq.proto new file mode 100644 index 0000000..06bb7b3 --- /dev/null +++ b/proto/AvatarDieAnimationEndReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message AvatarDieAnimationEndReq { + uint64 dieGuid = 1; + uint32 skillId = 2; + Vector rebornPos = 3; +} diff --git a/proto/AvatarDieAnimationEndRsp.proto b/proto/AvatarDieAnimationEndRsp.proto new file mode 100644 index 0000000..ac0f1ea --- /dev/null +++ b/proto/AvatarDieAnimationEndRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarDieAnimationEndRsp { + int32 retcode = 1; + uint64 dieGuid = 2; + uint32 skillId = 3; +} diff --git a/proto/AvatarEnterSceneInfo.proto b/proto/AvatarEnterSceneInfo.proto new file mode 100644 index 0000000..c4f15d5 --- /dev/null +++ b/proto/AvatarEnterSceneInfo.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; +import "ServerBuff.proto"; + +message AvatarEnterSceneInfo { + uint64 avatarGuid = 1; + uint32 avatarEntityId = 2; + AbilitySyncStateInfo avatarAbilityInfo = 3; + repeated uint32 buffIdList = 4; + uint64 weaponGuid = 5; + uint32 weaponEntityId = 6; + AbilitySyncStateInfo weaponAbilityInfo = 7; + repeated ServerBuff serverBuffList = 8; +} diff --git a/proto/AvatarEquipAffixInfo.proto b/proto/AvatarEquipAffixInfo.proto new file mode 100644 index 0000000..7e05f57 --- /dev/null +++ b/proto/AvatarEquipAffixInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarEquipAffixInfo { + uint32 equipAffixId = 1; + uint32 leftCdTime = 2; +} diff --git a/proto/AvatarEquipChangeNotify.proto b/proto/AvatarEquipChangeNotify.proto new file mode 100644 index 0000000..bc6532f --- /dev/null +++ b/proto/AvatarEquipChangeNotify.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneReliquaryInfo.proto"; +import "SceneWeaponInfo.proto"; + +message AvatarEquipChangeNotify { + uint64 avatarGuid = 1; + uint32 equipType = 2; + uint32 itemId = 3; + uint64 equipGuid = 4; + SceneWeaponInfo weapon = 5; + SceneReliquaryInfo reliquary = 6; +} diff --git a/proto/AvatarExpeditionState.proto b/proto/AvatarExpeditionState.proto new file mode 100644 index 0000000..0753dd6 --- /dev/null +++ b/proto/AvatarExpeditionState.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum AvatarExpeditionState { + AvatarExpeditionNone = 0; + AvatarExpeditionDoing = 1; + AvatarExpeditionFinishWaitReward = 2; + AvatarExpeditionCallbackWaitReward = 3; +} diff --git a/proto/AvatarFetterInfo.proto b/proto/AvatarFetterInfo.proto new file mode 100644 index 0000000..408e7ac --- /dev/null +++ b/proto/AvatarFetterInfo.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FetterData.proto"; + +message AvatarFetterInfo { + uint32 expNumber = 1; + uint32 expLevel = 2; + repeated uint32 openIdList = 3; + repeated uint32 finishIdList = 4; + repeated uint32 rewardedFetterLevelList = 5; + repeated FetterData fetterList = 6; +} diff --git a/proto/AvatarFightPropNotify.proto b/proto/AvatarFightPropNotify.proto new file mode 100644 index 0000000..8d24011 --- /dev/null +++ b/proto/AvatarFightPropNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarFightPropNotify { + uint64 avatarGuid = 1; + map fightPropMap = 2; +} diff --git a/proto/AvatarFightPropUpdateNotify.proto b/proto/AvatarFightPropUpdateNotify.proto new file mode 100644 index 0000000..040c7d0 --- /dev/null +++ b/proto/AvatarFightPropUpdateNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarFightPropUpdateNotify { + uint64 avatarGuid = 1; + map fightPropMap = 2; +} diff --git a/proto/AvatarFlycloakChangeNotify.proto b/proto/AvatarFlycloakChangeNotify.proto new file mode 100644 index 0000000..4d7d353 --- /dev/null +++ b/proto/AvatarFlycloakChangeNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarFlycloakChangeNotify { + uint64 avatarGuid = 1; + uint32 flycloakId = 2; +} diff --git a/proto/AvatarGainCostumeNotify.proto b/proto/AvatarGainCostumeNotify.proto new file mode 100644 index 0000000..54ef728 --- /dev/null +++ b/proto/AvatarGainCostumeNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarGainCostumeNotify { + uint32 costumeId = 1; +} diff --git a/proto/AvatarGainFlycloakNotify.proto b/proto/AvatarGainFlycloakNotify.proto new file mode 100644 index 0000000..d21a9cb --- /dev/null +++ b/proto/AvatarGainFlycloakNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarGainFlycloakNotify { + uint32 flycloakId = 1; +} diff --git a/proto/AvatarInfo.proto b/proto/AvatarInfo.proto new file mode 100644 index 0000000..f3ab4cc --- /dev/null +++ b/proto/AvatarInfo.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarEquipAffixInfo.proto"; +import "AvatarExpeditionState.proto"; +import "AvatarFetterInfo.proto"; +import "AvatarSkillInfo.proto"; +import "PropValue.proto"; +import "TrialAvatarInfo.proto"; + +message AvatarInfo { + uint32 avatarId = 1; + uint64 guid = 2; + map propMap = 3; + uint32 lifeState = 4; + repeated uint64 equipGuidList = 5; + repeated uint32 talentIdList = 6; + map fightPropMap = 7; + TrialAvatarInfo trialAvatarInfoField = 9; + map skillMap = 10; + uint32 skillDepotId = 11; + AvatarFetterInfo fetterInfo = 12; + uint32 coreProudSkillLevel = 13; + repeated uint32 inherentProudSkillList = 14; + map skillLevelMap = 15; + AvatarExpeditionState expeditionState = 16; + map proudSkillExtraLevel = 17; + bool isFocusFieldNumber = 18; + uint32 avatarType = 19; + repeated uint32 teamResonanceList = 20; + uint32 wearingFlycloakId = 21; + repeated AvatarEquipAffixInfo equipAffixList = 22; + uint32 bornTime = 23; + repeated uint32 pendingPromoteRewardListFieldNumber = 24; + uint32 costumeId = 25; +} diff --git a/proto/AvatarLifeStateChangeNotify.proto b/proto/AvatarLifeStateChangeNotify.proto new file mode 100644 index 0000000..0bf8160 --- /dev/null +++ b/proto/AvatarLifeStateChangeNotify.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerDieType.proto"; + +message AvatarLifeStateChangeNotify { + uint64 avatarGuid = 1; + uint32 lifeState = 2; + uint32 sourceEntityId = 3; + string attackTag = 4; + PlayerDieType dieType = 5; + uint32 moveReliableSeq = 6; +} diff --git a/proto/AvatarPromoteReq.proto b/proto/AvatarPromoteReq.proto new file mode 100644 index 0000000..863ab83 --- /dev/null +++ b/proto/AvatarPromoteReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarPromoteReq { + uint64 guid = 1; +} diff --git a/proto/AvatarPromoteRsp.proto b/proto/AvatarPromoteRsp.proto new file mode 100644 index 0000000..e64b9c9 --- /dev/null +++ b/proto/AvatarPromoteRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarPromoteRsp { + int32 retcode = 1; + uint64 guid = 2; +} diff --git a/proto/AvatarPropNotify.proto b/proto/AvatarPropNotify.proto new file mode 100644 index 0000000..231008d --- /dev/null +++ b/proto/AvatarPropNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarPropNotify { + uint64 avatarGuid = 1; + map propMap = 2; +} diff --git a/proto/AvatarSkillChangeNotify.proto b/proto/AvatarSkillChangeNotify.proto new file mode 100644 index 0000000..0664126 --- /dev/null +++ b/proto/AvatarSkillChangeNotify.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarSkillChangeNotify { + uint64 avatarGuid = 1; + uint32 entityId = 2; + uint32 skillDepotId = 3; + uint32 avatarSkillId = 4; + uint32 oldLevel = 5; + uint32 curLevel = 6; +} diff --git a/proto/AvatarSkillInfo.proto b/proto/AvatarSkillInfo.proto new file mode 100644 index 0000000..27417ca --- /dev/null +++ b/proto/AvatarSkillInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarSkillInfo { + uint32 passCdTime = 1; + repeated uint32 fullCdTimeList = 2; + uint32 maxChargeCount = 3; +} diff --git a/proto/AvatarSkillUpgradeReq.proto b/proto/AvatarSkillUpgradeReq.proto new file mode 100644 index 0000000..01e78e2 --- /dev/null +++ b/proto/AvatarSkillUpgradeReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarSkillUpgradeReq { + uint64 avatarGuid = 1; + uint32 avatarSkillId = 2; + uint32 oldLevel = 3; +} diff --git a/proto/AvatarSkillUpgradeRsp.proto b/proto/AvatarSkillUpgradeRsp.proto new file mode 100644 index 0000000..a7942f5 --- /dev/null +++ b/proto/AvatarSkillUpgradeRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarSkillUpgradeRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint32 avatarSkillId = 3; + uint32 oldLevel = 4; + uint32 curLevel = 5; +} diff --git a/proto/AvatarTeam.proto b/proto/AvatarTeam.proto new file mode 100644 index 0000000..0ca666f --- /dev/null +++ b/proto/AvatarTeam.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarTeam { + repeated uint64 avatarGuidList = 1; + string teamName = 2; +} diff --git a/proto/AvatarTeamResonanceInfo.proto b/proto/AvatarTeamResonanceInfo.proto new file mode 100644 index 0000000..beae1d2 --- /dev/null +++ b/proto/AvatarTeamResonanceInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarTeamResonanceInfo { + uint32 entityId = 1; + uint64 avatarGuid = 2; + repeated uint32 addTeamResonanceIdList = 3; + repeated uint32 delTeamResonanceIdList = 4; +} diff --git a/proto/AvatarTeamUpdateNotify.proto b/proto/AvatarTeamUpdateNotify.proto new file mode 100644 index 0000000..b68f7ce --- /dev/null +++ b/proto/AvatarTeamUpdateNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarTeam.proto"; + +message AvatarTeamUpdateNotify { + map avatarTeamMap = 1; + repeated uint64 tempAvatarGuidList = 2; +} diff --git a/proto/AvatarUnlockTalentNotify.proto b/proto/AvatarUnlockTalentNotify.proto new file mode 100644 index 0000000..91500c3 --- /dev/null +++ b/proto/AvatarUnlockTalentNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarUnlockTalentNotify { + uint64 avatarGuid = 1; + uint32 entityId = 2; + uint32 talentId = 3; + uint32 skillDepotId = 4; +} diff --git a/proto/AvatarUpgradeReq.proto b/proto/AvatarUpgradeReq.proto new file mode 100644 index 0000000..7ad936c --- /dev/null +++ b/proto/AvatarUpgradeReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarUpgradeReq { + uint32 itemId = 1; + uint32 count = 2; + uint64 avatarGuid = 3; +} diff --git a/proto/AvatarUpgradeRsp.proto b/proto/AvatarUpgradeRsp.proto new file mode 100644 index 0000000..0d50cfa --- /dev/null +++ b/proto/AvatarUpgradeRsp.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarUpgradeRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint32 oldLevel = 3; + uint32 curLevel = 4; + map oldFightPropMap = 5; + map curFightPropMap = 6; +} diff --git a/proto/AvatarWearFlycloakReq.proto b/proto/AvatarWearFlycloakReq.proto new file mode 100644 index 0000000..92b067f --- /dev/null +++ b/proto/AvatarWearFlycloakReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarWearFlycloakReq { + uint64 avatarGuid = 1; + uint32 flycloakId = 2; +} diff --git a/proto/AvatarWearFlycloakRsp.proto b/proto/AvatarWearFlycloakRsp.proto new file mode 100644 index 0000000..78d179f --- /dev/null +++ b/proto/AvatarWearFlycloakRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarWearFlycloakRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint32 flycloakId = 3; +} diff --git a/proto/Birthday.proto b/proto/Birthday.proto new file mode 100644 index 0000000..b360bcf --- /dev/null +++ b/proto/Birthday.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message Birthday { + uint32 month = 1; + uint32 day = 2; +} diff --git a/proto/BlockInfo.proto b/proto/BlockInfo.proto new file mode 100644 index 0000000..5905e35 --- /dev/null +++ b/proto/BlockInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message BlockInfo { + uint32 blockId = 1; + uint32 dataVersion = 2; + bytes binData = 3; + bool isDirty = 4; +} diff --git a/proto/CalcWeaponUpgradeReturnItemsReq.proto b/proto/CalcWeaponUpgradeReturnItemsReq.proto new file mode 100644 index 0000000..be6bcd9 --- /dev/null +++ b/proto/CalcWeaponUpgradeReturnItemsReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message CalcWeaponUpgradeReturnItemsReq { + uint64 targetWeaponGuid = 1; + repeated uint64 foodWeaponGuidList = 2; + repeated ItemParam itemParamList = 3; +} diff --git a/proto/CalcWeaponUpgradeReturnItemsRsp.proto b/proto/CalcWeaponUpgradeReturnItemsRsp.proto new file mode 100644 index 0000000..5b0733d --- /dev/null +++ b/proto/CalcWeaponUpgradeReturnItemsRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message CalcWeaponUpgradeReturnItemsRsp { + int32 retcode = 1; + uint64 targetWeaponGuid = 2; + repeated ItemParam itemParamList = 3; +} diff --git a/proto/ChangeAvatarReq.proto b/proto/ChangeAvatarReq.proto new file mode 100644 index 0000000..8ef593e --- /dev/null +++ b/proto/ChangeAvatarReq.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message ChangeAvatarReq { + uint64 guid = 1; + uint32 skillId = 2; + bool isMove = 3; + Vector movePos = 4; +} diff --git a/proto/ChangeAvatarRsp.proto b/proto/ChangeAvatarRsp.proto new file mode 100644 index 0000000..08281c4 --- /dev/null +++ b/proto/ChangeAvatarRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeAvatarRsp { + uint32 retcode = 1; + uint64 currGuid = 2; + uint32 skillId = 3; +} diff --git a/proto/ChangeGameTimeReq.proto b/proto/ChangeGameTimeReq.proto new file mode 100644 index 0000000..474c964 --- /dev/null +++ b/proto/ChangeGameTimeReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeGameTimeReq { + uint32 gameTime = 1; + bool isForceSet = 2; +} diff --git a/proto/ChangeGameTimeRsp.proto b/proto/ChangeGameTimeRsp.proto new file mode 100644 index 0000000..75c94a3 --- /dev/null +++ b/proto/ChangeGameTimeRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeGameTimeRsp { + int32 retcode = 1; + uint32 curGameTime = 2; +} diff --git a/proto/ChangeHpReason.proto b/proto/ChangeHpReason.proto new file mode 100644 index 0000000..e56d9ac --- /dev/null +++ b/proto/ChangeHpReason.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ChangeHpReason { + ChangeHpNone = 0; + ChangeHpSubAvatar = 1; + ChangeHpSubMonster = 2; + ChangeHpSubGear = 3; + ChangeHpSubEnvir = 4; + ChangeHpSubFall = 5; + ChangeHpSubDrawn = 6; + ChangeHpSubAbyss = 7; + ChangeHpSubAbility = 8; + ChangeHpSubSummon = 9; + ChangeHpSubScript = 10; + ChangeHpSubGm = 11; + ChangeHpSubKillSelf = 12; + ChangeHpSubClimateCold = 13; + ChangeHpSubStormLightning = 14; + ChangeHpSubKillServerGadget = 15; + ChangeHpByLua = 51; + ChangeHpAddAbility = 101; + ChangeHpAddItem = 102; + ChangeHpAddRevive = 103; + ChangeHpAddUpgrade = 104; + ChangeHpAddStatue = 105; + ChangeHpAddBackground = 106; + ChangeHpAddGm = 107; + ChangeHpAddTrialAvatarActivity = 108; +} diff --git a/proto/ChangeMpTeamAvatarReq.proto b/proto/ChangeMpTeamAvatarReq.proto new file mode 100644 index 0000000..8a90c87 --- /dev/null +++ b/proto/ChangeMpTeamAvatarReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeMpTeamAvatarReq { + repeated uint64 avatarGuidList = 1; + uint64 curAvatarGuid = 2; +} diff --git a/proto/ChangeMpTeamAvatarRsp.proto b/proto/ChangeMpTeamAvatarRsp.proto new file mode 100644 index 0000000..ae0b499 --- /dev/null +++ b/proto/ChangeMpTeamAvatarRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeMpTeamAvatarRsp { + int32 retcode = 1; + repeated uint64 avatarGuidList = 2; + uint64 curAvatarGuid = 3; +} diff --git a/proto/ChangeTeamNameReq.proto b/proto/ChangeTeamNameReq.proto new file mode 100644 index 0000000..87423b3 --- /dev/null +++ b/proto/ChangeTeamNameReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeTeamNameReq { + int32 teamId = 1; + string teamName = 2; +} diff --git a/proto/ChangeTeamNameRsp.proto b/proto/ChangeTeamNameRsp.proto new file mode 100644 index 0000000..51607c6 --- /dev/null +++ b/proto/ChangeTeamNameRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeTeamNameRsp { + int32 teamId = 1; + string teamName = 2; + int32 retcode = 3; +} diff --git a/proto/ChatInfo.proto b/proto/ChatInfo.proto new file mode 100644 index 0000000..7b47d7f --- /dev/null +++ b/proto/ChatInfo.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SystemHint.proto"; + +message ChatInfo { + uint32 time = 1; + uint32 uid = 2; + uint32 sequence = 3; + uint32 toUid = 4; + bool isRead = 5; + oneof content { + string text = 100; + uint32 icon = 101; + SystemHint systemHint = 102; + } +} diff --git a/proto/ChooseCurAvatarTeamReq.proto b/proto/ChooseCurAvatarTeamReq.proto new file mode 100644 index 0000000..bc9bd84 --- /dev/null +++ b/proto/ChooseCurAvatarTeamReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChooseCurAvatarTeamReq { + uint32 teamId = 1; +} diff --git a/proto/ChooseCurAvatarTeamRsp.proto b/proto/ChooseCurAvatarTeamRsp.proto new file mode 100644 index 0000000..2a168a7 --- /dev/null +++ b/proto/ChooseCurAvatarTeamRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChooseCurAvatarTeamRsp { + int32 retcode = 1; + uint32 curTeamId = 2; +} diff --git a/proto/CityInfo.proto b/proto/CityInfo.proto new file mode 100644 index 0000000..8d6f31b --- /dev/null +++ b/proto/CityInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message CityInfo { + uint32 cityId = 1; + uint32 level = 2; + uint32 crystalNum = 3; +} diff --git a/proto/ClientAbilityChangeNotify.proto b/proto/ClientAbilityChangeNotify.proto new file mode 100644 index 0000000..19f1fd5 --- /dev/null +++ b/proto/ClientAbilityChangeNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityInvokeEntry.proto"; + +message ClientAbilityChangeNotify { + uint32 entityId = 1; + repeated AbilityInvokeEntry invokes = 2; +} diff --git a/proto/ClientAbilityInitBeginNotify.proto b/proto/ClientAbilityInitBeginNotify.proto new file mode 100644 index 0000000..03bc7a6 --- /dev/null +++ b/proto/ClientAbilityInitBeginNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ClientAbilityInitBeginNotify { + uint32 entityId = 1; +} diff --git a/proto/ClientAbilityInitFinishNotify.proto b/proto/ClientAbilityInitFinishNotify.proto new file mode 100644 index 0000000..1078434 --- /dev/null +++ b/proto/ClientAbilityInitFinishNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityInvokeEntry.proto"; + +message ClientAbilityInitFinishNotify { + uint32 entityId = 1; + repeated AbilityInvokeEntry invokes = 2; +} diff --git a/proto/CombatInvocationsNotify.proto b/proto/CombatInvocationsNotify.proto new file mode 100644 index 0000000..8669d1a --- /dev/null +++ b/proto/CombatInvocationsNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CombatInvokeEntry.proto"; + +message CombatInvocationsNotify { + repeated CombatInvokeEntry invokeList = 1; +} diff --git a/proto/CombatInvokeEntry.proto b/proto/CombatInvokeEntry.proto new file mode 100644 index 0000000..43e2eed --- /dev/null +++ b/proto/CombatInvokeEntry.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CombatTypeArgument.proto"; +import "ForwardType.proto"; + +message CombatInvokeEntry { + CombatTypeArgument argumentType = 1; + ForwardType forwardType = 2; + bytes combatData = 3; +} diff --git a/proto/CombatTypeArgument.proto b/proto/CombatTypeArgument.proto new file mode 100644 index 0000000..ab5eef0 --- /dev/null +++ b/proto/CombatTypeArgument.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum CombatTypeArgument { + CombatNone = 0; + CombatEvtBeingHit = 1; + CombatAnimatorStateChanged = 2; + CombatFaceToDir = 3; + CombatSetAttackTarget = 4; + CombatRushMove = 5; + CombatAnimatorParameterChanged = 6; + EntityMove = 7; + SyncEntityPosition = 8; + CombatSteerMotionInfo = 9; + CombatForceSetPosInfo = 10; + CombatCompensatePosDiff = 11; + CombatMonsterDoBlink = 12; + CombatFixedRushMove = 13; + CombatSyncTransform = 14; +} diff --git a/proto/CoopCg.proto b/proto/CoopCg.proto new file mode 100644 index 0000000..5702ac6 --- /dev/null +++ b/proto/CoopCg.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message CoopCg { + uint32 id = 1; + bool isUnlock = 2; +} diff --git a/proto/CoopChapter.proto b/proto/CoopChapter.proto new file mode 100644 index 0000000..817f235 --- /dev/null +++ b/proto/CoopChapter.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CoopCg.proto"; +import "CoopChapterState.proto"; +import "CoopPoint.proto"; +import "CoopReward.proto"; + +message CoopChapter { + uint32 id = 1; + CoopChapterState state = 2; + repeated uint32 lockReasonList = 3; + repeated CoopPoint coopPointList = 4; + repeated CoopReward coopRewardList = 5; + repeated CoopCg coopCgList = 6; + uint32 totalEndCount = 7; + uint32 finishedEndCount = 8; + map seenEndingMap = 9; + repeated uint32 finishDialogList = 10; +} diff --git a/proto/CoopChapterState.proto b/proto/CoopChapterState.proto new file mode 100644 index 0000000..40ae5f2 --- /dev/null +++ b/proto/CoopChapterState.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum CoopChapterState { + Close = 0; + CondNotMeet = 1; + CondMeet = 2; + Accept = 3; +} diff --git a/proto/CoopDataNotify.proto b/proto/CoopDataNotify.proto new file mode 100644 index 0000000..ea1ee81 --- /dev/null +++ b/proto/CoopDataNotify.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CoopChapter.proto"; + +message CoopDataNotify { + repeated CoopChapter chapterList = 1; + bool isHaveProgress = 2; + uint32 curCoopPoint = 3; + repeated uint32 viewedChapterList = 4; +} diff --git a/proto/CoopPoint.proto b/proto/CoopPoint.proto new file mode 100644 index 0000000..f539144 --- /dev/null +++ b/proto/CoopPoint.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CoopPointState.proto"; + +message CoopPoint { + uint32 id = 1; + CoopPointState state = 2; + uint32 selfConfidence = 3; +} diff --git a/proto/CoopPointState.proto b/proto/CoopPointState.proto new file mode 100644 index 0000000..34288e2 --- /dev/null +++ b/proto/CoopPointState.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum CoopPointState { + Unstarted = 0; + Started = 1; + Finished = 2; +} diff --git a/proto/CoopReward.proto b/proto/CoopReward.proto new file mode 100644 index 0000000..47086cc --- /dev/null +++ b/proto/CoopReward.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CoopRewardState.proto"; + +message CoopReward { + uint32 id = 1; + CoopRewardState state = 2; +} diff --git a/proto/CoopRewardState.proto b/proto/CoopRewardState.proto new file mode 100644 index 0000000..60b60d7 --- /dev/null +++ b/proto/CoopRewardState.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum CoopRewardState { + Unlock = 0; + Lock = 1; + Taken = 2; +} diff --git a/proto/CountDownDelete.proto b/proto/CountDownDelete.proto new file mode 100644 index 0000000..fd394c4 --- /dev/null +++ b/proto/CountDownDelete.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message CountDownDelete { + +} diff --git a/proto/DateTimeDelete.proto b/proto/DateTimeDelete.proto new file mode 100644 index 0000000..9af3573 --- /dev/null +++ b/proto/DateTimeDelete.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DateTimeDelete { + +} diff --git a/proto/DealAddFriendReq.proto b/proto/DealAddFriendReq.proto new file mode 100644 index 0000000..5a0fa08 --- /dev/null +++ b/proto/DealAddFriendReq.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "DealAddFriendResultType.proto"; + +message DealAddFriendReq { + uint32 targetUid = 1; + DealAddFriendResultType dealAddFriendResult = 2; +} diff --git a/proto/DealAddFriendResultType.proto b/proto/DealAddFriendResultType.proto new file mode 100644 index 0000000..d9516f5 --- /dev/null +++ b/proto/DealAddFriendResultType.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum DealAddFriendResultType { + DealAddFriendReject = 0; + DealAddFriendAccept = 1; +} diff --git a/proto/DealAddFriendRsp.proto b/proto/DealAddFriendRsp.proto new file mode 100644 index 0000000..330c3b3 --- /dev/null +++ b/proto/DealAddFriendRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "DealAddFriendResultType.proto"; + +message DealAddFriendRsp { + int32 retcode = 1; + uint32 targetUid = 2; + DealAddFriendResultType dealAddFriendResult = 3; +} diff --git a/proto/DelTeamEntityNotify.proto b/proto/DelTeamEntityNotify.proto new file mode 100644 index 0000000..a5fbda5 --- /dev/null +++ b/proto/DelTeamEntityNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DelTeamEntityNotify { + uint32 sceneId = 1; + repeated uint32 delEntityIdList = 2; +} diff --git a/proto/DelayWeekCountDownDelete.proto b/proto/DelayWeekCountDownDelete.proto new file mode 100644 index 0000000..52c2c00 --- /dev/null +++ b/proto/DelayWeekCountDownDelete.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DelayWeekCountDownDelete { + +} diff --git a/proto/DeleteFriendNotify.proto b/proto/DeleteFriendNotify.proto new file mode 100644 index 0000000..224e411 --- /dev/null +++ b/proto/DeleteFriendNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DeleteFriendNotify { + uint32 targetUid = 1; +} diff --git a/proto/DeleteFriendReq.proto b/proto/DeleteFriendReq.proto new file mode 100644 index 0000000..fa4b371 --- /dev/null +++ b/proto/DeleteFriendReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DeleteFriendReq { + uint32 targetUid = 1; +} diff --git a/proto/DeleteFriendRsp.proto b/proto/DeleteFriendRsp.proto new file mode 100644 index 0000000..666e670 --- /dev/null +++ b/proto/DeleteFriendRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DeleteFriendRsp { + int32 retcode = 1; + uint32 targetUid = 2; +} diff --git a/proto/DestroyMaterialReq.proto b/proto/DestroyMaterialReq.proto new file mode 100644 index 0000000..6dad136 --- /dev/null +++ b/proto/DestroyMaterialReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MaterialInfo.proto"; + +message DestroyMaterialReq { + repeated MaterialInfo materialList = 1; +} diff --git a/proto/DestroyMaterialRsp.proto b/proto/DestroyMaterialRsp.proto new file mode 100644 index 0000000..edbad05 --- /dev/null +++ b/proto/DestroyMaterialRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DestroyMaterialRsp { + int32 retcode = 1; + repeated uint32 itemIdList = 2; + repeated uint32 itemCountList = 3; +} diff --git a/proto/DoGachaReq.proto b/proto/DoGachaReq.proto new file mode 100644 index 0000000..b841b53 --- /dev/null +++ b/proto/DoGachaReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DoGachaReq { + uint32 gachaType = 1; + uint32 gachaTimes = 2; + uint32 gachaRandom = 3; + uint32 gachaScheduleId = 4; + string gachaTag = 5; +} diff --git a/proto/DoGachaRsp.proto b/proto/DoGachaRsp.proto new file mode 100644 index 0000000..3aebde5 --- /dev/null +++ b/proto/DoGachaRsp.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GachaItem.proto"; + +message DoGachaRsp { + int32 retcode = 1; + uint32 gachaType = 2; + uint32 gachaTimes = 3; + uint32 gachaScheduleId = 4; + repeated GachaItem gachaItemList = 5; + uint32 newGachaRandom = 6; + uint32 costItemId = 7; + uint32 costItemNum = 8; + uint32 tenCostItemId = 9; + uint32 tenCostItemNum = 10; + uint32 leftGachaTimes = 11; + uint32 gachaTimesLimit = 12; +} diff --git a/proto/DropHintNotify.proto b/proto/DropHintNotify.proto new file mode 100644 index 0000000..e0d7cf5 --- /dev/null +++ b/proto/DropHintNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message DropHintNotify { + repeated uint32 itemIdList = 1; + Vector position = 2; +} diff --git a/proto/DungeonEntryInfo.proto b/proto/DungeonEntryInfo.proto new file mode 100644 index 0000000..0af679a --- /dev/null +++ b/proto/DungeonEntryInfo.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "WeeklyBossResinDiscountInfo.proto"; + +message DungeonEntryInfo { + uint32 dungeonId = 1; + bool isPassed = 2; + uint32 leftTimes = 3; + uint32 startTime = 4; + uint32 endTime = 5; + uint32 maxBossChestNum = 6; + uint32 bossChestNum = 7; + uint32 nextRefreshTime = 8; + WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; +} diff --git a/proto/DungeonEntryInfoReq.proto b/proto/DungeonEntryInfoReq.proto new file mode 100644 index 0000000..12557f4 --- /dev/null +++ b/proto/DungeonEntryInfoReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DungeonEntryInfoReq { + uint32 pointId = 1; +} diff --git a/proto/DungeonEntryInfoRsp.proto b/proto/DungeonEntryInfoRsp.proto new file mode 100644 index 0000000..d83bcef --- /dev/null +++ b/proto/DungeonEntryInfoRsp.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "DungeonEntryInfo.proto"; + +message DungeonEntryInfoRsp { + int32 retcode = 1; + uint32 pointId = 2; + repeated DungeonEntryInfo dungeonEntryList = 3; + uint32 recommendDungeonId = 4; +} diff --git a/proto/EnterSceneDoneRsp.proto b/proto/EnterSceneDoneRsp.proto new file mode 100644 index 0000000..df15567 --- /dev/null +++ b/proto/EnterSceneDoneRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EnterSceneDoneRsp { + int32 retcode = 1; + uint32 enterSceneToken = 2; +} diff --git a/proto/EnterScenePeerNotify.proto b/proto/EnterScenePeerNotify.proto new file mode 100644 index 0000000..17d5302 --- /dev/null +++ b/proto/EnterScenePeerNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EnterScenePeerNotify { + uint32 destSceneId = 1; + uint32 peerId = 2; + uint32 hostPeerId = 3; + uint32 EnterSceneToken = 4; +} diff --git a/proto/EnterSceneReadyRsp.proto b/proto/EnterSceneReadyRsp.proto new file mode 100644 index 0000000..6cde8d1 --- /dev/null +++ b/proto/EnterSceneReadyRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EnterSceneReadyRsp { + int32 retcode = 1; + uint32 enterSceneToken = 2; +} diff --git a/proto/EnterType.proto b/proto/EnterType.proto new file mode 100644 index 0000000..6794046 --- /dev/null +++ b/proto/EnterType.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum EnterType { + EnterNone = 0; + EnterSelf = 1; + EnterGoto = 2; + EnterJump = 3; + EnterOther = 4; + EnterBack = 5; + EnterDungeon = 6; + EnterDungeonReplay = 7; + EnterGotoByPortal = 8; + EnterSelfHome = 9; + EnterOtherHome = 10; +} diff --git a/proto/EnterWorldAreaReq.proto b/proto/EnterWorldAreaReq.proto new file mode 100644 index 0000000..d367117 --- /dev/null +++ b/proto/EnterWorldAreaReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EnterWorldAreaReq { + uint32 areaType = 1; + uint32 areaId = 2; +} diff --git a/proto/EnterWorldAreaRsp.proto b/proto/EnterWorldAreaRsp.proto new file mode 100644 index 0000000..e2cf967 --- /dev/null +++ b/proto/EnterWorldAreaRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EnterWorldAreaRsp { + uint32 areaType = 2; + uint32 areaId = 3; +} diff --git a/proto/EntityAiSyncNotify.proto b/proto/EntityAiSyncNotify.proto new file mode 100644 index 0000000..3e2040d --- /dev/null +++ b/proto/EntityAiSyncNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AiSyncInfo.proto"; + +message EntityAiSyncNotify { + repeated AiSyncInfo infoList = 1; + repeated uint32 localAvatarAlertedMonsterList = 2; +} diff --git a/proto/EntityAuthorityInfo.proto b/proto/EntityAuthorityInfo.proto new file mode 100644 index 0000000..aba660f --- /dev/null +++ b/proto/EntityAuthorityInfo.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; +import "AnimatorParameterValueInfoPair.proto"; +import "EntityRendererChangedInfo.proto"; +import "SceneEntityAiInfo.proto"; +import "Vector.proto"; + +message EntityAuthorityInfo { + AbilitySyncStateInfo abilityInfo = 1; + EntityRendererChangedInfo rendererChangedInfo = 2; + SceneEntityAiInfo aiInfo = 3; + Vector bornPos = 4; + repeated AnimatorParameterValueInfoPair poseParaList = 5; +} diff --git a/proto/EntityClientData.proto b/proto/EntityClientData.proto new file mode 100644 index 0000000..df639c9 --- /dev/null +++ b/proto/EntityClientData.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EntityClientData { + uint32 windChangeSceneTime = 1; + float windmillSyncAngle = 2; + int32 windChangeTargetLevel = 3; +} diff --git a/proto/EntityEnvironmentInfo.proto b/proto/EntityEnvironmentInfo.proto new file mode 100644 index 0000000..37ba467 --- /dev/null +++ b/proto/EntityEnvironmentInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EntityEnvironmentInfo { + uint32 jsonClimateType = 1; + uint32 climateAreaId = 2; +} diff --git a/proto/EntityFightPropChangeReasonNotify.proto b/proto/EntityFightPropChangeReasonNotify.proto new file mode 100644 index 0000000..2bbda06 --- /dev/null +++ b/proto/EntityFightPropChangeReasonNotify.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChangeHpReason.proto"; +import "PropChangeReason.proto"; + +message EntityFightPropChangeReasonNotify { + uint32 entityId = 1; + uint32 propType = 2; + float propDelta = 3; + PropChangeReason reason = 4; + repeated uint32 paramList = 5; + ChangeHpReason changeHpReason = 6; +} diff --git a/proto/EntityFightPropUpdateNotify.proto b/proto/EntityFightPropUpdateNotify.proto new file mode 100644 index 0000000..d438a26 --- /dev/null +++ b/proto/EntityFightPropUpdateNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EntityFightPropUpdateNotify { + uint32 entityId = 1; + map fightPropMap = 2; +} diff --git a/proto/EntityMoveInfo.proto b/proto/EntityMoveInfo.proto new file mode 100644 index 0000000..0085334 --- /dev/null +++ b/proto/EntityMoveInfo.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MotionInfo.proto"; + +message EntityMoveInfo { + uint32 entityId = 1; + MotionInfo motionInfo = 2; + uint32 sceneTime = 3; + uint32 reliableSeq = 4; + bool isReliable = 5; +} diff --git a/proto/EntityPropNotify.proto b/proto/EntityPropNotify.proto new file mode 100644 index 0000000..b2175f3 --- /dev/null +++ b/proto/EntityPropNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message EntityPropNotify { + uint32 entityId = 1; + map propMap = 2; +} diff --git a/proto/EntityRendererChangedInfo.proto b/proto/EntityRendererChangedInfo.proto new file mode 100644 index 0000000..97141d9 --- /dev/null +++ b/proto/EntityRendererChangedInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EntityRendererChangedInfo { + map changedRenderers = 1; + uint32 visibilityCount = 2; + bool isCached = 3; +} diff --git a/proto/Equip.proto b/proto/Equip.proto new file mode 100644 index 0000000..2c57f6d --- /dev/null +++ b/proto/Equip.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Reliquary.proto"; +import "Weapon.proto"; + +message Equip { + oneof detail { + Reliquary reliquary = 1; + Weapon weapon = 2; + } + bool isLocked = 3; +} diff --git a/proto/EvtAiSyncCombatThreatInfoNotify.proto b/proto/EvtAiSyncCombatThreatInfoNotify.proto new file mode 100644 index 0000000..1ae7079 --- /dev/null +++ b/proto/EvtAiSyncCombatThreatInfoNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AiThreatInfo.proto"; + +message EvtAiSyncCombatThreatInfoNotify { + map combatThreatInfoMap = 1; +} diff --git a/proto/EvtAiSyncSkillCdNotify.proto b/proto/EvtAiSyncSkillCdNotify.proto new file mode 100644 index 0000000..2e33a7c --- /dev/null +++ b/proto/EvtAiSyncSkillCdNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AiSkillCdInfo.proto"; + +message EvtAiSyncSkillCdNotify { + map aiCdMap = 1; +} diff --git a/proto/EvtBeingHitInfo.proto b/proto/EvtBeingHitInfo.proto new file mode 100644 index 0000000..cbfbf78 --- /dev/null +++ b/proto/EvtBeingHitInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AttackResult.proto"; + +message EvtBeingHitInfo { + uint32 peerId = 1; + AttackResult attackResult = 2; +} diff --git a/proto/EvtBeingHitNotify.proto b/proto/EvtBeingHitNotify.proto new file mode 100644 index 0000000..5e27f02 --- /dev/null +++ b/proto/EvtBeingHitNotify.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "EvtBeingHitInfo.proto"; +import "ForwardType.proto"; + +message EvtBeingHitNotify { + ForwardType forwardType = 1; + EvtBeingHitInfo beingHitInfo = 2; +} diff --git a/proto/EvtBeingHitsCombineNotify.proto b/proto/EvtBeingHitsCombineNotify.proto new file mode 100644 index 0000000..40ee673 --- /dev/null +++ b/proto/EvtBeingHitsCombineNotify.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "EvtBeingHitInfo.proto"; +import "ForwardType.proto"; + +message EvtBeingHitsCombineNotify { + ForwardType forwardType = 1; + repeated EvtBeingHitInfo evtBeingHitInfoList = 2; +} diff --git a/proto/EvtCreateGadgetNotify.proto b/proto/EvtCreateGadgetNotify.proto new file mode 100644 index 0000000..ab6eeea --- /dev/null +++ b/proto/EvtCreateGadgetNotify.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ForwardType.proto"; +import "Vector.proto"; + +message EvtCreateGadgetNotify { + ForwardType forwardType = 1; + uint32 entityId = 2; + uint32 configId = 3; + uint32 campId = 4; + uint32 campType = 5; + Vector initPos = 6; + Vector initEulerAngles = 7; + uint64 guid = 8; + uint32 ownerEntityId = 9; + uint32 targetEntityId = 10; + bool isAsyncLoad = 11; + uint32 targetLockPointIndex = 12; + uint32 roomId = 13; + uint32 propOwnerEntityId = 14; + bool sightGroupWithOwner = 15; +} diff --git a/proto/EvtDestroyGadgetNotify.proto b/proto/EvtDestroyGadgetNotify.proto new file mode 100644 index 0000000..c170861 --- /dev/null +++ b/proto/EvtDestroyGadgetNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ForwardType.proto"; + +message EvtDestroyGadgetNotify { + ForwardType forwardType = 1; + uint32 entityId = 2; +} diff --git a/proto/EvtHittingOtherInfo.proto b/proto/EvtHittingOtherInfo.proto new file mode 100644 index 0000000..f2dce26 --- /dev/null +++ b/proto/EvtHittingOtherInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AttackResult.proto"; + +message EvtHittingOtherInfo { + uint32 peerId = 1; + AttackResult attackResult = 2; +} diff --git a/proto/FeatureBlockInfo.proto b/proto/FeatureBlockInfo.proto new file mode 100644 index 0000000..8feafc8 --- /dev/null +++ b/proto/FeatureBlockInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message FeatureBlockInfo { + uint32 featureType = 1; + uint32 endTime = 2; +} diff --git a/proto/FetterData.proto b/proto/FetterData.proto new file mode 100644 index 0000000..92ea232 --- /dev/null +++ b/proto/FetterData.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message FetterData { + uint32 fetterId = 1; + uint32 fetterState = 2; + repeated uint32 condIndexList = 3; +} diff --git a/proto/FightPropPair.proto b/proto/FightPropPair.proto new file mode 100644 index 0000000..fb6f0e3 --- /dev/null +++ b/proto/FightPropPair.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message FightPropPair { + uint32 type = 1; + float propValue = 2; +} diff --git a/proto/ForwardType.proto b/proto/ForwardType.proto new file mode 100644 index 0000000..329e2ef --- /dev/null +++ b/proto/ForwardType.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ForwardType { + ForwardLocal = 0; + ForwardToAll = 1; + ForwardToAllExceptCur = 2; + ForwardToHost = 3; + ForwardToAllGuest = 4; + ForwardToPeer = 5; + ForwardToPeers = 6; + ForwardOnlyServer = 7; + ForwardToAllExistExceptCur = 8; +} diff --git a/proto/FriendBrief.proto b/proto/FriendBrief.proto new file mode 100644 index 0000000..9b18192 --- /dev/null +++ b/proto/FriendBrief.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendEnterHomeOption.proto"; +import "FriendOnlineState.proto"; +import "HeadImage.proto"; +import "SocialShowAvatarInfo.proto"; + +message FriendBrief { + uint32 uid = 1; + string nickname = 2; + uint32 level = 3; + uint32 worldLevel = 5; + string signature = 6; + FriendOnlineState onlineState = 7; + uint32 param = 8; + bool isMpModeAvailable = 10; + string onlineId = 11; + uint32 lastActiveTime = 12; + uint32 nameCardId = 13; + uint32 mpPlayerNum = 14; + bool isChatNoDisturb = 15; + uint32 chatSequence = 16; + string remarkName = 17; + repeated SocialShowAvatarInfo showAvatarInfoList = 22; + FriendEnterHomeOption friendEnterHomeOption = 23; + HeadImage avatar = 24; + uint32 unk1 = 25; + uint32 unk2 = 27; +} diff --git a/proto/FriendEnterHomeOption.proto b/proto/FriendEnterHomeOption.proto new file mode 100644 index 0000000..2e3e6af --- /dev/null +++ b/proto/FriendEnterHomeOption.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum FriendEnterHomeOption { + NeedConfirm = 0; + Refuse = 1; + Direct = 2; +} diff --git a/proto/FriendOnlineState.proto b/proto/FriendOnlineState.proto new file mode 100644 index 0000000..ea1f2ba --- /dev/null +++ b/proto/FriendOnlineState.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum FriendOnlineState { + FRIEND_DISCONNECT = 0; + FRIEND_ONLINE = 1; +} diff --git a/proto/Furniture.proto b/proto/Furniture.proto new file mode 100644 index 0000000..dc4a2a3 --- /dev/null +++ b/proto/Furniture.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message Furniture { + uint32 count = 1; +} diff --git a/proto/GachaInfo.proto b/proto/GachaInfo.proto new file mode 100644 index 0000000..5399ab7 --- /dev/null +++ b/proto/GachaInfo.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GachaUpInfo.proto"; + +message GachaInfo { + uint32 gachaType = 1; + uint32 scheduleId = 2; + uint32 beginTime = 3; + uint32 endTime = 4; + uint32 costItemId = 5; + uint32 costItemNum = 6; + string gachaPrefabPath = 7; + string gachaProbUrl = 8; + string gachaRecordUrl = 9; + string gachaPreviewPrefabPath = 10; + uint32 tenCostItemId = 11; + uint32 tenCostItemNum = 12; + uint32 leftGachaTimes = 13; + uint32 gachaTimesLimit = 14; + uint32 gachaSortId = 15; + string gachaProbUrlOversea = 16; + string gachaRecordUrlOversea = 17; + repeated GachaUpInfo gachaUpInfoList = 18; + string gachaTitlePath = 19; + repeated uint32 mainNameId = 20; + repeated uint32 subNameId = 21; +} diff --git a/proto/GachaItem.proto b/proto/GachaItem.proto new file mode 100644 index 0000000..7b39a99 --- /dev/null +++ b/proto/GachaItem.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GachaTransferItem.proto"; +import "ItemParam.proto"; + +message GachaItem { + ItemParam gachaItem = 1; + repeated GachaTransferItem transferItems = 2; + bool isFlashCard = 3; + bool isGachaItemNew = 4; + repeated ItemParam tokenItemList = 5; +} diff --git a/proto/GachaTransferItem.proto b/proto/GachaTransferItem.proto new file mode 100644 index 0000000..715339d --- /dev/null +++ b/proto/GachaTransferItem.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message GachaTransferItem { + ItemParam item = 1; + bool isTransferItemNew = 2; +} diff --git a/proto/GachaUpInfo.proto b/proto/GachaUpInfo.proto new file mode 100644 index 0000000..df195cf --- /dev/null +++ b/proto/GachaUpInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GachaUpInfo { + uint32 itemParentType = 1; + repeated uint32 itemIdList = 2; +} diff --git a/proto/GadgetBornType.proto b/proto/GadgetBornType.proto new file mode 100644 index 0000000..beddb85 --- /dev/null +++ b/proto/GadgetBornType.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum GadgetBornType { + GadgetBornNone = 0; + GadgetBornInAir = 1; + GadgetBornPlayer = 2; + GadgetBornMonsterHit = 3; + GadgetBornMonsterDie = 4; + GadgetBornGadget = 5; + GadgetBornGround = 6; +} diff --git a/proto/GadgetClientParam.proto b/proto/GadgetClientParam.proto new file mode 100644 index 0000000..546ef56 --- /dev/null +++ b/proto/GadgetClientParam.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GadgetClientParam { + uint32 campId = 1; + uint32 campType = 2; + uint64 guid = 3; + uint32 ownerEntityId = 4; + uint32 targetEntityId = 5; + bool asyncLoad = 6; +} diff --git a/proto/GadgetCrucibleInfo.proto b/proto/GadgetCrucibleInfo.proto new file mode 100644 index 0000000..766e455 --- /dev/null +++ b/proto/GadgetCrucibleInfo.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GadgetCrucibleInfo { + +} diff --git a/proto/GadgetInteractReq.proto b/proto/GadgetInteractReq.proto new file mode 100644 index 0000000..fb3df42 --- /dev/null +++ b/proto/GadgetInteractReq.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "InterOpType.proto"; +import "ResinCostType.proto"; + +message GadgetInteractReq { + uint32 gadgetEntityId = 1; + InterOpType opType = 2; + uint32 gadgetId = 3; + bool isUseCondenseResin = 4; + ResinCostType resinCostType = 5; +} diff --git a/proto/GadgetInteractRsp.proto b/proto/GadgetInteractRsp.proto new file mode 100644 index 0000000..c08161b --- /dev/null +++ b/proto/GadgetInteractRsp.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "InterOpType.proto"; +import "InteractType.proto"; + +message GadgetInteractRsp { + int32 retcode = 1; + uint32 gadgetEntityId = 2; + InteractType interactType = 3; + InterOpType opType = 4; + uint32 gadgetId = 5; +} diff --git a/proto/GadgetPlayInfo.proto b/proto/GadgetPlayInfo.proto new file mode 100644 index 0000000..28fe9a7 --- /dev/null +++ b/proto/GadgetPlayInfo.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GadgetCrucibleInfo.proto"; + +message GadgetPlayInfo { + uint32 playType = 1; + uint32 duration = 2; + repeated uint32 progressStageList = 3; + uint32 startCd = 4; + uint32 startTime = 5; + uint32 progress = 6; + oneof playInfo { + GadgetCrucibleInfo crucibleInfo = 21; + } +} diff --git a/proto/GetActivityInfoRsp.proto b/proto/GetActivityInfoRsp.proto new file mode 100644 index 0000000..e44903a --- /dev/null +++ b/proto/GetActivityInfoRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ActivityInfo.proto"; + +message GetActivityInfoRsp { + int32 retcode = 1; + repeated ActivityInfo activityInfoList = 2; + repeated uint32 activatedSaleIdList = 3; +} diff --git a/proto/GetAllUnlockNameCardRsp.proto b/proto/GetAllUnlockNameCardRsp.proto new file mode 100644 index 0000000..1a93350 --- /dev/null +++ b/proto/GetAllUnlockNameCardRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetAllUnlockNameCardRsp { + int32 retcode = 1; + repeated uint32 nameCardList = 2; +} diff --git a/proto/GetAuthkeyReq.proto b/proto/GetAuthkeyReq.proto new file mode 100644 index 0000000..f4c212c --- /dev/null +++ b/proto/GetAuthkeyReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetAuthkeyReq { + string authAppid = 1; + uint32 signType = 2; + uint32 authkeyVer = 3; +} diff --git a/proto/GetAuthkeyRsp.proto b/proto/GetAuthkeyRsp.proto new file mode 100644 index 0000000..584251a --- /dev/null +++ b/proto/GetAuthkeyRsp.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetAuthkeyRsp { + int32 retcode = 1; + string authkey = 2; + string authAppid = 3; + uint32 signType = 4; + uint32 authkeyVer = 5; + string gameBiz = 6; +} diff --git a/proto/GetGachaInfoRsp.proto b/proto/GetGachaInfoRsp.proto new file mode 100644 index 0000000..c275f56 --- /dev/null +++ b/proto/GetGachaInfoRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GachaInfo.proto"; + +message GetGachaInfoRsp { + int32 retcode = 1; + repeated GachaInfo gachaInfoList = 2; + uint32 gachaRandom = 3; +} diff --git a/proto/GetPlayerAskFriendListRsp.proto b/proto/GetPlayerAskFriendListRsp.proto new file mode 100644 index 0000000..c783f38 --- /dev/null +++ b/proto/GetPlayerAskFriendListRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendBrief.proto"; + +message GetPlayerAskFriendListRsp { + int32 retcode = 1; + repeated FriendBrief askFriendList = 2; +} diff --git a/proto/GetPlayerBlacklistRsp.proto b/proto/GetPlayerBlacklistRsp.proto new file mode 100644 index 0000000..979e983 --- /dev/null +++ b/proto/GetPlayerBlacklistRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendBrief.proto"; + +message GetPlayerBlacklistRsp { + int32 retcode = 1; + repeated FriendBrief blacklist = 2; +} diff --git a/proto/GetPlayerFriendListRsp.proto b/proto/GetPlayerFriendListRsp.proto new file mode 100644 index 0000000..95f8c5e --- /dev/null +++ b/proto/GetPlayerFriendListRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendBrief.proto"; + +message GetPlayerFriendListRsp { + int32 retcode = 1; + repeated FriendBrief friendList = 2; + repeated FriendBrief askFriendList = 3; +} diff --git a/proto/GetPlayerSocialDetailReq.proto b/proto/GetPlayerSocialDetailReq.proto new file mode 100644 index 0000000..4905426 --- /dev/null +++ b/proto/GetPlayerSocialDetailReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetPlayerSocialDetailReq { + uint32 uid = 1; +} diff --git a/proto/GetPlayerSocialDetailRsp.proto b/proto/GetPlayerSocialDetailRsp.proto new file mode 100644 index 0000000..95d9e89 --- /dev/null +++ b/proto/GetPlayerSocialDetailRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SocialDetail.proto"; + +message GetPlayerSocialDetailRsp { + int32 retcode = 1; + SocialDetail detailData = 2; +} diff --git a/proto/GetPlayerTokenReq.proto b/proto/GetPlayerTokenReq.proto new file mode 100644 index 0000000..083a030 --- /dev/null +++ b/proto/GetPlayerTokenReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetPlayerTokenReq { + uint32 accountType = 1; + string accountUid = 2; + string accountToken = 3; + uint64 platformType = 7; + uint64 schannelId = 11; +} diff --git a/proto/GetPlayerTokenRsp.proto b/proto/GetPlayerTokenRsp.proto new file mode 100644 index 0000000..011e500 --- /dev/null +++ b/proto/GetPlayerTokenRsp.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetPlayerTokenRsp { + uint32 playerUid = 3; + string accountToken = 4; + int32 accountType = 6; + bool isProficientPlayer = 8; + uint32 gmUid = 10; + uint64 secretKey = 11; + bytes secretKeyBuffer = 12; + uint64 platformType = 13; + uint32 channelId = 16; + string countryCode = 19; + string unk1 = 22; + uint32 unk3 = 23; + string clientIp = 24; +} diff --git a/proto/GetSceneAreaReq.proto b/proto/GetSceneAreaReq.proto new file mode 100644 index 0000000..c664836 --- /dev/null +++ b/proto/GetSceneAreaReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetSceneAreaReq { + uint32 sceneId = 1; + uint32 belongUid = 2; +} diff --git a/proto/GetSceneAreaRsp.proto b/proto/GetSceneAreaRsp.proto new file mode 100644 index 0000000..b25ae29 --- /dev/null +++ b/proto/GetSceneAreaRsp.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CityInfo.proto"; + +message GetSceneAreaRsp { + int32 retcode = 1; + uint32 sceneId = 2; + repeated uint32 areaIdList = 3; + repeated CityInfo cityInfoList = 4; +} diff --git a/proto/GetScenePointReq.proto b/proto/GetScenePointReq.proto new file mode 100644 index 0000000..42538a4 --- /dev/null +++ b/proto/GetScenePointReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetScenePointReq { + uint32 sceneId = 1; + uint32 belongUid = 2; +} diff --git a/proto/GetScenePointRsp.proto b/proto/GetScenePointRsp.proto new file mode 100644 index 0000000..7973829 --- /dev/null +++ b/proto/GetScenePointRsp.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetScenePointRsp { + int32 retcode = 1; + uint32 sceneId = 2; + repeated uint32 unlockedPointList = 3; + uint32 belongUid = 4; + repeated uint32 unlockAreaList = 5; + repeated uint32 lockedPointList = 6; + repeated uint32 toBeExploreDungeonEntryList = 7; + repeated uint32 notExploredDungeonEntryList = 8; + repeated uint32 groupUnlimitPointList = 9; + repeated uint32 notInteractDungeonEntryList = 10; +} diff --git a/proto/GetShopReq.proto b/proto/GetShopReq.proto new file mode 100644 index 0000000..298e6c0 --- /dev/null +++ b/proto/GetShopReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetShopReq { + uint32 shopType = 1; +} diff --git a/proto/GetShopRsp.proto b/proto/GetShopRsp.proto new file mode 100644 index 0000000..e7295dc --- /dev/null +++ b/proto/GetShopRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Shop.proto"; + +message GetShopRsp { + int32 retcode = 1; + Shop shop = 2; +} diff --git a/proto/GetShopmallDataRsp.proto b/proto/GetShopmallDataRsp.proto new file mode 100644 index 0000000..6db6d68 --- /dev/null +++ b/proto/GetShopmallDataRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetShopmallDataRsp { + int32 retcode = 1; + repeated uint32 shopTypeList = 2; +} diff --git a/proto/GetWorldMpInfoRsp.proto b/proto/GetWorldMpInfoRsp.proto new file mode 100644 index 0000000..c4bebe7 --- /dev/null +++ b/proto/GetWorldMpInfoRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetWorldMpInfoRsp { + int32 retcode = 1; + bool isInMpMode = 2; + uint32 quitMpValidTime = 3; +} diff --git a/proto/H5ActivityIdsNotify.proto b/proto/H5ActivityIdsNotify.proto new file mode 100644 index 0000000..59521ed --- /dev/null +++ b/proto/H5ActivityIdsNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message H5ActivityIdsNotify { + map h5ActivityMap = 1; +} diff --git a/proto/HeadImage.proto b/proto/HeadImage.proto new file mode 100644 index 0000000..0aa6d69 --- /dev/null +++ b/proto/HeadImage.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message HeadImage { + uint32 avatarId = 1; +} diff --git a/proto/HitColliderType.proto b/proto/HitColliderType.proto new file mode 100644 index 0000000..e064487 --- /dev/null +++ b/proto/HitColliderType.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum HitColliderType { + HitColliderInvalid = 0; + HitColliderHitBox = 1; + HitColliderWetHitBox = 2; + HitColliderHeadBox = 3; +} diff --git a/proto/HitCollision.proto b/proto/HitCollision.proto new file mode 100644 index 0000000..b3766b0 --- /dev/null +++ b/proto/HitCollision.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "HitColliderType.proto"; +import "Vector.proto"; + +message HitCollision { + HitColliderType hitColliderType = 1; + int32 hitBoxIndex = 2; + Vector hitPoint = 3; + Vector hitDir = 4; + float attackeeHitForceAngle = 5; + float attackeeHitEntityAngle = 6; +} diff --git a/proto/HostPlayerNotify.proto b/proto/HostPlayerNotify.proto new file mode 100644 index 0000000..2659edc --- /dev/null +++ b/proto/HostPlayerNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message HostPlayerNotify { + uint32 hostUid = 1; + uint32 hostPeerId = 2; +} diff --git a/proto/InterOpType.proto b/proto/InterOpType.proto new file mode 100644 index 0000000..9ccecdb --- /dev/null +++ b/proto/InterOpType.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum InterOpType { + InterOpFinish = 0; + InterOpStart = 1; +} diff --git a/proto/InteractType.proto b/proto/InteractType.proto new file mode 100644 index 0000000..6883ad3 --- /dev/null +++ b/proto/InteractType.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum InteractType { + InteractNone = 0; + InteractPickItem = 1; + InteractGather = 2; + InteractOpenChest = 3; + InteractOpenStatue = 4; + InteractConsum = 5; + InteractMpPlayReward = 6; + InteractView = 7; + InteractGeneralReward = 8; + InteractMiracleRing = 9; + InteractFoundation = 10; +} diff --git a/proto/Item.proto b/proto/Item.proto new file mode 100644 index 0000000..f0857be --- /dev/null +++ b/proto/Item.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Equip.proto"; +import "Furniture.proto"; +import "Material.proto"; + +message Item { + uint32 itemId = 1; + uint64 guid = 2; + oneof detail { + Material material = 5; + Equip equip = 6; + Furniture furniture = 7; + } +} diff --git a/proto/ItemAddHintNotify.proto b/proto/ItemAddHintNotify.proto new file mode 100644 index 0000000..ea4db2f --- /dev/null +++ b/proto/ItemAddHintNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemHint.proto"; +import "Vector.proto"; + +message ItemAddHintNotify { + repeated ItemHint itemList = 1; + Vector position = 2; + bool isPositionValid = 3; + uint32 reason = 4; + uint32 questId = 5; + bool isTransferedFromAvatarCard = 6; + repeated ItemHint overflowTransformedItemList = 7; +} diff --git a/proto/ItemExceedLimitNotify.proto b/proto/ItemExceedLimitNotify.proto new file mode 100644 index 0000000..d294ba8 --- /dev/null +++ b/proto/ItemExceedLimitNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ItemExceedLimitNotify { + bool isMaterialExceedLimit = 1; + bool isWeaponExceedLimit = 2; + bool isReliquaryExceedLimit = 3; + repeated uint32 itemIdList = 4; +} diff --git a/proto/ItemGivingReq.proto b/proto/ItemGivingReq.proto new file mode 100644 index 0000000..f09b8c9 --- /dev/null +++ b/proto/ItemGivingReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message ItemGivingReq { + uint32 givingId = 1; + repeated ItemParam itemParamList = 2; + map itemGuidCountMap = 3; +} diff --git a/proto/ItemGivingRsp.proto b/proto/ItemGivingRsp.proto new file mode 100644 index 0000000..ea3694b --- /dev/null +++ b/proto/ItemGivingRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ItemGivingRsp { + int32 retcode = 1; + uint32 givingId = 2; +} diff --git a/proto/ItemHint.proto b/proto/ItemHint.proto new file mode 100644 index 0000000..2d03617 --- /dev/null +++ b/proto/ItemHint.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ItemHint { + uint32 itemId = 1; + uint32 count = 2; + bool isNew = 3; +} diff --git a/proto/ItemParam.proto b/proto/ItemParam.proto new file mode 100644 index 0000000..2e48028 --- /dev/null +++ b/proto/ItemParam.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ItemParam { + uint32 itemId = 1; + uint32 count = 2; +} diff --git a/proto/LifeStateChangeNotify.proto b/proto/LifeStateChangeNotify.proto new file mode 100644 index 0000000..4f16e93 --- /dev/null +++ b/proto/LifeStateChangeNotify.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerDieType.proto"; + +message LifeStateChangeNotify { + uint32 entityId = 1; + uint32 lifeState = 2; + uint32 sourceEntityId = 3; + string attackTag = 4; + PlayerDieType dieType = 5; + uint32 moveReliableSeq = 6; +} diff --git a/proto/MPLevelEntityInfo.proto b/proto/MPLevelEntityInfo.proto new file mode 100644 index 0000000..810e1d3 --- /dev/null +++ b/proto/MPLevelEntityInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; + +message MPLevelEntityInfo { + uint32 entityId = 1; + uint32 authorityPeerId = 2; + AbilitySyncStateInfo abilityInfo = 3; +} diff --git a/proto/MapMarkFromType.proto b/proto/MapMarkFromType.proto new file mode 100644 index 0000000..5d31e1a --- /dev/null +++ b/proto/MapMarkFromType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MapMarkFromType { + None = 0; + MonsterType = 1; + QuestType = 2; +} diff --git a/proto/MapMarkPoint.proto b/proto/MapMarkPoint.proto new file mode 100644 index 0000000..fb244db --- /dev/null +++ b/proto/MapMarkPoint.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MapMarkFromType.proto"; +import "MapMarkPointType.proto"; +import "Vector.proto"; + +message MapMarkPoint { + uint32 sceneId = 1; + string name = 2; + Vector pos = 3; + MapMarkPointType pointType = 4; + uint32 monsterId = 5; + MapMarkFromType fromType = 6; + uint32 questId = 7; +} diff --git a/proto/MapMarkPointType.proto b/proto/MapMarkPointType.proto new file mode 100644 index 0000000..986d308 --- /dev/null +++ b/proto/MapMarkPointType.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MapMarkPointType { + Npc = 0; + Quest = 1; + Special = 2; + Mine = 3; + Collection = 4; + Monster = 5; +} diff --git a/proto/MarkMapReq.proto b/proto/MarkMapReq.proto new file mode 100644 index 0000000..2e57ebb --- /dev/null +++ b/proto/MarkMapReq.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MapMarkPoint.proto"; +import "Operation.proto"; + +message MarkMapReq { + Operation op = 1; + MapMarkPoint old = 2; + MapMarkPoint mark = 3; +} diff --git a/proto/MassivePropParam.proto b/proto/MassivePropParam.proto new file mode 100644 index 0000000..bd30d45 --- /dev/null +++ b/proto/MassivePropParam.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message MassivePropParam { + int32 elementReactionType = 1; + uint32 casterId = 2; + repeated float paramList = 3; + uint32 syncFlag = 4; +} diff --git a/proto/MassivePropSyncInfo.proto b/proto/MassivePropSyncInfo.proto new file mode 100644 index 0000000..276f7a3 --- /dev/null +++ b/proto/MassivePropSyncInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MassivePropParam.proto"; + +message MassivePropSyncInfo { + int64 id = 1; + map propMap = 2; +} diff --git a/proto/Material.proto b/proto/Material.proto new file mode 100644 index 0000000..4fd76bc --- /dev/null +++ b/proto/Material.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MaterialDeleteInfo.proto"; + +message Material { + uint32 count = 1; + MaterialDeleteInfo deleteInfo = 2; +} diff --git a/proto/MaterialDeleteInfo.proto b/proto/MaterialDeleteInfo.proto new file mode 100644 index 0000000..9e5a310 --- /dev/null +++ b/proto/MaterialDeleteInfo.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CountDownDelete.proto"; +import "DateTimeDelete.proto"; +import "DelayWeekCountDownDelete.proto"; + +message MaterialDeleteInfo { + bool hasDeleteConfig = 1; + oneof deleteInfo { + CountDownDelete countDownDelete = 2; + DateTimeDelete dateDelete = 3; + DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + } +} diff --git a/proto/MaterialInfo.proto b/proto/MaterialInfo.proto new file mode 100644 index 0000000..ea8701d --- /dev/null +++ b/proto/MaterialInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message MaterialInfo { + uint64 guid = 1; + uint32 count = 2; +} diff --git a/proto/MathQuaternion.proto b/proto/MathQuaternion.proto new file mode 100644 index 0000000..a368966 --- /dev/null +++ b/proto/MathQuaternion.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message MathQuaternion { + float x = 1; + float y = 2; + float z = 3; + float w = 4; +} diff --git a/proto/ModifierDurability.proto b/proto/ModifierDurability.proto new file mode 100644 index 0000000..ed8d9e7 --- /dev/null +++ b/proto/ModifierDurability.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ModifierDurability { + float reduceRatio = 1; + float remainingDurability = 2; +} diff --git a/proto/MonsterBornType.proto b/proto/MonsterBornType.proto new file mode 100644 index 0000000..31aade8 --- /dev/null +++ b/proto/MonsterBornType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MonsterBornType { + MonsterBornNone = 0; + MonsterBornDefault = 1; + MonsterBornRandom = 2; +} diff --git a/proto/MonsterRoute.proto b/proto/MonsterRoute.proto new file mode 100644 index 0000000..ac98be7 --- /dev/null +++ b/proto/MonsterRoute.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "RoutePoint.proto"; + +message MonsterRoute { + RoutePoint routePoints = 1; + uint32 speedLevel = 2; + uint32 routeType = 3; + float arriveRange = 4; +} diff --git a/proto/MotionInfo.proto b/proto/MotionInfo.proto new file mode 100644 index 0000000..faddc14 --- /dev/null +++ b/proto/MotionInfo.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MotionState.proto"; +import "Vector.proto"; + +message MotionInfo { + Vector pos = 1; + Vector rot = 2; + Vector speed = 3; + MotionState state = 4; + repeated Vector params = 5; + Vector refPos = 6; + uint32 refId = 7; + uint32 sceneTime = 8; + uint32 intervalVelocity = 9; +} diff --git a/proto/MotionState.proto b/proto/MotionState.proto new file mode 100644 index 0000000..91102ee --- /dev/null +++ b/proto/MotionState.proto @@ -0,0 +1,53 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MotionState { + MotionNone = 0; + MotionReset = 1; + MotionStandby = 2; + MotionStandbyMove = 3; + MotionWalk = 4; + MotionRun = 5; + MotionDash = 6; + MotionClimb = 7; + MotionClimbJump = 8; + MotionStandbyToClimb = 9; + MotionFight = 10; + MotionJump = 11; + MotionDrop = 12; + MotionFly = 13; + MotionSwimMove = 14; + MotionSwimIdle = 15; + MotionSwimDash = 16; + MotionSwimJump = 17; + MotionSlip = 18; + MotionGoUpstairs = 19; + MotionFallOnGround = 20; + MotionJumpUpWallForStandby = 21; + MotionJumpOffWall = 22; + MotionPoweredFly = 23; + MotionLadderIdle = 24; + MotionLadderMove = 25; + MotionLadderSlip = 26; + MotionStandbyToLadder = 27; + MotionLadderToStandby = 28; + MotionDangerStandby = 29; + MotionDangerStandbyMove = 30; + MotionDangerWalk = 31; + MotionDangerRun = 32; + MotionDangerDash = 33; + MotionCrouchIdle = 34; + MotionCrouchMove = 35; + MotionCrouchRoll = 36; + MotionNotify = 37; + MotionLandSpeed = 38; + MotionMoveFailAck = 39; + MotionWaterfall = 40; + MotionDashBeforeShake = 41; + MotionSitIdle = 42; + MotionForceSetPos = 43; + MotionQuestForceDrag = 44; + MotionFollowRoute = 45; + MotionNum = 46; +} diff --git a/proto/MovingPlatformType.proto b/proto/MovingPlatformType.proto new file mode 100644 index 0000000..f3861d1 --- /dev/null +++ b/proto/MovingPlatformType.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message MovingPlatformType { + +} diff --git a/proto/MpSettingType.proto b/proto/MpSettingType.proto new file mode 100644 index 0000000..f24083b --- /dev/null +++ b/proto/MpSettingType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MpSettingType { + MpSettingNoEnter = 0; + MpSettingEnterFreely = 1; + MpSettingEnterAfterApply = 2; +} diff --git a/proto/OnlinePlayerInfo.proto b/proto/OnlinePlayerInfo.proto new file mode 100644 index 0000000..76ed24a --- /dev/null +++ b/proto/OnlinePlayerInfo.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "HeadImage.proto"; +import "MpSettingType.proto"; + +message OnlinePlayerInfo { + uint32 uid = 1; + string nickname = 2; + uint32 playerLevel = 3; + MpSettingType mpSettingType = 5; + uint32 curPlayerNumInWorld = 6; + uint32 worldLevel = 7; + string onlineId = 8; + uint32 nameCardId = 9; + repeated uint32 blacklistUidList = 10; + string signature = 11; + HeadImage avatar = 12; +} diff --git a/proto/OpenStateUpdateNotify.proto b/proto/OpenStateUpdateNotify.proto new file mode 100644 index 0000000..91d1d2f --- /dev/null +++ b/proto/OpenStateUpdateNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message OpenStateUpdateNotify { + map openStateMap = 1; +} diff --git a/proto/Operation.proto b/proto/Operation.proto new file mode 100644 index 0000000..c48819b --- /dev/null +++ b/proto/Operation.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum Operation { + Add = 0; + Mod = 1; + Del = 2; + Get = 3; +} diff --git a/proto/PacketHead.proto b/proto/PacketHead.proto new file mode 100644 index 0000000..a9e4e52 --- /dev/null +++ b/proto/PacketHead.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PacketHead { + uint32 clientSequenceId = 3; + uint64 timestamp = 6; +} diff --git a/proto/PingReq.proto b/proto/PingReq.proto new file mode 100644 index 0000000..231ece4 --- /dev/null +++ b/proto/PingReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PingReq { + int32 seq = 1; + int32 clientTime = 2; +} diff --git a/proto/PingRsp.proto b/proto/PingRsp.proto new file mode 100644 index 0000000..3efd497 --- /dev/null +++ b/proto/PingRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PingRsp { + int32 retcode = 1; + uint32 seq = 2; + uint32 clientTime = 3; +} diff --git a/proto/PlatformInfo.proto b/proto/PlatformInfo.proto new file mode 100644 index 0000000..c78b36b --- /dev/null +++ b/proto/PlatformInfo.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MathQuaternion.proto"; +import "MovingPlatformType.proto"; +import "Route.proto"; +import "Vector.proto"; + +message PlatformInfo { + uint32 routeId = 1; + int32 startIndex = 2; + uint32 startRouteTime = 3; + uint32 startSceneTime = 4; + Vector startPos = 7; + bool isStarted = 8; + MathQuaternion startRot = 9; + uint32 stopSceneTime = 10; + Vector posOffset = 11; + MathQuaternion rotOffset = 12; + MovingPlatformType movingPlatformType = 13; + bool isActive = 14; + Route route = 15; + uint32 pointId = 16; +} diff --git a/proto/PlayerApplyEnterMpNotify.proto b/proto/PlayerApplyEnterMpNotify.proto new file mode 100644 index 0000000..c5b3cc1 --- /dev/null +++ b/proto/PlayerApplyEnterMpNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "OnlinePlayerInfo.proto"; + +message PlayerApplyEnterMpNotify { + OnlinePlayerInfo srcPlayerInfo = 1; + uint32 srcAppId = 2; +} diff --git a/proto/PlayerApplyEnterMpReason.proto b/proto/PlayerApplyEnterMpReason.proto new file mode 100644 index 0000000..e305e43 --- /dev/null +++ b/proto/PlayerApplyEnterMpReason.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum PlayerApplyEnterMpReason { + PlayerJudge = 0; + SceneCannotEnter = 1; + PlayerCannotEnterMp = 2; + SystemJudge = 3; + AllowEnterPlayerFull = 4; + WorldLevelLowerThanHost = 5; + HostInMatch = 6; + PlayerInBlacklist = 7; + PsPlayerNotAcceptOthers = 8; + HostIsBlocked = 9; + OtherDataVersionNotLatest = 10; + DataVersionNotLatest = 11; + PlayerNotInPlayerWorld = 12; +} diff --git a/proto/PlayerApplyEnterMpReq.proto b/proto/PlayerApplyEnterMpReq.proto new file mode 100644 index 0000000..b4fc372 --- /dev/null +++ b/proto/PlayerApplyEnterMpReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerApplyEnterMpReq { + uint32 targetUid = 1; +} diff --git a/proto/PlayerApplyEnterMpResultNotify.proto b/proto/PlayerApplyEnterMpResultNotify.proto new file mode 100644 index 0000000..2befeaf --- /dev/null +++ b/proto/PlayerApplyEnterMpResultNotify.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerApplyEnterMpReason.proto"; + +message PlayerApplyEnterMpResultNotify { + uint32 targetUid = 1; + bool isAgreed = 2; + PlayerApplyEnterMpReason reason = 3; + string targetNickname = 4; +} diff --git a/proto/PlayerApplyEnterMpResultReq.proto b/proto/PlayerApplyEnterMpResultReq.proto new file mode 100644 index 0000000..6e151c9 --- /dev/null +++ b/proto/PlayerApplyEnterMpResultReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerApplyEnterMpResultReq { + uint32 applyUid = 1; + bool isAgreed = 2; +} diff --git a/proto/PlayerApplyEnterMpResultRsp.proto b/proto/PlayerApplyEnterMpResultRsp.proto new file mode 100644 index 0000000..b385556 --- /dev/null +++ b/proto/PlayerApplyEnterMpResultRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerApplyEnterMpResultRsp { + int32 retcode = 1; + uint32 applyUid = 2; + bool isAgreed = 3; + uint32 param = 4; +} diff --git a/proto/PlayerApplyEnterMpRsp.proto b/proto/PlayerApplyEnterMpRsp.proto new file mode 100644 index 0000000..29148a0 --- /dev/null +++ b/proto/PlayerApplyEnterMpRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerApplyEnterMpRsp { + int32 retcode = 1; + uint32 targetUid = 2; + uint32 param = 3; +} diff --git a/proto/PlayerChatNotify.proto b/proto/PlayerChatNotify.proto new file mode 100644 index 0000000..e6844e8 --- /dev/null +++ b/proto/PlayerChatNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PlayerChatNotify { + uint32 channelId = 1; + ChatInfo chatInfo = 2; +} diff --git a/proto/PlayerChatReq.proto b/proto/PlayerChatReq.proto new file mode 100644 index 0000000..37e37a1 --- /dev/null +++ b/proto/PlayerChatReq.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PlayerChatReq { + uint32 channelId = 1; + ChatInfo chatInfo = 2; +} diff --git a/proto/PlayerChatRsp.proto b/proto/PlayerChatRsp.proto new file mode 100644 index 0000000..01d9b31 --- /dev/null +++ b/proto/PlayerChatRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerChatRsp { + int32 retcode = 1; + uint32 chatForbiddenEndtime = 2; +} diff --git a/proto/PlayerDataNotify.proto b/proto/PlayerDataNotify.proto new file mode 100644 index 0000000..817cc4c --- /dev/null +++ b/proto/PlayerDataNotify.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message PlayerDataNotify { + string nickName = 1; + uint64 clientTime = 2; + bool isFirstLoginToday = 3; + uint32 regionId = 4; + map propMap = 6; +} diff --git a/proto/PlayerDieType.proto b/proto/PlayerDieType.proto new file mode 100644 index 0000000..d26a555 --- /dev/null +++ b/proto/PlayerDieType.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum PlayerDieType { + PlayerDieNone = 0; + PlayerDieKillByMonster = 1; + PlayerDieKillByGear = 2; + PlayerDieFall = 3; + PlayerDieDrawn = 4; + PlayerDieAbyss = 5; + PlayerDieGm = 6; + PlayerDieClimateCold = 7; + PlayerDieStormLighting = 8; +} diff --git a/proto/PlayerEnterSceneInfoNotify.proto b/proto/PlayerEnterSceneInfoNotify.proto new file mode 100644 index 0000000..77e952e --- /dev/null +++ b/proto/PlayerEnterSceneInfoNotify.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarEnterSceneInfo.proto"; +import "MPLevelEntityInfo.proto"; +import "TeamEnterSceneInfo.proto"; + +message PlayerEnterSceneInfoNotify { + uint32 curAvatarEntityId = 1; + repeated AvatarEnterSceneInfo avatarEnterInfo = 2; + TeamEnterSceneInfo teamEnterInfo = 3; + MPLevelEntityInfo mpLevelEntityInfo = 4; + uint32 enterSceneToken = 5; +} diff --git a/proto/PlayerEnterSceneNotify.proto b/proto/PlayerEnterSceneNotify.proto new file mode 100644 index 0000000..1302e05 --- /dev/null +++ b/proto/PlayerEnterSceneNotify.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "EnterType.proto"; +import "Vector.proto"; + +message PlayerEnterSceneNotify { + uint32 sceneId = 1; + Vector pos = 2; + uint64 sceneBeginTime = 3; + EnterType type = 4; + uint32 targetUid = 6; + uint32 prevSceneId = 9; + Vector prevPos = 10; + uint32 dungeonId = 11; + uint32 worldLevel = 12; + uint32 enterSceneToken = 13; + bool isFirstLoginEnterScene = 14; + repeated uint32 sceneTagIdList = 15; + bool isSkipUi = 16; + uint32 enterReason = 17; + uint32 unk1 = 18; + string unk2 = 19; +} diff --git a/proto/PlayerGameTimeNotify.proto b/proto/PlayerGameTimeNotify.proto new file mode 100644 index 0000000..c8292aa --- /dev/null +++ b/proto/PlayerGameTimeNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerGameTimeNotify { + uint32 gameTime = 1; + uint32 uid = 2; +} diff --git a/proto/PlayerGetForceQuitBanInfoRsp.proto b/proto/PlayerGetForceQuitBanInfoRsp.proto new file mode 100644 index 0000000..35de4f4 --- /dev/null +++ b/proto/PlayerGetForceQuitBanInfoRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerGetForceQuitBanInfoRsp { + int32 retcode = 1; + uint32 matchId = 2; + uint32 expireTime = 3; +} diff --git a/proto/PlayerLocationInfo.proto b/proto/PlayerLocationInfo.proto new file mode 100644 index 0000000..9816560 --- /dev/null +++ b/proto/PlayerLocationInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message PlayerLocationInfo { + uint32 uid = 1; + Vector pos = 2; + Vector rot = 3; +} diff --git a/proto/PlayerLoginReq.proto b/proto/PlayerLoginReq.proto new file mode 100644 index 0000000..9d206ed --- /dev/null +++ b/proto/PlayerLoginReq.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TrackingIOInfo.proto"; + +message PlayerLoginReq { + string token = 1; + string clientVersion = 2; + string systemVersion = 3; + string deviceName = 4; + string deviceUuid = 5; + uint32 targetUid = 6; + uint64 loginRand = 7; + bool isEditor = 8; + uint32 languageType = 9; + uint32 accountType = 10; + string accountUid = 11; + string platform = 12; + string deviceInfo = 13; + uint32 platformType = 14; + bool isGuest = 15; + uint32 cloudClientIp = 16; + uint32 gmUid = 17; + string checksum = 18; + string onlineId = 19; + uint32 clientToken = 20; + bytes securityCmdReply = 21; + bytes extraBinData = 22; + string cps = 23; + uint32 channelId = 24; + uint32 subChannelId = 25; + string checksumClientVersion = 26; + uint32 tag = 27; + TrackingIOInfo trackingIoInfo = 28; + string countryCode = 29; + uint32 clientDataVersion = 30; + bytes environmentErrorCode = 31; + uint32 targetHomeOwnerUid = 32; + string psnId = 33; +} diff --git a/proto/PlayerLoginRsp.proto b/proto/PlayerLoginRsp.proto new file mode 100644 index 0000000..d11fd44 --- /dev/null +++ b/proto/PlayerLoginRsp.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "BlockInfo.proto"; +import "FeatureBlockInfo.proto"; +import "ResVersionConfig.proto"; +import "ShortAbilityHashPair.proto"; + +message PlayerLoginRsp { + int32 retcode = 1; + bytes playerData = 2; + bool isNewPlayer = 3; + uint32 targetUid = 4; + uint64 loginRand = 5; + bool isUseAbilityHash = 6; + int32 abilityHashCode = 7; + map abilityHashMap = 8; + uint32 clientDataVersion = 9; + bool isRelogin = 11; + uint32 clientSilenceDataVersion = 13; + string gameBiz = 14; + uint32 playerDataVersion = 15; + string clientMd5 = 16; + string clientSilenceMd5 = 17; + ResVersionConfig resVersionConfig = 20; + map blockInfoMap = 21; + string clientVersionSuffix = 24; + string clientSilenceVersionSuffix = 25; + repeated ShortAbilityHashPair shortAbilityHashMap = 27; + bytes scInfo = 28; + bool isAudit = 29; + bool isScOpen = 30; + string registerCps = 31; + repeated FeatureBlockInfo featureBlockInfoList = 32; + bool isDataNeedRelogin = 33; + string countryCode = 34; + ResVersionConfig nextResVersionConfig = 35; + string nextResourceUrl = 36; + uint32 targetHomeOwnerUid = 37; +} diff --git a/proto/PlayerPropNotify.proto b/proto/PlayerPropNotify.proto new file mode 100644 index 0000000..7341b4d --- /dev/null +++ b/proto/PlayerPropNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message PlayerPropNotify { + map propMap = 1; +} diff --git a/proto/PlayerRTTInfo.proto b/proto/PlayerRTTInfo.proto new file mode 100644 index 0000000..2ed5433 --- /dev/null +++ b/proto/PlayerRTTInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerRTTInfo { + uint32 uid = 1; + uint32 rtt = 2; +} diff --git a/proto/PlayerSetPauseReq.proto b/proto/PlayerSetPauseReq.proto new file mode 100644 index 0000000..984c2f8 --- /dev/null +++ b/proto/PlayerSetPauseReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerSetPauseReq { + bool isPaused = 1; +} diff --git a/proto/PlayerStoreNotify.proto b/proto/PlayerStoreNotify.proto new file mode 100644 index 0000000..0202dcd --- /dev/null +++ b/proto/PlayerStoreNotify.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Item.proto"; +import "StoreType.proto"; + +message PlayerStoreNotify { + StoreType storeType = 1; + repeated Item itemList = 2; + uint32 weightLimit = 3; +} diff --git a/proto/PlayerTimeNotify.proto b/proto/PlayerTimeNotify.proto new file mode 100644 index 0000000..5085127 --- /dev/null +++ b/proto/PlayerTimeNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerTimeNotify { + bool isPaused = 1; + uint64 playerTime = 2; + uint64 serverTime = 3; +} diff --git a/proto/PostEnterSceneRsp.proto b/proto/PostEnterSceneRsp.proto new file mode 100644 index 0000000..ec362f0 --- /dev/null +++ b/proto/PostEnterSceneRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PostEnterSceneRsp { + int32 retcode = 1; + uint32 enterSceneToken = 2; +} diff --git a/proto/PrivateChatNotify.proto b/proto/PrivateChatNotify.proto new file mode 100644 index 0000000..84457ef --- /dev/null +++ b/proto/PrivateChatNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PrivateChatNotify { + ChatInfo chatInfo = 1; +} diff --git a/proto/PrivateChatReq.proto b/proto/PrivateChatReq.proto new file mode 100644 index 0000000..356aee6 --- /dev/null +++ b/proto/PrivateChatReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PrivateChatReq { + uint32 targetUid = 1; + oneof content { + string text = 2; + uint32 icon = 3; + } +} diff --git a/proto/PrivateChatRsp.proto b/proto/PrivateChatRsp.proto new file mode 100644 index 0000000..09e427a --- /dev/null +++ b/proto/PrivateChatRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PrivateChatRsp { + int32 retcode = 1; + uint32 chatForbiddenEndtime = 2; +} diff --git a/proto/PropChangeReason.proto b/proto/PropChangeReason.proto new file mode 100644 index 0000000..123b1d6 --- /dev/null +++ b/proto/PropChangeReason.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum PropChangeReason { + PropChangeNone = 0; + PropChangeStatueRecover = 1; + PropChangeEnergyBall = 2; + PropChangeAbility = 3; + PropChangeLevelup = 4; + PropChangeItem = 5; + PropChangeAvatarCard = 6; + PropChangeCityLevelup = 7; + PropChangeAvatarUpgrade = 8; + PropChangeAvatarPromote = 9; + PropChangePlayerAddExp = 10; + PropChangeFinishQuest = 11; + PropChangeGm = 12; + PropChangeManualAdjustWorldLevel = 13; +} diff --git a/proto/PropPair.proto b/proto/PropPair.proto new file mode 100644 index 0000000..4a5ac0e --- /dev/null +++ b/proto/PropPair.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message PropPair { + uint32 type = 1; + PropValue propValue = 2; +} diff --git a/proto/PropValue.proto b/proto/PropValue.proto new file mode 100644 index 0000000..6d90551 --- /dev/null +++ b/proto/PropValue.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PropValue { + uint32 type = 1; + oneof value { + uint32 ival = 2; + float fval = 3; + } + uint32 val = 4; +} diff --git a/proto/ProtEntityType.proto b/proto/ProtEntityType.proto new file mode 100644 index 0000000..9512f7d --- /dev/null +++ b/proto/ProtEntityType.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ProtEntityType { + ProtEntityNone = 0; + ProtEntityAvatar = 1; + ProtEntityMonster = 2; + ProtEntityNpc = 3; + ProtEntityGadget = 4; + ProtEntityRegion = 5; + ProtEntityWeapon = 6; + ProtEntityWeather = 7; + ProtEntityScene = 8; + ProtEntityTeam = 9; + ProtEntityMassiveEntity = 10; + ProtEntityMpLevel = 11; + ProtEntityPlayTeamEntity = 12; + ProtEntityEyePoint = 13; + ProtEntityMax = 14; +} diff --git a/proto/ProudSkillChangeNotify.proto b/proto/ProudSkillChangeNotify.proto new file mode 100644 index 0000000..fa5ca0b --- /dev/null +++ b/proto/ProudSkillChangeNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ProudSkillChangeNotify { + uint64 avatarGuid = 1; + uint32 entityId = 2; + uint32 skillDepotId = 3; + repeated uint32 proudSkillList = 4; +} diff --git a/proto/ProudSkillExtraLevelNotify.proto b/proto/ProudSkillExtraLevelNotify.proto new file mode 100644 index 0000000..4d612d3 --- /dev/null +++ b/proto/ProudSkillExtraLevelNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ProudSkillExtraLevelNotify { + uint64 avatarGuid = 1; + uint32 talentType = 2; + uint32 talentIndex = 3; + uint32 extraLevel = 4; +} diff --git a/proto/PullPrivateChatReq.proto b/proto/PullPrivateChatReq.proto new file mode 100644 index 0000000..e7d4809 --- /dev/null +++ b/proto/PullPrivateChatReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PullPrivateChatReq { + uint32 targetUid = 1; + uint32 fromSequence = 2; + uint32 pullNum = 3; +} diff --git a/proto/PullPrivateChatRsp.proto b/proto/PullPrivateChatRsp.proto new file mode 100644 index 0000000..076ef87 --- /dev/null +++ b/proto/PullPrivateChatRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PullPrivateChatRsp { + int32 retcode = 1; + repeated ChatInfo chatInfo = 2; +} diff --git a/proto/PullRecentChatRsp.proto b/proto/PullRecentChatRsp.proto new file mode 100644 index 0000000..1aafd00 --- /dev/null +++ b/proto/PullRecentChatRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PullRecentChatRsp { + int32 retcode = 1; + repeated ChatInfo chatInfo = 2; +} diff --git a/proto/QueryCurrRegionHttpRsp.proto b/proto/QueryCurrRegionHttpRsp.proto new file mode 100644 index 0000000..58c2c8b --- /dev/null +++ b/proto/QueryCurrRegionHttpRsp.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "RegionInfo.proto"; + +message QueryCurrRegionHttpRsp { + int32 retcode = 1; + string message = 2; + RegionInfo regionInfo = 3; + bytes clientSecretKey = 11; + bytes regionCustomConfigEncrypted = 12; + bytes clientRegionCustomConfigEncrypted = 13; +} diff --git a/proto/QueryRegionListHttpRsp.proto b/proto/QueryRegionListHttpRsp.proto new file mode 100644 index 0000000..934634f --- /dev/null +++ b/proto/QueryRegionListHttpRsp.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "RegionSimpleInfo.proto"; + +message QueryRegionListHttpRsp { + uint32 retcode = 1; + repeated RegionSimpleInfo servers = 2; + bytes clientSecretKey = 5; + bytes clientCustomConfigEncrypted = 6; + bool enableLoginPc = 7; +} diff --git a/proto/RegionInfo.proto b/proto/RegionInfo.proto new file mode 100644 index 0000000..6cad3cb --- /dev/null +++ b/proto/RegionInfo.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ResVersionConfig.proto"; + +message RegionInfo { + string ip = 1; + int32 port = 2; + string payCallbackUrl = 3; + string areaType = 7; + string resourceUrl = 8; + string dataUrl = 9; + string feedbackUrl = 10; + string bulletinUrl = 11; + string version = 12; + int32 clientDataVersion = 14; + int32 clientSilenceDataVersion = 18; + string clientDataMd5 = 19; + string clientSilenceDataMd5 = 20; + ResVersionConfig config = 22; + bytes secretKey = 23; + string communityUrl = 24; + string clientVersionSuffix = 26; + string clientSilenceVersionSuffix = 27; + string accountUrl = 31; + string cdkeyUrl = 32; + string privacyUrl = 33; + } diff --git a/proto/RegionSimpleInfo.proto b/proto/RegionSimpleInfo.proto new file mode 100644 index 0000000..093818f --- /dev/null +++ b/proto/RegionSimpleInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message RegionSimpleInfo { + string name = 1; + string title = 2; + string type = 3; + string dispatchUrl = 4; +} diff --git a/proto/Reliquary.proto b/proto/Reliquary.proto new file mode 100644 index 0000000..2801a5e --- /dev/null +++ b/proto/Reliquary.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message Reliquary { + uint32 level = 1; + uint32 exp = 2; + uint32 promoteLevel = 3; + uint32 mainPropId = 4; + repeated uint32 appendPropIdList = 5; +} diff --git a/proto/ReliquaryPromoteReq.proto b/proto/ReliquaryPromoteReq.proto new file mode 100644 index 0000000..1841ed8 --- /dev/null +++ b/proto/ReliquaryPromoteReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ReliquaryPromoteReq { + uint64 targetGuid = 1; + uint64 itemGuid = 2; +} diff --git a/proto/ReliquaryPromoteRsp.proto b/proto/ReliquaryPromoteRsp.proto new file mode 100644 index 0000000..053b51e --- /dev/null +++ b/proto/ReliquaryPromoteRsp.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ReliquaryPromoteRsp { + int32 retcode = 1; + uint64 targetReliquaryGuid = 2; + uint32 oldPromoteLevel = 3; + uint32 curPromoteLevel = 4; + repeated uint32 oldAppendPropList = 5; + repeated uint32 curAppendPropList = 6; +} diff --git a/proto/ReliquaryUpgradeReq.proto b/proto/ReliquaryUpgradeReq.proto new file mode 100644 index 0000000..468eeb9 --- /dev/null +++ b/proto/ReliquaryUpgradeReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message ReliquaryUpgradeReq { + uint64 targetReliquaryGuid = 1; + repeated uint64 foodReliquaryGuidList = 2; + repeated ItemParam itemParamList = 3; +} diff --git a/proto/ReliquaryUpgradeRsp.proto b/proto/ReliquaryUpgradeRsp.proto new file mode 100644 index 0000000..4bcdbed --- /dev/null +++ b/proto/ReliquaryUpgradeRsp.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ReliquaryUpgradeRsp { + int32 retcode = 1; + uint64 targetReliquaryGuid = 2; + uint32 oldLevel = 3; + uint32 curLevel = 4; + uint32 powerUpRate = 5; + repeated uint32 oldAppendPropList = 6; + repeated uint32 curAppendPropList = 7; +} diff --git a/proto/ResVersionConfig.proto b/proto/ResVersionConfig.proto new file mode 100644 index 0000000..71c053f --- /dev/null +++ b/proto/ResVersionConfig.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ResVersionConfig { + int32 version = 1; + string md5 = 2; + string size = 3; + string versionSuffix = 4; + string branch = 5; +} diff --git a/proto/ResinCard.proto b/proto/ResinCard.proto new file mode 100644 index 0000000..66db1ba --- /dev/null +++ b/proto/ResinCard.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message ResinCard { + repeated ItemParam baseItemList = 1; + repeated ItemParam perDayItemList = 2; +} diff --git a/proto/ResinChangeNotify.proto b/proto/ResinChangeNotify.proto new file mode 100644 index 0000000..bf938b4 --- /dev/null +++ b/proto/ResinChangeNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ResinChangeNotify { + int32 currValue = 1; + int32 nextAddTimestamp = 2; + int32 curBuyCount = 3; +} diff --git a/proto/ResinCostType.proto b/proto/ResinCostType.proto new file mode 100644 index 0000000..1c9ac3f --- /dev/null +++ b/proto/ResinCostType.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ResinCostType { + CostNone = 0; + CostNormal = 1; + CostCondense = 2; + CostReunionPrivilege = 3; + CostOpActivity = 4; + CostMaterial = 5; +} diff --git a/proto/Route.proto b/proto/Route.proto new file mode 100644 index 0000000..3394a99 --- /dev/null +++ b/proto/Route.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "RoutePoint.proto"; + +message Route { + repeated RoutePoint routePoints = 1; + uint32 routeType = 2; +} diff --git a/proto/RoutePoint.proto b/proto/RoutePoint.proto new file mode 100644 index 0000000..f4cb198 --- /dev/null +++ b/proto/RoutePoint.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MathQuaternion.proto"; +import "Vector.proto"; + +message RoutePoint { + Vector position = 1; + oneof moveParams { + float velocity = 11; + float time = 12; + } + oneof rotateParams { + Vector rotation = 21; + MathQuaternion rotationSpeed = 22; + MathQuaternion axisSpeed = 23; + } +} diff --git a/proto/SceneAreaWeatherNotify.proto b/proto/SceneAreaWeatherNotify.proto new file mode 100644 index 0000000..4d26db6 --- /dev/null +++ b/proto/SceneAreaWeatherNotify.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneAreaWeatherNotify { + uint32 weatherGadgetId = 1; + map weatherValueMap = 2; + uint32 weatherAreaId = 3; + uint32 climateType = 4; + float transDuration = 5; +} diff --git a/proto/SceneAvatarInfo.proto b/proto/SceneAvatarInfo.proto new file mode 100644 index 0000000..5ce71c9 --- /dev/null +++ b/proto/SceneAvatarInfo.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneReliquaryInfo.proto"; +import "SceneWeaponInfo.proto"; +import "ServerBuff.proto"; + +message SceneAvatarInfo { + uint32 playerId = 1; + uint32 avatarId = 2; + uint64 guid = 3; + uint32 peerId = 4; + repeated uint32 equipIdList = 5; + uint32 skillDepotId = 6; + repeated uint32 talentIdList = 7; + SceneWeaponInfo weapon = 8; + repeated SceneReliquaryInfo reliquaryList = 9; + uint32 coreProudSkillLevel = 11; + repeated uint32 inherentProudSkillList = 12; + map skillLevelMap = 13; + map proudSkillExtraLevelMap = 14; + repeated ServerBuff serverBuffList = 15; + repeated uint32 teamResonanceList = 16; + uint32 wearingFlycloakId = 17; + uint32 bornTime = 18; + uint32 costumeId = 19; +} diff --git a/proto/SceneEntityAiInfo.proto b/proto/SceneEntityAiInfo.proto new file mode 100644 index 0000000..b4754bd --- /dev/null +++ b/proto/SceneEntityAiInfo.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ServantInfo.proto"; +import "Vector.proto"; + +message SceneEntityAiInfo { + bool isAiOpen = 1; + Vector bornPos = 2; + map skillCdMap = 3; + ServantInfo servantInfo = 4; + map aiThreatMap = 5; + map skillGroupCdMap = 6; + uint32 curTactic = 7; +} diff --git a/proto/SceneEntityAppearNotify.proto b/proto/SceneEntityAppearNotify.proto new file mode 100644 index 0000000..0694f16 --- /dev/null +++ b/proto/SceneEntityAppearNotify.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneEntityInfo.proto"; +import "VisionType.proto"; + +message SceneEntityAppearNotify { + repeated SceneEntityInfo entityList = 1; + VisionType appearType = 2; + uint32 param = 3; +} diff --git a/proto/SceneEntityDisappearNotify.proto b/proto/SceneEntityDisappearNotify.proto new file mode 100644 index 0000000..02871b5 --- /dev/null +++ b/proto/SceneEntityDisappearNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "VisionType.proto"; + +message SceneEntityDisappearNotify { + repeated uint32 entityList = 1; + VisionType disappearType = 2; +} diff --git a/proto/SceneEntityInfo.proto b/proto/SceneEntityInfo.proto new file mode 100644 index 0000000..d79fe4f --- /dev/null +++ b/proto/SceneEntityInfo.proto @@ -0,0 +1,39 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AnimatorParameterValueInfoPair.proto"; +import "EntityAuthorityInfo.proto"; +import "EntityClientData.proto"; +import "EntityEnvironmentInfo.proto"; +import "FightPropPair.proto"; +import "MotionInfo.proto"; +import "PropPair.proto"; +import "ProtEntityType.proto"; +import "SceneAvatarInfo.proto"; +import "SceneGadgetInfo.proto"; +import "SceneMonsterInfo.proto"; +import "SceneNpcInfo.proto"; + +message SceneEntityInfo { + ProtEntityType entityType = 1; + uint32 entityId = 2; + string name = 3; + MotionInfo motionInfo = 4; + repeated PropPair propList = 5; + repeated FightPropPair fightPropList = 6; + uint32 lifeState = 7; + repeated AnimatorParameterValueInfoPair animatorParaList = 9; + oneof entity { + SceneAvatarInfo avatar = 10; + SceneMonsterInfo monster = 11; + SceneNpcInfo npc = 12; + SceneGadgetInfo gadget = 13; + } + uint32 lastMoveSceneTimeMs = 17; + uint32 lastMoveReliableSeq = 18; + EntityClientData entityClientData = 19; + repeated EntityEnvironmentInfo entityEnvironmentInfoList = 20; + EntityAuthorityInfo entityAuthorityInfo = 21; + repeated string tagList = 22; +} diff --git a/proto/SceneEntityMoveNotify.proto b/proto/SceneEntityMoveNotify.proto new file mode 100644 index 0000000..8e5016d --- /dev/null +++ b/proto/SceneEntityMoveNotify.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MotionInfo.proto"; + +message SceneEntityMoveNotify { + uint32 entityId = 1; + MotionInfo motionInfo = 2; + uint32 sceneTime = 3; + uint32 reliableSeq = 4; +} diff --git a/proto/SceneForceUnlockNotify.proto b/proto/SceneForceUnlockNotify.proto new file mode 100644 index 0000000..c78e2dd --- /dev/null +++ b/proto/SceneForceUnlockNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneForceUnlockNotify { + repeated uint32 forceIdList = 1; + bool isAdd = 2; +} diff --git a/proto/SceneGadgetInfo.proto b/proto/SceneGadgetInfo.proto new file mode 100644 index 0000000..b4430fa --- /dev/null +++ b/proto/SceneGadgetInfo.proto @@ -0,0 +1,43 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GadgetBornType.proto"; +import "GadgetClientParam.proto"; +import "GadgetPlayInfo.proto"; +import "Item.proto"; +import "PlatformInfo.proto"; + +message SceneGadgetInfo { + uint32 gadgetId = 1; + uint32 groupId = 2; + uint32 configId = 3; + uint32 ownerEntityId = 4; + GadgetBornType bornType = 5; + uint32 gadgetState = 6; + uint32 gadgetType = 7; + bool isShowCutscene = 8; + uint32 authorityPeerId = 9; + bool isEnableInteract = 10; + uint32 interactId = 11; + Item trifleItem = 12; + uint32 gatherGadget = 13; + uint32 worktop = 14; + GadgetClientParam clientGadget = 15; + uint32 weather = 17; + uint32 abilityGadget = 18; + uint32 statueGadget = 19; + uint32 bossChest = 20; + uint32 blossomChest = 41; + uint32 mpPlayReward = 42; + uint32 generalReward = 43; + uint32 offeringInfo = 44; + uint32 foundationInfo = 45; + uint32 markFlag = 21; + uint32 propOwnerEntityId = 22; + PlatformInfo platform = 23; + repeated uint32 interactUidList = 24; + uint32 draftId = 25; + uint32 gadgetTalkState = 26; + GadgetPlayInfo playInfo = 100; +} diff --git a/proto/SceneInitFinishRsp.proto b/proto/SceneInitFinishRsp.proto new file mode 100644 index 0000000..1dfc6a2 --- /dev/null +++ b/proto/SceneInitFinishRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneInitFinishRsp { + int32 retcode = 1; + uint32 enterSceneToken = 2; +} diff --git a/proto/SceneKickPlayerNotify.proto b/proto/SceneKickPlayerNotify.proto new file mode 100644 index 0000000..6a400ae --- /dev/null +++ b/proto/SceneKickPlayerNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneKickPlayerNotify { + uint32 kickerUid = 1; + uint32 targetUid = 2; +} diff --git a/proto/SceneKickPlayerReq.proto b/proto/SceneKickPlayerReq.proto new file mode 100644 index 0000000..fe7e371 --- /dev/null +++ b/proto/SceneKickPlayerReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneKickPlayerReq { + uint32 targetUid = 1; +} diff --git a/proto/SceneKickPlayerRsp.proto b/proto/SceneKickPlayerRsp.proto new file mode 100644 index 0000000..8110089 --- /dev/null +++ b/proto/SceneKickPlayerRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneKickPlayerRsp { + int32 retcode = 1; + uint32 targetUid = 2; +} diff --git a/proto/SceneMonsterInfo.proto b/proto/SceneMonsterInfo.proto new file mode 100644 index 0000000..f96c6c2 --- /dev/null +++ b/proto/SceneMonsterInfo.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MonsterBornType.proto"; +import "MonsterRoute.proto"; +import "SceneWeaponInfo.proto"; + +message SceneMonsterInfo { + uint32 monsterId = 1; + uint32 groupId = 2; + uint32 configId = 3; + SceneWeaponInfo weaponList = 4; + uint32 authorityPeerId = 5; + repeated uint32 affixList = 6; + bool isElite = 7; + uint32 ownerEntityId = 8; + uint32 summonedTag = 9; + map summonTagMap = 10; + uint32 poseId = 11; + MonsterBornType bornType = 12; + uint32 blockId = 13; + uint32 markFlag = 14; + uint32 titleId = 15; + uint32 specialNameId = 16; + uint32 attackTargetId = 17; + MonsterRoute monsterRoute = 18; + uint32 aiConfigId = 19; + uint32 unk1 = 21; +} diff --git a/proto/SceneNpcInfo.proto b/proto/SceneNpcInfo.proto new file mode 100644 index 0000000..22e8118 --- /dev/null +++ b/proto/SceneNpcInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneNpcInfo { + uint32 npcId = 1; + uint32 roomId = 2; + uint32 parentQuestId = 3; + uint32 blockId = 4; +} diff --git a/proto/ScenePlayerInfo.proto b/proto/ScenePlayerInfo.proto new file mode 100644 index 0000000..d1dae17 --- /dev/null +++ b/proto/ScenePlayerInfo.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "OnlinePlayerInfo.proto"; + +message ScenePlayerInfo { + uint32 uid = 1; + uint32 peerId = 2; + string name = 3; + bool isConnected = 4; + uint32 sceneId = 5; + OnlinePlayerInfo onlinePlayerInfo = 6; +} diff --git a/proto/ScenePlayerInfoNotify.proto b/proto/ScenePlayerInfoNotify.proto new file mode 100644 index 0000000..2c10873 --- /dev/null +++ b/proto/ScenePlayerInfoNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ScenePlayerInfo.proto"; + +message ScenePlayerInfoNotify { + repeated ScenePlayerInfo playerInfoList = 1; +} diff --git a/proto/ScenePlayerLocationNotify.proto b/proto/ScenePlayerLocationNotify.proto new file mode 100644 index 0000000..6eccf37 --- /dev/null +++ b/proto/ScenePlayerLocationNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerLocationInfo.proto"; + +message ScenePlayerLocationNotify { + uint32 sceneId = 1; + repeated PlayerLocationInfo playerLocList = 2; +} diff --git a/proto/SceneReliquaryInfo.proto b/proto/SceneReliquaryInfo.proto new file mode 100644 index 0000000..122ca88 --- /dev/null +++ b/proto/SceneReliquaryInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneReliquaryInfo { + uint32 itemId = 1; + uint64 guid = 2; + uint32 level = 3; + uint32 promoteLevel = 4; +} diff --git a/proto/SceneTeamAvatar.proto b/proto/SceneTeamAvatar.proto new file mode 100644 index 0000000..0b46839 --- /dev/null +++ b/proto/SceneTeamAvatar.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityControlBlock.proto"; +import "AbilitySyncStateInfo.proto"; +import "AvatarInfo.proto"; +import "SceneAvatarInfo.proto"; +import "SceneEntityInfo.proto"; +import "ServerBuff.proto"; + +message SceneTeamAvatar { + uint32 playerId = 1; + uint64 avatarGuid = 2; + uint32 sceneId = 3; + uint32 entityId = 4; + AvatarInfo avatarInfo = 5; + SceneAvatarInfo sceneAvatarInfo = 6; + AbilitySyncStateInfo avatarAbilityInfo = 7; + repeated ServerBuff serverBuffList = 8; + SceneEntityInfo sceneEntityInfo = 9; + uint64 weaponGuid = 10; + uint32 weaponEntityId = 11; + AbilitySyncStateInfo weaponAbilityInfo = 12; + AbilityControlBlock abilityControlBlock = 13; + bool isReconnect = 14; + bool isPlayerCurAvatar = 15; + bool isOnScene = 16; +} diff --git a/proto/SceneTeamUpdateNotify.proto b/proto/SceneTeamUpdateNotify.proto new file mode 100644 index 0000000..6aa586c --- /dev/null +++ b/proto/SceneTeamUpdateNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneTeamAvatar.proto"; + +message SceneTeamUpdateNotify { + repeated SceneTeamAvatar sceneTeamAvatarList = 1; + bool isInMp = 3; +} diff --git a/proto/SceneTimeNotify.proto b/proto/SceneTimeNotify.proto new file mode 100644 index 0000000..cafe00a --- /dev/null +++ b/proto/SceneTimeNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneTimeNotify { + uint32 sceneId = 1; + bool isPaused = 2; + uint64 sceneTime = 3; +} diff --git a/proto/SceneUnlockInfo.proto b/proto/SceneUnlockInfo.proto new file mode 100644 index 0000000..d4dfa2f --- /dev/null +++ b/proto/SceneUnlockInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneUnlockInfo { + uint32 sceneId = 1; + bool isLocked = 2; + repeated uint32 sceneTagIdList = 3; +} diff --git a/proto/SceneUnlockInfoNotify.proto b/proto/SceneUnlockInfoNotify.proto new file mode 100644 index 0000000..28be03d --- /dev/null +++ b/proto/SceneUnlockInfoNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneUnlockInfo.proto"; + +message SceneUnlockInfoNotify { + repeated SceneUnlockInfo unlockInfos = 1; +} diff --git a/proto/SceneWeaponInfo.proto b/proto/SceneWeaponInfo.proto new file mode 100644 index 0000000..5b823b9 --- /dev/null +++ b/proto/SceneWeaponInfo.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; + +message SceneWeaponInfo { + uint32 entityId = 1; + uint32 gadgetId = 2; + uint32 itemId = 3; + uint64 guid = 4; + uint32 level = 5; + uint32 promoteLevel = 6; + AbilitySyncStateInfo abilityInfo = 7; + map affixMap = 8; +} diff --git a/proto/ServantInfo.proto b/proto/ServantInfo.proto new file mode 100644 index 0000000..e4c04e3 --- /dev/null +++ b/proto/ServantInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ServantInfo { + uint32 masterEntityId = 1; + uint32 bornSlotIndex = 2; +} diff --git a/proto/ServerBuff.proto b/proto/ServerBuff.proto new file mode 100644 index 0000000..0de4768 --- /dev/null +++ b/proto/ServerBuff.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ServerBuff { + uint32 serverBuffUid = 1; + uint32 serverBuffId = 2; + uint32 serverBuffType = 3; + uint32 instancedModifierId = 4; + repeated uint32 doneOnaddedActionList = 5; + bool isOnaddedActionAllow = 6; +} diff --git a/proto/ServerTimeNotify.proto b/proto/ServerTimeNotify.proto new file mode 100644 index 0000000..9452ef8 --- /dev/null +++ b/proto/ServerTimeNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ServerTimeNotify { + uint64 serverTime = 1; +} diff --git a/proto/SetEquipLockStateReq.proto b/proto/SetEquipLockStateReq.proto new file mode 100644 index 0000000..55f3f93 --- /dev/null +++ b/proto/SetEquipLockStateReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetEquipLockStateReq { + uint64 targetEquipGuid = 1; + bool isLocked = 2; +} diff --git a/proto/SetEquipLockStateRsp.proto b/proto/SetEquipLockStateRsp.proto new file mode 100644 index 0000000..fe70b22 --- /dev/null +++ b/proto/SetEquipLockStateRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetEquipLockStateRsp { + int32 retcode = 1; + uint64 targetEquipGuid = 2; + bool isLocked = 3; +} diff --git a/proto/SetNameCardReq.proto b/proto/SetNameCardReq.proto new file mode 100644 index 0000000..4452d3b --- /dev/null +++ b/proto/SetNameCardReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetNameCardReq { + uint32 nameCardId = 1; +} diff --git a/proto/SetNameCardRsp.proto b/proto/SetNameCardRsp.proto new file mode 100644 index 0000000..821c019 --- /dev/null +++ b/proto/SetNameCardRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetNameCardRsp { + int32 retcode = 1; + uint32 nameCardId = 2; +} diff --git a/proto/SetPlayerBornDataReq.proto b/proto/SetPlayerBornDataReq.proto new file mode 100644 index 0000000..56b6fd3 --- /dev/null +++ b/proto/SetPlayerBornDataReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerBornDataReq { + uint32 avatarId = 1; + string nickName = 2; +} diff --git a/proto/SetPlayerHeadImageReq.proto b/proto/SetPlayerHeadImageReq.proto new file mode 100644 index 0000000..90016ce --- /dev/null +++ b/proto/SetPlayerHeadImageReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerHeadImageReq { + uint32 avatarId = 1; +} diff --git a/proto/SetPlayerHeadImageRsp.proto b/proto/SetPlayerHeadImageRsp.proto new file mode 100644 index 0000000..6a2ea44 --- /dev/null +++ b/proto/SetPlayerHeadImageRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "HeadImage.proto"; + +message SetPlayerHeadImageRsp { + int32 retcode = 1; + HeadImage avatar = 3; +} diff --git a/proto/SetPlayerNameReq.proto b/proto/SetPlayerNameReq.proto new file mode 100644 index 0000000..558eb0f --- /dev/null +++ b/proto/SetPlayerNameReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerNameReq { + string nickName = 1; +} diff --git a/proto/SetPlayerNameRsp.proto b/proto/SetPlayerNameRsp.proto new file mode 100644 index 0000000..b4b02e6 --- /dev/null +++ b/proto/SetPlayerNameRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerNameRsp { + int32 retcode = 1; + string nickName = 2; +} diff --git a/proto/SetPlayerPropReq.proto b/proto/SetPlayerPropReq.proto new file mode 100644 index 0000000..d08c2a5 --- /dev/null +++ b/proto/SetPlayerPropReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message SetPlayerPropReq { + repeated PropValue propList = 1; +} diff --git a/proto/SetPlayerPropRsp.proto b/proto/SetPlayerPropRsp.proto new file mode 100644 index 0000000..62d231e --- /dev/null +++ b/proto/SetPlayerPropRsp.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerPropRsp { + int32 retcode = 1; +} diff --git a/proto/SetPlayerSignatureReq.proto b/proto/SetPlayerSignatureReq.proto new file mode 100644 index 0000000..595345b --- /dev/null +++ b/proto/SetPlayerSignatureReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerSignatureReq { + string signature = 1; +} diff --git a/proto/SetPlayerSignatureRsp.proto b/proto/SetPlayerSignatureRsp.proto new file mode 100644 index 0000000..ca09cd1 --- /dev/null +++ b/proto/SetPlayerSignatureRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerSignatureRsp { + int32 retcode = 1; + string signature = 2; +} diff --git a/proto/SetUpAvatarTeamReq.proto b/proto/SetUpAvatarTeamReq.proto new file mode 100644 index 0000000..b950cb2 --- /dev/null +++ b/proto/SetUpAvatarTeamReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetUpAvatarTeamReq { + uint32 teamId = 1; + repeated uint64 avatarTeamGuidList = 2; + uint64 curAvatarGuid = 3; +} diff --git a/proto/SetUpAvatarTeamRsp.proto b/proto/SetUpAvatarTeamRsp.proto new file mode 100644 index 0000000..fdb634b --- /dev/null +++ b/proto/SetUpAvatarTeamRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetUpAvatarTeamRsp { + int32 retcode = 1; + uint32 teamId = 2; + repeated uint64 avatarTeamGuidList = 3; + uint64 curAvatarGuid = 4; +} diff --git a/proto/Shop.proto b/proto/Shop.proto new file mode 100644 index 0000000..2172757 --- /dev/null +++ b/proto/Shop.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ShopCardProduct.proto"; +import "ShopGoods.proto"; +import "ShopMcoinProduct.proto"; + +message Shop { + uint32 shopType = 1; + repeated ShopGoods goodsList = 2; + repeated ShopMcoinProduct mcoinProductList = 3; + repeated ShopCardProduct cardProductList = 4; + uint32 nextRefreshTime = 6; + uint32 cityId = 7; + uint32 cityReputationLevel = 8; +} diff --git a/proto/ShopCardProduct.proto b/proto/ShopCardProduct.proto new file mode 100644 index 0000000..88b95f7 --- /dev/null +++ b/proto/ShopCardProduct.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ResinCard.proto"; + +message ShopCardProduct { + string productId = 1; + string priceTier = 2; + uint32 mcoinBase = 3; + uint32 hcoinPerDay = 4; + uint32 days = 5; + uint32 remainRewardDays = 6; + uint32 cardProductType = 7; + oneof extraCardData { + ResinCard resinCard = 101; + } +} diff --git a/proto/ShopGoods.proto b/proto/ShopGoods.proto new file mode 100644 index 0000000..672578c --- /dev/null +++ b/proto/ShopGoods.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message ShopGoods { + uint32 goodsId = 1; + ItemParam goodsItem = 2; + uint32 scoin = 3; + uint32 hcoin = 4; + repeated ItemParam costItemList = 5; + uint32 boughtNum = 6; + uint32 buyLimit = 7; + uint32 beginTime = 8; + uint32 endTime = 9; + uint32 nextRefreshTime = 10; + uint32 minLevel = 11; + uint32 maxLevel = 12; + repeated uint32 preGoodsIdList = 13; + uint32 mcoin = 14; + uint32 disableType = 15; + uint32 secondarySheetId = 16; +} diff --git a/proto/ShopGoodsDisableType.proto b/proto/ShopGoodsDisableType.proto new file mode 100644 index 0000000..2c1b19b --- /dev/null +++ b/proto/ShopGoodsDisableType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ShopGoodsDisableType { + ShopGoodsDisableNone = 0; + ShopGoodsDisableTalentFull = 1; + ShopGoodsDisableFurnitureFormulaUnlocked = 2; +} diff --git a/proto/ShopMcoinProduct.proto b/proto/ShopMcoinProduct.proto new file mode 100644 index 0000000..53f3dcb --- /dev/null +++ b/proto/ShopMcoinProduct.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ShopMcoinProduct { + string productId = 1; + string priceTier = 2; + uint32 mcoinBase = 3; + uint32 mcoinNonFirst = 4; + uint32 mcoinFirst = 5; + uint32 boughtNum = 6; + bool isAudit = 7; +} diff --git a/proto/ShortAbilityHashPair.proto b/proto/ShortAbilityHashPair.proto new file mode 100644 index 0000000..0eaf104 --- /dev/null +++ b/proto/ShortAbilityHashPair.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ShortAbilityHashPair { + int32 abilityNameHash = 1; + int32 abilityConfigHash = 2; +} diff --git a/proto/SocialDetail.proto b/proto/SocialDetail.proto new file mode 100644 index 0000000..bc97aa1 --- /dev/null +++ b/proto/SocialDetail.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Birthday.proto"; +import "FriendEnterHomeOption.proto"; +import "HeadImage.proto"; +import "SocialShowAvatarInfo.proto"; + +message SocialDetail { + uint32 uid = 1; + string nickname = 2; + uint32 level = 3; + string signature = 5; + Birthday birthday = 6; + uint32 worldLevel = 7; + uint32 unk1 = 9; + //FriendOnlineState onlineState = 10; + //bool isMpModeAvailable = 10; + bool isFriend = 11; + uint32 unk3 = 12; + uint32 lastActiveTime = 13; + uint32 nameCardId = 14; + bool isInBlacklist = 15; + bool isChatNoDisturb = 16; + string remarkName = 17; + uint32 finishAchievementNum = 18; + uint32 towerFloorIndex = 19; + uint32 towerLevelIndex = 20; + bool isShowAvatar = 21; + repeated SocialShowAvatarInfo showAvatarInfoList = 22; + FriendEnterHomeOption friendEnterHomeOption = 23; + HeadImage avatar = 25; +} diff --git a/proto/SocialShowAvatarInfo.proto b/proto/SocialShowAvatarInfo.proto new file mode 100644 index 0000000..921cb29 --- /dev/null +++ b/proto/SocialShowAvatarInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SocialShowAvatarInfo { + uint32 avatarId = 1; + uint32 level = 2; +} diff --git a/proto/StoreItemChangeNotify.proto b/proto/StoreItemChangeNotify.proto new file mode 100644 index 0000000..270d5e4 --- /dev/null +++ b/proto/StoreItemChangeNotify.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Item.proto"; +import "StoreType.proto"; + +message StoreItemChangeNotify { + StoreType storeType = 1; + repeated Item itemList = 2; +} diff --git a/proto/StoreItemDelNotify.proto b/proto/StoreItemDelNotify.proto new file mode 100644 index 0000000..69a70a8 --- /dev/null +++ b/proto/StoreItemDelNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "StoreType.proto"; + +message StoreItemDelNotify { + StoreType storeType = 1; + repeated uint64 guidList = 2; +} diff --git a/proto/StoreType.proto b/proto/StoreType.proto new file mode 100644 index 0000000..78e35b4 --- /dev/null +++ b/proto/StoreType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum StoreType { + StoreNone = 0; + StorePack = 1; + StoreDepot = 2; +} diff --git a/proto/StoreWeightLimitNotify.proto b/proto/StoreWeightLimitNotify.proto new file mode 100644 index 0000000..236bacd --- /dev/null +++ b/proto/StoreWeightLimitNotify.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "StoreType.proto"; + +message StoreWeightLimitNotify { + StoreType storeType = 1; + uint32 weightLimit = 3; + uint32 materialCountLimit = 4; + uint32 weaponCountLimit = 5; + uint32 reliquaryCountLimit = 6; + uint32 furnitureCountLimit = 7; +} diff --git a/proto/SyncScenePlayTeamEntityNotify.proto b/proto/SyncScenePlayTeamEntityNotify.proto new file mode 100644 index 0000000..1ffe7be --- /dev/null +++ b/proto/SyncScenePlayTeamEntityNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SyncScenePlayTeamEntityNotify { + uint32 sceneId = 1; + //repeated PlayTeamEntityInfo entityInfoList = 2; +} diff --git a/proto/SyncTeamEntityNotify.proto b/proto/SyncTeamEntityNotify.proto new file mode 100644 index 0000000..1555e37 --- /dev/null +++ b/proto/SyncTeamEntityNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TeamEntityInfo.proto"; + +message SyncTeamEntityNotify { + uint32 sceneId = 1; + repeated TeamEntityInfo teamEntityInfoList = 2; +} diff --git a/proto/SystemHint.proto b/proto/SystemHint.proto new file mode 100644 index 0000000..2bc1f19 --- /dev/null +++ b/proto/SystemHint.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SystemHint { + uint32 type = 1; +} diff --git a/proto/TakeoffEquipReq.proto b/proto/TakeoffEquipReq.proto new file mode 100644 index 0000000..bcd6278 --- /dev/null +++ b/proto/TakeoffEquipReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TakeoffEquipReq { + uint64 avatarGuid = 1; + uint32 slot = 2; +} diff --git a/proto/TakeoffEquipRsp.proto b/proto/TakeoffEquipRsp.proto new file mode 100644 index 0000000..ded1496 --- /dev/null +++ b/proto/TakeoffEquipRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TakeoffEquipRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint32 slot = 3; +} diff --git a/proto/TeamEnterSceneInfo.proto b/proto/TeamEnterSceneInfo.proto new file mode 100644 index 0000000..d0144a8 --- /dev/null +++ b/proto/TeamEnterSceneInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; + +message TeamEnterSceneInfo { + uint32 teamEntityId = 1; + AbilitySyncStateInfo teamAbilityInfo = 2; + AbilitySyncStateInfo unk = 3; +} diff --git a/proto/TeamEntityInfo.proto b/proto/TeamEntityInfo.proto new file mode 100644 index 0000000..5f0240a --- /dev/null +++ b/proto/TeamEntityInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; + +message TeamEntityInfo { + uint32 teamEntityId = 1; + uint32 authorityPeerId = 2; + AbilitySyncStateInfo teamAbilityInfo = 3; +} diff --git a/proto/TeamResonanceChangeNotify.proto b/proto/TeamResonanceChangeNotify.proto new file mode 100644 index 0000000..592fc8a --- /dev/null +++ b/proto/TeamResonanceChangeNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarTeamResonanceInfo.proto"; + +message TeamResonanceChangeNotify { + repeated AvatarTeamResonanceInfo infoList = 1; +} diff --git a/proto/TowerAllDataRsp.proto b/proto/TowerAllDataRsp.proto new file mode 100644 index 0000000..7fde18c --- /dev/null +++ b/proto/TowerAllDataRsp.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TowerCurLevelRecord.proto"; +import "TowerFloorRecord.proto"; +import "TowerMonthlyBrief.proto"; + +message TowerAllDataRsp { + uint32 towerScheduleId = 1; + repeated TowerFloorRecord towerFloorRecordList = 2; + uint32 dailyFloorId = 3; + uint32 dailyLevelIndex = 4; + TowerCurLevelRecord curLevelRecord = 5; + uint32 nextScheduleChangeTime = 6; + map floorOpenTimeMap = 7; + bool isFirstInteract = 8; + TowerMonthlyBrief monthlyBrief = 9; + uint32 skipToFloorIndex = 10; + uint32 commemorativeRewardId = 11; + map skipFloorGrantedRewardItemMap = 12; + uint32 validTowerRecordNum = 13; + int32 retcode = 14; + bool isFinishedEntranceFloor = 15; + uint32 scheduleStartTime = 16; + TowerMonthlyBrief lastScheduleMonthlyBrief = 17; +} diff --git a/proto/TowerCurLevelRecord.proto b/proto/TowerCurLevelRecord.proto new file mode 100644 index 0000000..6c4a282 --- /dev/null +++ b/proto/TowerCurLevelRecord.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TowerTeam.proto"; + +message TowerCurLevelRecord { + uint32 curFloorId = 1; + uint32 curLevelIndex = 2; + repeated TowerTeam towerTeamList = 3; + repeated uint32 buffIdList = 4; + bool isEmpty = 5; +} diff --git a/proto/TowerFloorRecord.proto b/proto/TowerFloorRecord.proto new file mode 100644 index 0000000..7096d2b --- /dev/null +++ b/proto/TowerFloorRecord.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TowerLevelRecord.proto"; + +message TowerFloorRecord { + uint32 floorId = 1; + map passedLevelMap = 2; + uint32 floorStarRewardProgress = 3; + repeated TowerLevelRecord passedLevelRecordList = 4; +} diff --git a/proto/TowerLevelRecord.proto b/proto/TowerLevelRecord.proto new file mode 100644 index 0000000..e0e5d95 --- /dev/null +++ b/proto/TowerLevelRecord.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TowerLevelRecord { + uint32 levelId = 1; + repeated uint32 satisfiedCondList = 2; +} diff --git a/proto/TowerMonthlyBrief.proto b/proto/TowerMonthlyBrief.proto new file mode 100644 index 0000000..69b0b90 --- /dev/null +++ b/proto/TowerMonthlyBrief.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TowerMonthlyBrief { + uint32 towerScheduleId = 1; + uint32 bestFloorIndex = 2; + uint32 bestLevelIndex = 3; + uint32 totalStarCount = 4; +} diff --git a/proto/TowerTeam.proto b/proto/TowerTeam.proto new file mode 100644 index 0000000..a478afe --- /dev/null +++ b/proto/TowerTeam.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TowerTeam { + uint32 towerTeamId = 1; + repeated uint64 avatarGuidList = 2; +} diff --git a/proto/TrackingIOInfo.proto b/proto/TrackingIOInfo.proto new file mode 100644 index 0000000..0b618cb --- /dev/null +++ b/proto/TrackingIOInfo.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TrackingIOInfo { + string appid = 1; + string deviceid = 2; + string mac = 3; + string rydevicetype = 4; + string clientTz = 5; + string currentCaid = 6; + string cachedCaid = 7; +} diff --git a/proto/TrialAvatarGrantRecord.proto b/proto/TrialAvatarGrantRecord.proto new file mode 100644 index 0000000..45dd737 --- /dev/null +++ b/proto/TrialAvatarGrantRecord.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TrialAvatarGrantRecord { + uint32 grantReason = 1; + uint32 fromParentQuestId = 2; +} diff --git a/proto/TrialAvatarInfo.proto b/proto/TrialAvatarInfo.proto new file mode 100644 index 0000000..867c723 --- /dev/null +++ b/proto/TrialAvatarInfo.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Item.proto"; +import "TrialAvatarGrantRecord.proto"; + +message TrialAvatarInfo { + uint32 trialAvatarId = 1; + repeated Item trialEquipList = 2; + TrialAvatarGrantRecord grantRecord = 3; +} diff --git a/proto/UnionCmd.proto b/proto/UnionCmd.proto new file mode 100644 index 0000000..ed47476 --- /dev/null +++ b/proto/UnionCmd.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message UnionCmd { + uint32 messageId = 1; + bytes body = 2; +} diff --git a/proto/UnionCmdNotify.proto b/proto/UnionCmdNotify.proto new file mode 100644 index 0000000..04ff8d9 --- /dev/null +++ b/proto/UnionCmdNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "UnionCmd.proto"; + +message UnionCmdNotify { + repeated UnionCmd cmdList = 1; +} diff --git a/proto/UnlockAvatarTalentReq.proto b/proto/UnlockAvatarTalentReq.proto new file mode 100644 index 0000000..b0cc420 --- /dev/null +++ b/proto/UnlockAvatarTalentReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message UnlockAvatarTalentReq { + uint64 avatarGuid = 1; + uint32 talentId = 2; +} diff --git a/proto/UnlockAvatarTalentRsp.proto b/proto/UnlockAvatarTalentRsp.proto new file mode 100644 index 0000000..8bb3234 --- /dev/null +++ b/proto/UnlockAvatarTalentRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message UnlockAvatarTalentRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint32 talentId = 3; +} diff --git a/proto/UnlockNameCardNotify.proto b/proto/UnlockNameCardNotify.proto new file mode 100644 index 0000000..193be05 --- /dev/null +++ b/proto/UnlockNameCardNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message UnlockNameCardNotify { + uint32 nameCardId = 1; +} diff --git a/proto/UseItemReq.proto b/proto/UseItemReq.proto new file mode 100644 index 0000000..227697d --- /dev/null +++ b/proto/UseItemReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message UseItemReq { + uint64 guid = 1; + uint32 count = 2; + uint64 targetGuid = 3; + uint32 optionIdx = 4; + bool isEnterMpDungeonTeam = 5; +} diff --git a/proto/UseItemRsp.proto b/proto/UseItemRsp.proto new file mode 100644 index 0000000..03add18 --- /dev/null +++ b/proto/UseItemRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message UseItemRsp { + int32 retcode = 1; + uint64 guid = 2; + uint32 itemId = 3; + uint64 targetGuid = 4; + uint32 optionIdx = 5; +} diff --git a/proto/Vector.proto b/proto/Vector.proto new file mode 100644 index 0000000..562e743 --- /dev/null +++ b/proto/Vector.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message Vector { + float x = 1; + float y = 2; + float z = 3; +} diff --git a/proto/VisionType.proto b/proto/VisionType.proto new file mode 100644 index 0000000..c3c3049 --- /dev/null +++ b/proto/VisionType.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum VisionType { + VisionNone = 0; + VisionMeet = 1; + VisionReborn = 2; + VisionReplace = 3; + VisionWaypointReborn = 4; + VisionMiss = 5; + VisionDie = 6; + VisionGatherEscape = 7; + VisionRefresh = 8; + VisionTransport = 9; + VisionReplaceDie = 10; + VisionReplaceNoNotify = 11; + VisionBorn = 12; + VisionPickup = 13; + VisionRemove = 14; +} diff --git a/proto/Weapon.proto b/proto/Weapon.proto new file mode 100644 index 0000000..e199f58 --- /dev/null +++ b/proto/Weapon.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message Weapon { + uint32 level = 1; + uint32 exp = 2; + uint32 promoteLevel = 3; + map affixMap = 4; +} diff --git a/proto/WeaponAwakenReq.proto b/proto/WeaponAwakenReq.proto new file mode 100644 index 0000000..2775c8d --- /dev/null +++ b/proto/WeaponAwakenReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WeaponAwakenReq { + uint64 targetWeaponGuid = 1; + uint64 itemGuid = 2; + map affixLevelMap = 3; +} diff --git a/proto/WeaponAwakenRsp.proto b/proto/WeaponAwakenRsp.proto new file mode 100644 index 0000000..2400cab --- /dev/null +++ b/proto/WeaponAwakenRsp.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WeaponAwakenRsp { + int32 retcode = 1; + uint64 targetWeaponGuid = 2; + uint32 targetWeaponAwakenLevel = 3; + map oldAffixLevelMap = 4; + map curAffixLevelMap = 5; + uint64 avatarGuid = 6; +} diff --git a/proto/WeaponPromoteReq.proto b/proto/WeaponPromoteReq.proto new file mode 100644 index 0000000..dc47477 --- /dev/null +++ b/proto/WeaponPromoteReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WeaponPromoteReq { + uint64 targetWeaponGuid = 1; +} diff --git a/proto/WeaponPromoteRsp.proto b/proto/WeaponPromoteRsp.proto new file mode 100644 index 0000000..efd7bfb --- /dev/null +++ b/proto/WeaponPromoteRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WeaponPromoteRsp { + int32 retcode = 1; + uint64 targetWeaponGuid = 2; + uint32 oldPromoteLevel = 3; + uint32 curPromoteLevel = 4; +} diff --git a/proto/WeaponUpgradeReq.proto b/proto/WeaponUpgradeReq.proto new file mode 100644 index 0000000..93e6962 --- /dev/null +++ b/proto/WeaponUpgradeReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message WeaponUpgradeReq { + uint64 targetWeaponGuid = 1; + repeated uint64 foodWeaponGuidList = 2; + repeated ItemParam itemParamList = 3; +} diff --git a/proto/WeaponUpgradeRsp.proto b/proto/WeaponUpgradeRsp.proto new file mode 100644 index 0000000..77a71f2 --- /dev/null +++ b/proto/WeaponUpgradeRsp.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message WeaponUpgradeRsp { + int32 retcode = 1; + uint64 targetWeaponGuid = 2; + uint32 oldLevel = 3; + uint32 curLevel = 4; + repeated ItemParam itemParamList = 5; +} diff --git a/proto/WearEquipReq.proto b/proto/WearEquipReq.proto new file mode 100644 index 0000000..805377d --- /dev/null +++ b/proto/WearEquipReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WearEquipReq { + uint64 avatarGuid = 1; + uint64 equipGuid = 2; +} diff --git a/proto/WearEquipRsp.proto b/proto/WearEquipRsp.proto new file mode 100644 index 0000000..61bb366 --- /dev/null +++ b/proto/WearEquipRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WearEquipRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint64 equipGuid = 3; +} diff --git a/proto/WeeklyBossResinDiscountInfo.proto b/proto/WeeklyBossResinDiscountInfo.proto new file mode 100644 index 0000000..2c9a85e --- /dev/null +++ b/proto/WeeklyBossResinDiscountInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WeeklyBossResinDiscountInfo { + uint32 discountNum = 1; + uint32 discountNumLimit = 2; + uint32 resinCost = 3; + uint32 originalResinCost = 4; +} diff --git a/proto/WorldDataNotify.proto b/proto/WorldDataNotify.proto new file mode 100644 index 0000000..9bb4e73 --- /dev/null +++ b/proto/WorldDataNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message WorldDataNotify { + map worldPropMap = 1; +} diff --git a/proto/WorldPlayerDieNotify.proto b/proto/WorldPlayerDieNotify.proto new file mode 100644 index 0000000..36ecf04 --- /dev/null +++ b/proto/WorldPlayerDieNotify.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerDieType.proto"; + +message WorldPlayerDieNotify { + PlayerDieType dieType = 1; + uint32 murdererEntityId = 2; + oneof entity { + uint32 monsterId = 3; + uint32 gadgetId = 4; + } +} diff --git a/proto/WorldPlayerInfoNotify.proto b/proto/WorldPlayerInfoNotify.proto new file mode 100644 index 0000000..e9266b6 --- /dev/null +++ b/proto/WorldPlayerInfoNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "OnlinePlayerInfo.proto"; + +message WorldPlayerInfoNotify { + repeated OnlinePlayerInfo playerInfoList = 1; + repeated uint32 playerUidList = 2; +} diff --git a/proto/WorldPlayerLocationNotify.proto b/proto/WorldPlayerLocationNotify.proto new file mode 100644 index 0000000..d43efba --- /dev/null +++ b/proto/WorldPlayerLocationNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerLocationInfo.proto"; + +message WorldPlayerLocationNotify { + repeated PlayerLocationInfo playerLocList = 1; +} diff --git a/proto/WorldPlayerRTTNotify.proto b/proto/WorldPlayerRTTNotify.proto new file mode 100644 index 0000000..56474c1 --- /dev/null +++ b/proto/WorldPlayerRTTNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerRTTInfo.proto"; + +message WorldPlayerRTTNotify { + repeated PlayerRTTInfo playerRttList = 1; +} diff --git a/proto/WorldPlayerReviveRsp.proto b/proto/WorldPlayerReviveRsp.proto new file mode 100644 index 0000000..1c823e8 --- /dev/null +++ b/proto/WorldPlayerReviveRsp.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WorldPlayerReviveRsp { + int32 retcode = 1; +}