OuterMessage.proto 3.0 KB

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