OuterMessage_C_30001.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. syntax = "proto3";
  2. package ET;
  3. import 'Common.proto';
  4. message HttpGetRouterResponse
  5. {
  6. repeated string Realms = 1;
  7. repeated string Routers = 2;
  8. }
  9. message RouterSync
  10. {
  11. uint32 ConnectId = 1;
  12. string Address = 2;
  13. }
  14. //ResponseType M2C_TestResponse
  15. message C2M_TestRequest // IActorLocationRequest
  16. {
  17. int32 RpcId = 1;
  18. string request = 2;
  19. }
  20. message M2C_TestResponse // IActorLocationResponse
  21. {
  22. int32 RpcId = 1;
  23. int32 Error = 2;
  24. string Message = 3;
  25. string response = 4;
  26. }
  27. //ResponseType Actor_TransferResponse
  28. message Actor_TransferRequest // IActorLocationRequest
  29. {
  30. int32 RpcId = 1;
  31. int32 MapIndex = 2;
  32. }
  33. message Actor_TransferResponse // IActorLocationResponse
  34. {
  35. int32 RpcId = 1;
  36. int32 Error = 2;
  37. string Message = 3;
  38. }
  39. //ResponseType G2C_EnterMap
  40. message C2G_EnterMap // IRequest
  41. {
  42. int32 RpcId = 1;
  43. }
  44. message G2C_EnterMap // IResponse
  45. {
  46. int32 RpcId = 1;
  47. int32 Error = 2;
  48. string Message = 3;
  49. // 自己unitId
  50. int64 MyId = 4;
  51. }
  52. message M2C_CreateUnits // IActorMessage
  53. {
  54. repeated UnitInfo Units = 1;
  55. }
  56. message M2C_CreateMyUnit // IActorMessage
  57. {
  58. UnitInfo Unit = 1;
  59. }
  60. message M2C_StartSceneChange // IActorMessage
  61. {
  62. int64 SceneInstanceId = 1;
  63. string SceneName = 2;
  64. }
  65. message C2M_PathfindingResult // IActorLocationMessage
  66. {
  67. int32 RpcId = 1;
  68. Unity.Mathematics.float3 Position = 2;
  69. }
  70. message M2C_PathfindingResult // IActorMessage
  71. {
  72. int64 Id = 1;
  73. Unity.Mathematics.float3 Position = 2;
  74. repeated Unity.Mathematics.float3 Points = 3;
  75. }
  76. //ResponseType G2C_Ping
  77. message C2G_Ping // IRequest
  78. {
  79. int32 RpcId = 1;
  80. }
  81. message G2C_Ping // IResponse
  82. {
  83. int32 RpcId = 1;
  84. int32 Error = 2;
  85. string Message = 3;
  86. int64 Time = 4;
  87. }
  88. message G2C_Test // IMessage
  89. {
  90. }
  91. //ResponseType M2C_Reload
  92. message C2M_Reload // IRequest
  93. {
  94. int32 RpcId = 1;
  95. string Account = 2;
  96. string Password = 3;
  97. }
  98. message M2C_Reload // IResponse
  99. {
  100. int32 RpcId = 1;
  101. int32 Error = 2;
  102. string Message = 3;
  103. }
  104. //ResponseType R2C_Login
  105. message C2R_Login // IRequest
  106. {
  107. int32 RpcId = 1;
  108. string Account = 2; // 帐号
  109. string Password = 3; // 密码
  110. }
  111. message R2C_Login // IResponse
  112. {
  113. int32 RpcId = 1;
  114. int32 Error = 2;
  115. string Message = 3;
  116. string Address = 4;
  117. int64 Key = 5;
  118. int64 GameId = 6;
  119. }
  120. //ResponseType G2C_LoginGame
  121. message C2G_LoginGame // IRequest
  122. {
  123. int32 RpcId = 1;
  124. int64 Key = 2; // 帐号
  125. int64 GameId = 3;
  126. }
  127. message G2C_LoginGame // IResponse
  128. {
  129. int32 RpcId = 1;
  130. int32 Error = 2;
  131. string Message = 3;
  132. PlayerInfo Player = 4;
  133. bool IsInRoom = 5; // 是否在房间中
  134. }
  135. //ResponseType G2C_CreatRoom
  136. message C2G_CreatRoom // IRequest
  137. {
  138. int32 RpcId = 1;
  139. }
  140. message G2C_CreatRoom // IResponse
  141. {
  142. int32 RpcId = 1;
  143. int32 Error = 2;
  144. string Message = 3;
  145. int64 OwnerId = 4; // 房主id
  146. repeated PlayerInfo PlayerList = 5; // 房间玩家列表
  147. }
  148. message G2C_TestHotfixMessage // IMessage
  149. {
  150. string Info = 1;
  151. }
  152. //ResponseType M2C_TransferMap
  153. message C2M_TransferMap // IActorLocationRequest
  154. {
  155. int32 RpcId = 1;
  156. }
  157. message M2C_TransferMap // IActorLocationResponse
  158. {
  159. int32 RpcId = 1;
  160. int32 Error = 2;
  161. string Message = 3;
  162. }
  163. //ResponseType G2C_Benchmark
  164. message C2G_Benchmark // IRequest
  165. {
  166. int32 RpcId = 1;
  167. }
  168. message G2C_Benchmark // IResponse
  169. {
  170. int32 RpcId = 1;
  171. int32 Error = 2;
  172. string Message = 3;
  173. }