OuterMessage_C_10001.proto 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. syntax = "proto3";
  2. package ET;
  3. import 'Player.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. string MapName = 2;
  44. }
  45. message G2C_EnterMap // IResponse
  46. {
  47. int32 RpcId = 1;
  48. int32 Error = 2;
  49. string Message = 3;
  50. // sceneId
  51. int64 SceneId = 4;
  52. }
  53. //ResponseType G2C_EnterSceneReady
  54. message C2G_EnterSceneReady // IRequest
  55. {
  56. int32 RpcId = 1;
  57. }
  58. message G2C_EnterSceneReady // IResponse
  59. {
  60. int32 RpcId = 1;
  61. int32 Error = 2;
  62. string Message = 3;
  63. }
  64. message MoveInfo
  65. {
  66. repeated Unity.Mathematics.float3 Points = 1;
  67. Unity.Mathematics.quaternion Rotation = 2;
  68. int32 TurnSpeed = 3;
  69. }
  70. message UnitInfo
  71. {
  72. int64 UnitId = 1;
  73. int32 ConfigId = 2;
  74. int32 Type = 3;
  75. Unity.Mathematics.float3 Position = 4;
  76. Unity.Mathematics.float3 Forward = 5;
  77. map<int32, int64> KV = 6;
  78. MoveInfo MoveInfo = 7;
  79. }
  80. message M2C_CreateUnits // IActorMessage
  81. {
  82. repeated UnitInfo Units = 1;
  83. }
  84. message M2C_CreateMyUnit // IActorMessage
  85. {
  86. UnitInfo Unit = 1;
  87. }
  88. message M2C_StartSceneChange // IActorMessage
  89. {
  90. int64 SceneInstanceId = 1;
  91. string SceneName = 2;
  92. }
  93. message M2C_RemoveUnits // IActorMessage
  94. {
  95. repeated int64 Units = 2;
  96. }
  97. message C2M_PathfindingResult // IActorLocationMessage
  98. {
  99. int32 RpcId = 1;
  100. Unity.Mathematics.float3 Position = 2;
  101. }
  102. message M2C_PathfindingResult // IActorMessage
  103. {
  104. int64 Id = 1;
  105. Unity.Mathematics.float3 Position = 2;
  106. repeated Unity.Mathematics.float3 Points = 3;
  107. }
  108. message C2M_Stop // IActorLocationMessage
  109. {
  110. int32 RpcId = 1;
  111. }
  112. message M2C_Stop // IActorMessage
  113. {
  114. int32 Error = 1;
  115. int64 Id = 2;
  116. Unity.Mathematics.float3 Position = 3;
  117. Unity.Mathematics.quaternion Rotation = 4;
  118. }
  119. //ResponseType G2C_Ping
  120. message C2G_Ping // IRequest
  121. {
  122. int32 RpcId = 1;
  123. }
  124. message G2C_Ping // IResponse
  125. {
  126. int32 RpcId = 1;
  127. int32 Error = 2;
  128. string Message = 3;
  129. int64 Time = 4;
  130. }
  131. message G2C_Test // IMessage
  132. {
  133. }
  134. //ResponseType M2C_Reload
  135. message C2M_Reload // IRequest
  136. {
  137. int32 RpcId = 1;
  138. string Account = 2;
  139. string Password = 3;
  140. }
  141. message M2C_Reload // IResponse
  142. {
  143. int32 RpcId = 1;
  144. int32 Error = 2;
  145. string Message = 3;
  146. }
  147. //ResponseType R2C_Login
  148. message C2R_Login // IRequest
  149. {
  150. int32 RpcId = 1;
  151. string Account = 2; // 帐号
  152. string Password = 3; // 密码
  153. }
  154. message R2C_Login // IResponse
  155. {
  156. int32 RpcId = 1;
  157. int32 Error = 2;
  158. string Message = 3;
  159. string Address = 4;
  160. string Token = 5;
  161. int64 UserId = 6;
  162. }
  163. //ResponseType G2C_LoginGate
  164. message C2G_LoginGate // IRequest
  165. {
  166. int32 RpcId = 1;
  167. string Token = 2; // 帐号
  168. }
  169. message G2C_LoginGate // IResponse
  170. {
  171. int32 RpcId = 1;
  172. int32 Error = 2;
  173. string Message = 3;
  174. repeated PlayerBasic Players = 4; // 角色列表
  175. }
  176. //ResponseType G2C_CreatePlayer
  177. message C2G_CreatePlayer // IRequest
  178. {
  179. int32 RpcId = 1;
  180. int64 UserId = 2;
  181. string Name = 3; // 角色名称
  182. int32 Pro = 4; // 职业
  183. int32 Sex = 5; // 性别
  184. }
  185. message G2C_CreatePlayer // IResponse
  186. {
  187. int32 RpcId = 1;
  188. int32 Error = 2;
  189. string Message = 3;
  190. Player Player = 4;
  191. }
  192. //ResponseType G2C_BindPlayer
  193. message C2G_BindPlayer // IRequest
  194. {
  195. int32 RpcId = 1;
  196. int64 PlayerId = 2;
  197. }
  198. message G2C_BindPlayer // IResponse
  199. {
  200. int32 RpcId = 1;
  201. int32 Error = 2;
  202. string Message = 3;
  203. Player Player = 4;
  204. }
  205. message G2C_TestHotfixMessage // IMessage
  206. {
  207. string Info = 1;
  208. }
  209. //ResponseType M2C_TestRobotCase
  210. message C2M_TestRobotCase // IActorLocationRequest
  211. {
  212. int32 RpcId = 1;
  213. int32 N = 2;
  214. }
  215. message M2C_TestRobotCase // IActorLocationResponse
  216. {
  217. int32 RpcId = 1;
  218. int32 Error = 2;
  219. string Message = 3;
  220. int32 N = 4;
  221. }
  222. //ResponseType M2C_TransferMap
  223. message C2M_TransferMap // IActorLocationRequest
  224. {
  225. int32 RpcId = 1;
  226. }
  227. message M2C_TransferMap // IActorLocationResponse
  228. {
  229. int32 RpcId = 1;
  230. int32 Error = 2;
  231. string Message = 3;
  232. }
  233. //ResponseType G2C_Benchmark
  234. message C2G_Benchmark // IRequest
  235. {
  236. int32 RpcId = 1;
  237. }
  238. message G2C_Benchmark // IResponse
  239. {
  240. int32 RpcId = 1;
  241. int32 Error = 2;
  242. string Message = 3;
  243. }
  244. message R2C_Disconnect // IActorMessage
  245. {
  246. int32 RpcId = 1;
  247. int32 Error = 2;
  248. string Message = 3;
  249. }