OuterMessage_C_10001.proto 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. syntax = "proto3";
  2. package ET;
  3. import 'Player.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. int64 InstanceId = 2;
  44. }
  45. message G2C_EnterMap // IResponse
  46. {
  47. int32 RpcId = 1;
  48. int32 Error = 2;
  49. string Message = 3;
  50. int64 MapInstanceId = 4;
  51. }
  52. //ResponseType G2C_EnterSceneReady
  53. message C2G_EnterSceneReady // IRequest
  54. {
  55. int32 RpcId = 1;
  56. }
  57. message G2C_EnterSceneReady // IResponse
  58. {
  59. int32 RpcId = 1;
  60. int32 Error = 2;
  61. string Message = 3;
  62. }
  63. message MoveInfo
  64. {
  65. repeated Unity.Mathematics.float3 Points = 1;
  66. Unity.Mathematics.quaternion Rotation = 2;
  67. int32 TurnSpeed = 3;
  68. }
  69. message UnitInfo
  70. {
  71. int64 UnitId = 1;
  72. int32 ConfigId = 2;
  73. int32 Type = 3;
  74. Unity.Mathematics.float3 Position = 4;
  75. Unity.Mathematics.float3 Forward = 5;
  76. map<int32, int64> KV = 6;
  77. MoveInfo MoveInfo = 7;
  78. }
  79. message M2C_CreateUnits // IActorMessage
  80. {
  81. repeated UnitInfo Units = 1;
  82. }
  83. message M2C_CreateMyUnit // IActorMessage
  84. {
  85. UnitInfo Unit = 1;
  86. }
  87. message M2C_StartSceneChange // IActorMessage
  88. {
  89. int64 SceneInstanceId = 1;
  90. string SceneName = 2;
  91. }
  92. message M2C_RemoveUnits // IActorMessage
  93. {
  94. repeated int64 Units = 2;
  95. }
  96. message C2M_PathfindingResult // IActorLocationMessage
  97. {
  98. int32 RpcId = 1;
  99. Unity.Mathematics.float3 Position = 2;
  100. }
  101. message M2C_PathfindingResult // IActorMessage
  102. {
  103. int64 Id = 1;
  104. Unity.Mathematics.float3 Position = 2;
  105. repeated Unity.Mathematics.float3 Points = 3;
  106. }
  107. message C2M_Stop // IActorLocationMessage
  108. {
  109. int32 RpcId = 1;
  110. }
  111. message M2C_Stop // IActorMessage
  112. {
  113. int32 Error = 1;
  114. int64 Id = 2;
  115. Unity.Mathematics.float3 Position = 3;
  116. Unity.Mathematics.quaternion Rotation = 4;
  117. }
  118. //ResponseType G2C_Ping
  119. message C2G_Ping // IRequest
  120. {
  121. int32 RpcId = 1;
  122. }
  123. message G2C_Ping // IResponse
  124. {
  125. int32 RpcId = 1;
  126. int32 Error = 2;
  127. string Message = 3;
  128. int64 Time = 4;
  129. }
  130. message G2C_Test // IMessage
  131. {
  132. }
  133. //ResponseType M2C_Reload
  134. message C2M_Reload // IRequest
  135. {
  136. int32 RpcId = 1;
  137. string Account = 2;
  138. string Password = 3;
  139. }
  140. message M2C_Reload // IResponse
  141. {
  142. int32 RpcId = 1;
  143. int32 Error = 2;
  144. string Message = 3;
  145. }
  146. //ResponseType R2C_Login
  147. message C2R_Login // IRequest
  148. {
  149. int32 RpcId = 1;
  150. string Account = 2; // 帐号
  151. string Password = 3; // 密码
  152. }
  153. message R2C_Login // IResponse
  154. {
  155. int32 RpcId = 1;
  156. int32 Error = 2;
  157. string Message = 3;
  158. string Token = 4;
  159. int64 UserId = 5;
  160. // 服务器列表
  161. repeated string Address = 6;
  162. }
  163. //ResponseType G2C_LoginGame
  164. message C2G_LoginGame // IRequest
  165. {
  166. int32 RpcId = 1;
  167. string Token = 2; // 帐号
  168. int64 UserId = 3;
  169. }
  170. message G2C_LoginGame // IResponse
  171. {
  172. int32 RpcId = 1;
  173. int32 Error = 2;
  174. string Message = 3;
  175. repeated PlayerBasic Players = 4; // 角色列表
  176. }
  177. //ResponseType G2C_CreatePlayer
  178. message C2G_CreatePlayer // IRequest
  179. {
  180. int32 RpcId = 1;
  181. int64 UserId = 2;
  182. string Name = 3; // 角色名称
  183. int32 Pro = 4; // 职业
  184. int32 Sex = 5; // 性别
  185. }
  186. message G2C_CreatePlayer // IResponse
  187. {
  188. int32 RpcId = 1;
  189. int32 Error = 2;
  190. string Message = 3;
  191. Player Player = 4;
  192. }
  193. //ResponseType G2C_BindPlayer
  194. message C2G_BindPlayer // IRequest
  195. {
  196. int32 RpcId = 1;
  197. int64 PlayerId = 2;
  198. int64 UserId = 3;
  199. }
  200. message G2C_BindPlayer // IResponse
  201. {
  202. int32 RpcId = 1;
  203. int32 Error = 2;
  204. string Message = 3;
  205. Player Player = 4;
  206. }
  207. //ResponseType G2C_AddUnitsToMap
  208. message C2G_AddUnitsToMap // IRequest
  209. {
  210. int32 RpcId = 1;
  211. int32 UnitId = 2; // 单位模板ID
  212. int32 Force = 3; // 阵营信息 0-无 1-怪物 2-阵营a 3-阵营b
  213. string Flag = 4; // 编辑器配置的出生点, 为空则读xy
  214. int32 X = 5;
  215. int32 Y = 6;
  216. }
  217. message G2C_AddUnitsToMap // IResponse
  218. {
  219. int32 RpcId = 1;
  220. int32 Error = 2;
  221. string Message = 3;
  222. }
  223. //ResponseType G2C_RemoveUnit
  224. message C2G_RemoveUnit // IActorLocationRequest
  225. {
  226. int32 RpcId = 1;
  227. int32 UnitId = 2; // 单位模板ID
  228. }
  229. message G2C_RemoveUnit // IActorLocationResponse
  230. {
  231. int32 RpcId = 1;
  232. int32 Error = 2;
  233. string Message = 3;
  234. }
  235. //ResponseType G2C_TriggrBattleFunction
  236. message C2G_TriggrBattleFunction // IRequest
  237. {
  238. int32 RpcId = 1;
  239. int32 TriggerID = 2;// 效果id
  240. int32 Value1 = 3; // 属性数值
  241. int32 Value2 = 4; // 属性数值
  242. int32 Value3 = 5; // 属性数值
  243. int32 Value4 = 6; // 属性数值
  244. int32 Value5 = 7; // 属性数值
  245. int32 Value6 = 8; // 属性数值
  246. }
  247. message G2C_TriggrBattleFunction // IResponse
  248. {
  249. int32 RpcId = 1;
  250. int32 Error = 2;
  251. string Message = 3;
  252. }
  253. message RankInfo
  254. {
  255. string Name = 1; // 名称
  256. int32 Value = 2; // 贡献值
  257. int32 Ranking = 3; // 排名
  258. }
  259. message G2C_RankNotify // IActorMessage
  260. {
  261. repeated RankInfo InfoList = 1; // 排行榜list
  262. }
  263. message G2C_TestHotfixMessage // IMessage
  264. {
  265. string Info = 1;
  266. }
  267. //ResponseType M2C_TestRobotCase
  268. message C2M_TestRobotCase // IActorLocationRequest
  269. {
  270. int32 RpcId = 1;
  271. int32 N = 2;
  272. }
  273. message M2C_TestRobotCase // IActorLocationResponse
  274. {
  275. int32 RpcId = 1;
  276. int32 Error = 2;
  277. string Message = 3;
  278. int32 N = 4;
  279. }
  280. //ResponseType G2C_Benchmark
  281. message C2G_Benchmark // IRequest
  282. {
  283. int32 RpcId = 1;
  284. }
  285. message G2C_Benchmark // IResponse
  286. {
  287. int32 RpcId = 1;
  288. int32 Error = 2;
  289. string Message = 3;
  290. }
  291. message R2C_Disconnect // IActorMessage
  292. {
  293. int32 RpcId = 1;
  294. int32 Error = 2;
  295. string Message = 3;
  296. }