OuterMessage.cs 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462
  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 C2M_TestRequest : pb::IMessage {
  88. private static readonly pb::MessageParser<C2M_TestRequest> _parser = new pb::MessageParser<C2M_TestRequest>(() => (C2M_TestRequest)MessagePool.Instance.Fetch(typeof(C2M_TestRequest)));
  89. public static pb::MessageParser<C2M_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 M2C_TestResponse : pb::IMessage {
  165. private static readonly pb::MessageParser<M2C_TestResponse> _parser = new pb::MessageParser<M2C_TestResponse>(() => (M2C_TestResponse)MessagePool.Instance.Fetch(typeof(M2C_TestResponse)));
  166. public static pb::MessageParser<M2C_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. /// <summary>
  479. /// 自己的unit id
  480. /// </summary>
  481. public long UnitId {
  482. get { return unitId_; }
  483. set {
  484. unitId_ = value;
  485. }
  486. }
  487. private static readonly pb::FieldCodec<global::ETModel.UnitInfo> _repeated_units_codec
  488. = pb::FieldCodec.ForMessage(18, global::ETModel.UnitInfo.Parser);
  489. private pbc::RepeatedField<global::ETModel.UnitInfo> units_ = new pbc::RepeatedField<global::ETModel.UnitInfo>();
  490. /// <summary>
  491. /// 所有的unit
  492. /// </summary>
  493. public pbc::RepeatedField<global::ETModel.UnitInfo> Units {
  494. get { return units_; }
  495. set { units_ = value; }
  496. }
  497. public void WriteTo(pb::CodedOutputStream output) {
  498. if (UnitId != 0L) {
  499. output.WriteRawTag(8);
  500. output.WriteInt64(UnitId);
  501. }
  502. units_.WriteTo(output, _repeated_units_codec);
  503. if (RpcId != 0) {
  504. output.WriteRawTag(208, 5);
  505. output.WriteInt32(RpcId);
  506. }
  507. if (Error != 0) {
  508. output.WriteRawTag(216, 5);
  509. output.WriteInt32(Error);
  510. }
  511. if (Message.Length != 0) {
  512. output.WriteRawTag(226, 5);
  513. output.WriteString(Message);
  514. }
  515. }
  516. public int CalculateSize() {
  517. int size = 0;
  518. if (RpcId != 0) {
  519. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  520. }
  521. if (Error != 0) {
  522. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  523. }
  524. if (Message.Length != 0) {
  525. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  526. }
  527. if (UnitId != 0L) {
  528. size += 1 + pb::CodedOutputStream.ComputeInt64Size(UnitId);
  529. }
  530. size += units_.CalculateSize(_repeated_units_codec);
  531. return size;
  532. }
  533. public void MergeFrom(pb::CodedInputStream input) {
  534. unitId_ = 0;
  535. for (int i = 0; i < units_.Count; i++) { MessagePool.Instance.Recycle(units_[i]); }
  536. units_.Clear();
  537. rpcId_ = 0;
  538. error_ = 0;
  539. message_ = "";
  540. uint tag;
  541. while ((tag = input.ReadTag()) != 0) {
  542. switch(tag) {
  543. default:
  544. input.SkipLastField();
  545. break;
  546. case 8: {
  547. UnitId = input.ReadInt64();
  548. break;
  549. }
  550. case 18: {
  551. units_.AddEntriesFrom(input, _repeated_units_codec);
  552. break;
  553. }
  554. case 720: {
  555. RpcId = input.ReadInt32();
  556. break;
  557. }
  558. case 728: {
  559. Error = input.ReadInt32();
  560. break;
  561. }
  562. case 738: {
  563. Message = input.ReadString();
  564. break;
  565. }
  566. }
  567. }
  568. }
  569. }
  570. public partial class UnitInfo : pb::IMessage {
  571. private static readonly pb::MessageParser<UnitInfo> _parser = new pb::MessageParser<UnitInfo>(() => (UnitInfo)MessagePool.Instance.Fetch(typeof(UnitInfo)));
  572. public static pb::MessageParser<UnitInfo> Parser { get { return _parser; } }
  573. private long unitId_;
  574. public long UnitId {
  575. get { return unitId_; }
  576. set {
  577. unitId_ = value;
  578. }
  579. }
  580. private float x_;
  581. public float X {
  582. get { return x_; }
  583. set {
  584. x_ = value;
  585. }
  586. }
  587. private float y_;
  588. public float Y {
  589. get { return y_; }
  590. set {
  591. y_ = value;
  592. }
  593. }
  594. private float z_;
  595. public float Z {
  596. get { return z_; }
  597. set {
  598. z_ = value;
  599. }
  600. }
  601. public void WriteTo(pb::CodedOutputStream output) {
  602. if (UnitId != 0L) {
  603. output.WriteRawTag(8);
  604. output.WriteInt64(UnitId);
  605. }
  606. if (X != 0F) {
  607. output.WriteRawTag(21);
  608. output.WriteFloat(X);
  609. }
  610. if (Y != 0F) {
  611. output.WriteRawTag(29);
  612. output.WriteFloat(Y);
  613. }
  614. if (Z != 0F) {
  615. output.WriteRawTag(37);
  616. output.WriteFloat(Z);
  617. }
  618. }
  619. public int CalculateSize() {
  620. int size = 0;
  621. if (UnitId != 0L) {
  622. size += 1 + pb::CodedOutputStream.ComputeInt64Size(UnitId);
  623. }
  624. if (X != 0F) {
  625. size += 1 + 4;
  626. }
  627. if (Y != 0F) {
  628. size += 1 + 4;
  629. }
  630. if (Z != 0F) {
  631. size += 1 + 4;
  632. }
  633. return size;
  634. }
  635. public void MergeFrom(pb::CodedInputStream input) {
  636. unitId_ = 0;
  637. x_ = 0f;
  638. y_ = 0f;
  639. z_ = 0f;
  640. uint tag;
  641. while ((tag = input.ReadTag()) != 0) {
  642. switch(tag) {
  643. default:
  644. input.SkipLastField();
  645. break;
  646. case 8: {
  647. UnitId = input.ReadInt64();
  648. break;
  649. }
  650. case 21: {
  651. X = input.ReadFloat();
  652. break;
  653. }
  654. case 29: {
  655. Y = input.ReadFloat();
  656. break;
  657. }
  658. case 37: {
  659. Z = input.ReadFloat();
  660. break;
  661. }
  662. }
  663. }
  664. }
  665. }
  666. public partial class M2C_CreateUnits : pb::IMessage {
  667. private static readonly pb::MessageParser<M2C_CreateUnits> _parser = new pb::MessageParser<M2C_CreateUnits>(() => (M2C_CreateUnits)MessagePool.Instance.Fetch(typeof(M2C_CreateUnits)));
  668. public static pb::MessageParser<M2C_CreateUnits> Parser { get { return _parser; } }
  669. private int rpcId_;
  670. public int RpcId {
  671. get { return rpcId_; }
  672. set {
  673. rpcId_ = value;
  674. }
  675. }
  676. private long actorId_;
  677. public long ActorId {
  678. get { return actorId_; }
  679. set {
  680. actorId_ = value;
  681. }
  682. }
  683. private static readonly pb::FieldCodec<global::ETModel.UnitInfo> _repeated_units_codec
  684. = pb::FieldCodec.ForMessage(10, global::ETModel.UnitInfo.Parser);
  685. private pbc::RepeatedField<global::ETModel.UnitInfo> units_ = new pbc::RepeatedField<global::ETModel.UnitInfo>();
  686. public pbc::RepeatedField<global::ETModel.UnitInfo> Units {
  687. get { return units_; }
  688. set { units_ = value; }
  689. }
  690. public void WriteTo(pb::CodedOutputStream output) {
  691. units_.WriteTo(output, _repeated_units_codec);
  692. if (RpcId != 0) {
  693. output.WriteRawTag(208, 5);
  694. output.WriteInt32(RpcId);
  695. }
  696. if (ActorId != 0L) {
  697. output.WriteRawTag(232, 5);
  698. output.WriteInt64(ActorId);
  699. }
  700. }
  701. public int CalculateSize() {
  702. int size = 0;
  703. if (RpcId != 0) {
  704. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  705. }
  706. if (ActorId != 0L) {
  707. size += 2 + pb::CodedOutputStream.ComputeInt64Size(ActorId);
  708. }
  709. size += units_.CalculateSize(_repeated_units_codec);
  710. return size;
  711. }
  712. public void MergeFrom(pb::CodedInputStream input) {
  713. for (int i = 0; i < units_.Count; i++) { MessagePool.Instance.Recycle(units_[i]); }
  714. units_.Clear();
  715. rpcId_ = 0;
  716. actorId_ = 0;
  717. uint tag;
  718. while ((tag = input.ReadTag()) != 0) {
  719. switch(tag) {
  720. default:
  721. input.SkipLastField();
  722. break;
  723. case 10: {
  724. units_.AddEntriesFrom(input, _repeated_units_codec);
  725. break;
  726. }
  727. case 720: {
  728. RpcId = input.ReadInt32();
  729. break;
  730. }
  731. case 744: {
  732. ActorId = input.ReadInt64();
  733. break;
  734. }
  735. }
  736. }
  737. }
  738. }
  739. public partial class Frame_ClickMap : pb::IMessage {
  740. private static readonly pb::MessageParser<Frame_ClickMap> _parser = new pb::MessageParser<Frame_ClickMap>(() => (Frame_ClickMap)MessagePool.Instance.Fetch(typeof(Frame_ClickMap)));
  741. public static pb::MessageParser<Frame_ClickMap> Parser { get { return _parser; } }
  742. private int rpcId_;
  743. public int RpcId {
  744. get { return rpcId_; }
  745. set {
  746. rpcId_ = value;
  747. }
  748. }
  749. private long actorId_;
  750. public long ActorId {
  751. get { return actorId_; }
  752. set {
  753. actorId_ = value;
  754. }
  755. }
  756. private long id_;
  757. public long Id {
  758. get { return id_; }
  759. set {
  760. id_ = value;
  761. }
  762. }
  763. private float x_;
  764. public float X {
  765. get { return x_; }
  766. set {
  767. x_ = value;
  768. }
  769. }
  770. private float y_;
  771. public float Y {
  772. get { return y_; }
  773. set {
  774. y_ = value;
  775. }
  776. }
  777. private float z_;
  778. public float Z {
  779. get { return z_; }
  780. set {
  781. z_ = value;
  782. }
  783. }
  784. public void WriteTo(pb::CodedOutputStream output) {
  785. if (X != 0F) {
  786. output.WriteRawTag(13);
  787. output.WriteFloat(X);
  788. }
  789. if (Y != 0F) {
  790. output.WriteRawTag(21);
  791. output.WriteFloat(Y);
  792. }
  793. if (Z != 0F) {
  794. output.WriteRawTag(29);
  795. output.WriteFloat(Z);
  796. }
  797. if (RpcId != 0) {
  798. output.WriteRawTag(208, 5);
  799. output.WriteInt32(RpcId);
  800. }
  801. if (ActorId != 0L) {
  802. output.WriteRawTag(232, 5);
  803. output.WriteInt64(ActorId);
  804. }
  805. if (Id != 0L) {
  806. output.WriteRawTag(240, 5);
  807. output.WriteInt64(Id);
  808. }
  809. }
  810. public int CalculateSize() {
  811. int size = 0;
  812. if (RpcId != 0) {
  813. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  814. }
  815. if (ActorId != 0L) {
  816. size += 2 + pb::CodedOutputStream.ComputeInt64Size(ActorId);
  817. }
  818. if (Id != 0L) {
  819. size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id);
  820. }
  821. if (X != 0F) {
  822. size += 1 + 4;
  823. }
  824. if (Y != 0F) {
  825. size += 1 + 4;
  826. }
  827. if (Z != 0F) {
  828. size += 1 + 4;
  829. }
  830. return size;
  831. }
  832. public void MergeFrom(pb::CodedInputStream input) {
  833. x_ = 0f;
  834. y_ = 0f;
  835. z_ = 0f;
  836. rpcId_ = 0;
  837. actorId_ = 0;
  838. id_ = 0;
  839. uint tag;
  840. while ((tag = input.ReadTag()) != 0) {
  841. switch(tag) {
  842. default:
  843. input.SkipLastField();
  844. break;
  845. case 13: {
  846. X = input.ReadFloat();
  847. break;
  848. }
  849. case 21: {
  850. Y = input.ReadFloat();
  851. break;
  852. }
  853. case 29: {
  854. Z = input.ReadFloat();
  855. break;
  856. }
  857. case 720: {
  858. RpcId = input.ReadInt32();
  859. break;
  860. }
  861. case 744: {
  862. ActorId = input.ReadInt64();
  863. break;
  864. }
  865. case 752: {
  866. Id = input.ReadInt64();
  867. break;
  868. }
  869. }
  870. }
  871. }
  872. }
  873. public partial class M2C_PathfindingResult : pb::IMessage {
  874. private static readonly pb::MessageParser<M2C_PathfindingResult> _parser = new pb::MessageParser<M2C_PathfindingResult>(() => (M2C_PathfindingResult)MessagePool.Instance.Fetch(typeof(M2C_PathfindingResult)));
  875. public static pb::MessageParser<M2C_PathfindingResult> Parser { get { return _parser; } }
  876. private long actorId_;
  877. public long ActorId {
  878. get { return actorId_; }
  879. set {
  880. actorId_ = value;
  881. }
  882. }
  883. private long id_;
  884. public long Id {
  885. get { return id_; }
  886. set {
  887. id_ = value;
  888. }
  889. }
  890. private float x_;
  891. public float X {
  892. get { return x_; }
  893. set {
  894. x_ = value;
  895. }
  896. }
  897. private float y_;
  898. public float Y {
  899. get { return y_; }
  900. set {
  901. y_ = value;
  902. }
  903. }
  904. private float z_;
  905. public float Z {
  906. get { return z_; }
  907. set {
  908. z_ = value;
  909. }
  910. }
  911. private static readonly pb::FieldCodec<float> _repeated_xs_codec
  912. = pb::FieldCodec.ForFloat(42);
  913. private pbc::RepeatedField<float> xs_ = new pbc::RepeatedField<float>();
  914. public pbc::RepeatedField<float> Xs {
  915. get { return xs_; }
  916. set { xs_ = value; }
  917. }
  918. private static readonly pb::FieldCodec<float> _repeated_ys_codec
  919. = pb::FieldCodec.ForFloat(50);
  920. private pbc::RepeatedField<float> ys_ = new pbc::RepeatedField<float>();
  921. public pbc::RepeatedField<float> Ys {
  922. get { return ys_; }
  923. set { ys_ = value; }
  924. }
  925. private static readonly pb::FieldCodec<float> _repeated_zs_codec
  926. = pb::FieldCodec.ForFloat(58);
  927. private pbc::RepeatedField<float> zs_ = new pbc::RepeatedField<float>();
  928. public pbc::RepeatedField<float> Zs {
  929. get { return zs_; }
  930. set { zs_ = value; }
  931. }
  932. public void WriteTo(pb::CodedOutputStream output) {
  933. if (Id != 0L) {
  934. output.WriteRawTag(8);
  935. output.WriteInt64(Id);
  936. }
  937. if (X != 0F) {
  938. output.WriteRawTag(21);
  939. output.WriteFloat(X);
  940. }
  941. if (Y != 0F) {
  942. output.WriteRawTag(29);
  943. output.WriteFloat(Y);
  944. }
  945. if (Z != 0F) {
  946. output.WriteRawTag(37);
  947. output.WriteFloat(Z);
  948. }
  949. xs_.WriteTo(output, _repeated_xs_codec);
  950. ys_.WriteTo(output, _repeated_ys_codec);
  951. zs_.WriteTo(output, _repeated_zs_codec);
  952. if (ActorId != 0L) {
  953. output.WriteRawTag(232, 5);
  954. output.WriteInt64(ActorId);
  955. }
  956. }
  957. public int CalculateSize() {
  958. int size = 0;
  959. if (ActorId != 0L) {
  960. size += 2 + pb::CodedOutputStream.ComputeInt64Size(ActorId);
  961. }
  962. if (Id != 0L) {
  963. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id);
  964. }
  965. if (X != 0F) {
  966. size += 1 + 4;
  967. }
  968. if (Y != 0F) {
  969. size += 1 + 4;
  970. }
  971. if (Z != 0F) {
  972. size += 1 + 4;
  973. }
  974. size += xs_.CalculateSize(_repeated_xs_codec);
  975. size += ys_.CalculateSize(_repeated_ys_codec);
  976. size += zs_.CalculateSize(_repeated_zs_codec);
  977. return size;
  978. }
  979. public void MergeFrom(pb::CodedInputStream input) {
  980. id_ = 0;
  981. x_ = 0f;
  982. y_ = 0f;
  983. z_ = 0f;
  984. xs_.Clear();
  985. ys_.Clear();
  986. zs_.Clear();
  987. actorId_ = 0;
  988. uint tag;
  989. while ((tag = input.ReadTag()) != 0) {
  990. switch(tag) {
  991. default:
  992. input.SkipLastField();
  993. break;
  994. case 8: {
  995. Id = input.ReadInt64();
  996. break;
  997. }
  998. case 21: {
  999. X = input.ReadFloat();
  1000. break;
  1001. }
  1002. case 29: {
  1003. Y = input.ReadFloat();
  1004. break;
  1005. }
  1006. case 37: {
  1007. Z = input.ReadFloat();
  1008. break;
  1009. }
  1010. case 42:
  1011. case 45: {
  1012. xs_.AddEntriesFrom(input, _repeated_xs_codec);
  1013. break;
  1014. }
  1015. case 50:
  1016. case 53: {
  1017. ys_.AddEntriesFrom(input, _repeated_ys_codec);
  1018. break;
  1019. }
  1020. case 58:
  1021. case 61: {
  1022. zs_.AddEntriesFrom(input, _repeated_zs_codec);
  1023. break;
  1024. }
  1025. case 744: {
  1026. ActorId = input.ReadInt64();
  1027. break;
  1028. }
  1029. }
  1030. }
  1031. }
  1032. }
  1033. public partial class C2R_Ping : pb::IMessage {
  1034. private static readonly pb::MessageParser<C2R_Ping> _parser = new pb::MessageParser<C2R_Ping>(() => (C2R_Ping)MessagePool.Instance.Fetch(typeof(C2R_Ping)));
  1035. public static pb::MessageParser<C2R_Ping> Parser { get { return _parser; } }
  1036. private int rpcId_;
  1037. public int RpcId {
  1038. get { return rpcId_; }
  1039. set {
  1040. rpcId_ = value;
  1041. }
  1042. }
  1043. public void WriteTo(pb::CodedOutputStream output) {
  1044. if (RpcId != 0) {
  1045. output.WriteRawTag(208, 5);
  1046. output.WriteInt32(RpcId);
  1047. }
  1048. }
  1049. public int CalculateSize() {
  1050. int size = 0;
  1051. if (RpcId != 0) {
  1052. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1053. }
  1054. return size;
  1055. }
  1056. public void MergeFrom(pb::CodedInputStream input) {
  1057. rpcId_ = 0;
  1058. uint tag;
  1059. while ((tag = input.ReadTag()) != 0) {
  1060. switch(tag) {
  1061. default:
  1062. input.SkipLastField();
  1063. break;
  1064. case 720: {
  1065. RpcId = input.ReadInt32();
  1066. break;
  1067. }
  1068. }
  1069. }
  1070. }
  1071. }
  1072. public partial class R2C_Ping : pb::IMessage {
  1073. private static readonly pb::MessageParser<R2C_Ping> _parser = new pb::MessageParser<R2C_Ping>(() => (R2C_Ping)MessagePool.Instance.Fetch(typeof(R2C_Ping)));
  1074. public static pb::MessageParser<R2C_Ping> Parser { get { return _parser; } }
  1075. private int rpcId_;
  1076. public int RpcId {
  1077. get { return rpcId_; }
  1078. set {
  1079. rpcId_ = value;
  1080. }
  1081. }
  1082. private int error_;
  1083. public int Error {
  1084. get { return error_; }
  1085. set {
  1086. error_ = value;
  1087. }
  1088. }
  1089. private string message_ = "";
  1090. public string Message {
  1091. get { return message_; }
  1092. set {
  1093. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1094. }
  1095. }
  1096. public void WriteTo(pb::CodedOutputStream output) {
  1097. if (RpcId != 0) {
  1098. output.WriteRawTag(208, 5);
  1099. output.WriteInt32(RpcId);
  1100. }
  1101. if (Error != 0) {
  1102. output.WriteRawTag(216, 5);
  1103. output.WriteInt32(Error);
  1104. }
  1105. if (Message.Length != 0) {
  1106. output.WriteRawTag(226, 5);
  1107. output.WriteString(Message);
  1108. }
  1109. }
  1110. public int CalculateSize() {
  1111. int size = 0;
  1112. if (RpcId != 0) {
  1113. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1114. }
  1115. if (Error != 0) {
  1116. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  1117. }
  1118. if (Message.Length != 0) {
  1119. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  1120. }
  1121. return size;
  1122. }
  1123. public void MergeFrom(pb::CodedInputStream input) {
  1124. rpcId_ = 0;
  1125. error_ = 0;
  1126. message_ = "";
  1127. uint tag;
  1128. while ((tag = input.ReadTag()) != 0) {
  1129. switch(tag) {
  1130. default:
  1131. input.SkipLastField();
  1132. break;
  1133. case 720: {
  1134. RpcId = input.ReadInt32();
  1135. break;
  1136. }
  1137. case 728: {
  1138. Error = input.ReadInt32();
  1139. break;
  1140. }
  1141. case 738: {
  1142. Message = input.ReadString();
  1143. break;
  1144. }
  1145. }
  1146. }
  1147. }
  1148. }
  1149. public partial class G2C_Test : pb::IMessage {
  1150. private static readonly pb::MessageParser<G2C_Test> _parser = new pb::MessageParser<G2C_Test>(() => (G2C_Test)MessagePool.Instance.Fetch(typeof(G2C_Test)));
  1151. public static pb::MessageParser<G2C_Test> Parser { get { return _parser; } }
  1152. public void WriteTo(pb::CodedOutputStream output) {
  1153. }
  1154. public int CalculateSize() {
  1155. int size = 0;
  1156. return size;
  1157. }
  1158. public void MergeFrom(pb::CodedInputStream input) {
  1159. uint tag;
  1160. while ((tag = input.ReadTag()) != 0) {
  1161. switch(tag) {
  1162. default:
  1163. input.SkipLastField();
  1164. break;
  1165. }
  1166. }
  1167. }
  1168. }
  1169. public partial class C2M_Reload : pb::IMessage {
  1170. private static readonly pb::MessageParser<C2M_Reload> _parser = new pb::MessageParser<C2M_Reload>(() => (C2M_Reload)MessagePool.Instance.Fetch(typeof(C2M_Reload)));
  1171. public static pb::MessageParser<C2M_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 string account_ = "";
  1180. public string Account {
  1181. get { return account_; }
  1182. set {
  1183. account_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1184. }
  1185. }
  1186. private string password_ = "";
  1187. public string Password {
  1188. get { return password_; }
  1189. set {
  1190. password_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1191. }
  1192. }
  1193. public void WriteTo(pb::CodedOutputStream output) {
  1194. if (Account.Length != 0) {
  1195. output.WriteRawTag(10);
  1196. output.WriteString(Account);
  1197. }
  1198. if (Password.Length != 0) {
  1199. output.WriteRawTag(18);
  1200. output.WriteString(Password);
  1201. }
  1202. if (RpcId != 0) {
  1203. output.WriteRawTag(208, 5);
  1204. output.WriteInt32(RpcId);
  1205. }
  1206. }
  1207. public int CalculateSize() {
  1208. int size = 0;
  1209. if (RpcId != 0) {
  1210. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1211. }
  1212. if (Account.Length != 0) {
  1213. size += 1 + pb::CodedOutputStream.ComputeStringSize(Account);
  1214. }
  1215. if (Password.Length != 0) {
  1216. size += 1 + pb::CodedOutputStream.ComputeStringSize(Password);
  1217. }
  1218. return size;
  1219. }
  1220. public void MergeFrom(pb::CodedInputStream input) {
  1221. account_ = "";
  1222. password_ = "";
  1223. rpcId_ = 0;
  1224. uint tag;
  1225. while ((tag = input.ReadTag()) != 0) {
  1226. switch(tag) {
  1227. default:
  1228. input.SkipLastField();
  1229. break;
  1230. case 10: {
  1231. Account = input.ReadString();
  1232. break;
  1233. }
  1234. case 18: {
  1235. Password = input.ReadString();
  1236. break;
  1237. }
  1238. case 720: {
  1239. RpcId = input.ReadInt32();
  1240. break;
  1241. }
  1242. }
  1243. }
  1244. }
  1245. }
  1246. public partial class M2C_Reload : pb::IMessage {
  1247. private static readonly pb::MessageParser<M2C_Reload> _parser = new pb::MessageParser<M2C_Reload>(() => (M2C_Reload)MessagePool.Instance.Fetch(typeof(M2C_Reload)));
  1248. public static pb::MessageParser<M2C_Reload> Parser { get { return _parser; } }
  1249. private int rpcId_;
  1250. public int RpcId {
  1251. get { return rpcId_; }
  1252. set {
  1253. rpcId_ = value;
  1254. }
  1255. }
  1256. private int error_;
  1257. public int Error {
  1258. get { return error_; }
  1259. set {
  1260. error_ = value;
  1261. }
  1262. }
  1263. private string message_ = "";
  1264. public string Message {
  1265. get { return message_; }
  1266. set {
  1267. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1268. }
  1269. }
  1270. public void WriteTo(pb::CodedOutputStream output) {
  1271. if (RpcId != 0) {
  1272. output.WriteRawTag(208, 5);
  1273. output.WriteInt32(RpcId);
  1274. }
  1275. if (Error != 0) {
  1276. output.WriteRawTag(216, 5);
  1277. output.WriteInt32(Error);
  1278. }
  1279. if (Message.Length != 0) {
  1280. output.WriteRawTag(226, 5);
  1281. output.WriteString(Message);
  1282. }
  1283. }
  1284. public int CalculateSize() {
  1285. int size = 0;
  1286. if (RpcId != 0) {
  1287. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1288. }
  1289. if (Error != 0) {
  1290. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  1291. }
  1292. if (Message.Length != 0) {
  1293. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  1294. }
  1295. return size;
  1296. }
  1297. public void MergeFrom(pb::CodedInputStream input) {
  1298. rpcId_ = 0;
  1299. error_ = 0;
  1300. message_ = "";
  1301. uint tag;
  1302. while ((tag = input.ReadTag()) != 0) {
  1303. switch(tag) {
  1304. default:
  1305. input.SkipLastField();
  1306. break;
  1307. case 720: {
  1308. RpcId = input.ReadInt32();
  1309. break;
  1310. }
  1311. case 728: {
  1312. Error = input.ReadInt32();
  1313. break;
  1314. }
  1315. case 738: {
  1316. Message = input.ReadString();
  1317. break;
  1318. }
  1319. }
  1320. }
  1321. }
  1322. }
  1323. #endregion
  1324. }
  1325. #endregion Designer generated code