OuterMessage_C_10001.proto 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  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 RoomId = 2;
  151. }
  152. message R2C_Login // IResponse
  153. {
  154. int32 RpcId = 1;
  155. int32 Error = 2;
  156. string Message = 3;
  157. string Token = 4;
  158. // 服务器列表
  159. repeated string Address = 5;
  160. }
  161. //ResponseType G2C_LoginGame
  162. message C2G_LoginGame // IRequest
  163. {
  164. int32 RpcId = 1;
  165. string Token = 2;
  166. }
  167. message G2C_LoginGame // IResponse
  168. {
  169. int32 RpcId = 1;
  170. int32 Error = 2;
  171. string Message = 3;
  172. PlayerBasic Player = 4; // 角色
  173. }
  174. //ResponseType G2C_CreatePlayer
  175. message C2G_CreatePlayer // IRequest
  176. {
  177. int32 RpcId = 1;
  178. int64 UserId = 2;
  179. string Name = 3; // 角色名称
  180. int32 Pro = 4; // 职业
  181. int32 Sex = 5; // 性别
  182. }
  183. message G2C_CreatePlayer // IResponse
  184. {
  185. int32 RpcId = 1;
  186. int32 Error = 2;
  187. string Message = 3;
  188. Player Player = 4;
  189. }
  190. //ResponseType G2C_BindPlayer
  191. message C2G_BindPlayer // IRequest
  192. {
  193. int32 RpcId = 1;
  194. int64 PlayerId = 2;
  195. }
  196. message G2C_BindPlayer // IResponse
  197. {
  198. int32 RpcId = 1;
  199. int32 Error = 2;
  200. string Message = 3;
  201. Player Player = 4;
  202. }
  203. //ResponseType G2C_AddUnitsToMap
  204. message C2G_AddUnitsToMap // IRequest
  205. {
  206. int32 RpcId = 1;
  207. int32 UnitId = 2; // 单位模板ID
  208. int32 Force = 3; // 阵营信息 0-无 1-怪物 2-阵营a 3-阵营b
  209. string Flag = 4; // 编辑器配置的出生点, 为空则读xy
  210. int32 X = 5;
  211. int32 Y = 6;
  212. }
  213. message G2C_AddUnitsToMap // IResponse
  214. {
  215. int32 RpcId = 1;
  216. int32 Error = 2;
  217. string Message = 3;
  218. }
  219. //ResponseType G2C_RemoveUnit
  220. message C2G_RemoveUnit // IActorLocationRequest
  221. {
  222. int32 RpcId = 1;
  223. int32 UnitId = 2; // 单位模板ID
  224. }
  225. message G2C_RemoveUnit // IActorLocationResponse
  226. {
  227. int32 RpcId = 1;
  228. int32 Error = 2;
  229. string Message = 3;
  230. }
  231. //ResponseType G2C_TriggrBattleFunction
  232. message C2G_TriggrBattleFunction // IRequest
  233. {
  234. int32 RpcId = 1;
  235. int32 TriggerID = 2;// 效果id
  236. int32 Value1 = 3; // 属性数值
  237. int32 Value2 = 4; // 属性数值
  238. int32 Value3 = 5; // 属性数值
  239. int32 Value4 = 6; // 属性数值
  240. int32 Value5 = 7; // 属性数值
  241. int32 Value6 = 8; // 属性数值
  242. }
  243. message G2C_TriggrBattleFunction // IResponse
  244. {
  245. int32 RpcId = 1;
  246. int32 Error = 2;
  247. string Message = 3;
  248. }
  249. message RankInfo
  250. {
  251. string Name = 1; // 名称
  252. int32 Value = 2; // 贡献值
  253. int32 Ranking = 3; // 排名
  254. }
  255. message G2C_RankNotify // IActorMessage
  256. {
  257. repeated RankInfo InfoList = 1; // 排行榜list
  258. }
  259. message G2C_TestHotfixMessage // IMessage
  260. {
  261. string Info = 1;
  262. }
  263. //ResponseType M2C_TestRobotCase
  264. message C2M_TestRobotCase // IActorLocationRequest
  265. {
  266. int32 RpcId = 1;
  267. int32 N = 2;
  268. }
  269. message M2C_TestRobotCase // IActorLocationResponse
  270. {
  271. int32 RpcId = 1;
  272. int32 Error = 2;
  273. string Message = 3;
  274. int32 N = 4;
  275. }
  276. //ResponseType G2C_Benchmark
  277. message C2G_Benchmark // IRequest
  278. {
  279. int32 RpcId = 1;
  280. }
  281. message G2C_Benchmark // IResponse
  282. {
  283. int32 RpcId = 1;
  284. int32 Error = 2;
  285. string Message = 3;
  286. }
  287. message R2C_Disconnect // IActorMessage
  288. {
  289. int32 RpcId = 1;
  290. int32 Error = 2;
  291. string Message = 3;
  292. }
  293. message HttpDouyinApiCallbackResponse
  294. {
  295. int32 Error = 1;
  296. string Message = 2;
  297. }
  298. message HttpGetVersionResponse
  299. {
  300. int32 Error = 1;
  301. string Message = 2;
  302. int64 Version = 3; // 版本号
  303. string Url = 4; // 新包地址
  304. }
  305. //ResponseType G2C_BattleNotify
  306. message C2G_BattleNotify // IRequest
  307. {
  308. int32 RpcId = 1;
  309. string Message = 2;
  310. }
  311. message G2C_BattleNotify // IResponse
  312. {
  313. int32 RpcId = 1;
  314. int32 Error = 2;
  315. string Message = 3;
  316. }