MsgNotify.proto 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. syntax = "proto3";
  2. import "MsgStruct.proto";
  3. import "CombatDataStruct.proto";
  4. package com.fort23.protocol.protobuf;
  5. // option java_outer_classname = "MsgNotify";
  6. // option java_multiple_files = true;
  7. /* 公共频道信息通知 */
  8. message PublicWordsNotify
  9. {
  10. // 公共频道ID
  11. int32 publicId = 1;
  12. // 发言信息
  13. SpeakWords words = 2;
  14. }
  15. /* 公会频道信息通知 */
  16. message GuildWordsNotify
  17. {
  18. // 公会ID
  19. int32 guildId = 1;
  20. // 发言信息
  21. SpeakWords words = 2;
  22. }
  23. /* 队伍房间频道信息通知 */
  24. message RoomWordsNotify
  25. {
  26. // 房间ID
  27. int32 roomId = 1;
  28. // 发言信息
  29. SpeakWords words = 2;
  30. }
  31. /* 私聊频道信息通知 */
  32. message PrivateWordsNotify
  33. {
  34. // 对方玩家ID
  35. int64 toPlayerId = 1;
  36. // 发言信息
  37. SpeakWords words = 2;
  38. }
  39. /* 队伍房间频道信息通知 */
  40. message ChatMessageNotify
  41. {
  42. // 聊天发言信息
  43. SpeakWords words = 2;
  44. }
  45. /* 藏宝图Buff卡通知 */
  46. message TreasureCardNotify
  47. {
  48. // Buff卡列表
  49. repeated int32 buffCards = 1;
  50. }
  51. /* 共斗队伍改变通知 */
  52. message FightTogetherTeamAlterNotify
  53. {
  54. repeated FightTogetherPlayerInfo FightTogetherPlayerInfo = 1;
  55. }
  56. /* 共斗玩家状态改变通知 */
  57. message FightTogetherStateAlterNotify
  58. {
  59. int64 playerId = 1;
  60. int32 state = 2;
  61. }
  62. /* 共斗房间玩家离开通知 */
  63. message FightTogetherLeaveNotify
  64. {
  65. // 是否被踢
  66. bool isKickOut = 1;
  67. // 离开的玩家ID
  68. int64 leavePlayerId = 2;
  69. // 提示信息
  70. string tipMessage = 3;
  71. // 房主玩家ID
  72. int64 ownerPlayerId = 4;
  73. }
  74. /* 共斗玩家匹配房间通知 */
  75. message FightTogetherMatchRoomNotify
  76. {
  77. // 房间ID
  78. int32 roomId = 1;
  79. }
  80. /* 共斗玩家信息通知 */
  81. message FightTogetherPlayerInfoNotify
  82. {
  83. repeated FightTogetherPlayerInfo fightTogetherPlayerInfo = 1;
  84. // 房主玩家ID
  85. int64 ownerPlayerId = 2;
  86. }
  87. /* 共斗战斗开始通知 */
  88. message FightTogetherStartNotify
  89. {
  90. // 是否准备,true:房主点开始全员准备,false:进入战斗
  91. bool isPrepare = 1;
  92. SimulationFightTogetherResponse simulationFightTogetherResponse = 2;
  93. }
  94. /* 共斗战斗结束通知 */
  95. message FightTogetherFinishNotify
  96. {
  97. // 房间ID
  98. int32 roomId = 1;
  99. // 是否胜利
  100. bool isWin = 2;
  101. // 奖励道具
  102. repeated Item awardItems = 3;
  103. // 共斗信息
  104. FightTogether fightTogether = 4;
  105. }
  106. /* 共斗玩家Buff改变通知 */
  107. message FightTogetherBuffAlterNotify
  108. {
  109. int64 playerId = 1;
  110. int32 buffId = 2;
  111. }
  112. /* 共斗全员准备通知 */
  113. message FightTogetherAllReadyNotify
  114. {
  115. bool isAllReady = 1;
  116. }
  117. /* 商店礼包购买通知 */
  118. message ShopGiftItemBuyNotify
  119. {
  120. // 商店礼包ID
  121. int32 shopItemId = 1;
  122. // 获得的道具
  123. // repeated Item items = 2;
  124. // 战令等级
  125. int32 battlePassLevel = 3;
  126. // 战令购买等级
  127. int32 battlePassBuyLevel = 4;
  128. }
  129. /* 公会信息通知 */
  130. message GuildInfoNotify
  131. {
  132. // 公会ID
  133. int32 guildId = 1;
  134. }