OuterMessage_C_30001.proto 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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 MoveInfo
  53. {
  54. repeated Unity.Mathematics.float3 Points = 1;
  55. Unity.Mathematics.quaternion Rotation = 2;
  56. int32 TurnSpeed = 3;
  57. }
  58. message UnitInfo
  59. {
  60. int64 UnitId = 1;
  61. int32 ConfigId = 2;
  62. int32 Type = 3;
  63. Unity.Mathematics.float3 Position = 4;
  64. Unity.Mathematics.float3 Forward = 5;
  65. map<int32, int64> KV = 6;
  66. MoveInfo MoveInfo = 7;
  67. }
  68. message M2C_CreateUnits // IActorMessage
  69. {
  70. repeated UnitInfo Units = 1;
  71. }
  72. message M2C_CreateMyUnit // IActorMessage
  73. {
  74. UnitInfo Unit = 1;
  75. }
  76. message M2C_StartSceneChange // IActorMessage
  77. {
  78. int64 SceneInstanceId = 1;
  79. string SceneName = 2;
  80. }
  81. message M2C_RemoveUnits // IActorMessage
  82. {
  83. repeated int64 Units = 2;
  84. }
  85. message C2M_PathfindingResult // IActorLocationMessage
  86. {
  87. int32 RpcId = 1;
  88. Unity.Mathematics.float3 Position = 2;
  89. }
  90. message C2M_Stop // IActorLocationMessage
  91. {
  92. int32 RpcId = 1;
  93. }
  94. message M2C_PathfindingResult // IActorMessage
  95. {
  96. int64 Id = 1;
  97. Unity.Mathematics.float3 Position = 2;
  98. repeated Unity.Mathematics.float3 Points = 3;
  99. }
  100. message M2C_Stop // IActorMessage
  101. {
  102. int32 Error = 1;
  103. int64 Id = 2;
  104. Unity.Mathematics.float3 Position = 3;
  105. Unity.Mathematics.quaternion Rotation = 4;
  106. }
  107. //ResponseType G2C_Ping
  108. message C2G_Ping // IRequest
  109. {
  110. int32 RpcId = 1;
  111. }
  112. message G2C_Ping // IResponse
  113. {
  114. int32 RpcId = 1;
  115. int32 Error = 2;
  116. string Message = 3;
  117. int64 Time = 4;
  118. }
  119. message G2C_Test // IMessage
  120. {
  121. }
  122. //ResponseType M2C_Reload
  123. message C2M_Reload // IRequest
  124. {
  125. int32 RpcId = 1;
  126. string Account = 2;
  127. string Password = 3;
  128. }
  129. message M2C_Reload // IResponse
  130. {
  131. int32 RpcId = 1;
  132. int32 Error = 2;
  133. string Message = 3;
  134. }
  135. //ResponseType R2C_Login
  136. message C2R_Login // IRequest
  137. {
  138. int32 RpcId = 1;
  139. string Account = 2; // 帐号
  140. string Password = 3; // 密码
  141. }
  142. message R2C_Login // IResponse
  143. {
  144. int32 RpcId = 1;
  145. int32 Error = 2;
  146. string Message = 3;
  147. string Address = 4;
  148. int64 Key = 5;
  149. int64 GameId = 6;
  150. }
  151. //ResponseType G2C_LoginGame
  152. message C2G_LoginGame // IRequest
  153. {
  154. int32 RpcId = 1;
  155. int64 Key = 2; // 帐号
  156. int64 GameId = 3;
  157. }
  158. message G2C_LoginGame // IResponse
  159. {
  160. int32 RpcId = 1;
  161. int32 Error = 2;
  162. string Message = 3;
  163. Player Player = 4;
  164. }
  165. message G2C_TestHotfixMessage // IMessage
  166. {
  167. string Info = 1;
  168. }
  169. //ResponseType M2C_TestRobotCase
  170. message C2M_TestRobotCase // IActorLocationRequest
  171. {
  172. int32 RpcId = 1;
  173. int32 N = 2;
  174. }
  175. message M2C_TestRobotCase // IActorLocationResponse
  176. {
  177. int32 RpcId = 1;
  178. int32 Error = 2;
  179. string Message = 3;
  180. int32 N = 4;
  181. }
  182. //ResponseType M2C_TransferMap
  183. message C2M_TransferMap // IActorLocationRequest
  184. {
  185. int32 RpcId = 1;
  186. }
  187. message M2C_TransferMap // IActorLocationResponse
  188. {
  189. int32 RpcId = 1;
  190. int32 Error = 2;
  191. string Message = 3;
  192. }
  193. //ResponseType G2C_Benchmark
  194. message C2G_Benchmark // IRequest
  195. {
  196. int32 RpcId = 1;
  197. }
  198. message G2C_Benchmark // IResponse
  199. {
  200. int32 RpcId = 1;
  201. int32 Error = 2;
  202. string Message = 3;
  203. }