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