OuterMessage.cs 33 KB

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