OuterMessage.cs 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302
  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. public partial class C2R_Login : pb::IMessage {
  1247. private static readonly pb::MessageParser<C2R_Login> _parser = new pb::MessageParser<C2R_Login>(() => (C2R_Login)MessagePool.Instance.Fetch(typeof(C2R_Login)));
  1248. public static pb::MessageParser<C2R_Login> 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 string account_ = "";
  1257. /// <summary>
  1258. /// 帐号
  1259. /// </summary>
  1260. public string Account {
  1261. get { return account_; }
  1262. set {
  1263. account_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1264. }
  1265. }
  1266. private string password_ = "";
  1267. /// <summary>
  1268. /// 密码
  1269. /// </summary>
  1270. public string Password {
  1271. get { return password_; }
  1272. set {
  1273. password_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1274. }
  1275. }
  1276. public void WriteTo(pb::CodedOutputStream output) {
  1277. if (Account.Length != 0) {
  1278. output.WriteRawTag(10);
  1279. output.WriteString(Account);
  1280. }
  1281. if (Password.Length != 0) {
  1282. output.WriteRawTag(18);
  1283. output.WriteString(Password);
  1284. }
  1285. if (RpcId != 0) {
  1286. output.WriteRawTag(208, 5);
  1287. output.WriteInt32(RpcId);
  1288. }
  1289. }
  1290. public int CalculateSize() {
  1291. int size = 0;
  1292. if (RpcId != 0) {
  1293. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1294. }
  1295. if (Account.Length != 0) {
  1296. size += 1 + pb::CodedOutputStream.ComputeStringSize(Account);
  1297. }
  1298. if (Password.Length != 0) {
  1299. size += 1 + pb::CodedOutputStream.ComputeStringSize(Password);
  1300. }
  1301. return size;
  1302. }
  1303. public void MergeFrom(pb::CodedInputStream input) {
  1304. account_ = "";
  1305. password_ = "";
  1306. rpcId_ = 0;
  1307. uint tag;
  1308. while ((tag = input.ReadTag()) != 0) {
  1309. switch(tag) {
  1310. default:
  1311. input.SkipLastField();
  1312. break;
  1313. case 10: {
  1314. Account = input.ReadString();
  1315. break;
  1316. }
  1317. case 18: {
  1318. Password = input.ReadString();
  1319. break;
  1320. }
  1321. case 720: {
  1322. RpcId = input.ReadInt32();
  1323. break;
  1324. }
  1325. }
  1326. }
  1327. }
  1328. }
  1329. public partial class R2C_Login : pb::IMessage {
  1330. private static readonly pb::MessageParser<R2C_Login> _parser = new pb::MessageParser<R2C_Login>(() => (R2C_Login)MessagePool.Instance.Fetch(typeof(R2C_Login)));
  1331. public static pb::MessageParser<R2C_Login> Parser { get { return _parser; } }
  1332. private int rpcId_;
  1333. public int RpcId {
  1334. get { return rpcId_; }
  1335. set {
  1336. rpcId_ = value;
  1337. }
  1338. }
  1339. private int error_;
  1340. public int Error {
  1341. get { return error_; }
  1342. set {
  1343. error_ = value;
  1344. }
  1345. }
  1346. private string message_ = "";
  1347. public string Message {
  1348. get { return message_; }
  1349. set {
  1350. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1351. }
  1352. }
  1353. private string address_ = "";
  1354. public string Address {
  1355. get { return address_; }
  1356. set {
  1357. address_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1358. }
  1359. }
  1360. private long key_;
  1361. public long Key {
  1362. get { return key_; }
  1363. set {
  1364. key_ = value;
  1365. }
  1366. }
  1367. private long gateId_;
  1368. public long GateId {
  1369. get { return gateId_; }
  1370. set {
  1371. gateId_ = value;
  1372. }
  1373. }
  1374. public void WriteTo(pb::CodedOutputStream output) {
  1375. if (Address.Length != 0) {
  1376. output.WriteRawTag(10);
  1377. output.WriteString(Address);
  1378. }
  1379. if (Key != 0L) {
  1380. output.WriteRawTag(16);
  1381. output.WriteInt64(Key);
  1382. }
  1383. if (GateId != 0L) {
  1384. output.WriteRawTag(24);
  1385. output.WriteInt64(GateId);
  1386. }
  1387. if (RpcId != 0) {
  1388. output.WriteRawTag(208, 5);
  1389. output.WriteInt32(RpcId);
  1390. }
  1391. if (Error != 0) {
  1392. output.WriteRawTag(216, 5);
  1393. output.WriteInt32(Error);
  1394. }
  1395. if (Message.Length != 0) {
  1396. output.WriteRawTag(226, 5);
  1397. output.WriteString(Message);
  1398. }
  1399. }
  1400. public int CalculateSize() {
  1401. int size = 0;
  1402. if (RpcId != 0) {
  1403. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1404. }
  1405. if (Error != 0) {
  1406. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  1407. }
  1408. if (Message.Length != 0) {
  1409. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  1410. }
  1411. if (Address.Length != 0) {
  1412. size += 1 + pb::CodedOutputStream.ComputeStringSize(Address);
  1413. }
  1414. if (Key != 0L) {
  1415. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Key);
  1416. }
  1417. if (GateId != 0L) {
  1418. size += 1 + pb::CodedOutputStream.ComputeInt64Size(GateId);
  1419. }
  1420. return size;
  1421. }
  1422. public void MergeFrom(pb::CodedInputStream input) {
  1423. address_ = "";
  1424. key_ = 0;
  1425. gateId_ = 0;
  1426. rpcId_ = 0;
  1427. error_ = 0;
  1428. message_ = "";
  1429. uint tag;
  1430. while ((tag = input.ReadTag()) != 0) {
  1431. switch(tag) {
  1432. default:
  1433. input.SkipLastField();
  1434. break;
  1435. case 10: {
  1436. Address = input.ReadString();
  1437. break;
  1438. }
  1439. case 16: {
  1440. Key = input.ReadInt64();
  1441. break;
  1442. }
  1443. case 24: {
  1444. GateId = input.ReadInt64();
  1445. break;
  1446. }
  1447. case 720: {
  1448. RpcId = input.ReadInt32();
  1449. break;
  1450. }
  1451. case 728: {
  1452. Error = input.ReadInt32();
  1453. break;
  1454. }
  1455. case 738: {
  1456. Message = input.ReadString();
  1457. break;
  1458. }
  1459. }
  1460. }
  1461. }
  1462. }
  1463. public partial class C2G_LoginGate : pb::IMessage {
  1464. private static readonly pb::MessageParser<C2G_LoginGate> _parser = new pb::MessageParser<C2G_LoginGate>(() => (C2G_LoginGate)MessagePool.Instance.Fetch(typeof(C2G_LoginGate)));
  1465. public static pb::MessageParser<C2G_LoginGate> Parser { get { return _parser; } }
  1466. private int rpcId_;
  1467. public int RpcId {
  1468. get { return rpcId_; }
  1469. set {
  1470. rpcId_ = value;
  1471. }
  1472. }
  1473. private long key_;
  1474. /// <summary>
  1475. /// 帐号
  1476. /// </summary>
  1477. public long Key {
  1478. get { return key_; }
  1479. set {
  1480. key_ = value;
  1481. }
  1482. }
  1483. private long gateId_;
  1484. public long GateId {
  1485. get { return gateId_; }
  1486. set {
  1487. gateId_ = value;
  1488. }
  1489. }
  1490. public void WriteTo(pb::CodedOutputStream output) {
  1491. if (Key != 0L) {
  1492. output.WriteRawTag(8);
  1493. output.WriteInt64(Key);
  1494. }
  1495. if (GateId != 0L) {
  1496. output.WriteRawTag(16);
  1497. output.WriteInt64(GateId);
  1498. }
  1499. if (RpcId != 0) {
  1500. output.WriteRawTag(208, 5);
  1501. output.WriteInt32(RpcId);
  1502. }
  1503. }
  1504. public int CalculateSize() {
  1505. int size = 0;
  1506. if (RpcId != 0) {
  1507. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1508. }
  1509. if (Key != 0L) {
  1510. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Key);
  1511. }
  1512. if (GateId != 0L) {
  1513. size += 1 + pb::CodedOutputStream.ComputeInt64Size(GateId);
  1514. }
  1515. return size;
  1516. }
  1517. public void MergeFrom(pb::CodedInputStream input) {
  1518. key_ = 0;
  1519. gateId_ = 0;
  1520. rpcId_ = 0;
  1521. uint tag;
  1522. while ((tag = input.ReadTag()) != 0) {
  1523. switch(tag) {
  1524. default:
  1525. input.SkipLastField();
  1526. break;
  1527. case 8: {
  1528. Key = input.ReadInt64();
  1529. break;
  1530. }
  1531. case 16: {
  1532. GateId = input.ReadInt64();
  1533. break;
  1534. }
  1535. case 720: {
  1536. RpcId = input.ReadInt32();
  1537. break;
  1538. }
  1539. }
  1540. }
  1541. }
  1542. }
  1543. public partial class G2C_LoginGate : pb::IMessage {
  1544. private static readonly pb::MessageParser<G2C_LoginGate> _parser = new pb::MessageParser<G2C_LoginGate>(() => (G2C_LoginGate)MessagePool.Instance.Fetch(typeof(G2C_LoginGate)));
  1545. public static pb::MessageParser<G2C_LoginGate> Parser { get { return _parser; } }
  1546. private int rpcId_;
  1547. public int RpcId {
  1548. get { return rpcId_; }
  1549. set {
  1550. rpcId_ = value;
  1551. }
  1552. }
  1553. private int error_;
  1554. public int Error {
  1555. get { return error_; }
  1556. set {
  1557. error_ = value;
  1558. }
  1559. }
  1560. private string message_ = "";
  1561. public string Message {
  1562. get { return message_; }
  1563. set {
  1564. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1565. }
  1566. }
  1567. private long playerId_;
  1568. public long PlayerId {
  1569. get { return playerId_; }
  1570. set {
  1571. playerId_ = value;
  1572. }
  1573. }
  1574. public void WriteTo(pb::CodedOutputStream output) {
  1575. if (PlayerId != 0L) {
  1576. output.WriteRawTag(8);
  1577. output.WriteInt64(PlayerId);
  1578. }
  1579. if (RpcId != 0) {
  1580. output.WriteRawTag(208, 5);
  1581. output.WriteInt32(RpcId);
  1582. }
  1583. if (Error != 0) {
  1584. output.WriteRawTag(216, 5);
  1585. output.WriteInt32(Error);
  1586. }
  1587. if (Message.Length != 0) {
  1588. output.WriteRawTag(226, 5);
  1589. output.WriteString(Message);
  1590. }
  1591. }
  1592. public int CalculateSize() {
  1593. int size = 0;
  1594. if (RpcId != 0) {
  1595. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1596. }
  1597. if (Error != 0) {
  1598. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  1599. }
  1600. if (Message.Length != 0) {
  1601. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  1602. }
  1603. if (PlayerId != 0L) {
  1604. size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
  1605. }
  1606. return size;
  1607. }
  1608. public void MergeFrom(pb::CodedInputStream input) {
  1609. playerId_ = 0;
  1610. rpcId_ = 0;
  1611. error_ = 0;
  1612. message_ = "";
  1613. uint tag;
  1614. while ((tag = input.ReadTag()) != 0) {
  1615. switch(tag) {
  1616. default:
  1617. input.SkipLastField();
  1618. break;
  1619. case 8: {
  1620. PlayerId = input.ReadInt64();
  1621. break;
  1622. }
  1623. case 720: {
  1624. RpcId = input.ReadInt32();
  1625. break;
  1626. }
  1627. case 728: {
  1628. Error = input.ReadInt32();
  1629. break;
  1630. }
  1631. case 738: {
  1632. Message = input.ReadString();
  1633. break;
  1634. }
  1635. }
  1636. }
  1637. }
  1638. }
  1639. public partial class G2C_TestHotfixMessage : pb::IMessage {
  1640. private static readonly pb::MessageParser<G2C_TestHotfixMessage> _parser = new pb::MessageParser<G2C_TestHotfixMessage>(() => (G2C_TestHotfixMessage)MessagePool.Instance.Fetch(typeof(G2C_TestHotfixMessage)));
  1641. public static pb::MessageParser<G2C_TestHotfixMessage> Parser { get { return _parser; } }
  1642. private string info_ = "";
  1643. public string Info {
  1644. get { return info_; }
  1645. set {
  1646. info_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1647. }
  1648. }
  1649. public void WriteTo(pb::CodedOutputStream output) {
  1650. if (Info.Length != 0) {
  1651. output.WriteRawTag(10);
  1652. output.WriteString(Info);
  1653. }
  1654. }
  1655. public int CalculateSize() {
  1656. int size = 0;
  1657. if (Info.Length != 0) {
  1658. size += 1 + pb::CodedOutputStream.ComputeStringSize(Info);
  1659. }
  1660. return size;
  1661. }
  1662. public void MergeFrom(pb::CodedInputStream input) {
  1663. info_ = "";
  1664. uint tag;
  1665. while ((tag = input.ReadTag()) != 0) {
  1666. switch(tag) {
  1667. default:
  1668. input.SkipLastField();
  1669. break;
  1670. case 10: {
  1671. Info = input.ReadString();
  1672. break;
  1673. }
  1674. }
  1675. }
  1676. }
  1677. }
  1678. public partial class C2M_TestActorRequest : pb::IMessage {
  1679. private static readonly pb::MessageParser<C2M_TestActorRequest> _parser = new pb::MessageParser<C2M_TestActorRequest>(() => (C2M_TestActorRequest)MessagePool.Instance.Fetch(typeof(C2M_TestActorRequest)));
  1680. public static pb::MessageParser<C2M_TestActorRequest> Parser { get { return _parser; } }
  1681. private int rpcId_;
  1682. public int RpcId {
  1683. get { return rpcId_; }
  1684. set {
  1685. rpcId_ = value;
  1686. }
  1687. }
  1688. private long actorId_;
  1689. public long ActorId {
  1690. get { return actorId_; }
  1691. set {
  1692. actorId_ = value;
  1693. }
  1694. }
  1695. private string info_ = "";
  1696. public string Info {
  1697. get { return info_; }
  1698. set {
  1699. info_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1700. }
  1701. }
  1702. public void WriteTo(pb::CodedOutputStream output) {
  1703. if (Info.Length != 0) {
  1704. output.WriteRawTag(10);
  1705. output.WriteString(Info);
  1706. }
  1707. if (RpcId != 0) {
  1708. output.WriteRawTag(208, 5);
  1709. output.WriteInt32(RpcId);
  1710. }
  1711. if (ActorId != 0L) {
  1712. output.WriteRawTag(216, 5);
  1713. output.WriteInt64(ActorId);
  1714. }
  1715. }
  1716. public int CalculateSize() {
  1717. int size = 0;
  1718. if (RpcId != 0) {
  1719. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1720. }
  1721. if (ActorId != 0L) {
  1722. size += 2 + pb::CodedOutputStream.ComputeInt64Size(ActorId);
  1723. }
  1724. if (Info.Length != 0) {
  1725. size += 1 + pb::CodedOutputStream.ComputeStringSize(Info);
  1726. }
  1727. return size;
  1728. }
  1729. public void MergeFrom(pb::CodedInputStream input) {
  1730. info_ = "";
  1731. rpcId_ = 0;
  1732. actorId_ = 0;
  1733. uint tag;
  1734. while ((tag = input.ReadTag()) != 0) {
  1735. switch(tag) {
  1736. default:
  1737. input.SkipLastField();
  1738. break;
  1739. case 10: {
  1740. Info = input.ReadString();
  1741. break;
  1742. }
  1743. case 720: {
  1744. RpcId = input.ReadInt32();
  1745. break;
  1746. }
  1747. case 728: {
  1748. ActorId = input.ReadInt64();
  1749. break;
  1750. }
  1751. }
  1752. }
  1753. }
  1754. }
  1755. public partial class M2C_TestActorResponse : pb::IMessage {
  1756. private static readonly pb::MessageParser<M2C_TestActorResponse> _parser = new pb::MessageParser<M2C_TestActorResponse>(() => (M2C_TestActorResponse)MessagePool.Instance.Fetch(typeof(M2C_TestActorResponse)));
  1757. public static pb::MessageParser<M2C_TestActorResponse> Parser { get { return _parser; } }
  1758. private int rpcId_;
  1759. public int RpcId {
  1760. get { return rpcId_; }
  1761. set {
  1762. rpcId_ = value;
  1763. }
  1764. }
  1765. private int error_;
  1766. public int Error {
  1767. get { return error_; }
  1768. set {
  1769. error_ = value;
  1770. }
  1771. }
  1772. private string message_ = "";
  1773. public string Message {
  1774. get { return message_; }
  1775. set {
  1776. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1777. }
  1778. }
  1779. private string info_ = "";
  1780. public string Info {
  1781. get { return info_; }
  1782. set {
  1783. info_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1784. }
  1785. }
  1786. public void WriteTo(pb::CodedOutputStream output) {
  1787. if (Info.Length != 0) {
  1788. output.WriteRawTag(10);
  1789. output.WriteString(Info);
  1790. }
  1791. if (RpcId != 0) {
  1792. output.WriteRawTag(208, 5);
  1793. output.WriteInt32(RpcId);
  1794. }
  1795. if (Error != 0) {
  1796. output.WriteRawTag(216, 5);
  1797. output.WriteInt32(Error);
  1798. }
  1799. if (Message.Length != 0) {
  1800. output.WriteRawTag(226, 5);
  1801. output.WriteString(Message);
  1802. }
  1803. }
  1804. public int CalculateSize() {
  1805. int size = 0;
  1806. if (RpcId != 0) {
  1807. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1808. }
  1809. if (Error != 0) {
  1810. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  1811. }
  1812. if (Message.Length != 0) {
  1813. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  1814. }
  1815. if (Info.Length != 0) {
  1816. size += 1 + pb::CodedOutputStream.ComputeStringSize(Info);
  1817. }
  1818. return size;
  1819. }
  1820. public void MergeFrom(pb::CodedInputStream input) {
  1821. info_ = "";
  1822. rpcId_ = 0;
  1823. error_ = 0;
  1824. message_ = "";
  1825. uint tag;
  1826. while ((tag = input.ReadTag()) != 0) {
  1827. switch(tag) {
  1828. default:
  1829. input.SkipLastField();
  1830. break;
  1831. case 10: {
  1832. Info = input.ReadString();
  1833. break;
  1834. }
  1835. case 720: {
  1836. RpcId = input.ReadInt32();
  1837. break;
  1838. }
  1839. case 728: {
  1840. Error = input.ReadInt32();
  1841. break;
  1842. }
  1843. case 738: {
  1844. Message = input.ReadString();
  1845. break;
  1846. }
  1847. }
  1848. }
  1849. }
  1850. }
  1851. public partial class PlayerInfo : pb::IMessage {
  1852. private static readonly pb::MessageParser<PlayerInfo> _parser = new pb::MessageParser<PlayerInfo>(() => (PlayerInfo)MessagePool.Instance.Fetch(typeof(PlayerInfo)));
  1853. public static pb::MessageParser<PlayerInfo> Parser { get { return _parser; } }
  1854. private int rpcId_;
  1855. public int RpcId {
  1856. get { return rpcId_; }
  1857. set {
  1858. rpcId_ = value;
  1859. }
  1860. }
  1861. public void WriteTo(pb::CodedOutputStream output) {
  1862. if (RpcId != 0) {
  1863. output.WriteRawTag(208, 5);
  1864. output.WriteInt32(RpcId);
  1865. }
  1866. }
  1867. public int CalculateSize() {
  1868. int size = 0;
  1869. if (RpcId != 0) {
  1870. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1871. }
  1872. return size;
  1873. }
  1874. public void MergeFrom(pb::CodedInputStream input) {
  1875. rpcId_ = 0;
  1876. uint tag;
  1877. while ((tag = input.ReadTag()) != 0) {
  1878. switch(tag) {
  1879. default:
  1880. input.SkipLastField();
  1881. break;
  1882. case 720: {
  1883. RpcId = input.ReadInt32();
  1884. break;
  1885. }
  1886. }
  1887. }
  1888. }
  1889. }
  1890. public partial class C2G_PlayerInfo : pb::IMessage {
  1891. private static readonly pb::MessageParser<C2G_PlayerInfo> _parser = new pb::MessageParser<C2G_PlayerInfo>(() => (C2G_PlayerInfo)MessagePool.Instance.Fetch(typeof(C2G_PlayerInfo)));
  1892. public static pb::MessageParser<C2G_PlayerInfo> Parser { get { return _parser; } }
  1893. private int rpcId_;
  1894. public int RpcId {
  1895. get { return rpcId_; }
  1896. set {
  1897. rpcId_ = value;
  1898. }
  1899. }
  1900. public void WriteTo(pb::CodedOutputStream output) {
  1901. if (RpcId != 0) {
  1902. output.WriteRawTag(208, 5);
  1903. output.WriteInt32(RpcId);
  1904. }
  1905. }
  1906. public int CalculateSize() {
  1907. int size = 0;
  1908. if (RpcId != 0) {
  1909. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  1910. }
  1911. return size;
  1912. }
  1913. public void MergeFrom(pb::CodedInputStream input) {
  1914. rpcId_ = 0;
  1915. uint tag;
  1916. while ((tag = input.ReadTag()) != 0) {
  1917. switch(tag) {
  1918. default:
  1919. input.SkipLastField();
  1920. break;
  1921. case 720: {
  1922. RpcId = input.ReadInt32();
  1923. break;
  1924. }
  1925. }
  1926. }
  1927. }
  1928. }
  1929. public partial class G2C_PlayerInfo : pb::IMessage {
  1930. private static readonly pb::MessageParser<G2C_PlayerInfo> _parser = new pb::MessageParser<G2C_PlayerInfo>(() => (G2C_PlayerInfo)MessagePool.Instance.Fetch(typeof(G2C_PlayerInfo)));
  1931. public static pb::MessageParser<G2C_PlayerInfo> Parser { get { return _parser; } }
  1932. private int rpcId_;
  1933. public int RpcId {
  1934. get { return rpcId_; }
  1935. set {
  1936. rpcId_ = value;
  1937. }
  1938. }
  1939. private int error_;
  1940. public int Error {
  1941. get { return error_; }
  1942. set {
  1943. error_ = value;
  1944. }
  1945. }
  1946. private string message_ = "";
  1947. public string Message {
  1948. get { return message_; }
  1949. set {
  1950. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1951. }
  1952. }
  1953. private global::ETModel.PlayerInfo playerInfo_;
  1954. public global::ETModel.PlayerInfo PlayerInfo {
  1955. get { return playerInfo_; }
  1956. set {
  1957. playerInfo_ = value;
  1958. }
  1959. }
  1960. private static readonly pb::FieldCodec<global::ETModel.PlayerInfo> _repeated_playerInfos_codec
  1961. = pb::FieldCodec.ForMessage(18, global::ETModel.PlayerInfo.Parser);
  1962. private pbc::RepeatedField<global::ETModel.PlayerInfo> playerInfos_ = new pbc::RepeatedField<global::ETModel.PlayerInfo>();
  1963. public pbc::RepeatedField<global::ETModel.PlayerInfo> PlayerInfos {
  1964. get { return playerInfos_; }
  1965. set { playerInfos_ = value; }
  1966. }
  1967. private static readonly pb::FieldCodec<string> _repeated_testRepeatedString_codec
  1968. = pb::FieldCodec.ForString(26);
  1969. private pbc::RepeatedField<string> testRepeatedString_ = new pbc::RepeatedField<string>();
  1970. public pbc::RepeatedField<string> TestRepeatedString {
  1971. get { return testRepeatedString_; }
  1972. set { testRepeatedString_ = value; }
  1973. }
  1974. private static readonly pb::FieldCodec<int> _repeated_testRepeatedInt32_codec
  1975. = pb::FieldCodec.ForInt32(34);
  1976. private pbc::RepeatedField<int> testRepeatedInt32_ = new pbc::RepeatedField<int>();
  1977. public pbc::RepeatedField<int> TestRepeatedInt32 {
  1978. get { return testRepeatedInt32_; }
  1979. set { testRepeatedInt32_ = value; }
  1980. }
  1981. private static readonly pb::FieldCodec<long> _repeated_testRepeatedInt64_codec
  1982. = pb::FieldCodec.ForInt64(42);
  1983. private pbc::RepeatedField<long> testRepeatedInt64_ = new pbc::RepeatedField<long>();
  1984. public pbc::RepeatedField<long> TestRepeatedInt64 {
  1985. get { return testRepeatedInt64_; }
  1986. set { testRepeatedInt64_ = value; }
  1987. }
  1988. public void WriteTo(pb::CodedOutputStream output) {
  1989. if (playerInfo_ != null) {
  1990. output.WriteRawTag(10);
  1991. output.WriteMessage(PlayerInfo);
  1992. }
  1993. playerInfos_.WriteTo(output, _repeated_playerInfos_codec);
  1994. testRepeatedString_.WriteTo(output, _repeated_testRepeatedString_codec);
  1995. testRepeatedInt32_.WriteTo(output, _repeated_testRepeatedInt32_codec);
  1996. testRepeatedInt64_.WriteTo(output, _repeated_testRepeatedInt64_codec);
  1997. if (RpcId != 0) {
  1998. output.WriteRawTag(208, 5);
  1999. output.WriteInt32(RpcId);
  2000. }
  2001. if (Error != 0) {
  2002. output.WriteRawTag(216, 5);
  2003. output.WriteInt32(Error);
  2004. }
  2005. if (Message.Length != 0) {
  2006. output.WriteRawTag(226, 5);
  2007. output.WriteString(Message);
  2008. }
  2009. }
  2010. public int CalculateSize() {
  2011. int size = 0;
  2012. if (RpcId != 0) {
  2013. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  2014. }
  2015. if (Error != 0) {
  2016. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  2017. }
  2018. if (Message.Length != 0) {
  2019. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  2020. }
  2021. if (playerInfo_ != null) {
  2022. size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlayerInfo);
  2023. }
  2024. size += playerInfos_.CalculateSize(_repeated_playerInfos_codec);
  2025. size += testRepeatedString_.CalculateSize(_repeated_testRepeatedString_codec);
  2026. size += testRepeatedInt32_.CalculateSize(_repeated_testRepeatedInt32_codec);
  2027. size += testRepeatedInt64_.CalculateSize(_repeated_testRepeatedInt64_codec);
  2028. return size;
  2029. }
  2030. public void MergeFrom(pb::CodedInputStream input) {
  2031. if (playerInfo_ != null) MessagePool.Instance.Recycle(playerInfo_); playerInfo_ = null;
  2032. for (int i = 0; i < playerInfos_.Count; i++) { MessagePool.Instance.Recycle(playerInfos_[i]); }
  2033. playerInfos_.Clear();
  2034. testRepeatedString_.Clear();
  2035. testRepeatedInt32_.Clear();
  2036. testRepeatedInt64_.Clear();
  2037. rpcId_ = 0;
  2038. error_ = 0;
  2039. message_ = "";
  2040. uint tag;
  2041. while ((tag = input.ReadTag()) != 0) {
  2042. switch(tag) {
  2043. default:
  2044. input.SkipLastField();
  2045. break;
  2046. case 10: {
  2047. if (playerInfo_ == null) {
  2048. playerInfo_ = new global::ETModel.PlayerInfo();
  2049. }
  2050. input.ReadMessage(playerInfo_);
  2051. break;
  2052. }
  2053. case 18: {
  2054. playerInfos_.AddEntriesFrom(input, _repeated_playerInfos_codec);
  2055. break;
  2056. }
  2057. case 26: {
  2058. testRepeatedString_.AddEntriesFrom(input, _repeated_testRepeatedString_codec);
  2059. break;
  2060. }
  2061. case 34:
  2062. case 32: {
  2063. testRepeatedInt32_.AddEntriesFrom(input, _repeated_testRepeatedInt32_codec);
  2064. break;
  2065. }
  2066. case 42:
  2067. case 40: {
  2068. testRepeatedInt64_.AddEntriesFrom(input, _repeated_testRepeatedInt64_codec);
  2069. break;
  2070. }
  2071. case 720: {
  2072. RpcId = input.ReadInt32();
  2073. break;
  2074. }
  2075. case 728: {
  2076. Error = input.ReadInt32();
  2077. break;
  2078. }
  2079. case 738: {
  2080. Message = input.ReadString();
  2081. break;
  2082. }
  2083. }
  2084. }
  2085. }
  2086. }
  2087. #endregion
  2088. }
  2089. #endregion Designer generated code