OuterMessage.cs 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: OuterMessage.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using scg = global::System.Collections.Generic;
  8. namespace ETModel {
  9. #region Messages
  10. public partial class Actor_Test : pb::IMessage {
  11. private static readonly pb::MessageParser<Actor_Test> _parser = new pb::MessageParser<Actor_Test>(() => (Actor_Test)MessagePool.Instance.Fetch(typeof(Actor_Test)));
  12. public static pb::MessageParser<Actor_Test> Parser { get { return _parser; } }
  13. private int rpcId_;
  14. public int RpcId {
  15. get { return rpcId_; }
  16. set {
  17. rpcId_ = value;
  18. }
  19. }
  20. private long actorId_;
  21. public long ActorId {
  22. get { return actorId_; }
  23. set {
  24. actorId_ = value;
  25. }
  26. }
  27. private string info_ = "";
  28. public string Info {
  29. get { return info_; }
  30. set {
  31. info_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  32. }
  33. }
  34. public void WriteTo(pb::CodedOutputStream output) {
  35. if (Info.Length != 0) {
  36. output.WriteRawTag(10);
  37. output.WriteString(Info);
  38. }
  39. if (RpcId != 0) {
  40. output.WriteRawTag(208, 5);
  41. output.WriteInt32(RpcId);
  42. }
  43. if (ActorId != 0L) {
  44. output.WriteRawTag(232, 5);
  45. output.WriteInt64(ActorId);
  46. }
  47. }
  48. public int CalculateSize() {
  49. int size = 0;
  50. if (RpcId != 0) {
  51. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  52. }
  53. if (ActorId != 0L) {
  54. size += 2 + pb::CodedOutputStream.ComputeInt64Size(ActorId);
  55. }
  56. if (Info.Length != 0) {
  57. size += 1 + pb::CodedOutputStream.ComputeStringSize(Info);
  58. }
  59. return size;
  60. }
  61. public void MergeFrom(pb::CodedInputStream input) {
  62. info_ = "";
  63. rpcId_ = 0;
  64. actorId_ = 0;
  65. uint tag;
  66. while ((tag = input.ReadTag()) != 0) {
  67. switch(tag) {
  68. default:
  69. input.SkipLastField();
  70. break;
  71. case 10: {
  72. Info = input.ReadString();
  73. break;
  74. }
  75. case 720: {
  76. RpcId = input.ReadInt32();
  77. break;
  78. }
  79. case 744: {
  80. ActorId = input.ReadInt64();
  81. break;
  82. }
  83. }
  84. }
  85. }
  86. }
  87. public partial class Actor_TestRequest : pb::IMessage {
  88. private static readonly pb::MessageParser<Actor_TestRequest> _parser = new pb::MessageParser<Actor_TestRequest>(() => (Actor_TestRequest)MessagePool.Instance.Fetch(typeof(Actor_TestRequest)));
  89. public static pb::MessageParser<Actor_TestRequest> Parser { get { return _parser; } }
  90. private int rpcId_;
  91. public int RpcId {
  92. get { return rpcId_; }
  93. set {
  94. rpcId_ = value;
  95. }
  96. }
  97. private long actorId_;
  98. public long ActorId {
  99. get { return actorId_; }
  100. set {
  101. actorId_ = value;
  102. }
  103. }
  104. private string request_ = "";
  105. public string Request {
  106. get { return request_; }
  107. set {
  108. request_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  109. }
  110. }
  111. public void WriteTo(pb::CodedOutputStream output) {
  112. if (Request.Length != 0) {
  113. output.WriteRawTag(10);
  114. output.WriteString(Request);
  115. }
  116. if (RpcId != 0) {
  117. output.WriteRawTag(208, 5);
  118. output.WriteInt32(RpcId);
  119. }
  120. if (ActorId != 0L) {
  121. output.WriteRawTag(232, 5);
  122. output.WriteInt64(ActorId);
  123. }
  124. }
  125. public int CalculateSize() {
  126. int size = 0;
  127. if (RpcId != 0) {
  128. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  129. }
  130. if (ActorId != 0L) {
  131. size += 2 + pb::CodedOutputStream.ComputeInt64Size(ActorId);
  132. }
  133. if (Request.Length != 0) {
  134. size += 1 + pb::CodedOutputStream.ComputeStringSize(Request);
  135. }
  136. return size;
  137. }
  138. public void MergeFrom(pb::CodedInputStream input) {
  139. request_ = "";
  140. rpcId_ = 0;
  141. actorId_ = 0;
  142. uint tag;
  143. while ((tag = input.ReadTag()) != 0) {
  144. switch(tag) {
  145. default:
  146. input.SkipLastField();
  147. break;
  148. case 10: {
  149. Request = input.ReadString();
  150. break;
  151. }
  152. case 720: {
  153. RpcId = input.ReadInt32();
  154. break;
  155. }
  156. case 744: {
  157. ActorId = input.ReadInt64();
  158. break;
  159. }
  160. }
  161. }
  162. }
  163. }
  164. public partial class Actor_TestResponse : pb::IMessage {
  165. private static readonly pb::MessageParser<Actor_TestResponse> _parser = new pb::MessageParser<Actor_TestResponse>(() => (Actor_TestResponse)MessagePool.Instance.Fetch(typeof(Actor_TestResponse)));
  166. public static pb::MessageParser<Actor_TestResponse> Parser { get { return _parser; } }
  167. private int rpcId_;
  168. public int RpcId {
  169. get { return rpcId_; }
  170. set {
  171. rpcId_ = value;
  172. }
  173. }
  174. private int error_;
  175. public int Error {
  176. get { return error_; }
  177. set {
  178. error_ = value;
  179. }
  180. }
  181. private string message_ = "";
  182. public string Message {
  183. get { return message_; }
  184. set {
  185. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  186. }
  187. }
  188. private string response_ = "";
  189. public string Response {
  190. get { return response_; }
  191. set {
  192. response_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  193. }
  194. }
  195. public void WriteTo(pb::CodedOutputStream output) {
  196. if (Response.Length != 0) {
  197. output.WriteRawTag(10);
  198. output.WriteString(Response);
  199. }
  200. if (RpcId != 0) {
  201. output.WriteRawTag(208, 5);
  202. output.WriteInt32(RpcId);
  203. }
  204. if (Error != 0) {
  205. output.WriteRawTag(216, 5);
  206. output.WriteInt32(Error);
  207. }
  208. if (Message.Length != 0) {
  209. output.WriteRawTag(226, 5);
  210. output.WriteString(Message);
  211. }
  212. }
  213. public int CalculateSize() {
  214. int size = 0;
  215. if (RpcId != 0) {
  216. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  217. }
  218. if (Error != 0) {
  219. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  220. }
  221. if (Message.Length != 0) {
  222. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  223. }
  224. if (Response.Length != 0) {
  225. size += 1 + pb::CodedOutputStream.ComputeStringSize(Response);
  226. }
  227. return size;
  228. }
  229. public void MergeFrom(pb::CodedInputStream input) {
  230. response_ = "";
  231. rpcId_ = 0;
  232. error_ = 0;
  233. message_ = "";
  234. uint tag;
  235. while ((tag = input.ReadTag()) != 0) {
  236. switch(tag) {
  237. default:
  238. input.SkipLastField();
  239. break;
  240. case 10: {
  241. Response = input.ReadString();
  242. break;
  243. }
  244. case 720: {
  245. RpcId = input.ReadInt32();
  246. break;
  247. }
  248. case 728: {
  249. Error = input.ReadInt32();
  250. break;
  251. }
  252. case 738: {
  253. Message = input.ReadString();
  254. break;
  255. }
  256. }
  257. }
  258. }
  259. }
  260. public partial class Actor_TransferRequest : pb::IMessage {
  261. private static readonly pb::MessageParser<Actor_TransferRequest> _parser = new pb::MessageParser<Actor_TransferRequest>(() => (Actor_TransferRequest)MessagePool.Instance.Fetch(typeof(Actor_TransferRequest)));
  262. public static pb::MessageParser<Actor_TransferRequest> Parser { get { return _parser; } }
  263. private int rpcId_;
  264. public int RpcId {
  265. get { return rpcId_; }
  266. set {
  267. rpcId_ = value;
  268. }
  269. }
  270. private long actorId_;
  271. public long ActorId {
  272. get { return actorId_; }
  273. set {
  274. actorId_ = value;
  275. }
  276. }
  277. private int mapIndex_;
  278. public int MapIndex {
  279. get { return mapIndex_; }
  280. set {
  281. mapIndex_ = value;
  282. }
  283. }
  284. public void WriteTo(pb::CodedOutputStream output) {
  285. if (MapIndex != 0) {
  286. output.WriteRawTag(8);
  287. output.WriteInt32(MapIndex);
  288. }
  289. if (RpcId != 0) {
  290. output.WriteRawTag(208, 5);
  291. output.WriteInt32(RpcId);
  292. }
  293. if (ActorId != 0L) {
  294. output.WriteRawTag(232, 5);
  295. output.WriteInt64(ActorId);
  296. }
  297. }
  298. public int CalculateSize() {
  299. int size = 0;
  300. if (RpcId != 0) {
  301. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  302. }
  303. if (ActorId != 0L) {
  304. size += 2 + pb::CodedOutputStream.ComputeInt64Size(ActorId);
  305. }
  306. if (MapIndex != 0) {
  307. size += 1 + pb::CodedOutputStream.ComputeInt32Size(MapIndex);
  308. }
  309. return size;
  310. }
  311. public void MergeFrom(pb::CodedInputStream input) {
  312. mapIndex_ = 0;
  313. rpcId_ = 0;
  314. actorId_ = 0;
  315. uint tag;
  316. while ((tag = input.ReadTag()) != 0) {
  317. switch(tag) {
  318. default:
  319. input.SkipLastField();
  320. break;
  321. case 8: {
  322. MapIndex = input.ReadInt32();
  323. break;
  324. }
  325. case 720: {
  326. RpcId = input.ReadInt32();
  327. break;
  328. }
  329. case 744: {
  330. ActorId = input.ReadInt64();
  331. break;
  332. }
  333. }
  334. }
  335. }
  336. }
  337. public partial class Actor_TransferResponse : pb::IMessage {
  338. private static readonly pb::MessageParser<Actor_TransferResponse> _parser = new pb::MessageParser<Actor_TransferResponse>(() => (Actor_TransferResponse)MessagePool.Instance.Fetch(typeof(Actor_TransferResponse)));
  339. public static pb::MessageParser<Actor_TransferResponse> Parser { get { return _parser; } }
  340. private int rpcId_;
  341. public int RpcId {
  342. get { return rpcId_; }
  343. set {
  344. rpcId_ = value;
  345. }
  346. }
  347. private int error_;
  348. public int Error {
  349. get { return error_; }
  350. set {
  351. error_ = value;
  352. }
  353. }
  354. private string message_ = "";
  355. public string Message {
  356. get { return message_; }
  357. set {
  358. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  359. }
  360. }
  361. public void WriteTo(pb::CodedOutputStream output) {
  362. if (RpcId != 0) {
  363. output.WriteRawTag(208, 5);
  364. output.WriteInt32(RpcId);
  365. }
  366. if (Error != 0) {
  367. output.WriteRawTag(216, 5);
  368. output.WriteInt32(Error);
  369. }
  370. if (Message.Length != 0) {
  371. output.WriteRawTag(226, 5);
  372. output.WriteString(Message);
  373. }
  374. }
  375. public int CalculateSize() {
  376. int size = 0;
  377. if (RpcId != 0) {
  378. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  379. }
  380. if (Error != 0) {
  381. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  382. }
  383. if (Message.Length != 0) {
  384. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  385. }
  386. return size;
  387. }
  388. public void MergeFrom(pb::CodedInputStream input) {
  389. rpcId_ = 0;
  390. error_ = 0;
  391. message_ = "";
  392. uint tag;
  393. while ((tag = input.ReadTag()) != 0) {
  394. switch(tag) {
  395. default:
  396. input.SkipLastField();
  397. break;
  398. case 720: {
  399. RpcId = input.ReadInt32();
  400. break;
  401. }
  402. case 728: {
  403. Error = input.ReadInt32();
  404. break;
  405. }
  406. case 738: {
  407. Message = input.ReadString();
  408. break;
  409. }
  410. }
  411. }
  412. }
  413. }
  414. public partial class C2G_EnterMap : pb::IMessage {
  415. private static readonly pb::MessageParser<C2G_EnterMap> _parser = new pb::MessageParser<C2G_EnterMap>(() => (C2G_EnterMap)MessagePool.Instance.Fetch(typeof(C2G_EnterMap)));
  416. public static pb::MessageParser<C2G_EnterMap> Parser { get { return _parser; } }
  417. private int rpcId_;
  418. public int RpcId {
  419. get { return rpcId_; }
  420. set {
  421. rpcId_ = value;
  422. }
  423. }
  424. public void WriteTo(pb::CodedOutputStream output) {
  425. if (RpcId != 0) {
  426. output.WriteRawTag(208, 5);
  427. output.WriteInt32(RpcId);
  428. }
  429. }
  430. public int CalculateSize() {
  431. int size = 0;
  432. if (RpcId != 0) {
  433. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  434. }
  435. return size;
  436. }
  437. public void MergeFrom(pb::CodedInputStream input) {
  438. rpcId_ = 0;
  439. uint tag;
  440. while ((tag = input.ReadTag()) != 0) {
  441. switch(tag) {
  442. default:
  443. input.SkipLastField();
  444. break;
  445. case 720: {
  446. RpcId = input.ReadInt32();
  447. break;
  448. }
  449. }
  450. }
  451. }
  452. }
  453. public partial class G2C_EnterMap : pb::IMessage {
  454. private static readonly pb::MessageParser<G2C_EnterMap> _parser = new pb::MessageParser<G2C_EnterMap>(() => (G2C_EnterMap)MessagePool.Instance.Fetch(typeof(G2C_EnterMap)));
  455. public static pb::MessageParser<G2C_EnterMap> Parser { get { return _parser; } }
  456. private int rpcId_;
  457. public int RpcId {
  458. get { return rpcId_; }
  459. set {
  460. rpcId_ = value;
  461. }
  462. }
  463. private int error_;
  464. public int Error {
  465. get { return error_; }
  466. set {
  467. error_ = value;
  468. }
  469. }
  470. private string message_ = "";
  471. public string Message {
  472. get { return message_; }
  473. set {
  474. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  475. }
  476. }
  477. private long unitId_;
  478. public long UnitId {
  479. get { return unitId_; }
  480. set {
  481. unitId_ = value;
  482. }
  483. }
  484. private int count_;
  485. public int Count {
  486. get { return count_; }
  487. set {
  488. count_ = value;
  489. }
  490. }
  491. public void WriteTo(pb::CodedOutputStream output) {
  492. if (UnitId != 0L) {
  493. output.WriteRawTag(8);
  494. output.WriteInt64(UnitId);
  495. }
  496. if (Count != 0) {
  497. output.WriteRawTag(16);
  498. output.WriteInt32(Count);
  499. }
  500. if (RpcId != 0) {
  501. output.WriteRawTag(208, 5);
  502. output.WriteInt32(RpcId);
  503. }
  504. if (Error != 0) {
  505. output.WriteRawTag(216, 5);
  506. output.WriteInt32(Error);
  507. }
  508. if (Message.Length != 0) {
  509. output.WriteRawTag(226, 5);
  510. output.WriteString(Message);
  511. }
  512. }
  513. public int CalculateSize() {
  514. int size = 0;
  515. if (RpcId != 0) {
  516. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  517. }
  518. if (Error != 0) {
  519. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  520. }
  521. if (Message.Length != 0) {
  522. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  523. }
  524. if (UnitId != 0L) {
  525. size += 1 + pb::CodedOutputStream.ComputeInt64Size(UnitId);
  526. }
  527. if (Count != 0) {
  528. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count);
  529. }
  530. return size;
  531. }
  532. public void MergeFrom(pb::CodedInputStream input) {
  533. unitId_ = 0;
  534. count_ = 0;
  535. rpcId_ = 0;
  536. error_ = 0;
  537. message_ = "";
  538. uint tag;
  539. while ((tag = input.ReadTag()) != 0) {
  540. switch(tag) {
  541. default:
  542. input.SkipLastField();
  543. break;
  544. case 8: {
  545. UnitId = input.ReadInt64();
  546. break;
  547. }
  548. case 16: {
  549. Count = input.ReadInt32();
  550. break;
  551. }
  552. case 720: {
  553. RpcId = input.ReadInt32();
  554. break;
  555. }
  556. case 728: {
  557. Error = input.ReadInt32();
  558. break;
  559. }
  560. case 738: {
  561. Message = input.ReadString();
  562. break;
  563. }
  564. }
  565. }
  566. }
  567. }
  568. public partial class UnitInfo : pb::IMessage {
  569. private static readonly pb::MessageParser<UnitInfo> _parser = new pb::MessageParser<UnitInfo>(() => (UnitInfo)MessagePool.Instance.Fetch(typeof(UnitInfo)));
  570. public static pb::MessageParser<UnitInfo> Parser { get { return _parser; } }
  571. private long unitId_;
  572. public long UnitId {
  573. get { return unitId_; }
  574. set {
  575. unitId_ = value;
  576. }
  577. }
  578. private int x_;
  579. public int X {
  580. get { return x_; }
  581. set {
  582. x_ = value;
  583. }
  584. }
  585. private int z_;
  586. public int Z {
  587. get { return z_; }
  588. set {
  589. z_ = value;
  590. }
  591. }
  592. public void WriteTo(pb::CodedOutputStream output) {
  593. if (UnitId != 0L) {
  594. output.WriteRawTag(8);
  595. output.WriteInt64(UnitId);
  596. }
  597. if (X != 0) {
  598. output.WriteRawTag(16);
  599. output.WriteInt32(X);
  600. }
  601. if (Z != 0) {
  602. output.WriteRawTag(24);
  603. output.WriteInt32(Z);
  604. }
  605. }
  606. public int CalculateSize() {
  607. int size = 0;
  608. if (UnitId != 0L) {
  609. size += 1 + pb::CodedOutputStream.ComputeInt64Size(UnitId);
  610. }
  611. if (X != 0) {
  612. size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
  613. }
  614. if (Z != 0) {
  615. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z);
  616. }
  617. return size;
  618. }
  619. public void MergeFrom(pb::CodedInputStream input) {
  620. unitId_ = 0;
  621. x_ = 0;
  622. z_ = 0;
  623. uint tag;
  624. while ((tag = input.ReadTag()) != 0) {
  625. switch(tag) {
  626. default:
  627. input.SkipLastField();
  628. break;
  629. case 8: {
  630. UnitId = input.ReadInt64();
  631. break;
  632. }
  633. case 16: {
  634. X = input.ReadInt32();
  635. break;
  636. }
  637. case 24: {
  638. Z = input.ReadInt32();
  639. break;
  640. }
  641. }
  642. }
  643. }
  644. }
  645. public partial class Actor_CreateUnits : pb::IMessage {
  646. private static readonly pb::MessageParser<Actor_CreateUnits> _parser = new pb::MessageParser<Actor_CreateUnits>(() => (Actor_CreateUnits)MessagePool.Instance.Fetch(typeof(Actor_CreateUnits)));
  647. public static pb::MessageParser<Actor_CreateUnits> Parser { get { return _parser; } }
  648. private int rpcId_;
  649. public int RpcId {
  650. get { return rpcId_; }
  651. set {
  652. rpcId_ = value;
  653. }
  654. }
  655. private long actorId_;
  656. public long ActorId {
  657. get { return actorId_; }
  658. set {
  659. actorId_ = value;
  660. }
  661. }
  662. private static readonly pb::FieldCodec<global::ETModel.UnitInfo> _repeated_units_codec
  663. = pb::FieldCodec.ForMessage(10, global::ETModel.UnitInfo.Parser);
  664. private pbc::RepeatedField<global::ETModel.UnitInfo> units_ = new pbc::RepeatedField<global::ETModel.UnitInfo>();
  665. public pbc::RepeatedField<global::ETModel.UnitInfo> Units {
  666. get { return units_; }
  667. set { units_ = value; }
  668. }
  669. public void WriteTo(pb::CodedOutputStream output) {
  670. units_.WriteTo(output, _repeated_units_codec);
  671. if (RpcId != 0) {
  672. output.WriteRawTag(208, 5);
  673. output.WriteInt32(RpcId);
  674. }
  675. if (ActorId != 0L) {
  676. output.WriteRawTag(232, 5);
  677. output.WriteInt64(ActorId);
  678. }
  679. }
  680. public int CalculateSize() {
  681. int size = 0;
  682. if (RpcId != 0) {
  683. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  684. }
  685. if (ActorId != 0L) {
  686. size += 2 + pb::CodedOutputStream.ComputeInt64Size(ActorId);
  687. }
  688. size += units_.CalculateSize(_repeated_units_codec);
  689. return size;
  690. }
  691. public void MergeFrom(pb::CodedInputStream input) {
  692. for (int i = 0; i < units_.Count; i++) { MessagePool.Instance.Recycle(units_[i]); }
  693. units_.Clear();
  694. rpcId_ = 0;
  695. actorId_ = 0;
  696. uint tag;
  697. while ((tag = input.ReadTag()) != 0) {
  698. switch(tag) {
  699. default:
  700. input.SkipLastField();
  701. break;
  702. case 10: {
  703. units_.AddEntriesFrom(input, _repeated_units_codec);
  704. break;
  705. }
  706. case 720: {
  707. RpcId = input.ReadInt32();
  708. break;
  709. }
  710. case 744: {
  711. ActorId = input.ReadInt64();
  712. break;
  713. }
  714. }
  715. }
  716. }
  717. }
  718. public partial class Frame_ClickMap : pb::IMessage {
  719. private static readonly pb::MessageParser<Frame_ClickMap> _parser = new pb::MessageParser<Frame_ClickMap>(() => (Frame_ClickMap)MessagePool.Instance.Fetch(typeof(Frame_ClickMap)));
  720. public static pb::MessageParser<Frame_ClickMap> Parser { get { return _parser; } }
  721. private int rpcId_;
  722. public int RpcId {
  723. get { return rpcId_; }
  724. set {
  725. rpcId_ = value;
  726. }
  727. }
  728. private long id_;
  729. public long Id {
  730. get { return id_; }
  731. set {
  732. id_ = value;
  733. }
  734. }
  735. private int x_;
  736. public int X {
  737. get { return x_; }
  738. set {
  739. x_ = value;
  740. }
  741. }
  742. private int z_;
  743. public int Z {
  744. get { return z_; }
  745. set {
  746. z_ = value;
  747. }
  748. }
  749. public void WriteTo(pb::CodedOutputStream output) {
  750. if (X != 0) {
  751. output.WriteRawTag(8);
  752. output.WriteInt32(X);
  753. }
  754. if (Z != 0) {
  755. output.WriteRawTag(16);
  756. output.WriteInt32(Z);
  757. }
  758. if (RpcId != 0) {
  759. output.WriteRawTag(208, 5);
  760. output.WriteInt32(RpcId);
  761. }
  762. if (Id != 0L) {
  763. output.WriteRawTag(240, 5);
  764. output.WriteInt64(Id);
  765. }
  766. }
  767. public int CalculateSize() {
  768. int size = 0;
  769. if (RpcId != 0) {
  770. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  771. }
  772. if (Id != 0L) {
  773. size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id);
  774. }
  775. if (X != 0) {
  776. size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
  777. }
  778. if (Z != 0) {
  779. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z);
  780. }
  781. return size;
  782. }
  783. public void MergeFrom(pb::CodedInputStream input) {
  784. x_ = 0;
  785. z_ = 0;
  786. rpcId_ = 0;
  787. id_ = 0;
  788. uint tag;
  789. while ((tag = input.ReadTag()) != 0) {
  790. switch(tag) {
  791. default:
  792. input.SkipLastField();
  793. break;
  794. case 8: {
  795. X = input.ReadInt32();
  796. break;
  797. }
  798. case 16: {
  799. Z = input.ReadInt32();
  800. break;
  801. }
  802. case 720: {
  803. RpcId = input.ReadInt32();
  804. break;
  805. }
  806. case 752: {
  807. Id = input.ReadInt64();
  808. break;
  809. }
  810. }
  811. }
  812. }
  813. }
  814. public partial class C2R_Ping : pb::IMessage {
  815. private static readonly pb::MessageParser<C2R_Ping> _parser = new pb::MessageParser<C2R_Ping>(() => (C2R_Ping)MessagePool.Instance.Fetch(typeof(C2R_Ping)));
  816. public static pb::MessageParser<C2R_Ping> Parser { get { return _parser; } }
  817. private int rpcId_;
  818. public int RpcId {
  819. get { return rpcId_; }
  820. set {
  821. rpcId_ = value;
  822. }
  823. }
  824. public void WriteTo(pb::CodedOutputStream output) {
  825. if (RpcId != 0) {
  826. output.WriteRawTag(208, 5);
  827. output.WriteInt32(RpcId);
  828. }
  829. }
  830. public int CalculateSize() {
  831. int size = 0;
  832. if (RpcId != 0) {
  833. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  834. }
  835. return size;
  836. }
  837. public void MergeFrom(pb::CodedInputStream input) {
  838. rpcId_ = 0;
  839. uint tag;
  840. while ((tag = input.ReadTag()) != 0) {
  841. switch(tag) {
  842. default:
  843. input.SkipLastField();
  844. break;
  845. case 720: {
  846. RpcId = input.ReadInt32();
  847. break;
  848. }
  849. }
  850. }
  851. }
  852. }
  853. public partial class R2C_Ping : pb::IMessage {
  854. private static readonly pb::MessageParser<R2C_Ping> _parser = new pb::MessageParser<R2C_Ping>(() => (R2C_Ping)MessagePool.Instance.Fetch(typeof(R2C_Ping)));
  855. public static pb::MessageParser<R2C_Ping> Parser { get { return _parser; } }
  856. private int rpcId_;
  857. public int RpcId {
  858. get { return rpcId_; }
  859. set {
  860. rpcId_ = value;
  861. }
  862. }
  863. private int error_;
  864. public int Error {
  865. get { return error_; }
  866. set {
  867. error_ = value;
  868. }
  869. }
  870. private string message_ = "";
  871. public string Message {
  872. get { return message_; }
  873. set {
  874. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  875. }
  876. }
  877. public void WriteTo(pb::CodedOutputStream output) {
  878. if (RpcId != 0) {
  879. output.WriteRawTag(208, 5);
  880. output.WriteInt32(RpcId);
  881. }
  882. if (Error != 0) {
  883. output.WriteRawTag(216, 5);
  884. output.WriteInt32(Error);
  885. }
  886. if (Message.Length != 0) {
  887. output.WriteRawTag(226, 5);
  888. output.WriteString(Message);
  889. }
  890. }
  891. public int CalculateSize() {
  892. int size = 0;
  893. if (RpcId != 0) {
  894. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  895. }
  896. if (Error != 0) {
  897. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  898. }
  899. if (Message.Length != 0) {
  900. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  901. }
  902. return size;
  903. }
  904. public void MergeFrom(pb::CodedInputStream input) {
  905. rpcId_ = 0;
  906. error_ = 0;
  907. message_ = "";
  908. uint tag;
  909. while ((tag = input.ReadTag()) != 0) {
  910. switch(tag) {
  911. default:
  912. input.SkipLastField();
  913. break;
  914. case 720: {
  915. RpcId = input.ReadInt32();
  916. break;
  917. }
  918. case 728: {
  919. Error = input.ReadInt32();
  920. break;
  921. }
  922. case 738: {
  923. Message = input.ReadString();
  924. break;
  925. }
  926. }
  927. }
  928. }
  929. }
  930. public partial class G2C_Test : pb::IMessage {
  931. private static readonly pb::MessageParser<G2C_Test> _parser = new pb::MessageParser<G2C_Test>(() => (G2C_Test)MessagePool.Instance.Fetch(typeof(G2C_Test)));
  932. public static pb::MessageParser<G2C_Test> Parser { get { return _parser; } }
  933. public void WriteTo(pb::CodedOutputStream output) {
  934. }
  935. public int CalculateSize() {
  936. int size = 0;
  937. return size;
  938. }
  939. public void MergeFrom(pb::CodedInputStream input) {
  940. uint tag;
  941. while ((tag = input.ReadTag()) != 0) {
  942. switch(tag) {
  943. default:
  944. input.SkipLastField();
  945. break;
  946. }
  947. }
  948. }
  949. }
  950. public partial class C2M_Reload : pb::IMessage {
  951. private static readonly pb::MessageParser<C2M_Reload> _parser = new pb::MessageParser<C2M_Reload>(() => (C2M_Reload)MessagePool.Instance.Fetch(typeof(C2M_Reload)));
  952. public static pb::MessageParser<C2M_Reload> Parser { get { return _parser; } }
  953. private int rpcId_;
  954. public int RpcId {
  955. get { return rpcId_; }
  956. set {
  957. rpcId_ = value;
  958. }
  959. }
  960. private string account_ = "";
  961. public string Account {
  962. get { return account_; }
  963. set {
  964. account_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  965. }
  966. }
  967. private string password_ = "";
  968. public string Password {
  969. get { return password_; }
  970. set {
  971. password_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  972. }
  973. }
  974. public void WriteTo(pb::CodedOutputStream output) {
  975. if (Account.Length != 0) {
  976. output.WriteRawTag(10);
  977. output.WriteString(Account);
  978. }
  979. if (Password.Length != 0) {
  980. output.WriteRawTag(18);
  981. output.WriteString(Password);
  982. }
  983. if (RpcId != 0) {
  984. output.WriteRawTag(208, 5);
  985. output.WriteInt32(RpcId);
  986. }
  987. }
  988. public int CalculateSize() {
  989. int size = 0;
  990. if (RpcId != 0) {
  991. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  992. }
  993. if (Account.Length != 0) {
  994. size += 1 + pb::CodedOutputStream.ComputeStringSize(Account);
  995. }
  996. if (Password.Length != 0) {
  997. size += 1 + pb::CodedOutputStream.ComputeStringSize(Password);
  998. }
  999. return size;
  1000. }
  1001. public void MergeFrom(pb::CodedInputStream input) {
  1002. account_ = "";
  1003. password_ = "";
  1004. rpcId_ = 0;
  1005. uint tag;
  1006. while ((tag = input.ReadTag()) != 0) {
  1007. switch(tag) {
  1008. default:
  1009. input.SkipLastField();
  1010. break;
  1011. case 10: {
  1012. Account = input.ReadString();
  1013. break;
  1014. }
  1015. case 18: {
  1016. Password = input.ReadString();
  1017. break;
  1018. }
  1019. case 720: {
  1020. RpcId = input.ReadInt32();
  1021. break;
  1022. }
  1023. }
  1024. }
  1025. }
  1026. }
  1027. public partial class M2C_Reload : pb::IMessage {
  1028. private static readonly pb::MessageParser<M2C_Reload> _parser = new pb::MessageParser<M2C_Reload>(() => (M2C_Reload)MessagePool.Instance.Fetch(typeof(M2C_Reload)));
  1029. public static pb::MessageParser<M2C_Reload> Parser { get { return _parser; } }
  1030. private int rpcId_;
  1031. public int RpcId {
  1032. get { return rpcId_; }
  1033. set {
  1034. rpcId_ = value;
  1035. }
  1036. }
  1037. private int error_;
  1038. public int Error {
  1039. get { return error_; }
  1040. set {
  1041. error_ = value;
  1042. }
  1043. }
  1044. private string message_ = "";
  1045. public string Message {
  1046. get { return message_; }
  1047. set {
  1048. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1049. }
  1050. }
  1051. public void WriteTo(pb::CodedOutputStream output) {
  1052. if (RpcId != 0) {
  1053. output.WriteRawTag(208, 5);
  1054. output.WriteInt32(RpcId);
  1055. }
  1056. if (Error != 0) {
  1057. output.WriteRawTag(216, 5);
  1058. output.WriteInt32(Error);
  1059. }
  1060. if (Message.Length != 0) {
  1061. output.WriteRawTag(226, 5);
  1062. output.WriteString(Message);
  1063. }
  1064. }
  1065. public int CalculateSize() {
  1066. int size = 0;
  1067. if (RpcId != 0) {
  1068. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1069. }
  1070. if (Error != 0) {
  1071. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  1072. }
  1073. if (Message.Length != 0) {
  1074. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  1075. }
  1076. return size;
  1077. }
  1078. public void MergeFrom(pb::CodedInputStream input) {
  1079. rpcId_ = 0;
  1080. error_ = 0;
  1081. message_ = "";
  1082. uint tag;
  1083. while ((tag = input.ReadTag()) != 0) {
  1084. switch(tag) {
  1085. default:
  1086. input.SkipLastField();
  1087. break;
  1088. case 720: {
  1089. RpcId = input.ReadInt32();
  1090. break;
  1091. }
  1092. case 728: {
  1093. Error = input.ReadInt32();
  1094. break;
  1095. }
  1096. case 738: {
  1097. Message = input.ReadString();
  1098. break;
  1099. }
  1100. }
  1101. }
  1102. }
  1103. }
  1104. #endregion
  1105. }
  1106. #endregion Designer generated code