OuterMessage_C_10001.proto 6.2 KB

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