OuterMessage.proto 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. syntax = "proto3";
  2. package ETModel;
  3. message C2M_TestRequest // IActorLocationRequest
  4. {
  5. int32 RpcId = 90;
  6. int64 ActorId = 93;
  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. message Actor_TransferRequest // IActorLocationRequest
  17. {
  18. int32 RpcId = 90;
  19. int64 ActorId = 93;
  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. message C2G_EnterMap // IRequest
  29. {
  30. int32 RpcId = 90;
  31. }
  32. message G2C_EnterMap // IResponse
  33. {
  34. int32 RpcId = 90;
  35. int32 Error = 91;
  36. string Message = 92;
  37. // 自己的unit id
  38. int64 UnitId = 1;
  39. // 所有的unit
  40. repeated UnitInfo Units = 2;
  41. }
  42. message UnitInfo
  43. {
  44. int64 UnitId = 1;
  45. float X = 2;
  46. float Y = 3;
  47. float Z = 4;
  48. }
  49. message M2C_CreateUnits // IActorMessage
  50. {
  51. int32 RpcId = 90;
  52. int64 ActorId = 93;
  53. repeated UnitInfo Units = 1;
  54. }
  55. message Frame_ClickMap // IActorLocationMessage
  56. {
  57. int32 RpcId = 90;
  58. int64 ActorId = 93;
  59. int64 Id = 94;
  60. float X = 1;
  61. float Y = 2;
  62. float Z = 3;
  63. }
  64. message M2C_PathfindingResult // IActorMessage
  65. {
  66. int64 ActorId = 93;
  67. int64 Id = 1;
  68. float X = 2;
  69. float Y = 3;
  70. float Z = 4;
  71. repeated float Xs = 5;
  72. repeated float Ys = 6;
  73. repeated float Zs = 7;
  74. }
  75. message C2R_Ping // IRequest
  76. {
  77. int32 RpcId = 90;
  78. }
  79. message R2C_Ping // IResponse
  80. {
  81. int32 RpcId = 90;
  82. int32 Error = 91;
  83. string Message = 92;
  84. }
  85. message G2C_Test // IMessage
  86. {
  87. }
  88. message C2M_Reload // IRequest
  89. {
  90. int32 RpcId = 90;
  91. string Account = 1;
  92. string Password = 2;
  93. }
  94. message M2C_Reload // IResponse
  95. {
  96. int32 RpcId = 90;
  97. int32 Error = 91;
  98. string Message = 92;
  99. }
  100. message C2R_Login // IRequest
  101. {
  102. int32 RpcId = 90;
  103. string Account = 1; // 帐号
  104. string Password = 2; // 密码
  105. }
  106. message R2C_Login // IResponse
  107. {
  108. int32 RpcId = 90;
  109. int32 Error = 91;
  110. string Message = 92;
  111. string Address = 1;
  112. int64 Key = 2;
  113. int64 GateId = 3;
  114. }
  115. message C2G_LoginGate // IRequest
  116. {
  117. int32 RpcId = 90;
  118. int64 Key = 1; // 帐号
  119. int64 GateId = 2;
  120. }
  121. message G2C_LoginGate // IResponse
  122. {
  123. int32 RpcId = 90;
  124. int32 Error = 91;
  125. string Message = 92;
  126. int64 PlayerId = 1;
  127. }
  128. message G2C_TestHotfixMessage // IMessage
  129. {
  130. string Info = 1;
  131. }
  132. message C2M_TestActorRequest // IActorLocationRequest
  133. {
  134. int32 RpcId = 90;
  135. int64 ActorId = 91;
  136. string Info = 1;
  137. }
  138. message M2C_TestActorResponse // IActorLocationResponse
  139. {
  140. int32 RpcId = 90;
  141. int32 Error = 91;
  142. string Message = 92;
  143. string Info = 1;
  144. }
  145. message PlayerInfo // IMessage
  146. {
  147. int32 RpcId = 90;
  148. }
  149. message C2G_PlayerInfo // IRequest
  150. {
  151. int32 RpcId = 90;
  152. }
  153. message G2C_PlayerInfo // IResponse
  154. {
  155. int32 RpcId = 90;
  156. int32 Error = 91;
  157. string Message = 92;
  158. PlayerInfo PlayerInfo = 1;
  159. repeated PlayerInfo PlayerInfos = 2;
  160. repeated string TestRepeatedString = 3;
  161. repeated int32 TestRepeatedInt32 = 4;
  162. repeated int64 TestRepeatedInt64 = 5;
  163. }