OuterMessage_C_10001.proto 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. syntax = "proto3";
  2. package ET;
  3. message HttpGetRouterResponse
  4. {
  5. repeated string Realms = 1;
  6. repeated string Routers = 2;
  7. }
  8. message RouterSync
  9. {
  10. uint32 ConnectId = 1;
  11. string Address = 2;
  12. }
  13. //ResponseType M2C_TestResponse
  14. message C2M_TestRequest // ILocationRequest
  15. {
  16. int32 RpcId = 1;
  17. string request = 2;
  18. }
  19. message M2C_TestResponse // IResponse
  20. {
  21. int32 RpcId = 1;
  22. int32 Error = 2;
  23. string Message = 3;
  24. string response = 4;
  25. }
  26. //ResponseType G2C_EnterMap
  27. message C2G_EnterMap // ISessionRequest
  28. {
  29. int32 RpcId = 1;
  30. }
  31. message G2C_EnterMap // ISessionResponse
  32. {
  33. int32 RpcId = 1;
  34. int32 Error = 2;
  35. string Message = 3;
  36. // 自己unitId
  37. int64 MyId = 4;
  38. }
  39. message MoveInfo
  40. {
  41. repeated Unity.Mathematics.float3 Points = 1;
  42. Unity.Mathematics.quaternion Rotation = 2;
  43. int32 TurnSpeed = 3;
  44. }
  45. message UnitInfo
  46. {
  47. int64 UnitId = 1;
  48. int32 ConfigId = 2;
  49. int32 Type = 3;
  50. Unity.Mathematics.float3 Position = 4;
  51. Unity.Mathematics.float3 Forward = 5;
  52. map<int32, int64> KV = 6;
  53. MoveInfo MoveInfo = 7;
  54. }
  55. message M2C_CreateUnits // IMessage
  56. {
  57. repeated UnitInfo Units = 1;
  58. }
  59. message M2C_CreateMyUnit // IMessage
  60. {
  61. UnitInfo Unit = 1;
  62. }
  63. message M2C_StartSceneChange // IMessage
  64. {
  65. int64 SceneInstanceId = 1;
  66. string SceneName = 2;
  67. }
  68. message M2C_RemoveUnits // IMessage
  69. {
  70. repeated int64 Units = 1;
  71. }
  72. message C2M_PathfindingResult // ILocationMessage
  73. {
  74. int32 RpcId = 1;
  75. Unity.Mathematics.float3 Position = 2;
  76. }
  77. message C2M_Stop // ILocationMessage
  78. {
  79. int32 RpcId = 1;
  80. }
  81. message M2C_PathfindingResult // IMessage
  82. {
  83. int64 Id = 1;
  84. Unity.Mathematics.float3 Position = 2;
  85. repeated Unity.Mathematics.float3 Points = 3;
  86. }
  87. message M2C_Stop // IMessage
  88. {
  89. int32 Error = 1;
  90. int64 Id = 2;
  91. Unity.Mathematics.float3 Position = 3;
  92. Unity.Mathematics.quaternion Rotation = 4;
  93. }
  94. //ResponseType G2C_Ping
  95. message C2G_Ping // ISessionRequest
  96. {
  97. int32 RpcId = 1;
  98. }
  99. message G2C_Ping // ISessionResponse
  100. {
  101. int32 RpcId = 1;
  102. int32 Error = 2;
  103. string Message = 3;
  104. int64 Time = 4;
  105. }
  106. message G2C_Test // ISessionMessage
  107. {
  108. }
  109. //ResponseType M2C_Reload
  110. message C2M_Reload // ISessionRequest
  111. {
  112. int32 RpcId = 1;
  113. string Account = 2;
  114. string Password = 3;
  115. }
  116. message M2C_Reload // ISessionResponse
  117. {
  118. int32 RpcId = 1;
  119. int32 Error = 2;
  120. string Message = 3;
  121. }
  122. //ResponseType R2C_Login
  123. message C2R_Login // ISessionRequest
  124. {
  125. int32 RpcId = 1;
  126. string Account = 2; // 帐号
  127. string Password = 3; // 密码
  128. }
  129. message R2C_Login // ISessionResponse
  130. {
  131. int32 RpcId = 1;
  132. int32 Error = 2;
  133. string Message = 3;
  134. string Address = 4;
  135. int64 Key = 5;
  136. int64 GateId = 6;
  137. }
  138. //ResponseType G2C_LoginGate
  139. message C2G_LoginGate // ISessionRequest
  140. {
  141. int32 RpcId = 1;
  142. int64 Key = 2; // 帐号
  143. int64 GateId = 3;
  144. }
  145. message G2C_LoginGate // ISessionResponse
  146. {
  147. int32 RpcId = 1;
  148. int32 Error = 2;
  149. string Message = 3;
  150. int64 PlayerId = 4;
  151. }
  152. message G2C_TestHotfixMessage // ISessionMessage
  153. {
  154. string Info = 1;
  155. }
  156. //ResponseType M2C_TestRobotCase
  157. message C2M_TestRobotCase // ILocationRequest
  158. {
  159. int32 RpcId = 1;
  160. int32 N = 2;
  161. }
  162. message M2C_TestRobotCase // ILocationResponse
  163. {
  164. int32 RpcId = 1;
  165. int32 Error = 2;
  166. string Message = 3;
  167. int32 N = 4;
  168. }
  169. message C2M_TestRobotCase2 // ILocationMessage
  170. {
  171. int32 RpcId = 1;
  172. int32 N = 2;
  173. }
  174. message M2C_TestRobotCase2 // ILocationMessage
  175. {
  176. int32 RpcId = 1;
  177. int32 N = 2;
  178. }
  179. //ResponseType M2C_TransferMap
  180. message C2M_TransferMap // ILocationRequest
  181. {
  182. int32 RpcId = 1;
  183. }
  184. message M2C_TransferMap // ILocationResponse
  185. {
  186. int32 RpcId = 1;
  187. int32 Error = 2;
  188. string Message = 3;
  189. }
  190. //ResponseType G2C_Benchmark
  191. message C2G_Benchmark // ISessionRequest
  192. {
  193. int32 RpcId = 1;
  194. }
  195. message G2C_Benchmark // ISessionResponse
  196. {
  197. int32 RpcId = 1;
  198. int32 Error = 2;
  199. string Message = 3;
  200. }