OuterMessage_C_10001.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  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 string MapName { 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. // sceneId
  89. [ProtoMember(4)]
  90. public long SceneId { get; set; }
  91. }
  92. [ResponseType(nameof(G2C_EnterSceneReady))]
  93. [Message(OuterMessage.C2G_EnterSceneReady)]
  94. [ProtoContract]
  95. public partial class C2G_EnterSceneReady: ProtoObject, IRequest
  96. {
  97. [ProtoMember(1)]
  98. public int RpcId { get; set; }
  99. }
  100. [Message(OuterMessage.G2C_EnterSceneReady)]
  101. [ProtoContract]
  102. public partial class G2C_EnterSceneReady: ProtoObject, IResponse
  103. {
  104. [ProtoMember(1)]
  105. public int RpcId { get; set; }
  106. [ProtoMember(2)]
  107. public int Error { get; set; }
  108. [ProtoMember(3)]
  109. public string Message { get; set; }
  110. }
  111. [Message(OuterMessage.MoveInfo)]
  112. [ProtoContract]
  113. public partial class MoveInfo: ProtoObject
  114. {
  115. [ProtoMember(1)]
  116. public List<Unity.Mathematics.float3> Points { get; set; }
  117. [ProtoMember(2)]
  118. public Unity.Mathematics.quaternion Rotation { get; set; }
  119. [ProtoMember(3)]
  120. public int TurnSpeed { get; set; }
  121. }
  122. [Message(OuterMessage.UnitInfo)]
  123. [ProtoContract]
  124. public partial class UnitInfo: ProtoObject
  125. {
  126. [ProtoMember(1)]
  127. public long UnitId { get; set; }
  128. [ProtoMember(2)]
  129. public int ConfigId { get; set; }
  130. [ProtoMember(3)]
  131. public int Type { get; set; }
  132. [ProtoMember(4)]
  133. public Unity.Mathematics.float3 Position { get; set; }
  134. [ProtoMember(5)]
  135. public Unity.Mathematics.float3 Forward { get; set; }
  136. [MongoDB.Bson.Serialization.Attributes.BsonDictionaryOptions(MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
  137. [ProtoMember(6)]
  138. public Dictionary<int, long> KV { get; set; }
  139. [ProtoMember(7)]
  140. public MoveInfo MoveInfo { get; set; }
  141. }
  142. [Message(OuterMessage.M2C_CreateUnits)]
  143. [ProtoContract]
  144. public partial class M2C_CreateUnits: ProtoObject, IActorMessage
  145. {
  146. [ProtoMember(1)]
  147. public List<UnitInfo> Units { get; set; }
  148. }
  149. [Message(OuterMessage.M2C_CreateMyUnit)]
  150. [ProtoContract]
  151. public partial class M2C_CreateMyUnit: ProtoObject, IActorMessage
  152. {
  153. [ProtoMember(1)]
  154. public UnitInfo Unit { get; set; }
  155. }
  156. [Message(OuterMessage.M2C_StartSceneChange)]
  157. [ProtoContract]
  158. public partial class M2C_StartSceneChange: ProtoObject, IActorMessage
  159. {
  160. [ProtoMember(1)]
  161. public long SceneInstanceId { get; set; }
  162. [ProtoMember(2)]
  163. public string SceneName { get; set; }
  164. }
  165. [Message(OuterMessage.M2C_RemoveUnits)]
  166. [ProtoContract]
  167. public partial class M2C_RemoveUnits: ProtoObject, IActorMessage
  168. {
  169. [ProtoMember(2)]
  170. public List<long> Units { get; set; }
  171. }
  172. [Message(OuterMessage.C2M_PathfindingResult)]
  173. [ProtoContract]
  174. public partial class C2M_PathfindingResult: ProtoObject, IActorLocationMessage
  175. {
  176. [ProtoMember(1)]
  177. public int RpcId { get; set; }
  178. [ProtoMember(2)]
  179. public Unity.Mathematics.float3 Position { get; set; }
  180. }
  181. [Message(OuterMessage.M2C_PathfindingResult)]
  182. [ProtoContract]
  183. public partial class M2C_PathfindingResult: ProtoObject, IActorMessage
  184. {
  185. [ProtoMember(1)]
  186. public long Id { get; set; }
  187. [ProtoMember(2)]
  188. public Unity.Mathematics.float3 Position { get; set; }
  189. [ProtoMember(3)]
  190. public List<Unity.Mathematics.float3> Points { get; set; }
  191. }
  192. [Message(OuterMessage.C2M_Stop)]
  193. [ProtoContract]
  194. public partial class C2M_Stop: ProtoObject, IActorLocationMessage
  195. {
  196. [ProtoMember(1)]
  197. public int RpcId { get; set; }
  198. }
  199. [Message(OuterMessage.M2C_Stop)]
  200. [ProtoContract]
  201. public partial class M2C_Stop: ProtoObject, IActorMessage
  202. {
  203. [ProtoMember(1)]
  204. public int Error { get; set; }
  205. [ProtoMember(2)]
  206. public long Id { get; set; }
  207. [ProtoMember(3)]
  208. public Unity.Mathematics.float3 Position { get; set; }
  209. [ProtoMember(4)]
  210. public Unity.Mathematics.quaternion Rotation { get; set; }
  211. }
  212. [ResponseType(nameof(G2C_Ping))]
  213. [Message(OuterMessage.C2G_Ping)]
  214. [ProtoContract]
  215. public partial class C2G_Ping: ProtoObject, IRequest
  216. {
  217. [ProtoMember(1)]
  218. public int RpcId { get; set; }
  219. }
  220. [Message(OuterMessage.G2C_Ping)]
  221. [ProtoContract]
  222. public partial class G2C_Ping: ProtoObject, IResponse
  223. {
  224. [ProtoMember(1)]
  225. public int RpcId { get; set; }
  226. [ProtoMember(2)]
  227. public int Error { get; set; }
  228. [ProtoMember(3)]
  229. public string Message { get; set; }
  230. [ProtoMember(4)]
  231. public long Time { get; set; }
  232. }
  233. [Message(OuterMessage.G2C_Test)]
  234. [ProtoContract]
  235. public partial class G2C_Test: ProtoObject, IMessage
  236. {
  237. }
  238. [ResponseType(nameof(M2C_Reload))]
  239. [Message(OuterMessage.C2M_Reload)]
  240. [ProtoContract]
  241. public partial class C2M_Reload: ProtoObject, IRequest
  242. {
  243. [ProtoMember(1)]
  244. public int RpcId { get; set; }
  245. [ProtoMember(2)]
  246. public string Account { get; set; }
  247. [ProtoMember(3)]
  248. public string Password { get; set; }
  249. }
  250. [Message(OuterMessage.M2C_Reload)]
  251. [ProtoContract]
  252. public partial class M2C_Reload: ProtoObject, IResponse
  253. {
  254. [ProtoMember(1)]
  255. public int RpcId { get; set; }
  256. [ProtoMember(2)]
  257. public int Error { get; set; }
  258. [ProtoMember(3)]
  259. public string Message { get; set; }
  260. }
  261. [ResponseType(nameof(R2C_Login))]
  262. [Message(OuterMessage.C2R_Login)]
  263. [ProtoContract]
  264. public partial class C2R_Login: ProtoObject, IRequest
  265. {
  266. [ProtoMember(1)]
  267. public int RpcId { get; set; }
  268. [ProtoMember(2)]
  269. public string Account { get; set; }
  270. [ProtoMember(3)]
  271. public string Password { get; set; }
  272. }
  273. [Message(OuterMessage.R2C_Login)]
  274. [ProtoContract]
  275. public partial class R2C_Login: ProtoObject, IResponse
  276. {
  277. [ProtoMember(1)]
  278. public int RpcId { get; set; }
  279. [ProtoMember(2)]
  280. public int Error { get; set; }
  281. [ProtoMember(3)]
  282. public string Message { get; set; }
  283. [ProtoMember(4)]
  284. public string Address { get; set; }
  285. [ProtoMember(5)]
  286. public string Token { get; set; }
  287. [ProtoMember(6)]
  288. public long UserId { get; set; }
  289. }
  290. [ResponseType(nameof(G2C_LoginGate))]
  291. [Message(OuterMessage.C2G_LoginGate)]
  292. [ProtoContract]
  293. public partial class C2G_LoginGate: ProtoObject, IRequest
  294. {
  295. [ProtoMember(1)]
  296. public int RpcId { get; set; }
  297. [ProtoMember(2)]
  298. public string Token { get; set; }
  299. }
  300. [Message(OuterMessage.G2C_LoginGate)]
  301. [ProtoContract]
  302. public partial class G2C_LoginGate: ProtoObject, IResponse
  303. {
  304. [ProtoMember(1)]
  305. public int RpcId { get; set; }
  306. [ProtoMember(2)]
  307. public int Error { get; set; }
  308. [ProtoMember(3)]
  309. public string Message { get; set; }
  310. [ProtoMember(4)]
  311. public List<PlayerBasic> Players { get; set; }
  312. }
  313. [ResponseType(nameof(G2C_CreatePlayer))]
  314. [Message(OuterMessage.C2G_CreatePlayer)]
  315. [ProtoContract]
  316. public partial class C2G_CreatePlayer: ProtoObject, IRequest
  317. {
  318. [ProtoMember(1)]
  319. public int RpcId { get; set; }
  320. [ProtoMember(2)]
  321. public long UserId { get; set; }
  322. [ProtoMember(3)]
  323. public string Name { get; set; }
  324. [ProtoMember(4)]
  325. public int Pro { get; set; }
  326. [ProtoMember(5)]
  327. public int Sex { get; set; }
  328. }
  329. [Message(OuterMessage.G2C_CreatePlayer)]
  330. [ProtoContract]
  331. public partial class G2C_CreatePlayer: ProtoObject, IResponse
  332. {
  333. [ProtoMember(1)]
  334. public int RpcId { get; set; }
  335. [ProtoMember(2)]
  336. public int Error { get; set; }
  337. [ProtoMember(3)]
  338. public string Message { get; set; }
  339. [ProtoMember(4)]
  340. public Player Player { get; set; }
  341. }
  342. [ResponseType(nameof(G2C_BindPlayer))]
  343. [Message(OuterMessage.C2G_BindPlayer)]
  344. [ProtoContract]
  345. public partial class C2G_BindPlayer: ProtoObject, IRequest
  346. {
  347. [ProtoMember(1)]
  348. public int RpcId { get; set; }
  349. [ProtoMember(2)]
  350. public long PlayerId { 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 C2G_EnterSceneReady = 10010;
  455. public const ushort G2C_EnterSceneReady = 10011;
  456. public const ushort MoveInfo = 10012;
  457. public const ushort UnitInfo = 10013;
  458. public const ushort M2C_CreateUnits = 10014;
  459. public const ushort M2C_CreateMyUnit = 10015;
  460. public const ushort M2C_StartSceneChange = 10016;
  461. public const ushort M2C_RemoveUnits = 10017;
  462. public const ushort C2M_PathfindingResult = 10018;
  463. public const ushort M2C_PathfindingResult = 10019;
  464. public const ushort C2M_Stop = 10020;
  465. public const ushort M2C_Stop = 10021;
  466. public const ushort C2G_Ping = 10022;
  467. public const ushort G2C_Ping = 10023;
  468. public const ushort G2C_Test = 10024;
  469. public const ushort C2M_Reload = 10025;
  470. public const ushort M2C_Reload = 10026;
  471. public const ushort C2R_Login = 10027;
  472. public const ushort R2C_Login = 10028;
  473. public const ushort C2G_LoginGate = 10029;
  474. public const ushort G2C_LoginGate = 10030;
  475. public const ushort C2G_CreatePlayer = 10031;
  476. public const ushort G2C_CreatePlayer = 10032;
  477. public const ushort C2G_BindPlayer = 10033;
  478. public const ushort G2C_BindPlayer = 10034;
  479. public const ushort G2C_TestHotfixMessage = 10035;
  480. public const ushort C2M_TestRobotCase = 10036;
  481. public const ushort M2C_TestRobotCase = 10037;
  482. public const ushort C2M_TransferMap = 10038;
  483. public const ushort M2C_TransferMap = 10039;
  484. public const ushort C2G_Benchmark = 10040;
  485. public const ushort G2C_Benchmark = 10041;
  486. public const ushort R2C_Disconnect = 10042;
  487. }
  488. }