OuterMessage.proto 3.2 KB

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