OuterMessage_C_10001.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  1. using ET;
  2. using ProtoBuf;
  3. using System.Collections.Generic;
  4. namespace ET
  5. {
  6. [Message(OuterMessage.HttpGetRouterResponse)]
  7. [ProtoContract]
  8. public partial class HttpGetRouterResponse: ProtoObject
  9. {
  10. [ProtoMember(1)]
  11. public List<string> Realms { get; set; }
  12. [ProtoMember(2)]
  13. public List<string> Routers { get; set; }
  14. }
  15. [Message(OuterMessage.RouterSync)]
  16. [ProtoContract]
  17. public partial class RouterSync: ProtoObject
  18. {
  19. [ProtoMember(1)]
  20. public uint ConnectId { get; set; }
  21. [ProtoMember(2)]
  22. public string Address { get; set; }
  23. }
  24. [ResponseType(nameof(M2C_TestResponse))]
  25. [Message(OuterMessage.C2M_TestRequest)]
  26. [ProtoContract]
  27. public partial class C2M_TestRequest: ProtoObject, IActorLocationRequest
  28. {
  29. [ProtoMember(1)]
  30. public int RpcId { get; set; }
  31. [ProtoMember(2)]
  32. public string request { get; set; }
  33. }
  34. [Message(OuterMessage.M2C_TestResponse)]
  35. [ProtoContract]
  36. public partial class M2C_TestResponse: ProtoObject, IActorLocationResponse
  37. {
  38. [ProtoMember(1)]
  39. public int RpcId { get; set; }
  40. [ProtoMember(2)]
  41. public int Error { get; set; }
  42. [ProtoMember(3)]
  43. public string Message { get; set; }
  44. [ProtoMember(4)]
  45. public string response { get; set; }
  46. }
  47. [ResponseType(nameof(Actor_TransferResponse))]
  48. [Message(OuterMessage.Actor_TransferRequest)]
  49. [ProtoContract]
  50. public partial class Actor_TransferRequest: ProtoObject, IActorLocationRequest
  51. {
  52. [ProtoMember(1)]
  53. public int RpcId { get; set; }
  54. [ProtoMember(2)]
  55. public int MapIndex { get; set; }
  56. }
  57. [Message(OuterMessage.Actor_TransferResponse)]
  58. [ProtoContract]
  59. public partial class Actor_TransferResponse: ProtoObject, IActorLocationResponse
  60. {
  61. [ProtoMember(1)]
  62. public int RpcId { get; set; }
  63. [ProtoMember(2)]
  64. public int Error { get; set; }
  65. [ProtoMember(3)]
  66. public string Message { get; set; }
  67. }
  68. [ResponseType(nameof(G2C_EnterMap))]
  69. [Message(OuterMessage.C2G_EnterMap)]
  70. [ProtoContract]
  71. public partial class C2G_EnterMap: ProtoObject, IRequest
  72. {
  73. [ProtoMember(1)]
  74. public int RpcId { get; set; }
  75. [ProtoMember(2)]
  76. public long InstanceId { get; set; }
  77. }
  78. [Message(OuterMessage.G2C_EnterMap)]
  79. [ProtoContract]
  80. public partial class G2C_EnterMap: ProtoObject, IResponse
  81. {
  82. [ProtoMember(1)]
  83. public int RpcId { get; set; }
  84. [ProtoMember(2)]
  85. public int Error { get; set; }
  86. [ProtoMember(3)]
  87. public string Message { get; set; }
  88. [ProtoMember(4)]
  89. public long MapInstanceId { get; set; }
  90. }
  91. [Message(OuterMessage.G2C_EnterSceneReady)]
  92. [ProtoContract]
  93. public partial class G2C_EnterSceneReady: ProtoObject, IActorMessage
  94. {
  95. [ProtoMember(1)]
  96. public int RpcId { get; set; }
  97. [ProtoMember(2)]
  98. public int Error { get; set; }
  99. [ProtoMember(3)]
  100. public string Message { get; set; }
  101. [ProtoMember(4)]
  102. public int MapId { get; set; }
  103. [ProtoMember(5)]
  104. public long MapInstanceId { get; set; }
  105. }
  106. [Message(OuterMessage.MoveInfo)]
  107. [ProtoContract]
  108. public partial class MoveInfo: ProtoObject
  109. {
  110. [ProtoMember(1)]
  111. public List<Unity.Mathematics.float3> Points { get; set; }
  112. [ProtoMember(2)]
  113. public Unity.Mathematics.quaternion Rotation { get; set; }
  114. [ProtoMember(3)]
  115. public int TurnSpeed { get; set; }
  116. }
  117. [Message(OuterMessage.UnitInfo)]
  118. [ProtoContract]
  119. public partial class UnitInfo: ProtoObject
  120. {
  121. [ProtoMember(1)]
  122. public long UnitId { get; set; }
  123. [ProtoMember(2)]
  124. public int ConfigId { get; set; }
  125. [ProtoMember(3)]
  126. public int Type { get; set; }
  127. [ProtoMember(4)]
  128. public Unity.Mathematics.float3 Position { get; set; }
  129. [ProtoMember(5)]
  130. public Unity.Mathematics.float3 Forward { get; set; }
  131. [MongoDB.Bson.Serialization.Attributes.BsonDictionaryOptions(MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
  132. [ProtoMember(6)]
  133. public Dictionary<int, long> KV { get; set; }
  134. [ProtoMember(7)]
  135. public MoveInfo MoveInfo { get; set; }
  136. }
  137. [Message(OuterMessage.M2C_CreateUnits)]
  138. [ProtoContract]
  139. public partial class M2C_CreateUnits: ProtoObject, IActorMessage
  140. {
  141. [ProtoMember(1)]
  142. public List<UnitInfo> Units { get; set; }
  143. }
  144. [Message(OuterMessage.M2C_CreateMyUnit)]
  145. [ProtoContract]
  146. public partial class M2C_CreateMyUnit: ProtoObject, IActorMessage
  147. {
  148. [ProtoMember(1)]
  149. public UnitInfo Unit { get; set; }
  150. }
  151. [Message(OuterMessage.M2C_StartSceneChange)]
  152. [ProtoContract]
  153. public partial class M2C_StartSceneChange: ProtoObject, IActorMessage
  154. {
  155. [ProtoMember(1)]
  156. public long SceneInstanceId { get; set; }
  157. [ProtoMember(2)]
  158. public string SceneName { get; set; }
  159. }
  160. [Message(OuterMessage.M2C_RemoveUnits)]
  161. [ProtoContract]
  162. public partial class M2C_RemoveUnits: ProtoObject, IActorMessage
  163. {
  164. [ProtoMember(2)]
  165. public List<long> Units { get; set; }
  166. }
  167. [Message(OuterMessage.C2M_PathfindingResult)]
  168. [ProtoContract]
  169. public partial class C2M_PathfindingResult: ProtoObject, IActorLocationMessage
  170. {
  171. [ProtoMember(1)]
  172. public int RpcId { get; set; }
  173. [ProtoMember(2)]
  174. public Unity.Mathematics.float3 Position { get; set; }
  175. }
  176. [Message(OuterMessage.M2C_PathfindingResult)]
  177. [ProtoContract]
  178. public partial class M2C_PathfindingResult: ProtoObject, IActorMessage
  179. {
  180. [ProtoMember(1)]
  181. public long Id { get; set; }
  182. [ProtoMember(2)]
  183. public Unity.Mathematics.float3 Position { get; set; }
  184. [ProtoMember(3)]
  185. public List<Unity.Mathematics.float3> Points { get; set; }
  186. }
  187. [Message(OuterMessage.C2M_Stop)]
  188. [ProtoContract]
  189. public partial class C2M_Stop: ProtoObject, IActorLocationMessage
  190. {
  191. [ProtoMember(1)]
  192. public int RpcId { get; set; }
  193. }
  194. [Message(OuterMessage.M2C_Stop)]
  195. [ProtoContract]
  196. public partial class M2C_Stop: ProtoObject, IActorMessage
  197. {
  198. [ProtoMember(1)]
  199. public int Error { get; set; }
  200. [ProtoMember(2)]
  201. public long Id { get; set; }
  202. [ProtoMember(3)]
  203. public Unity.Mathematics.float3 Position { get; set; }
  204. [ProtoMember(4)]
  205. public Unity.Mathematics.quaternion Rotation { get; set; }
  206. }
  207. [ResponseType(nameof(G2C_Ping))]
  208. [Message(OuterMessage.C2G_Ping)]
  209. [ProtoContract]
  210. public partial class C2G_Ping: ProtoObject, IRequest
  211. {
  212. [ProtoMember(1)]
  213. public int RpcId { get; set; }
  214. }
  215. [Message(OuterMessage.G2C_Ping)]
  216. [ProtoContract]
  217. public partial class G2C_Ping: ProtoObject, IResponse
  218. {
  219. [ProtoMember(1)]
  220. public int RpcId { get; set; }
  221. [ProtoMember(2)]
  222. public int Error { get; set; }
  223. [ProtoMember(3)]
  224. public string Message { get; set; }
  225. [ProtoMember(4)]
  226. public long Time { get; set; }
  227. }
  228. [Message(OuterMessage.G2C_Test)]
  229. [ProtoContract]
  230. public partial class G2C_Test: ProtoObject, IMessage
  231. {
  232. }
  233. [ResponseType(nameof(M2C_Reload))]
  234. [Message(OuterMessage.C2M_Reload)]
  235. [ProtoContract]
  236. public partial class C2M_Reload: ProtoObject, IRequest
  237. {
  238. [ProtoMember(1)]
  239. public int RpcId { get; set; }
  240. [ProtoMember(2)]
  241. public string Account { get; set; }
  242. [ProtoMember(3)]
  243. public string Password { get; set; }
  244. }
  245. [Message(OuterMessage.M2C_Reload)]
  246. [ProtoContract]
  247. public partial class M2C_Reload: ProtoObject, IResponse
  248. {
  249. [ProtoMember(1)]
  250. public int RpcId { get; set; }
  251. [ProtoMember(2)]
  252. public int Error { get; set; }
  253. [ProtoMember(3)]
  254. public string Message { get; set; }
  255. }
  256. [ResponseType(nameof(R2C_Login))]
  257. [Message(OuterMessage.C2R_Login)]
  258. [ProtoContract]
  259. public partial class C2R_Login: ProtoObject, IRequest
  260. {
  261. [ProtoMember(1)]
  262. public int RpcId { get; set; }
  263. [ProtoMember(2)]
  264. public string Account { get; set; }
  265. [ProtoMember(3)]
  266. public string Password { get; set; }
  267. }
  268. [Message(OuterMessage.R2C_Login)]
  269. [ProtoContract]
  270. public partial class R2C_Login: ProtoObject, IResponse
  271. {
  272. [ProtoMember(1)]
  273. public int RpcId { get; set; }
  274. [ProtoMember(2)]
  275. public int Error { get; set; }
  276. [ProtoMember(3)]
  277. public string Message { get; set; }
  278. [ProtoMember(4)]
  279. public string Token { get; set; }
  280. [ProtoMember(5)]
  281. public long UserId { get; set; }
  282. // 服务器列表
  283. [ProtoMember(6)]
  284. public List<string> Address { get; set; }
  285. }
  286. [ResponseType(nameof(G2C_LoginGame))]
  287. [Message(OuterMessage.C2G_LoginGame)]
  288. [ProtoContract]
  289. public partial class C2G_LoginGame: ProtoObject, IRequest
  290. {
  291. [ProtoMember(1)]
  292. public int RpcId { get; set; }
  293. [ProtoMember(2)]
  294. public string Token { get; set; }
  295. [ProtoMember(3)]
  296. public long UserId { get; set; }
  297. }
  298. [Message(OuterMessage.G2C_LoginGame)]
  299. [ProtoContract]
  300. public partial class G2C_LoginGame: ProtoObject, IResponse
  301. {
  302. [ProtoMember(1)]
  303. public int RpcId { get; set; }
  304. [ProtoMember(2)]
  305. public int Error { get; set; }
  306. [ProtoMember(3)]
  307. public string Message { get; set; }
  308. [ProtoMember(4)]
  309. public List<PlayerBasic> Players { get; set; }
  310. }
  311. [ResponseType(nameof(G2C_CreatePlayer))]
  312. [Message(OuterMessage.C2G_CreatePlayer)]
  313. [ProtoContract]
  314. public partial class C2G_CreatePlayer: ProtoObject, IRequest
  315. {
  316. [ProtoMember(1)]
  317. public int RpcId { get; set; }
  318. [ProtoMember(2)]
  319. public long UserId { get; set; }
  320. [ProtoMember(3)]
  321. public string Name { get; set; }
  322. [ProtoMember(4)]
  323. public int Pro { get; set; }
  324. [ProtoMember(5)]
  325. public int Sex { get; set; }
  326. }
  327. [Message(OuterMessage.G2C_CreatePlayer)]
  328. [ProtoContract]
  329. public partial class G2C_CreatePlayer: ProtoObject, IResponse
  330. {
  331. [ProtoMember(1)]
  332. public int RpcId { get; set; }
  333. [ProtoMember(2)]
  334. public int Error { get; set; }
  335. [ProtoMember(3)]
  336. public string Message { get; set; }
  337. [ProtoMember(4)]
  338. public Player Player { get; set; }
  339. }
  340. [ResponseType(nameof(G2C_BindPlayer))]
  341. [Message(OuterMessage.C2G_BindPlayer)]
  342. [ProtoContract]
  343. public partial class C2G_BindPlayer: ProtoObject, IRequest
  344. {
  345. [ProtoMember(1)]
  346. public int RpcId { get; set; }
  347. [ProtoMember(2)]
  348. public long PlayerId { get; set; }
  349. [ProtoMember(3)]
  350. public long UserId { get; set; }
  351. }
  352. [Message(OuterMessage.G2C_BindPlayer)]
  353. [ProtoContract]
  354. public partial class G2C_BindPlayer: ProtoObject, IResponse
  355. {
  356. [ProtoMember(1)]
  357. public int RpcId { get; set; }
  358. [ProtoMember(2)]
  359. public int Error { get; set; }
  360. [ProtoMember(3)]
  361. public string Message { get; set; }
  362. [ProtoMember(4)]
  363. public Player Player { get; set; }
  364. }
  365. [Message(OuterMessage.G2C_TestHotfixMessage)]
  366. [ProtoContract]
  367. public partial class G2C_TestHotfixMessage: ProtoObject, IMessage
  368. {
  369. [ProtoMember(1)]
  370. public string Info { get; set; }
  371. }
  372. [ResponseType(nameof(M2C_TestRobotCase))]
  373. [Message(OuterMessage.C2M_TestRobotCase)]
  374. [ProtoContract]
  375. public partial class C2M_TestRobotCase: ProtoObject, IActorLocationRequest
  376. {
  377. [ProtoMember(1)]
  378. public int RpcId { get; set; }
  379. [ProtoMember(2)]
  380. public int N { get; set; }
  381. }
  382. [Message(OuterMessage.M2C_TestRobotCase)]
  383. [ProtoContract]
  384. public partial class M2C_TestRobotCase: ProtoObject, IActorLocationResponse
  385. {
  386. [ProtoMember(1)]
  387. public int RpcId { get; set; }
  388. [ProtoMember(2)]
  389. public int Error { get; set; }
  390. [ProtoMember(3)]
  391. public string Message { get; set; }
  392. [ProtoMember(4)]
  393. public int N { get; set; }
  394. }
  395. [ResponseType(nameof(M2C_TransferMap))]
  396. [Message(OuterMessage.C2M_TransferMap)]
  397. [ProtoContract]
  398. public partial class C2M_TransferMap: ProtoObject, IActorLocationRequest
  399. {
  400. [ProtoMember(1)]
  401. public int RpcId { get; set; }
  402. }
  403. [Message(OuterMessage.M2C_TransferMap)]
  404. [ProtoContract]
  405. public partial class M2C_TransferMap: ProtoObject, IActorLocationResponse
  406. {
  407. [ProtoMember(1)]
  408. public int RpcId { get; set; }
  409. [ProtoMember(2)]
  410. public int Error { get; set; }
  411. [ProtoMember(3)]
  412. public string Message { get; set; }
  413. }
  414. [ResponseType(nameof(G2C_Benchmark))]
  415. [Message(OuterMessage.C2G_Benchmark)]
  416. [ProtoContract]
  417. public partial class C2G_Benchmark: ProtoObject, IRequest
  418. {
  419. [ProtoMember(1)]
  420. public int RpcId { get; set; }
  421. }
  422. [Message(OuterMessage.G2C_Benchmark)]
  423. [ProtoContract]
  424. public partial class G2C_Benchmark: ProtoObject, IResponse
  425. {
  426. [ProtoMember(1)]
  427. public int RpcId { get; set; }
  428. [ProtoMember(2)]
  429. public int Error { get; set; }
  430. [ProtoMember(3)]
  431. public string Message { get; set; }
  432. }
  433. [Message(OuterMessage.R2C_Disconnect)]
  434. [ProtoContract]
  435. public partial class R2C_Disconnect: ProtoObject, IActorMessage
  436. {
  437. [ProtoMember(1)]
  438. public int RpcId { get; set; }
  439. [ProtoMember(2)]
  440. public int Error { get; set; }
  441. [ProtoMember(3)]
  442. public string Message { get; set; }
  443. }
  444. public static class OuterMessage
  445. {
  446. public const ushort HttpGetRouterResponse = 10002;
  447. public const ushort RouterSync = 10003;
  448. public const ushort C2M_TestRequest = 10004;
  449. public const ushort M2C_TestResponse = 10005;
  450. public const ushort Actor_TransferRequest = 10006;
  451. public const ushort Actor_TransferResponse = 10007;
  452. public const ushort C2G_EnterMap = 10008;
  453. public const ushort G2C_EnterMap = 10009;
  454. public const ushort G2C_EnterSceneReady = 10010;
  455. public const ushort MoveInfo = 10011;
  456. public const ushort UnitInfo = 10012;
  457. public const ushort M2C_CreateUnits = 10013;
  458. public const ushort M2C_CreateMyUnit = 10014;
  459. public const ushort M2C_StartSceneChange = 10015;
  460. public const ushort M2C_RemoveUnits = 10016;
  461. public const ushort C2M_PathfindingResult = 10017;
  462. public const ushort M2C_PathfindingResult = 10018;
  463. public const ushort C2M_Stop = 10019;
  464. public const ushort M2C_Stop = 10020;
  465. public const ushort C2G_Ping = 10021;
  466. public const ushort G2C_Ping = 10022;
  467. public const ushort G2C_Test = 10023;
  468. public const ushort C2M_Reload = 10024;
  469. public const ushort M2C_Reload = 10025;
  470. public const ushort C2R_Login = 10026;
  471. public const ushort R2C_Login = 10027;
  472. public const ushort C2G_LoginGame = 10028;
  473. public const ushort G2C_LoginGame = 10029;
  474. public const ushort C2G_CreatePlayer = 10030;
  475. public const ushort G2C_CreatePlayer = 10031;
  476. public const ushort C2G_BindPlayer = 10032;
  477. public const ushort G2C_BindPlayer = 10033;
  478. public const ushort G2C_TestHotfixMessage = 10034;
  479. public const ushort C2M_TestRobotCase = 10035;
  480. public const ushort M2C_TestRobotCase = 10036;
  481. public const ushort C2M_TransferMap = 10037;
  482. public const ushort M2C_TransferMap = 10038;
  483. public const ushort C2G_Benchmark = 10039;
  484. public const ushort G2C_Benchmark = 10040;
  485. public const ushort R2C_Disconnect = 10041;
  486. }
  487. }