OuterMessage.proto 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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 = 1;
  60. }
  61. message C2M_PathfindingResult // IActorLocationMessage
  62. {
  63. int32 RpcId = 90;
  64. int64 ActorId = 93;
  65. int64 Id = 94;
  66. float X = 1;
  67. float Y = 2;
  68. float Z = 3;
  69. }
  70. message M2C_PathfindingResult // IActorMessage
  71. {
  72. int64 ActorId = 93;
  73. int64 Id = 1;
  74. float X = 2;
  75. float Y = 3;
  76. float Z = 4;
  77. repeated float Xs = 5;
  78. repeated float Ys = 6;
  79. repeated float Zs = 7;
  80. }
  81. message M2C_Stop // IActorMessage
  82. {
  83. int32 Error = 1;
  84. int64 Id = 2;
  85. float X = 3;
  86. float Y = 4;
  87. float Z = 5;
  88. float A = 6;
  89. float B = 7;
  90. float C = 8;
  91. float W = 9;
  92. }
  93. //ResponseType G2C_Ping
  94. message C2G_Ping // IRequest
  95. {
  96. int32 RpcId = 90;
  97. }
  98. message G2C_Ping // IResponse
  99. {
  100. int32 RpcId = 90;
  101. int32 Error = 91;
  102. string Message = 92;
  103. int64 Time = 1;
  104. }
  105. message G2C_Test // IMessage
  106. {
  107. }
  108. //ResponseType M2C_Reload
  109. message C2M_Reload // IRequest
  110. {
  111. int32 RpcId = 90;
  112. string Account = 1;
  113. string Password = 2;
  114. }
  115. message M2C_Reload // IResponse
  116. {
  117. int32 RpcId = 90;
  118. int32 Error = 91;
  119. string Message = 92;
  120. }
  121. //ResponseType R2C_Login
  122. message C2R_Login // IRequest
  123. {
  124. int32 RpcId = 90;
  125. string Account = 1; // 帐号
  126. string Password = 2; // 密码
  127. }
  128. message R2C_Login // IResponse
  129. {
  130. int32 RpcId = 90;
  131. int32 Error = 91;
  132. string Message = 92;
  133. string Address = 1;
  134. int64 Key = 2;
  135. int64 GateId = 3;
  136. }
  137. //ResponseType G2C_LoginGate
  138. message C2G_LoginGate // IRequest
  139. {
  140. int32 RpcId = 90;
  141. int64 Key = 1; // 帐号
  142. int64 GateId = 2;
  143. }
  144. message G2C_LoginGate // IResponse
  145. {
  146. int32 RpcId = 90;
  147. int32 Error = 91;
  148. string Message = 92;
  149. int64 PlayerId = 1;
  150. }
  151. message G2C_TestHotfixMessage // IMessage
  152. {
  153. string Info = 1;
  154. }
  155. //ResponseType M2C_TestActorResponse
  156. message C2M_TestActorRequest // IActorLocationRequest
  157. {
  158. int32 RpcId = 90;
  159. int64 ActorId = 91;
  160. string Info = 1;
  161. }
  162. message M2C_TestActorResponse // IActorLocationResponse
  163. {
  164. int32 RpcId = 90;
  165. int32 Error = 91;
  166. string Message = 92;
  167. string Info = 1;
  168. }
  169. message PlayerInfo // IMessage
  170. {
  171. int32 RpcId = 90;
  172. }
  173. //ResponseType G2C_PlayerInfo
  174. message C2G_PlayerInfo // IRequest
  175. {
  176. int32 RpcId = 90;
  177. }
  178. message G2C_PlayerInfo // IResponse
  179. {
  180. int32 RpcId = 90;
  181. int32 Error = 91;
  182. string Message = 92;
  183. PlayerInfo PlayerInfo = 1;
  184. repeated PlayerInfo PlayerInfos = 2;
  185. repeated string TestRepeatedString = 3;
  186. repeated int32 TestRepeatedInt32 = 4;
  187. repeated int64 TestRepeatedInt64 = 5;
  188. }