StateSyncOuter_C_10001.cs 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122
  1. using MemoryPack;
  2. using System.Collections.Generic;
  3. namespace ET
  4. {
  5. [MemoryPackable]
  6. [Message(StateSyncOuter.HttpGetRouterResponse)]
  7. public partial class HttpGetRouterResponse : MessageObject
  8. {
  9. public static HttpGetRouterResponse Create(bool isFromPool = false)
  10. {
  11. return ObjectPool.Fetch<HttpGetRouterResponse>(isFromPool);
  12. }
  13. [MemoryPackOrder(0)]
  14. public List<string> Realms { get; set; } = new();
  15. [MemoryPackOrder(1)]
  16. public List<string> Routers { get; set; } = new();
  17. public override void Dispose()
  18. {
  19. if (!this.IsFromPool)
  20. {
  21. return;
  22. }
  23. this.Realms.Clear();
  24. this.Routers.Clear();
  25. ObjectPool.Recycle(this);
  26. }
  27. }
  28. [MemoryPackable]
  29. [Message(StateSyncOuter.RouterSync)]
  30. public partial class RouterSync : MessageObject
  31. {
  32. public static RouterSync Create(bool isFromPool = false)
  33. {
  34. return ObjectPool.Fetch<RouterSync>(isFromPool);
  35. }
  36. [MemoryPackOrder(0)]
  37. public uint ConnectId { get; set; }
  38. [MemoryPackOrder(1)]
  39. public string Address { get; set; }
  40. public override void Dispose()
  41. {
  42. if (!this.IsFromPool)
  43. {
  44. return;
  45. }
  46. this.ConnectId = default;
  47. this.Address = default;
  48. ObjectPool.Recycle(this);
  49. }
  50. }
  51. [MemoryPackable]
  52. [Message(StateSyncOuter.C2M_TestRequest)]
  53. [ResponseType(nameof(M2C_TestResponse))]
  54. public partial class C2M_TestRequest : MessageObject, ILocationRequest
  55. {
  56. public static C2M_TestRequest Create(bool isFromPool = false)
  57. {
  58. return ObjectPool.Fetch<C2M_TestRequest>(isFromPool);
  59. }
  60. [MemoryPackOrder(0)]
  61. public int RpcId { get; set; }
  62. [MemoryPackOrder(1)]
  63. public string request { get; set; }
  64. public override void Dispose()
  65. {
  66. if (!this.IsFromPool)
  67. {
  68. return;
  69. }
  70. this.RpcId = default;
  71. this.request = default;
  72. ObjectPool.Recycle(this);
  73. }
  74. }
  75. [MemoryPackable]
  76. [Message(StateSyncOuter.M2C_TestResponse)]
  77. public partial class M2C_TestResponse : MessageObject, IResponse
  78. {
  79. public static M2C_TestResponse Create(bool isFromPool = false)
  80. {
  81. return ObjectPool.Fetch<M2C_TestResponse>(isFromPool);
  82. }
  83. [MemoryPackOrder(0)]
  84. public int RpcId { get; set; }
  85. [MemoryPackOrder(1)]
  86. public int Error { get; set; }
  87. [MemoryPackOrder(2)]
  88. public string Message { get; set; }
  89. [MemoryPackOrder(3)]
  90. public string response { get; set; }
  91. public override void Dispose()
  92. {
  93. if (!this.IsFromPool)
  94. {
  95. return;
  96. }
  97. this.RpcId = default;
  98. this.Error = default;
  99. this.Message = default;
  100. this.response = default;
  101. ObjectPool.Recycle(this);
  102. }
  103. }
  104. [MemoryPackable]
  105. [Message(StateSyncOuter.C2G_EnterMap)]
  106. [ResponseType(nameof(G2C_EnterMap))]
  107. public partial class C2G_EnterMap : MessageObject, ISessionRequest
  108. {
  109. public static C2G_EnterMap Create(bool isFromPool = false)
  110. {
  111. return ObjectPool.Fetch<C2G_EnterMap>(isFromPool);
  112. }
  113. [MemoryPackOrder(0)]
  114. public int RpcId { get; set; }
  115. public override void Dispose()
  116. {
  117. if (!this.IsFromPool)
  118. {
  119. return;
  120. }
  121. this.RpcId = default;
  122. ObjectPool.Recycle(this);
  123. }
  124. }
  125. [MemoryPackable]
  126. [Message(StateSyncOuter.G2C_EnterMap)]
  127. public partial class G2C_EnterMap : MessageObject, ISessionResponse
  128. {
  129. public static G2C_EnterMap Create(bool isFromPool = false)
  130. {
  131. return ObjectPool.Fetch<G2C_EnterMap>(isFromPool);
  132. }
  133. [MemoryPackOrder(0)]
  134. public int RpcId { get; set; }
  135. [MemoryPackOrder(1)]
  136. public int Error { get; set; }
  137. [MemoryPackOrder(2)]
  138. public string Message { get; set; }
  139. /// <summary>
  140. /// 自己的UnitId
  141. /// </summary>
  142. [MemoryPackOrder(3)]
  143. public long MyId { get; set; }
  144. public override void Dispose()
  145. {
  146. if (!this.IsFromPool)
  147. {
  148. return;
  149. }
  150. this.RpcId = default;
  151. this.Error = default;
  152. this.Message = default;
  153. this.MyId = default;
  154. ObjectPool.Recycle(this);
  155. }
  156. }
  157. [MemoryPackable]
  158. [Message(StateSyncOuter.MoveInfo)]
  159. public partial class MoveInfo : MessageObject
  160. {
  161. public static MoveInfo Create(bool isFromPool = false)
  162. {
  163. return ObjectPool.Fetch<MoveInfo>(isFromPool);
  164. }
  165. [MemoryPackOrder(0)]
  166. public List<Unity.Mathematics.float3> Points { get; set; } = new();
  167. [MemoryPackOrder(1)]
  168. public Unity.Mathematics.quaternion Rotation { get; set; }
  169. [MemoryPackOrder(2)]
  170. public int TurnSpeed { get; set; }
  171. public override void Dispose()
  172. {
  173. if (!this.IsFromPool)
  174. {
  175. return;
  176. }
  177. this.Points.Clear();
  178. this.Rotation = default;
  179. this.TurnSpeed = default;
  180. ObjectPool.Recycle(this);
  181. }
  182. }
  183. [MemoryPackable]
  184. [Message(StateSyncOuter.UnitInfo)]
  185. public partial class UnitInfo : MessageObject
  186. {
  187. public static UnitInfo Create(bool isFromPool = false)
  188. {
  189. return ObjectPool.Fetch<UnitInfo>(isFromPool);
  190. }
  191. [MemoryPackOrder(0)]
  192. public long UnitId { get; set; }
  193. [MemoryPackOrder(1)]
  194. public int ConfigId { get; set; }
  195. [MemoryPackOrder(2)]
  196. public int Type { get; set; }
  197. [MemoryPackOrder(3)]
  198. public Unity.Mathematics.float3 Position { get; set; }
  199. [MemoryPackOrder(4)]
  200. public Unity.Mathematics.float3 Forward { get; set; }
  201. [MongoDB.Bson.Serialization.Attributes.BsonDictionaryOptions(MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
  202. [MemoryPackOrder(5)]
  203. public Dictionary<int, long> KV { get; set; } = new();
  204. [MemoryPackOrder(6)]
  205. public MoveInfo MoveInfo { get; set; }
  206. public override void Dispose()
  207. {
  208. if (!this.IsFromPool)
  209. {
  210. return;
  211. }
  212. this.UnitId = default;
  213. this.ConfigId = default;
  214. this.Type = default;
  215. this.Position = default;
  216. this.Forward = default;
  217. this.KV.Clear();
  218. this.MoveInfo = default;
  219. ObjectPool.Recycle(this);
  220. }
  221. }
  222. [MemoryPackable]
  223. [Message(StateSyncOuter.M2C_CreateUnits)]
  224. public partial class M2C_CreateUnits : MessageObject, IMessage
  225. {
  226. public static M2C_CreateUnits Create(bool isFromPool = false)
  227. {
  228. return ObjectPool.Fetch<M2C_CreateUnits>(isFromPool);
  229. }
  230. [MemoryPackOrder(0)]
  231. public List<UnitInfo> Units { get; set; } = new();
  232. public override void Dispose()
  233. {
  234. if (!this.IsFromPool)
  235. {
  236. return;
  237. }
  238. this.Units.Clear();
  239. ObjectPool.Recycle(this);
  240. }
  241. }
  242. [MemoryPackable]
  243. [Message(StateSyncOuter.M2C_CreateMyUnit)]
  244. public partial class M2C_CreateMyUnit : MessageObject, IMessage
  245. {
  246. public static M2C_CreateMyUnit Create(bool isFromPool = false)
  247. {
  248. return ObjectPool.Fetch<M2C_CreateMyUnit>(isFromPool);
  249. }
  250. [MemoryPackOrder(0)]
  251. public UnitInfo Unit { get; set; }
  252. public override void Dispose()
  253. {
  254. if (!this.IsFromPool)
  255. {
  256. return;
  257. }
  258. this.Unit = default;
  259. ObjectPool.Recycle(this);
  260. }
  261. }
  262. [MemoryPackable]
  263. [Message(StateSyncOuter.M2C_StartSceneChange)]
  264. public partial class M2C_StartSceneChange : MessageObject, IMessage
  265. {
  266. public static M2C_StartSceneChange Create(bool isFromPool = false)
  267. {
  268. return ObjectPool.Fetch<M2C_StartSceneChange>(isFromPool);
  269. }
  270. [MemoryPackOrder(0)]
  271. public long SceneInstanceId { get; set; }
  272. [MemoryPackOrder(1)]
  273. public string SceneName { get; set; }
  274. public override void Dispose()
  275. {
  276. if (!this.IsFromPool)
  277. {
  278. return;
  279. }
  280. this.SceneInstanceId = default;
  281. this.SceneName = default;
  282. ObjectPool.Recycle(this);
  283. }
  284. }
  285. [MemoryPackable]
  286. [Message(StateSyncOuter.M2C_RemoveUnits)]
  287. public partial class M2C_RemoveUnits : MessageObject, IMessage
  288. {
  289. public static M2C_RemoveUnits Create(bool isFromPool = false)
  290. {
  291. return ObjectPool.Fetch<M2C_RemoveUnits>(isFromPool);
  292. }
  293. [MemoryPackOrder(0)]
  294. public List<long> Units { get; set; } = new();
  295. public override void Dispose()
  296. {
  297. if (!this.IsFromPool)
  298. {
  299. return;
  300. }
  301. this.Units.Clear();
  302. ObjectPool.Recycle(this);
  303. }
  304. }
  305. [MemoryPackable]
  306. [Message(StateSyncOuter.C2M_PathfindingResult)]
  307. public partial class C2M_PathfindingResult : MessageObject, ILocationMessage
  308. {
  309. public static C2M_PathfindingResult Create(bool isFromPool = false)
  310. {
  311. return ObjectPool.Fetch<C2M_PathfindingResult>(isFromPool);
  312. }
  313. [MemoryPackOrder(0)]
  314. public int RpcId { get; set; }
  315. [MemoryPackOrder(1)]
  316. public Unity.Mathematics.float3 Position { get; set; }
  317. public override void Dispose()
  318. {
  319. if (!this.IsFromPool)
  320. {
  321. return;
  322. }
  323. this.RpcId = default;
  324. this.Position = default;
  325. ObjectPool.Recycle(this);
  326. }
  327. }
  328. [MemoryPackable]
  329. [Message(StateSyncOuter.C2M_Stop)]
  330. public partial class C2M_Stop : MessageObject, ILocationMessage
  331. {
  332. public static C2M_Stop Create(bool isFromPool = false)
  333. {
  334. return ObjectPool.Fetch<C2M_Stop>(isFromPool);
  335. }
  336. [MemoryPackOrder(0)]
  337. public int RpcId { get; set; }
  338. public override void Dispose()
  339. {
  340. if (!this.IsFromPool)
  341. {
  342. return;
  343. }
  344. this.RpcId = default;
  345. ObjectPool.Recycle(this);
  346. }
  347. }
  348. [MemoryPackable]
  349. [Message(StateSyncOuter.M2C_PathfindingResult)]
  350. public partial class M2C_PathfindingResult : MessageObject, IMessage
  351. {
  352. public static M2C_PathfindingResult Create(bool isFromPool = false)
  353. {
  354. return ObjectPool.Fetch<M2C_PathfindingResult>(isFromPool);
  355. }
  356. [MemoryPackOrder(0)]
  357. public long Id { get; set; }
  358. [MemoryPackOrder(1)]
  359. public Unity.Mathematics.float3 Position { get; set; }
  360. [MemoryPackOrder(2)]
  361. public List<Unity.Mathematics.float3> Points { get; set; } = new();
  362. public override void Dispose()
  363. {
  364. if (!this.IsFromPool)
  365. {
  366. return;
  367. }
  368. this.Id = default;
  369. this.Position = default;
  370. this.Points.Clear();
  371. ObjectPool.Recycle(this);
  372. }
  373. }
  374. [MemoryPackable]
  375. [Message(StateSyncOuter.M2C_Stop)]
  376. public partial class M2C_Stop : MessageObject, IMessage
  377. {
  378. public static M2C_Stop Create(bool isFromPool = false)
  379. {
  380. return ObjectPool.Fetch<M2C_Stop>(isFromPool);
  381. }
  382. [MemoryPackOrder(0)]
  383. public int Error { get; set; }
  384. [MemoryPackOrder(1)]
  385. public long Id { get; set; }
  386. [MemoryPackOrder(2)]
  387. public Unity.Mathematics.float3 Position { get; set; }
  388. [MemoryPackOrder(3)]
  389. public Unity.Mathematics.quaternion Rotation { get; set; }
  390. public override void Dispose()
  391. {
  392. if (!this.IsFromPool)
  393. {
  394. return;
  395. }
  396. this.Error = default;
  397. this.Id = default;
  398. this.Position = default;
  399. this.Rotation = default;
  400. ObjectPool.Recycle(this);
  401. }
  402. }
  403. [MemoryPackable]
  404. [Message(StateSyncOuter.C2G_Ping)]
  405. [ResponseType(nameof(G2C_Ping))]
  406. public partial class C2G_Ping : MessageObject, ISessionRequest
  407. {
  408. public static C2G_Ping Create(bool isFromPool = false)
  409. {
  410. return ObjectPool.Fetch<C2G_Ping>(isFromPool);
  411. }
  412. [MemoryPackOrder(0)]
  413. public int RpcId { get; set; }
  414. public override void Dispose()
  415. {
  416. if (!this.IsFromPool)
  417. {
  418. return;
  419. }
  420. this.RpcId = default;
  421. ObjectPool.Recycle(this);
  422. }
  423. }
  424. [MemoryPackable]
  425. [Message(StateSyncOuter.G2C_Ping)]
  426. public partial class G2C_Ping : MessageObject, ISessionResponse
  427. {
  428. public static G2C_Ping Create(bool isFromPool = false)
  429. {
  430. return ObjectPool.Fetch<G2C_Ping>(isFromPool);
  431. }
  432. [MemoryPackOrder(0)]
  433. public int RpcId { get; set; }
  434. [MemoryPackOrder(1)]
  435. public int Error { get; set; }
  436. [MemoryPackOrder(2)]
  437. public string Message { get; set; }
  438. [MemoryPackOrder(3)]
  439. public long Time { get; set; }
  440. public override void Dispose()
  441. {
  442. if (!this.IsFromPool)
  443. {
  444. return;
  445. }
  446. this.RpcId = default;
  447. this.Error = default;
  448. this.Message = default;
  449. this.Time = default;
  450. ObjectPool.Recycle(this);
  451. }
  452. }
  453. [MemoryPackable]
  454. [Message(StateSyncOuter.G2C_Test)]
  455. public partial class G2C_Test : MessageObject, ISessionMessage
  456. {
  457. public static G2C_Test Create(bool isFromPool = false)
  458. {
  459. return ObjectPool.Fetch<G2C_Test>(isFromPool);
  460. }
  461. public override void Dispose()
  462. {
  463. if (!this.IsFromPool)
  464. {
  465. return;
  466. }
  467. ObjectPool.Recycle(this);
  468. }
  469. }
  470. [MemoryPackable]
  471. [Message(StateSyncOuter.C2M_Reload)]
  472. [ResponseType(nameof(M2C_Reload))]
  473. public partial class C2M_Reload : MessageObject, ISessionRequest
  474. {
  475. public static C2M_Reload Create(bool isFromPool = false)
  476. {
  477. return ObjectPool.Fetch<C2M_Reload>(isFromPool);
  478. }
  479. [MemoryPackOrder(0)]
  480. public int RpcId { get; set; }
  481. [MemoryPackOrder(1)]
  482. public string Account { get; set; }
  483. [MemoryPackOrder(2)]
  484. public string Password { get; set; }
  485. public override void Dispose()
  486. {
  487. if (!this.IsFromPool)
  488. {
  489. return;
  490. }
  491. this.RpcId = default;
  492. this.Account = default;
  493. this.Password = default;
  494. ObjectPool.Recycle(this);
  495. }
  496. }
  497. [MemoryPackable]
  498. [Message(StateSyncOuter.M2C_Reload)]
  499. public partial class M2C_Reload : MessageObject, ISessionResponse
  500. {
  501. public static M2C_Reload Create(bool isFromPool = false)
  502. {
  503. return ObjectPool.Fetch<M2C_Reload>(isFromPool);
  504. }
  505. [MemoryPackOrder(0)]
  506. public int RpcId { get; set; }
  507. [MemoryPackOrder(1)]
  508. public int Error { get; set; }
  509. [MemoryPackOrder(2)]
  510. public string Message { get; set; }
  511. public override void Dispose()
  512. {
  513. if (!this.IsFromPool)
  514. {
  515. return;
  516. }
  517. this.RpcId = default;
  518. this.Error = default;
  519. this.Message = default;
  520. ObjectPool.Recycle(this);
  521. }
  522. }
  523. [MemoryPackable]
  524. [Message(StateSyncOuter.C2R_Login)]
  525. [ResponseType(nameof(R2C_Login))]
  526. public partial class C2R_Login : MessageObject, ISessionRequest
  527. {
  528. public static C2R_Login Create(bool isFromPool = false)
  529. {
  530. return ObjectPool.Fetch<C2R_Login>(isFromPool);
  531. }
  532. [MemoryPackOrder(0)]
  533. public int RpcId { get; set; }
  534. /// <summary>
  535. /// 帐号
  536. /// </summary>
  537. [MemoryPackOrder(1)]
  538. public string Account { get; set; }
  539. /// <summary>
  540. /// 密码
  541. /// </summary>
  542. [MemoryPackOrder(2)]
  543. public string Password { get; set; }
  544. public override void Dispose()
  545. {
  546. if (!this.IsFromPool)
  547. {
  548. return;
  549. }
  550. this.RpcId = default;
  551. this.Account = default;
  552. this.Password = default;
  553. ObjectPool.Recycle(this);
  554. }
  555. }
  556. [MemoryPackable]
  557. [Message(StateSyncOuter.R2C_Login)]
  558. public partial class R2C_Login : MessageObject, ISessionResponse
  559. {
  560. public static R2C_Login Create(bool isFromPool = false)
  561. {
  562. return ObjectPool.Fetch<R2C_Login>(isFromPool);
  563. }
  564. [MemoryPackOrder(0)]
  565. public int RpcId { get; set; }
  566. [MemoryPackOrder(1)]
  567. public int Error { get; set; }
  568. [MemoryPackOrder(2)]
  569. public string Message { get; set; }
  570. [MemoryPackOrder(3)]
  571. public string Address { get; set; }
  572. [MemoryPackOrder(4)]
  573. public long Key { get; set; }
  574. [MemoryPackOrder(5)]
  575. public long GateId { get; set; }
  576. public override void Dispose()
  577. {
  578. if (!this.IsFromPool)
  579. {
  580. return;
  581. }
  582. this.RpcId = default;
  583. this.Error = default;
  584. this.Message = default;
  585. this.Address = default;
  586. this.Key = default;
  587. this.GateId = default;
  588. ObjectPool.Recycle(this);
  589. }
  590. }
  591. [MemoryPackable]
  592. [Message(StateSyncOuter.C2G_LoginGate)]
  593. [ResponseType(nameof(G2C_LoginGate))]
  594. public partial class C2G_LoginGate : MessageObject, ISessionRequest
  595. {
  596. public static C2G_LoginGate Create(bool isFromPool = false)
  597. {
  598. return ObjectPool.Fetch<C2G_LoginGate>(isFromPool);
  599. }
  600. [MemoryPackOrder(0)]
  601. public int RpcId { get; set; }
  602. /// <summary>
  603. /// 帐号
  604. /// </summary>
  605. [MemoryPackOrder(1)]
  606. public long Key { get; set; }
  607. [MemoryPackOrder(2)]
  608. public long GateId { get; set; }
  609. public override void Dispose()
  610. {
  611. if (!this.IsFromPool)
  612. {
  613. return;
  614. }
  615. this.RpcId = default;
  616. this.Key = default;
  617. this.GateId = default;
  618. ObjectPool.Recycle(this);
  619. }
  620. }
  621. [MemoryPackable]
  622. [Message(StateSyncOuter.G2C_LoginGate)]
  623. public partial class G2C_LoginGate : MessageObject, ISessionResponse
  624. {
  625. public static G2C_LoginGate Create(bool isFromPool = false)
  626. {
  627. return ObjectPool.Fetch<G2C_LoginGate>(isFromPool);
  628. }
  629. [MemoryPackOrder(0)]
  630. public int RpcId { get; set; }
  631. [MemoryPackOrder(1)]
  632. public int Error { get; set; }
  633. [MemoryPackOrder(2)]
  634. public string Message { get; set; }
  635. [MemoryPackOrder(3)]
  636. public long PlayerId { get; set; }
  637. public override void Dispose()
  638. {
  639. if (!this.IsFromPool)
  640. {
  641. return;
  642. }
  643. this.RpcId = default;
  644. this.Error = default;
  645. this.Message = default;
  646. this.PlayerId = default;
  647. ObjectPool.Recycle(this);
  648. }
  649. }
  650. [MemoryPackable]
  651. [Message(StateSyncOuter.G2C_TestHotfixMessage)]
  652. public partial class G2C_TestHotfixMessage : MessageObject, ISessionMessage
  653. {
  654. public static G2C_TestHotfixMessage Create(bool isFromPool = false)
  655. {
  656. return ObjectPool.Fetch<G2C_TestHotfixMessage>(isFromPool);
  657. }
  658. [MemoryPackOrder(0)]
  659. public string Info { get; set; }
  660. public override void Dispose()
  661. {
  662. if (!this.IsFromPool)
  663. {
  664. return;
  665. }
  666. this.Info = default;
  667. ObjectPool.Recycle(this);
  668. }
  669. }
  670. [MemoryPackable]
  671. [Message(StateSyncOuter.C2M_TestRobotCase)]
  672. [ResponseType(nameof(M2C_TestRobotCase))]
  673. public partial class C2M_TestRobotCase : MessageObject, ILocationRequest
  674. {
  675. public static C2M_TestRobotCase Create(bool isFromPool = false)
  676. {
  677. return ObjectPool.Fetch<C2M_TestRobotCase>(isFromPool);
  678. }
  679. [MemoryPackOrder(0)]
  680. public int RpcId { get; set; }
  681. [MemoryPackOrder(1)]
  682. public int N { get; set; }
  683. public override void Dispose()
  684. {
  685. if (!this.IsFromPool)
  686. {
  687. return;
  688. }
  689. this.RpcId = default;
  690. this.N = default;
  691. ObjectPool.Recycle(this);
  692. }
  693. }
  694. [MemoryPackable]
  695. [Message(StateSyncOuter.M2C_TestRobotCase)]
  696. public partial class M2C_TestRobotCase : MessageObject, ILocationResponse
  697. {
  698. public static M2C_TestRobotCase Create(bool isFromPool = false)
  699. {
  700. return ObjectPool.Fetch<M2C_TestRobotCase>(isFromPool);
  701. }
  702. [MemoryPackOrder(0)]
  703. public int RpcId { get; set; }
  704. [MemoryPackOrder(1)]
  705. public int Error { get; set; }
  706. [MemoryPackOrder(2)]
  707. public string Message { get; set; }
  708. [MemoryPackOrder(3)]
  709. public int N { get; set; }
  710. public override void Dispose()
  711. {
  712. if (!this.IsFromPool)
  713. {
  714. return;
  715. }
  716. this.RpcId = default;
  717. this.Error = default;
  718. this.Message = default;
  719. this.N = default;
  720. ObjectPool.Recycle(this);
  721. }
  722. }
  723. [MemoryPackable]
  724. [Message(StateSyncOuter.C2M_TestRobotCase2)]
  725. public partial class C2M_TestRobotCase2 : MessageObject, ILocationMessage
  726. {
  727. public static C2M_TestRobotCase2 Create(bool isFromPool = false)
  728. {
  729. return ObjectPool.Fetch<C2M_TestRobotCase2>(isFromPool);
  730. }
  731. [MemoryPackOrder(0)]
  732. public int RpcId { get; set; }
  733. [MemoryPackOrder(1)]
  734. public int N { get; set; }
  735. public override void Dispose()
  736. {
  737. if (!this.IsFromPool)
  738. {
  739. return;
  740. }
  741. this.RpcId = default;
  742. this.N = default;
  743. ObjectPool.Recycle(this);
  744. }
  745. }
  746. [MemoryPackable]
  747. [Message(StateSyncOuter.M2C_TestRobotCase2)]
  748. public partial class M2C_TestRobotCase2 : MessageObject, ILocationMessage
  749. {
  750. public static M2C_TestRobotCase2 Create(bool isFromPool = false)
  751. {
  752. return ObjectPool.Fetch<M2C_TestRobotCase2>(isFromPool);
  753. }
  754. [MemoryPackOrder(0)]
  755. public int RpcId { get; set; }
  756. [MemoryPackOrder(1)]
  757. public int N { get; set; }
  758. public override void Dispose()
  759. {
  760. if (!this.IsFromPool)
  761. {
  762. return;
  763. }
  764. this.RpcId = default;
  765. this.N = default;
  766. ObjectPool.Recycle(this);
  767. }
  768. }
  769. [MemoryPackable]
  770. [Message(StateSyncOuter.C2M_TransferMap)]
  771. [ResponseType(nameof(M2C_TransferMap))]
  772. public partial class C2M_TransferMap : MessageObject, ILocationRequest
  773. {
  774. public static C2M_TransferMap Create(bool isFromPool = false)
  775. {
  776. return ObjectPool.Fetch<C2M_TransferMap>(isFromPool);
  777. }
  778. [MemoryPackOrder(0)]
  779. public int RpcId { get; set; }
  780. public override void Dispose()
  781. {
  782. if (!this.IsFromPool)
  783. {
  784. return;
  785. }
  786. this.RpcId = default;
  787. ObjectPool.Recycle(this);
  788. }
  789. }
  790. [MemoryPackable]
  791. [Message(StateSyncOuter.M2C_TransferMap)]
  792. public partial class M2C_TransferMap : MessageObject, ILocationResponse
  793. {
  794. public static M2C_TransferMap Create(bool isFromPool = false)
  795. {
  796. return ObjectPool.Fetch<M2C_TransferMap>(isFromPool);
  797. }
  798. [MemoryPackOrder(0)]
  799. public int RpcId { get; set; }
  800. [MemoryPackOrder(1)]
  801. public int Error { get; set; }
  802. [MemoryPackOrder(2)]
  803. public string Message { get; set; }
  804. public override void Dispose()
  805. {
  806. if (!this.IsFromPool)
  807. {
  808. return;
  809. }
  810. this.RpcId = default;
  811. this.Error = default;
  812. this.Message = default;
  813. ObjectPool.Recycle(this);
  814. }
  815. }
  816. [MemoryPackable]
  817. [Message(StateSyncOuter.C2G_Benchmark)]
  818. [ResponseType(nameof(G2C_Benchmark))]
  819. public partial class C2G_Benchmark : MessageObject, ISessionRequest
  820. {
  821. public static C2G_Benchmark Create(bool isFromPool = false)
  822. {
  823. return ObjectPool.Fetch<C2G_Benchmark>(isFromPool);
  824. }
  825. [MemoryPackOrder(0)]
  826. public int RpcId { get; set; }
  827. public override void Dispose()
  828. {
  829. if (!this.IsFromPool)
  830. {
  831. return;
  832. }
  833. this.RpcId = default;
  834. ObjectPool.Recycle(this);
  835. }
  836. }
  837. [MemoryPackable]
  838. [Message(StateSyncOuter.G2C_Benchmark)]
  839. public partial class G2C_Benchmark : MessageObject, ISessionResponse
  840. {
  841. public static G2C_Benchmark Create(bool isFromPool = false)
  842. {
  843. return ObjectPool.Fetch<G2C_Benchmark>(isFromPool);
  844. }
  845. [MemoryPackOrder(0)]
  846. public int RpcId { get; set; }
  847. [MemoryPackOrder(1)]
  848. public int Error { get; set; }
  849. [MemoryPackOrder(2)]
  850. public string Message { get; set; }
  851. public override void Dispose()
  852. {
  853. if (!this.IsFromPool)
  854. {
  855. return;
  856. }
  857. this.RpcId = default;
  858. this.Error = default;
  859. this.Message = default;
  860. ObjectPool.Recycle(this);
  861. }
  862. }
  863. public static class StateSyncOuter
  864. {
  865. public const ushort HttpGetRouterResponse = 10002;
  866. public const ushort RouterSync = 10003;
  867. public const ushort C2M_TestRequest = 10004;
  868. public const ushort M2C_TestResponse = 10005;
  869. public const ushort C2G_EnterMap = 10006;
  870. public const ushort G2C_EnterMap = 10007;
  871. public const ushort MoveInfo = 10008;
  872. public const ushort UnitInfo = 10009;
  873. public const ushort M2C_CreateUnits = 10010;
  874. public const ushort M2C_CreateMyUnit = 10011;
  875. public const ushort M2C_StartSceneChange = 10012;
  876. public const ushort M2C_RemoveUnits = 10013;
  877. public const ushort C2M_PathfindingResult = 10014;
  878. public const ushort C2M_Stop = 10015;
  879. public const ushort M2C_PathfindingResult = 10016;
  880. public const ushort M2C_Stop = 10017;
  881. public const ushort C2G_Ping = 10018;
  882. public const ushort G2C_Ping = 10019;
  883. public const ushort G2C_Test = 10020;
  884. public const ushort C2M_Reload = 10021;
  885. public const ushort M2C_Reload = 10022;
  886. public const ushort C2R_Login = 10023;
  887. public const ushort R2C_Login = 10024;
  888. public const ushort C2G_LoginGate = 10025;
  889. public const ushort G2C_LoginGate = 10026;
  890. public const ushort G2C_TestHotfixMessage = 10027;
  891. public const ushort C2M_TestRobotCase = 10028;
  892. public const ushort M2C_TestRobotCase = 10029;
  893. public const ushort C2M_TestRobotCase2 = 10030;
  894. public const ushort M2C_TestRobotCase2 = 10031;
  895. public const ushort C2M_TransferMap = 10032;
  896. public const ushort M2C_TransferMap = 10033;
  897. public const ushort C2G_Benchmark = 10034;
  898. public const ushort G2C_Benchmark = 10035;
  899. }
  900. }