OuterMessage_C_10001.proto 4.4 KB

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