OuterMessage_C_30001.proto 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. syntax = "proto3";
  2. package ET;
  3. import 'Common.proto';
  4. message HttpGetRouterResponse
  5. {
  6. repeated string Realms = 1;
  7. repeated string Routers = 2;
  8. }
  9. message RouterSync
  10. {
  11. uint32 ConnectId = 1;
  12. string Address = 2;
  13. }
  14. //ResponseType M2C_TestResponse
  15. message C2M_TestRequest // IActorLocationRequest
  16. {
  17. int32 RpcId = 1;
  18. string request = 2;
  19. }
  20. message M2C_TestResponse // IActorLocationResponse
  21. {
  22. int32 RpcId = 1;
  23. int32 Error = 2;
  24. string Message = 3;
  25. string response = 4;
  26. }
  27. //ResponseType Actor_TransferResponse
  28. message Actor_TransferRequest // IActorLocationRequest
  29. {
  30. int32 RpcId = 1;
  31. int32 MapIndex = 2;
  32. }
  33. message Actor_TransferResponse // IActorLocationResponse
  34. {
  35. int32 RpcId = 1;
  36. int32 Error = 2;
  37. string Message = 3;
  38. }
  39. //ResponseType G2C_EnterMap
  40. message C2G_EnterMap // IRequest
  41. {
  42. int32 RpcId = 1;
  43. }
  44. message G2C_EnterMap // IResponse
  45. {
  46. int32 RpcId = 1;
  47. int32 Error = 2;
  48. string Message = 3;
  49. // 自己unitId
  50. int64 MyId = 4;
  51. }
  52. message M2C_CreateUnits // IActorMessage
  53. {
  54. repeated UnitInfo Units = 1;
  55. }
  56. message M2C_CreateMyUnit // IActorMessage
  57. {
  58. UnitInfo Unit = 1;
  59. }
  60. message M2C_StartSceneChange // IActorMessage
  61. {
  62. int64 SceneInstanceId = 1;
  63. string SceneName = 2;
  64. }
  65. message C2M_PathfindingResult // IActorLocationMessage
  66. {
  67. int32 RpcId = 1;
  68. Unity.Mathematics.float3 Position = 2;
  69. }
  70. message M2C_PathfindingResult // IActorMessage
  71. {
  72. int64 Id = 1;
  73. Unity.Mathematics.float3 Position = 2;
  74. repeated Unity.Mathematics.float3 Points = 3;
  75. }
  76. //ResponseType G2C_Ping
  77. message C2G_Ping // IRequest
  78. {
  79. int32 RpcId = 1;
  80. }
  81. message G2C_Ping // IResponse
  82. {
  83. int32 RpcId = 1;
  84. int32 Error = 2;
  85. string Message = 3;
  86. int64 Time = 4;
  87. }
  88. message G2C_Test // IMessage
  89. {
  90. }
  91. //ResponseType M2C_Reload
  92. message C2M_Reload // IRequest
  93. {
  94. int32 RpcId = 1;
  95. string Account = 2;
  96. string Password = 3;
  97. }
  98. message M2C_Reload // IResponse
  99. {
  100. int32 RpcId = 1;
  101. int32 Error = 2;
  102. string Message = 3;
  103. }
  104. //ResponseType R2C_Login
  105. message C2R_Login // IRequest
  106. {
  107. int32 RpcId = 1;
  108. string Account = 2; // 帐号
  109. string Password = 3; // 密码
  110. int32 Channel = 4; // 渠道号(10000:测试渠道全渠道 10001:黄冈 10002:鄂州)
  111. }
  112. message R2C_Login // IResponse
  113. {
  114. int32 RpcId = 1;
  115. int32 Error = 2;
  116. string Message = 3;
  117. string Address = 4;
  118. string Key = 5;
  119. int64 GameId = 6;
  120. }
  121. //ResponseType G2C_LoginGame
  122. message C2G_LoginGame // IRequest
  123. {
  124. int32 RpcId = 1;
  125. string Key = 2; // 游戏服登录key
  126. int64 GameId = 3;
  127. }
  128. message G2C_LoginGame // IResponse
  129. {
  130. int32 RpcId = 1;
  131. int32 Error = 2;
  132. string Message = 3;
  133. int64 RoomId = 4; // 是否在房间中
  134. PlayerInfo Player = 5;
  135. repeated int32 GameplayList = 6; // 房间玩法类型 1:黄冈晃晃 2:鄂州麻将
  136. }
  137. // 创建房间
  138. //ResponseType G2C_CreatRoom
  139. message C2G_CreatRoom // IRequest
  140. {
  141. int32 RpcId = 1;
  142. int32 Type = 2; // 房间玩法类型 1:黄冈晃晃 2:鄂州麻将
  143. }
  144. message G2C_CreatRoom // IResponse
  145. {
  146. int32 RpcId = 1;
  147. int32 Error = 2;
  148. string Message = 3;
  149. RoomInfo Info = 4; // 房间信息
  150. }
  151. // 加入房间
  152. //ResponseType G2C_JoinRoom
  153. message C2G_JoinRoom // IRequest
  154. {
  155. int32 RpcId = 1;
  156. int32 RoomId = 2; // 请求进入的房间号
  157. }
  158. message G2C_JoinRoom // IResponse
  159. {
  160. int32 RpcId = 1;
  161. int32 Error = 2;
  162. string Message = 3;
  163. }
  164. message G2C_JoinRoomPush // IActorMessage
  165. {
  166. RoomInfo info = 1; // 房间信息
  167. }
  168. message G2C_TestHotfixMessage // IMessage
  169. {
  170. string Info = 1;
  171. }
  172. //ResponseType M2C_TransferMap
  173. message C2M_TransferMap // IActorLocationRequest
  174. {
  175. int32 RpcId = 1;
  176. }
  177. message M2C_TransferMap // IActorLocationResponse
  178. {
  179. int32 RpcId = 1;
  180. int32 Error = 2;
  181. string Message = 3;
  182. }
  183. //ResponseType G2C_Benchmark
  184. message C2G_Benchmark // IRequest
  185. {
  186. int32 RpcId = 1;
  187. }
  188. message G2C_Benchmark // IResponse
  189. {
  190. int32 RpcId = 1;
  191. int32 Error = 2;
  192. string Message = 3;
  193. }