OuterMessage.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. syntax = "proto3";
  2. package ET;
  3. //ResponseType M2C_TestResponse
  4. message C2M_TestRequest // IActorLocationRequest
  5. {
  6. int32 RpcId = 90;
  7. string request = 1;
  8. }
  9. message M2C_TestResponse // IActorLocationResponse
  10. {
  11. int32 RpcId = 90;
  12. int32 Error = 91;
  13. string Message = 92;
  14. string response = 1;
  15. }
  16. //ResponseType Actor_TransferResponse
  17. message Actor_TransferRequest // IActorLocationRequest
  18. {
  19. int32 RpcId = 90;
  20. int32 MapIndex = 1;
  21. }
  22. message Actor_TransferResponse // IActorLocationResponse
  23. {
  24. int32 RpcId = 90;
  25. int32 Error = 91;
  26. string Message = 92;
  27. }
  28. //ResponseType G2C_EnterMap
  29. message C2G_EnterMap // IRequest
  30. {
  31. int32 RpcId = 90;
  32. }
  33. message G2C_EnterMap // IResponse
  34. {
  35. int32 RpcId = 90;
  36. int32 Error = 91;
  37. string Message = 92;
  38. // 自己unit
  39. int64 MyId = 1;
  40. }
  41. message MoveInfo
  42. {
  43. repeated float X = 1;
  44. repeated float Y = 2;
  45. repeated float Z = 3;
  46. float A = 4;
  47. float B = 5;
  48. float C = 6;
  49. float W = 7;
  50. int32 TurnSpeed = 8;
  51. }
  52. message UnitInfo
  53. {
  54. int64 UnitId = 1;
  55. int32 ConfigId = 2;
  56. int32 Type = 3;
  57. float X = 4;
  58. float Y = 5;
  59. float Z = 6;
  60. float ForwardX = 7;
  61. float ForwardY = 8;
  62. float ForwardZ = 9;
  63. repeated int32 Ks = 10;
  64. repeated int64 Vs = 11;
  65. MoveInfo MoveInfo = 12;
  66. }
  67. message M2C_CreateUnits // IActorMessage
  68. {
  69. int32 RpcId = 90;
  70. repeated UnitInfo Units = 2;
  71. }
  72. message M2C_RemoveUnits // IActorMessage
  73. {
  74. repeated int64 Units = 2;
  75. }
  76. message C2M_PathfindingResult // IActorLocationMessage
  77. {
  78. int32 RpcId = 90;
  79. float X = 1;
  80. float Y = 2;
  81. float Z = 3;
  82. }
  83. message C2M_Stop // IActorLocationMessage
  84. {
  85. int32 RpcId = 90;
  86. }
  87. message M2C_PathfindingResult // IActorMessage
  88. {
  89. int64 Id = 1;
  90. float X = 2;
  91. float Y = 3;
  92. float Z = 4;
  93. repeated float Xs = 5;
  94. repeated float Ys = 6;
  95. repeated float Zs = 7;
  96. }
  97. message M2C_Stop // IActorMessage
  98. {
  99. int32 Error = 1;
  100. int64 Id = 2;
  101. float X = 3;
  102. float Y = 4;
  103. float Z = 5;
  104. float A = 6;
  105. float B = 7;
  106. float C = 8;
  107. float W = 9;
  108. }
  109. //ResponseType G2C_Ping
  110. message C2G_Ping // IRequest
  111. {
  112. int32 RpcId = 90;
  113. }
  114. message G2C_Ping // IResponse
  115. {
  116. int32 RpcId = 90;
  117. int32 Error = 91;
  118. string Message = 92;
  119. int64 Time = 1;
  120. }
  121. message G2C_Test // IMessage
  122. {
  123. }
  124. //ResponseType M2C_Reload
  125. message C2M_Reload // IRequest
  126. {
  127. int32 RpcId = 90;
  128. string Account = 1;
  129. string Password = 2;
  130. }
  131. message M2C_Reload // IResponse
  132. {
  133. int32 RpcId = 90;
  134. int32 Error = 91;
  135. string Message = 92;
  136. }
  137. //ResponseType R2C_Login
  138. message C2R_Login // IRequest
  139. {
  140. int32 RpcId = 90;
  141. string Account = 1; // 帐号
  142. string Password = 2; // 密码
  143. }
  144. message R2C_Login // IResponse
  145. {
  146. int32 RpcId = 90;
  147. int32 Error = 91;
  148. string Message = 92;
  149. string Address = 1;
  150. int64 Key = 2;
  151. int64 GateId = 3;
  152. }
  153. //ResponseType G2C_LoginGate
  154. message C2G_LoginGate // IRequest
  155. {
  156. int32 RpcId = 90;
  157. int64 Key = 1; // 帐号
  158. int64 GateId = 2;
  159. }
  160. message G2C_LoginGate // IResponse
  161. {
  162. int32 RpcId = 90;
  163. int32 Error = 91;
  164. string Message = 92;
  165. int64 PlayerId = 1;
  166. }
  167. message G2C_TestHotfixMessage // IMessage
  168. {
  169. string Info = 1;
  170. }
  171. //ResponseType M2C_TestRobotCase
  172. message C2M_TestRobotCase // IActorLocationRequest
  173. {
  174. int32 RpcId = 90;
  175. int32 N = 1;
  176. }
  177. message M2C_TestRobotCase // IActorLocationResponse
  178. {
  179. int32 RpcId = 90;
  180. int32 Error = 91;
  181. string Message = 92;
  182. int32 N = 1;
  183. }