OuterMessage.cs 98 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526
  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 KYFramework.Network {
  9. #region Messages
  10. public partial class C2R_Ping : pb::IMessage {
  11. private static readonly pb::MessageParser<C2R_Ping> _parser = new pb::MessageParser<C2R_Ping>(() => (C2R_Ping)MessagePool.Instance.Fetch(typeof(C2R_Ping)));
  12. public static pb::MessageParser<C2R_Ping> Parser { get { return _parser; } }
  13. private int rpcId_;
  14. public int RpcId {
  15. get { return rpcId_; }
  16. set {
  17. rpcId_ = value;
  18. }
  19. }
  20. public void WriteTo(pb::CodedOutputStream output) {
  21. if (RpcId != 0) {
  22. output.WriteRawTag(208, 5);
  23. output.WriteInt32(RpcId);
  24. }
  25. }
  26. public int CalculateSize() {
  27. int size = 0;
  28. if (RpcId != 0) {
  29. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  30. }
  31. return size;
  32. }
  33. public void MergeFrom(pb::CodedInputStream input) {
  34. rpcId_ = 0;
  35. uint tag;
  36. while ((tag = input.ReadTag()) != 0) {
  37. switch(tag) {
  38. default:
  39. input.SkipLastField();
  40. break;
  41. case 720: {
  42. RpcId = input.ReadInt32();
  43. break;
  44. }
  45. }
  46. }
  47. }
  48. }
  49. public partial class R2C_Ping : pb::IMessage {
  50. private static readonly pb::MessageParser<R2C_Ping> _parser = new pb::MessageParser<R2C_Ping>(() => (R2C_Ping)MessagePool.Instance.Fetch(typeof(R2C_Ping)));
  51. public static pb::MessageParser<R2C_Ping> Parser { get { return _parser; } }
  52. private int rpcId_;
  53. public int RpcId {
  54. get { return rpcId_; }
  55. set {
  56. rpcId_ = value;
  57. }
  58. }
  59. private int error_;
  60. public int Error {
  61. get { return error_; }
  62. set {
  63. error_ = value;
  64. }
  65. }
  66. private string message_ = "";
  67. public string Message {
  68. get { return message_; }
  69. set {
  70. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  71. }
  72. }
  73. public void WriteTo(pb::CodedOutputStream output) {
  74. if (RpcId != 0) {
  75. output.WriteRawTag(208, 5);
  76. output.WriteInt32(RpcId);
  77. }
  78. if (Error != 0) {
  79. output.WriteRawTag(216, 5);
  80. output.WriteInt32(Error);
  81. }
  82. if (Message.Length != 0) {
  83. output.WriteRawTag(226, 5);
  84. output.WriteString(Message);
  85. }
  86. }
  87. public int CalculateSize() {
  88. int size = 0;
  89. if (RpcId != 0) {
  90. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  91. }
  92. if (Error != 0) {
  93. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  94. }
  95. if (Message.Length != 0) {
  96. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  97. }
  98. return size;
  99. }
  100. public void MergeFrom(pb::CodedInputStream input) {
  101. rpcId_ = 0;
  102. error_ = 0;
  103. message_ = "";
  104. uint tag;
  105. while ((tag = input.ReadTag()) != 0) {
  106. switch(tag) {
  107. default:
  108. input.SkipLastField();
  109. break;
  110. case 720: {
  111. RpcId = input.ReadInt32();
  112. break;
  113. }
  114. case 728: {
  115. Error = input.ReadInt32();
  116. break;
  117. }
  118. case 738: {
  119. Message = input.ReadString();
  120. break;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. public partial class C2S_Test : pb::IMessage {
  127. private static readonly pb::MessageParser<C2S_Test> _parser = new pb::MessageParser<C2S_Test>(() => (C2S_Test)MessagePool.Instance.Fetch(typeof(C2S_Test)));
  128. public static pb::MessageParser<C2S_Test> Parser { get { return _parser; } }
  129. private int rpcId_;
  130. public int RpcId {
  131. get { return rpcId_; }
  132. set {
  133. rpcId_ = value;
  134. }
  135. }
  136. private string message_ = "";
  137. public string Message {
  138. get { return message_; }
  139. set {
  140. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  141. }
  142. }
  143. public void WriteTo(pb::CodedOutputStream output) {
  144. if (RpcId != 0) {
  145. output.WriteRawTag(208, 5);
  146. output.WriteInt32(RpcId);
  147. }
  148. if (Message.Length != 0) {
  149. output.WriteRawTag(226, 5);
  150. output.WriteString(Message);
  151. }
  152. }
  153. public int CalculateSize() {
  154. int size = 0;
  155. if (RpcId != 0) {
  156. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  157. }
  158. if (Message.Length != 0) {
  159. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  160. }
  161. return size;
  162. }
  163. public void MergeFrom(pb::CodedInputStream input) {
  164. rpcId_ = 0;
  165. message_ = "";
  166. uint tag;
  167. while ((tag = input.ReadTag()) != 0) {
  168. switch(tag) {
  169. default:
  170. input.SkipLastField();
  171. break;
  172. case 720: {
  173. RpcId = input.ReadInt32();
  174. break;
  175. }
  176. case 738: {
  177. Message = input.ReadString();
  178. break;
  179. }
  180. }
  181. }
  182. }
  183. }
  184. public partial class S2C_Test : pb::IMessage {
  185. private static readonly pb::MessageParser<S2C_Test> _parser = new pb::MessageParser<S2C_Test>(() => (S2C_Test)MessagePool.Instance.Fetch(typeof(S2C_Test)));
  186. public static pb::MessageParser<S2C_Test> Parser { get { return _parser; } }
  187. private int rpcId_;
  188. public int RpcId {
  189. get { return rpcId_; }
  190. set {
  191. rpcId_ = value;
  192. }
  193. }
  194. private int error_;
  195. public int Error {
  196. get { return error_; }
  197. set {
  198. error_ = value;
  199. }
  200. }
  201. private string message_ = "";
  202. public string Message {
  203. get { return message_; }
  204. set {
  205. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  206. }
  207. }
  208. public void WriteTo(pb::CodedOutputStream output) {
  209. if (RpcId != 0) {
  210. output.WriteRawTag(208, 5);
  211. output.WriteInt32(RpcId);
  212. }
  213. if (Error != 0) {
  214. output.WriteRawTag(216, 5);
  215. output.WriteInt32(Error);
  216. }
  217. if (Message.Length != 0) {
  218. output.WriteRawTag(226, 5);
  219. output.WriteString(Message);
  220. }
  221. }
  222. public int CalculateSize() {
  223. int size = 0;
  224. if (RpcId != 0) {
  225. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  226. }
  227. if (Error != 0) {
  228. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
  229. }
  230. if (Message.Length != 0) {
  231. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  232. }
  233. return size;
  234. }
  235. public void MergeFrom(pb::CodedInputStream input) {
  236. rpcId_ = 0;
  237. error_ = 0;
  238. message_ = "";
  239. uint tag;
  240. while ((tag = input.ReadTag()) != 0) {
  241. switch(tag) {
  242. default:
  243. input.SkipLastField();
  244. break;
  245. case 720: {
  246. RpcId = input.ReadInt32();
  247. break;
  248. }
  249. case 728: {
  250. Error = input.ReadInt32();
  251. break;
  252. }
  253. case 738: {
  254. Message = input.ReadString();
  255. break;
  256. }
  257. }
  258. }
  259. }
  260. }
  261. public partial class C2S_TestMessage : pb::IMessage {
  262. private static readonly pb::MessageParser<C2S_TestMessage> _parser = new pb::MessageParser<C2S_TestMessage>(() => (C2S_TestMessage)MessagePool.Instance.Fetch(typeof(C2S_TestMessage)));
  263. public static pb::MessageParser<C2S_TestMessage> Parser { get { return _parser; } }
  264. private string message_ = "";
  265. public string Message {
  266. get { return message_; }
  267. set {
  268. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  269. }
  270. }
  271. public void WriteTo(pb::CodedOutputStream output) {
  272. if (Message.Length != 0) {
  273. output.WriteRawTag(210, 5);
  274. output.WriteString(Message);
  275. }
  276. }
  277. public int CalculateSize() {
  278. int size = 0;
  279. if (Message.Length != 0) {
  280. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  281. }
  282. return size;
  283. }
  284. public void MergeFrom(pb::CodedInputStream input) {
  285. message_ = "";
  286. uint tag;
  287. while ((tag = input.ReadTag()) != 0) {
  288. switch(tag) {
  289. default:
  290. input.SkipLastField();
  291. break;
  292. case 722: {
  293. Message = input.ReadString();
  294. break;
  295. }
  296. }
  297. }
  298. }
  299. }
  300. public partial class S2C_TestMessage : pb::IMessage {
  301. private static readonly pb::MessageParser<S2C_TestMessage> _parser = new pb::MessageParser<S2C_TestMessage>(() => (S2C_TestMessage)MessagePool.Instance.Fetch(typeof(S2C_TestMessage)));
  302. public static pb::MessageParser<S2C_TestMessage> Parser { get { return _parser; } }
  303. private string message_ = "";
  304. public string Message {
  305. get { return message_; }
  306. set {
  307. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  308. }
  309. }
  310. public void WriteTo(pb::CodedOutputStream output) {
  311. if (Message.Length != 0) {
  312. output.WriteRawTag(210, 5);
  313. output.WriteString(Message);
  314. }
  315. }
  316. public int CalculateSize() {
  317. int size = 0;
  318. if (Message.Length != 0) {
  319. size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
  320. }
  321. return size;
  322. }
  323. public void MergeFrom(pb::CodedInputStream input) {
  324. message_ = "";
  325. uint tag;
  326. while ((tag = input.ReadTag()) != 0) {
  327. switch(tag) {
  328. default:
  329. input.SkipLastField();
  330. break;
  331. case 722: {
  332. Message = input.ReadString();
  333. break;
  334. }
  335. }
  336. }
  337. }
  338. }
  339. /// <summary>
  340. /// 地理点:经纬高
  341. /// </summary>
  342. public partial class Point : pb::IMessage {
  343. private static readonly pb::MessageParser<Point> _parser = new pb::MessageParser<Point>(() => (Point)MessagePool.Instance.Fetch(typeof(Point)));
  344. public static pb::MessageParser<Point> Parser { get { return _parser; } }
  345. private double longitude_;
  346. public double Longitude {
  347. get { return longitude_; }
  348. set {
  349. longitude_ = value;
  350. }
  351. }
  352. private double latitude_;
  353. public double Latitude {
  354. get { return latitude_; }
  355. set {
  356. latitude_ = value;
  357. }
  358. }
  359. private double altitude_;
  360. public double Altitude {
  361. get { return altitude_; }
  362. set {
  363. altitude_ = value;
  364. }
  365. }
  366. public void WriteTo(pb::CodedOutputStream output) {
  367. if (Longitude != 0D) {
  368. output.WriteRawTag(9);
  369. output.WriteDouble(Longitude);
  370. }
  371. if (Latitude != 0D) {
  372. output.WriteRawTag(17);
  373. output.WriteDouble(Latitude);
  374. }
  375. if (Altitude != 0D) {
  376. output.WriteRawTag(25);
  377. output.WriteDouble(Altitude);
  378. }
  379. }
  380. public int CalculateSize() {
  381. int size = 0;
  382. if (Longitude != 0D) {
  383. size += 1 + 8;
  384. }
  385. if (Latitude != 0D) {
  386. size += 1 + 8;
  387. }
  388. if (Altitude != 0D) {
  389. size += 1 + 8;
  390. }
  391. return size;
  392. }
  393. public void MergeFrom(pb::CodedInputStream input) {
  394. uint tag;
  395. while ((tag = input.ReadTag()) != 0) {
  396. switch(tag) {
  397. default:
  398. input.SkipLastField();
  399. break;
  400. case 9: {
  401. Longitude = input.ReadDouble();
  402. break;
  403. }
  404. case 17: {
  405. Latitude = input.ReadDouble();
  406. break;
  407. }
  408. case 25: {
  409. Altitude = input.ReadDouble();
  410. break;
  411. }
  412. }
  413. }
  414. }
  415. }
  416. /// <summary>
  417. /// 基地
  418. /// </summary>
  419. public partial class Base : pb::IMessage {
  420. private static readonly pb::MessageParser<Base> _parser = new pb::MessageParser<Base>(() => (Base)MessagePool.Instance.Fetch(typeof(Base)));
  421. public static pb::MessageParser<Base> Parser { get { return _parser; } }
  422. private string baseName_ = "";
  423. public string BaseName {
  424. get { return baseName_; }
  425. set {
  426. baseName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  427. }
  428. }
  429. private global::KYFramework.Network.Point baseLocation_;
  430. public global::KYFramework.Network.Point BaseLocation {
  431. get { return baseLocation_; }
  432. set {
  433. baseLocation_ = value;
  434. }
  435. }
  436. public void WriteTo(pb::CodedOutputStream output) {
  437. if (BaseName.Length != 0) {
  438. output.WriteRawTag(10);
  439. output.WriteString(BaseName);
  440. }
  441. if (baseLocation_ != null) {
  442. output.WriteRawTag(18);
  443. output.WriteMessage(BaseLocation);
  444. }
  445. }
  446. public int CalculateSize() {
  447. int size = 0;
  448. if (BaseName.Length != 0) {
  449. size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseName);
  450. }
  451. if (baseLocation_ != null) {
  452. size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseLocation);
  453. }
  454. return size;
  455. }
  456. public void MergeFrom(pb::CodedInputStream input) {
  457. baseName_ = "";
  458. if (baseLocation_ != null) MessagePool.Instance.Recycle(baseLocation_); baseLocation_ = null;
  459. uint tag;
  460. while ((tag = input.ReadTag()) != 0) {
  461. switch(tag) {
  462. default:
  463. input.SkipLastField();
  464. break;
  465. case 10: {
  466. BaseName = input.ReadString();
  467. break;
  468. }
  469. case 18: {
  470. if (baseLocation_ == null) {
  471. baseLocation_ = new global::KYFramework.Network.Point();
  472. }
  473. input.ReadMessage(baseLocation_);
  474. break;
  475. }
  476. }
  477. }
  478. }
  479. }
  480. /// <summary>
  481. /// 行政区气象数据
  482. /// </summary>
  483. public partial class CityWeather : pb::IMessage {
  484. private static readonly pb::MessageParser<CityWeather> _parser = new pb::MessageParser<CityWeather>(() => (CityWeather)MessagePool.Instance.Fetch(typeof(CityWeather)));
  485. public static pb::MessageParser<CityWeather> Parser { get { return _parser; } }
  486. private string cityName_ = "";
  487. /// <summary>
  488. /// 行政区域名称:XX市
  489. /// </summary>
  490. public string CityName {
  491. get { return cityName_; }
  492. set {
  493. cityName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  494. }
  495. }
  496. private string weatherCondition_ = "";
  497. /// <summary>
  498. /// 天气状况:晴/多云/雨等
  499. /// </summary>
  500. public string WeatherCondition {
  501. get { return weatherCondition_; }
  502. set {
  503. weatherCondition_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  504. }
  505. }
  506. private string windDirection_ = "";
  507. /// <summary>
  508. /// 风向:东南西北
  509. /// </summary>
  510. public string WindDirection {
  511. get { return windDirection_; }
  512. set {
  513. windDirection_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  514. }
  515. }
  516. private double windVelocity_;
  517. /// <summary>
  518. /// 风速
  519. /// </summary>
  520. public double WindVelocity {
  521. get { return windVelocity_; }
  522. set {
  523. windVelocity_ = value;
  524. }
  525. }
  526. private double temperature_;
  527. /// <summary>
  528. /// 温度
  529. /// </summary>
  530. public double Temperature {
  531. get { return temperature_; }
  532. set {
  533. temperature_ = value;
  534. }
  535. }
  536. private double humidity_;
  537. /// <summary>
  538. /// 湿度
  539. /// </summary>
  540. public double Humidity {
  541. get { return humidity_; }
  542. set {
  543. humidity_ = value;
  544. }
  545. }
  546. private double visibility_;
  547. /// <summary>
  548. /// 能见度
  549. /// </summary>
  550. public double Visibility {
  551. get { return visibility_; }
  552. set {
  553. visibility_ = value;
  554. }
  555. }
  556. public void WriteTo(pb::CodedOutputStream output) {
  557. if (CityName.Length != 0) {
  558. output.WriteRawTag(10);
  559. output.WriteString(CityName);
  560. }
  561. if (WeatherCondition.Length != 0) {
  562. output.WriteRawTag(18);
  563. output.WriteString(WeatherCondition);
  564. }
  565. if (WindDirection.Length != 0) {
  566. output.WriteRawTag(26);
  567. output.WriteString(WindDirection);
  568. }
  569. if (WindVelocity != 0D) {
  570. output.WriteRawTag(33);
  571. output.WriteDouble(WindVelocity);
  572. }
  573. if (Temperature != 0D) {
  574. output.WriteRawTag(41);
  575. output.WriteDouble(Temperature);
  576. }
  577. if (Humidity != 0D) {
  578. output.WriteRawTag(49);
  579. output.WriteDouble(Humidity);
  580. }
  581. if (Visibility != 0D) {
  582. output.WriteRawTag(57);
  583. output.WriteDouble(Visibility);
  584. }
  585. }
  586. public int CalculateSize() {
  587. int size = 0;
  588. if (CityName.Length != 0) {
  589. size += 1 + pb::CodedOutputStream.ComputeStringSize(CityName);
  590. }
  591. if (WeatherCondition.Length != 0) {
  592. size += 1 + pb::CodedOutputStream.ComputeStringSize(WeatherCondition);
  593. }
  594. if (WindDirection.Length != 0) {
  595. size += 1 + pb::CodedOutputStream.ComputeStringSize(WindDirection);
  596. }
  597. if (WindVelocity != 0D) {
  598. size += 1 + 8;
  599. }
  600. if (Temperature != 0D) {
  601. size += 1 + 8;
  602. }
  603. if (Humidity != 0D) {
  604. size += 1 + 8;
  605. }
  606. if (Visibility != 0D) {
  607. size += 1 + 8;
  608. }
  609. return size;
  610. }
  611. public void MergeFrom(pb::CodedInputStream input) {
  612. cityName_ = "";
  613. weatherCondition_ = "";
  614. windDirection_ = "";
  615. uint tag;
  616. while ((tag = input.ReadTag()) != 0) {
  617. switch(tag) {
  618. default:
  619. input.SkipLastField();
  620. break;
  621. case 10: {
  622. CityName = input.ReadString();
  623. break;
  624. }
  625. case 18: {
  626. WeatherCondition = input.ReadString();
  627. break;
  628. }
  629. case 26: {
  630. WindDirection = input.ReadString();
  631. break;
  632. }
  633. case 33: {
  634. WindVelocity = input.ReadDouble();
  635. break;
  636. }
  637. case 41: {
  638. Temperature = input.ReadDouble();
  639. break;
  640. }
  641. case 49: {
  642. Humidity = input.ReadDouble();
  643. break;
  644. }
  645. case 57: {
  646. Visibility = input.ReadDouble();
  647. break;
  648. }
  649. }
  650. }
  651. }
  652. }
  653. /// <summary>
  654. /// 航线
  655. /// </summary>
  656. public partial class AirRoute : pb::IMessage {
  657. private static readonly pb::MessageParser<AirRoute> _parser = new pb::MessageParser<AirRoute>(() => (AirRoute)MessagePool.Instance.Fetch(typeof(AirRoute)));
  658. public static pb::MessageParser<AirRoute> Parser { get { return _parser; } }
  659. private string name_ = "";
  660. public string Name {
  661. get { return name_; }
  662. set {
  663. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  664. }
  665. }
  666. private static readonly pb::FieldCodec<global::KYFramework.Network.Point> _repeated_pointArr_codec
  667. = pb::FieldCodec.ForMessage(18, global::KYFramework.Network.Point.Parser);
  668. private pbc::RepeatedField<global::KYFramework.Network.Point> pointArr_ = new pbc::RepeatedField<global::KYFramework.Network.Point>();
  669. public pbc::RepeatedField<global::KYFramework.Network.Point> PointArr {
  670. get { return pointArr_; }
  671. set { pointArr_ = value; }
  672. }
  673. public void WriteTo(pb::CodedOutputStream output) {
  674. if (Name.Length != 0) {
  675. output.WriteRawTag(10);
  676. output.WriteString(Name);
  677. }
  678. pointArr_.WriteTo(output, _repeated_pointArr_codec);
  679. }
  680. public int CalculateSize() {
  681. int size = 0;
  682. if (Name.Length != 0) {
  683. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  684. }
  685. size += pointArr_.CalculateSize(_repeated_pointArr_codec);
  686. return size;
  687. }
  688. public void MergeFrom(pb::CodedInputStream input) {
  689. name_ = "";
  690. for (int i = 0; i < pointArr_.Count; i++) { MessagePool.Instance.Recycle(pointArr_[i]); }
  691. pointArr_.Clear();
  692. uint tag;
  693. while ((tag = input.ReadTag()) != 0) {
  694. switch(tag) {
  695. default:
  696. input.SkipLastField();
  697. break;
  698. case 10: {
  699. Name = input.ReadString();
  700. break;
  701. }
  702. case 18: {
  703. pointArr_.AddEntriesFrom(input, _repeated_pointArr_codec);
  704. break;
  705. }
  706. }
  707. }
  708. }
  709. }
  710. /// <summary>
  711. /// 圆形禁飞区
  712. /// </summary>
  713. public partial class NoFlyZoneCircle : pb::IMessage {
  714. private static readonly pb::MessageParser<NoFlyZoneCircle> _parser = new pb::MessageParser<NoFlyZoneCircle>(() => (NoFlyZoneCircle)MessagePool.Instance.Fetch(typeof(NoFlyZoneCircle)));
  715. public static pb::MessageParser<NoFlyZoneCircle> Parser { get { return _parser; } }
  716. private string noFlyZoneType_ = "";
  717. public string NoFlyZoneType {
  718. get { return noFlyZoneType_; }
  719. set {
  720. noFlyZoneType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  721. }
  722. }
  723. private global::KYFramework.Network.Point noFlyZoneCenterLocation_;
  724. public global::KYFramework.Network.Point NoFlyZoneCenterLocation {
  725. get { return noFlyZoneCenterLocation_; }
  726. set {
  727. noFlyZoneCenterLocation_ = value;
  728. }
  729. }
  730. private double noFlyZoneRadius_;
  731. public double NoFlyZoneRadius {
  732. get { return noFlyZoneRadius_; }
  733. set {
  734. noFlyZoneRadius_ = value;
  735. }
  736. }
  737. public void WriteTo(pb::CodedOutputStream output) {
  738. if (NoFlyZoneType.Length != 0) {
  739. output.WriteRawTag(10);
  740. output.WriteString(NoFlyZoneType);
  741. }
  742. if (noFlyZoneCenterLocation_ != null) {
  743. output.WriteRawTag(18);
  744. output.WriteMessage(NoFlyZoneCenterLocation);
  745. }
  746. if (NoFlyZoneRadius != 0D) {
  747. output.WriteRawTag(25);
  748. output.WriteDouble(NoFlyZoneRadius);
  749. }
  750. }
  751. public int CalculateSize() {
  752. int size = 0;
  753. if (NoFlyZoneType.Length != 0) {
  754. size += 1 + pb::CodedOutputStream.ComputeStringSize(NoFlyZoneType);
  755. }
  756. if (noFlyZoneCenterLocation_ != null) {
  757. size += 1 + pb::CodedOutputStream.ComputeMessageSize(NoFlyZoneCenterLocation);
  758. }
  759. if (NoFlyZoneRadius != 0D) {
  760. size += 1 + 8;
  761. }
  762. return size;
  763. }
  764. public void MergeFrom(pb::CodedInputStream input) {
  765. noFlyZoneType_ = "";
  766. if (noFlyZoneCenterLocation_ != null) MessagePool.Instance.Recycle(noFlyZoneCenterLocation_); noFlyZoneCenterLocation_ = null;
  767. uint tag;
  768. while ((tag = input.ReadTag()) != 0) {
  769. switch(tag) {
  770. default:
  771. input.SkipLastField();
  772. break;
  773. case 10: {
  774. NoFlyZoneType = input.ReadString();
  775. break;
  776. }
  777. case 18: {
  778. if (noFlyZoneCenterLocation_ == null) {
  779. noFlyZoneCenterLocation_ = new global::KYFramework.Network.Point();
  780. }
  781. input.ReadMessage(noFlyZoneCenterLocation_);
  782. break;
  783. }
  784. case 25: {
  785. NoFlyZoneRadius = input.ReadDouble();
  786. break;
  787. }
  788. }
  789. }
  790. }
  791. }
  792. /// <summary>
  793. /// 矩形禁飞区
  794. /// </summary>
  795. public partial class NoFlyZoneRect : pb::IMessage {
  796. private static readonly pb::MessageParser<NoFlyZoneRect> _parser = new pb::MessageParser<NoFlyZoneRect>(() => (NoFlyZoneRect)MessagePool.Instance.Fetch(typeof(NoFlyZoneRect)));
  797. public static pb::MessageParser<NoFlyZoneRect> Parser { get { return _parser; } }
  798. private string noFlyZoneType_ = "";
  799. public string NoFlyZoneType {
  800. get { return noFlyZoneType_; }
  801. set {
  802. noFlyZoneType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  803. }
  804. }
  805. private static readonly pb::FieldCodec<global::KYFramework.Network.Point> _repeated_noFlyZoneRectangleLocation_codec
  806. = pb::FieldCodec.ForMessage(18, global::KYFramework.Network.Point.Parser);
  807. private pbc::RepeatedField<global::KYFramework.Network.Point> noFlyZoneRectangleLocation_ = new pbc::RepeatedField<global::KYFramework.Network.Point>();
  808. public pbc::RepeatedField<global::KYFramework.Network.Point> NoFlyZoneRectangleLocation {
  809. get { return noFlyZoneRectangleLocation_; }
  810. set { noFlyZoneRectangleLocation_ = value; }
  811. }
  812. public void WriteTo(pb::CodedOutputStream output) {
  813. if (NoFlyZoneType.Length != 0) {
  814. output.WriteRawTag(10);
  815. output.WriteString(NoFlyZoneType);
  816. }
  817. noFlyZoneRectangleLocation_.WriteTo(output, _repeated_noFlyZoneRectangleLocation_codec);
  818. }
  819. public int CalculateSize() {
  820. int size = 0;
  821. if (NoFlyZoneType.Length != 0) {
  822. size += 1 + pb::CodedOutputStream.ComputeStringSize(NoFlyZoneType);
  823. }
  824. size += noFlyZoneRectangleLocation_.CalculateSize(_repeated_noFlyZoneRectangleLocation_codec);
  825. return size;
  826. }
  827. public void MergeFrom(pb::CodedInputStream input) {
  828. noFlyZoneType_ = "";
  829. for (int i = 0; i < noFlyZoneRectangleLocation_.Count; i++) { MessagePool.Instance.Recycle(noFlyZoneRectangleLocation_[i]); }
  830. noFlyZoneRectangleLocation_.Clear();
  831. uint tag;
  832. while ((tag = input.ReadTag()) != 0) {
  833. switch(tag) {
  834. default:
  835. input.SkipLastField();
  836. break;
  837. case 10: {
  838. NoFlyZoneType = input.ReadString();
  839. break;
  840. }
  841. case 18: {
  842. noFlyZoneRectangleLocation_.AddEntriesFrom(input, _repeated_noFlyZoneRectangleLocation_codec);
  843. break;
  844. }
  845. }
  846. }
  847. }
  848. }
  849. /// <summary>
  850. /// 爬升航段
  851. /// </summary>
  852. public partial class ClimbSegment : pb::IMessage {
  853. private static readonly pb::MessageParser<ClimbSegment> _parser = new pb::MessageParser<ClimbSegment>(() => (ClimbSegment)MessagePool.Instance.Fetch(typeof(ClimbSegment)));
  854. public static pb::MessageParser<ClimbSegment> Parser { get { return _parser; } }
  855. private double climbVelocity_;
  856. public double ClimbVelocity {
  857. get { return climbVelocity_; }
  858. set {
  859. climbVelocity_ = value;
  860. }
  861. }
  862. private double climbFuelConsumptionRate_;
  863. public double ClimbFuelConsumptionRate {
  864. get { return climbFuelConsumptionRate_; }
  865. set {
  866. climbFuelConsumptionRate_ = value;
  867. }
  868. }
  869. public void WriteTo(pb::CodedOutputStream output) {
  870. if (ClimbVelocity != 0D) {
  871. output.WriteRawTag(9);
  872. output.WriteDouble(ClimbVelocity);
  873. }
  874. if (ClimbFuelConsumptionRate != 0D) {
  875. output.WriteRawTag(17);
  876. output.WriteDouble(ClimbFuelConsumptionRate);
  877. }
  878. }
  879. public int CalculateSize() {
  880. int size = 0;
  881. if (ClimbVelocity != 0D) {
  882. size += 1 + 8;
  883. }
  884. if (ClimbFuelConsumptionRate != 0D) {
  885. size += 1 + 8;
  886. }
  887. return size;
  888. }
  889. public void MergeFrom(pb::CodedInputStream input) {
  890. uint tag;
  891. while ((tag = input.ReadTag()) != 0) {
  892. switch(tag) {
  893. default:
  894. input.SkipLastField();
  895. break;
  896. case 9: {
  897. ClimbVelocity = input.ReadDouble();
  898. break;
  899. }
  900. case 17: {
  901. ClimbFuelConsumptionRate = input.ReadDouble();
  902. break;
  903. }
  904. }
  905. }
  906. }
  907. }
  908. /// <summary>
  909. /// 下降航段
  910. /// </summary>
  911. public partial class DescentSegment : pb::IMessage {
  912. private static readonly pb::MessageParser<DescentSegment> _parser = new pb::MessageParser<DescentSegment>(() => (DescentSegment)MessagePool.Instance.Fetch(typeof(DescentSegment)));
  913. public static pb::MessageParser<DescentSegment> Parser { get { return _parser; } }
  914. private double descentVelocity_;
  915. public double DescentVelocity {
  916. get { return descentVelocity_; }
  917. set {
  918. descentVelocity_ = value;
  919. }
  920. }
  921. private double descentFuelConsumptionRate_;
  922. public double DescentFuelConsumptionRate {
  923. get { return descentFuelConsumptionRate_; }
  924. set {
  925. descentFuelConsumptionRate_ = value;
  926. }
  927. }
  928. public void WriteTo(pb::CodedOutputStream output) {
  929. if (DescentVelocity != 0D) {
  930. output.WriteRawTag(9);
  931. output.WriteDouble(DescentVelocity);
  932. }
  933. if (DescentFuelConsumptionRate != 0D) {
  934. output.WriteRawTag(17);
  935. output.WriteDouble(DescentFuelConsumptionRate);
  936. }
  937. }
  938. public int CalculateSize() {
  939. int size = 0;
  940. if (DescentVelocity != 0D) {
  941. size += 1 + 8;
  942. }
  943. if (DescentFuelConsumptionRate != 0D) {
  944. size += 1 + 8;
  945. }
  946. return size;
  947. }
  948. public void MergeFrom(pb::CodedInputStream input) {
  949. uint tag;
  950. while ((tag = input.ReadTag()) != 0) {
  951. switch(tag) {
  952. default:
  953. input.SkipLastField();
  954. break;
  955. case 9: {
  956. DescentVelocity = input.ReadDouble();
  957. break;
  958. }
  959. case 17: {
  960. DescentFuelConsumptionRate = input.ReadDouble();
  961. break;
  962. }
  963. }
  964. }
  965. }
  966. }
  967. /// <summary>
  968. /// 巡航航段
  969. /// </summary>
  970. public partial class CruiseSegment : pb::IMessage {
  971. private static readonly pb::MessageParser<CruiseSegment> _parser = new pb::MessageParser<CruiseSegment>(() => (CruiseSegment)MessagePool.Instance.Fetch(typeof(CruiseSegment)));
  972. public static pb::MessageParser<CruiseSegment> Parser { get { return _parser; } }
  973. private double cruiseAltitude_;
  974. public double CruiseAltitude {
  975. get { return cruiseAltitude_; }
  976. set {
  977. cruiseAltitude_ = value;
  978. }
  979. }
  980. private double cruiseVelocity_;
  981. public double CruiseVelocity {
  982. get { return cruiseVelocity_; }
  983. set {
  984. cruiseVelocity_ = value;
  985. }
  986. }
  987. private double cruiseFuelConsumptionRate_;
  988. public double CruiseFuelConsumptionRate {
  989. get { return cruiseFuelConsumptionRate_; }
  990. set {
  991. cruiseFuelConsumptionRate_ = value;
  992. }
  993. }
  994. public void WriteTo(pb::CodedOutputStream output) {
  995. if (CruiseAltitude != 0D) {
  996. output.WriteRawTag(9);
  997. output.WriteDouble(CruiseAltitude);
  998. }
  999. if (CruiseVelocity != 0D) {
  1000. output.WriteRawTag(17);
  1001. output.WriteDouble(CruiseVelocity);
  1002. }
  1003. if (CruiseFuelConsumptionRate != 0D) {
  1004. output.WriteRawTag(25);
  1005. output.WriteDouble(CruiseFuelConsumptionRate);
  1006. }
  1007. }
  1008. public int CalculateSize() {
  1009. int size = 0;
  1010. if (CruiseAltitude != 0D) {
  1011. size += 1 + 8;
  1012. }
  1013. if (CruiseVelocity != 0D) {
  1014. size += 1 + 8;
  1015. }
  1016. if (CruiseFuelConsumptionRate != 0D) {
  1017. size += 1 + 8;
  1018. }
  1019. return size;
  1020. }
  1021. public void MergeFrom(pb::CodedInputStream input) {
  1022. uint tag;
  1023. while ((tag = input.ReadTag()) != 0) {
  1024. switch(tag) {
  1025. default:
  1026. input.SkipLastField();
  1027. break;
  1028. case 9: {
  1029. CruiseAltitude = input.ReadDouble();
  1030. break;
  1031. }
  1032. case 17: {
  1033. CruiseVelocity = input.ReadDouble();
  1034. break;
  1035. }
  1036. case 25: {
  1037. CruiseFuelConsumptionRate = input.ReadDouble();
  1038. break;
  1039. }
  1040. }
  1041. }
  1042. }
  1043. }
  1044. /// <summary>
  1045. /// 转弯航段
  1046. /// </summary>
  1047. public partial class TurningSegment : pb::IMessage {
  1048. private static readonly pb::MessageParser<TurningSegment> _parser = new pb::MessageParser<TurningSegment>(() => (TurningSegment)MessagePool.Instance.Fetch(typeof(TurningSegment)));
  1049. public static pb::MessageParser<TurningSegment> Parser { get { return _parser; } }
  1050. private double turningRadius_;
  1051. public double TurningRadius {
  1052. get { return turningRadius_; }
  1053. set {
  1054. turningRadius_ = value;
  1055. }
  1056. }
  1057. private double turningVelocity_;
  1058. public double TurningVelocity {
  1059. get { return turningVelocity_; }
  1060. set {
  1061. turningVelocity_ = value;
  1062. }
  1063. }
  1064. private double climbFuelConsumptionRate_;
  1065. public double ClimbFuelConsumptionRate {
  1066. get { return climbFuelConsumptionRate_; }
  1067. set {
  1068. climbFuelConsumptionRate_ = value;
  1069. }
  1070. }
  1071. public void WriteTo(pb::CodedOutputStream output) {
  1072. if (TurningRadius != 0D) {
  1073. output.WriteRawTag(9);
  1074. output.WriteDouble(TurningRadius);
  1075. }
  1076. if (TurningVelocity != 0D) {
  1077. output.WriteRawTag(17);
  1078. output.WriteDouble(TurningVelocity);
  1079. }
  1080. if (ClimbFuelConsumptionRate != 0D) {
  1081. output.WriteRawTag(25);
  1082. output.WriteDouble(ClimbFuelConsumptionRate);
  1083. }
  1084. }
  1085. public int CalculateSize() {
  1086. int size = 0;
  1087. if (TurningRadius != 0D) {
  1088. size += 1 + 8;
  1089. }
  1090. if (TurningVelocity != 0D) {
  1091. size += 1 + 8;
  1092. }
  1093. if (ClimbFuelConsumptionRate != 0D) {
  1094. size += 1 + 8;
  1095. }
  1096. return size;
  1097. }
  1098. public void MergeFrom(pb::CodedInputStream input) {
  1099. uint tag;
  1100. while ((tag = input.ReadTag()) != 0) {
  1101. switch(tag) {
  1102. default:
  1103. input.SkipLastField();
  1104. break;
  1105. case 9: {
  1106. TurningRadius = input.ReadDouble();
  1107. break;
  1108. }
  1109. case 17: {
  1110. TurningVelocity = input.ReadDouble();
  1111. break;
  1112. }
  1113. case 25: {
  1114. ClimbFuelConsumptionRate = input.ReadDouble();
  1115. break;
  1116. }
  1117. }
  1118. }
  1119. }
  1120. }
  1121. /// <summary>
  1122. /// 飞行计划编辑器(输入)
  1123. /// </summary>
  1124. public partial class C2S_FlyPlanInput : pb::IMessage {
  1125. private static readonly pb::MessageParser<C2S_FlyPlanInput> _parser = new pb::MessageParser<C2S_FlyPlanInput>(() => (C2S_FlyPlanInput)MessagePool.Instance.Fetch(typeof(C2S_FlyPlanInput)));
  1126. public static pb::MessageParser<C2S_FlyPlanInput> Parser { get { return _parser; } }
  1127. private string missionName_ = "";
  1128. /// <summary>
  1129. /// 任务名称
  1130. /// </summary>
  1131. public string MissionName {
  1132. get { return missionName_; }
  1133. set {
  1134. missionName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1135. }
  1136. }
  1137. private string missionType_ = "";
  1138. /// <summary>
  1139. /// 任务类型
  1140. /// </summary>
  1141. public string MissionType {
  1142. get { return missionType_; }
  1143. set {
  1144. missionType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1145. }
  1146. }
  1147. private static readonly pb::FieldCodec<global::KYFramework.Network.Point> _repeated_missionRectangle_codec
  1148. = pb::FieldCodec.ForMessage(26, global::KYFramework.Network.Point.Parser);
  1149. private pbc::RepeatedField<global::KYFramework.Network.Point> missionRectangle_ = new pbc::RepeatedField<global::KYFramework.Network.Point>();
  1150. /// <summary>
  1151. /// 任务矩形区域顶点集合
  1152. /// </summary>
  1153. public pbc::RepeatedField<global::KYFramework.Network.Point> MissionRectangle {
  1154. get { return missionRectangle_; }
  1155. set { missionRectangle_ = value; }
  1156. }
  1157. private double maxTakeoffWeight_;
  1158. /// <summary>
  1159. /// 最大起飞重量
  1160. /// </summary>
  1161. public double MaxTakeoffWeight {
  1162. get { return maxTakeoffWeight_; }
  1163. set {
  1164. maxTakeoffWeight_ = value;
  1165. }
  1166. }
  1167. private double takeoffEmptyWeight_;
  1168. /// <summary>
  1169. /// 起飞空重
  1170. /// </summary>
  1171. public double TakeoffEmptyWeight {
  1172. get { return takeoffEmptyWeight_; }
  1173. set {
  1174. takeoffEmptyWeight_ = value;
  1175. }
  1176. }
  1177. private double maxFlightRange_;
  1178. /// <summary>
  1179. /// 最大航程
  1180. /// </summary>
  1181. public double MaxFlightRange {
  1182. get { return maxFlightRange_; }
  1183. set {
  1184. maxFlightRange_ = value;
  1185. }
  1186. }
  1187. private double maxFlightTime_;
  1188. /// <summary>
  1189. /// 续航时间
  1190. /// </summary>
  1191. public double MaxFlightTime {
  1192. get { return maxFlightTime_; }
  1193. set {
  1194. maxFlightTime_ = value;
  1195. }
  1196. }
  1197. private double serviceCeiling_;
  1198. /// <summary>
  1199. /// 实用升限
  1200. /// </summary>
  1201. public double ServiceCeiling {
  1202. get { return serviceCeiling_; }
  1203. set {
  1204. serviceCeiling_ = value;
  1205. }
  1206. }
  1207. private double maxFuelCapacity_;
  1208. /// <summary>
  1209. /// 最大载油量
  1210. /// </summary>
  1211. public double MaxFuelCapacity {
  1212. get { return maxFuelCapacity_; }
  1213. set {
  1214. maxFuelCapacity_ = value;
  1215. }
  1216. }
  1217. private double maxWeightCapacity_;
  1218. /// <summary>
  1219. /// 最大商载量
  1220. /// </summary>
  1221. public double MaxWeightCapacity {
  1222. get { return maxWeightCapacity_; }
  1223. set {
  1224. maxWeightCapacity_ = value;
  1225. }
  1226. }
  1227. private string loadName_ = "";
  1228. /// <summary>
  1229. /// 载荷名称
  1230. /// </summary>
  1231. public string LoadName {
  1232. get { return loadName_; }
  1233. set {
  1234. loadName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1235. }
  1236. }
  1237. private int loadQuantity_;
  1238. /// <summary>
  1239. /// 载荷数量
  1240. /// </summary>
  1241. public int LoadQuantity {
  1242. get { return loadQuantity_; }
  1243. set {
  1244. loadQuantity_ = value;
  1245. }
  1246. }
  1247. private double loadWeight_;
  1248. /// <summary>
  1249. /// 载荷重量
  1250. /// </summary>
  1251. public double LoadWeight {
  1252. get { return loadWeight_; }
  1253. set {
  1254. loadWeight_ = value;
  1255. }
  1256. }
  1257. private static readonly pb::FieldCodec<global::KYFramework.Network.CityWeather> _repeated_cityWeatherArr_codec
  1258. = pb::FieldCodec.ForMessage(114, global::KYFramework.Network.CityWeather.Parser);
  1259. private pbc::RepeatedField<global::KYFramework.Network.CityWeather> cityWeatherArr_ = new pbc::RepeatedField<global::KYFramework.Network.CityWeather>();
  1260. /// <summary>
  1261. /// 行政区气象集合
  1262. /// </summary>
  1263. public pbc::RepeatedField<global::KYFramework.Network.CityWeather> CityWeatherArr {
  1264. get { return cityWeatherArr_; }
  1265. set { cityWeatherArr_ = value; }
  1266. }
  1267. private static readonly pb::FieldCodec<global::KYFramework.Network.Base> _repeated_baseArr_codec
  1268. = pb::FieldCodec.ForMessage(122, global::KYFramework.Network.Base.Parser);
  1269. private pbc::RepeatedField<global::KYFramework.Network.Base> baseArr_ = new pbc::RepeatedField<global::KYFramework.Network.Base>();
  1270. /// <summary>
  1271. /// 基地集合
  1272. /// </summary>
  1273. public pbc::RepeatedField<global::KYFramework.Network.Base> BaseArr {
  1274. get { return baseArr_; }
  1275. set { baseArr_ = value; }
  1276. }
  1277. private static readonly pb::FieldCodec<global::KYFramework.Network.AirRoute> _repeated_airRouteArr_codec
  1278. = pb::FieldCodec.ForMessage(130, global::KYFramework.Network.AirRoute.Parser);
  1279. private pbc::RepeatedField<global::KYFramework.Network.AirRoute> airRouteArr_ = new pbc::RepeatedField<global::KYFramework.Network.AirRoute>();
  1280. /// <summary>
  1281. /// 航线集合
  1282. /// </summary>
  1283. public pbc::RepeatedField<global::KYFramework.Network.AirRoute> AirRouteArr {
  1284. get { return airRouteArr_; }
  1285. set { airRouteArr_ = value; }
  1286. }
  1287. private string endSelection_ = "";
  1288. /// <summary>
  1289. /// 任务终点选择:Base代表返回基地,Point代表前往定点,Hover代表原地盘旋等待
  1290. /// </summary>
  1291. public string EndSelection {
  1292. get { return endSelection_; }
  1293. set {
  1294. endSelection_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1295. }
  1296. }
  1297. private static readonly pb::FieldCodec<global::KYFramework.Network.Point> _repeated_terminusLocation_codec
  1298. = pb::FieldCodec.ForMessage(146, global::KYFramework.Network.Point.Parser);
  1299. private pbc::RepeatedField<global::KYFramework.Network.Point> terminusLocation_ = new pbc::RepeatedField<global::KYFramework.Network.Point>();
  1300. /// <summary>
  1301. /// 终点位置集合
  1302. /// </summary>
  1303. public pbc::RepeatedField<global::KYFramework.Network.Point> TerminusLocation {
  1304. get { return terminusLocation_; }
  1305. set { terminusLocation_ = value; }
  1306. }
  1307. private static readonly pb::FieldCodec<global::KYFramework.Network.NoFlyZoneCircle> _repeated_noFlyZoneCircleArr_codec
  1308. = pb::FieldCodec.ForMessage(154, global::KYFramework.Network.NoFlyZoneCircle.Parser);
  1309. private pbc::RepeatedField<global::KYFramework.Network.NoFlyZoneCircle> noFlyZoneCircleArr_ = new pbc::RepeatedField<global::KYFramework.Network.NoFlyZoneCircle>();
  1310. /// <summary>
  1311. /// 圆形禁飞区集合
  1312. /// </summary>
  1313. public pbc::RepeatedField<global::KYFramework.Network.NoFlyZoneCircle> NoFlyZoneCircleArr {
  1314. get { return noFlyZoneCircleArr_; }
  1315. set { noFlyZoneCircleArr_ = value; }
  1316. }
  1317. private static readonly pb::FieldCodec<global::KYFramework.Network.NoFlyZoneRect> _repeated_noFlyZoneRectArr_codec
  1318. = pb::FieldCodec.ForMessage(162, global::KYFramework.Network.NoFlyZoneRect.Parser);
  1319. private pbc::RepeatedField<global::KYFramework.Network.NoFlyZoneRect> noFlyZoneRectArr_ = new pbc::RepeatedField<global::KYFramework.Network.NoFlyZoneRect>();
  1320. /// <summary>
  1321. /// 矩形禁飞区集合
  1322. /// </summary>
  1323. public pbc::RepeatedField<global::KYFramework.Network.NoFlyZoneRect> NoFlyZoneRectArr {
  1324. get { return noFlyZoneRectArr_; }
  1325. set { noFlyZoneRectArr_ = value; }
  1326. }
  1327. private double visualDistance_;
  1328. /// <summary>
  1329. /// 目视距离
  1330. /// </summary>
  1331. public double VisualDistance {
  1332. get { return visualDistance_; }
  1333. set {
  1334. visualDistance_ = value;
  1335. }
  1336. }
  1337. private string detourDirection_ = "";
  1338. /// <summary>
  1339. /// 火场绕行方向:Clockwise表示顺时针,Anticlockwise表示逆时针
  1340. /// </summary>
  1341. public string DetourDirection {
  1342. get { return detourDirection_; }
  1343. set {
  1344. detourDirection_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1345. }
  1346. }
  1347. private int numberOfDetour_;
  1348. /// <summary>
  1349. /// 火场绕行圈数
  1350. /// </summary>
  1351. public int NumberOfDetour {
  1352. get { return numberOfDetour_; }
  1353. set {
  1354. numberOfDetour_ = value;
  1355. }
  1356. }
  1357. private double detourIntervalDistance_;
  1358. /// <summary>
  1359. /// 绕行间隔距离
  1360. /// </summary>
  1361. public double DetourIntervalDistance {
  1362. get { return detourIntervalDistance_; }
  1363. set {
  1364. detourIntervalDistance_ = value;
  1365. }
  1366. }
  1367. private double detourVelocity_;
  1368. /// <summary>
  1369. /// 绕行速度
  1370. /// </summary>
  1371. public double DetourVelocity {
  1372. get { return detourVelocity_; }
  1373. set {
  1374. detourVelocity_ = value;
  1375. }
  1376. }
  1377. private static readonly pb::FieldCodec<global::KYFramework.Network.Point> _repeated_firePointLocation_codec
  1378. = pb::FieldCodec.ForMessage(210, global::KYFramework.Network.Point.Parser);
  1379. private pbc::RepeatedField<global::KYFramework.Network.Point> firePointLocation_ = new pbc::RepeatedField<global::KYFramework.Network.Point>();
  1380. /// <summary>
  1381. /// 火点位置集合
  1382. /// </summary>
  1383. public pbc::RepeatedField<global::KYFramework.Network.Point> FirePointLocation {
  1384. get { return firePointLocation_; }
  1385. set { firePointLocation_ = value; }
  1386. }
  1387. private double minTurningRadius_;
  1388. /// <summary>
  1389. /// 最小转弯半径
  1390. /// </summary>
  1391. public double MinTurningRadius {
  1392. get { return minTurningRadius_; }
  1393. set {
  1394. minTurningRadius_ = value;
  1395. }
  1396. }
  1397. private double maxTurningVelocity_;
  1398. /// <summary>
  1399. /// 最大转弯速度
  1400. /// </summary>
  1401. public double MaxTurningVelocity {
  1402. get { return maxTurningVelocity_; }
  1403. set {
  1404. maxTurningVelocity_ = value;
  1405. }
  1406. }
  1407. private double maxClimbVelocity_;
  1408. /// <summary>
  1409. /// 最大爬升速度
  1410. /// </summary>
  1411. public double MaxClimbVelocity {
  1412. get { return maxClimbVelocity_; }
  1413. set {
  1414. maxClimbVelocity_ = value;
  1415. }
  1416. }
  1417. private double maxDescentVelocity_;
  1418. /// <summary>
  1419. /// 最大下降速度
  1420. /// </summary>
  1421. public double MaxDescentVelocity {
  1422. get { return maxDescentVelocity_; }
  1423. set {
  1424. maxDescentVelocity_ = value;
  1425. }
  1426. }
  1427. private double maxCruiseVelocity_;
  1428. /// <summary>
  1429. /// 最大巡航速度
  1430. /// </summary>
  1431. public double MaxCruiseVelocity {
  1432. get { return maxCruiseVelocity_; }
  1433. set {
  1434. maxCruiseVelocity_ = value;
  1435. }
  1436. }
  1437. private static readonly pb::FieldCodec<global::KYFramework.Network.ClimbSegment> _repeated_climbSegmentArr_codec
  1438. = pb::FieldCodec.ForMessage(258, global::KYFramework.Network.ClimbSegment.Parser);
  1439. private pbc::RepeatedField<global::KYFramework.Network.ClimbSegment> climbSegmentArr_ = new pbc::RepeatedField<global::KYFramework.Network.ClimbSegment>();
  1440. /// <summary>
  1441. /// 爬升航段集合
  1442. /// </summary>
  1443. public pbc::RepeatedField<global::KYFramework.Network.ClimbSegment> ClimbSegmentArr {
  1444. get { return climbSegmentArr_; }
  1445. set { climbSegmentArr_ = value; }
  1446. }
  1447. private static readonly pb::FieldCodec<global::KYFramework.Network.DescentSegment> _repeated_descentSegmentArr_codec
  1448. = pb::FieldCodec.ForMessage(266, global::KYFramework.Network.DescentSegment.Parser);
  1449. private pbc::RepeatedField<global::KYFramework.Network.DescentSegment> descentSegmentArr_ = new pbc::RepeatedField<global::KYFramework.Network.DescentSegment>();
  1450. /// <summary>
  1451. /// 下降航段集合
  1452. /// </summary>
  1453. public pbc::RepeatedField<global::KYFramework.Network.DescentSegment> DescentSegmentArr {
  1454. get { return descentSegmentArr_; }
  1455. set { descentSegmentArr_ = value; }
  1456. }
  1457. private static readonly pb::FieldCodec<global::KYFramework.Network.CruiseSegment> _repeated_cruiseSegmentArr_codec
  1458. = pb::FieldCodec.ForMessage(274, global::KYFramework.Network.CruiseSegment.Parser);
  1459. private pbc::RepeatedField<global::KYFramework.Network.CruiseSegment> cruiseSegmentArr_ = new pbc::RepeatedField<global::KYFramework.Network.CruiseSegment>();
  1460. /// <summary>
  1461. /// 巡航航段集合
  1462. /// </summary>
  1463. public pbc::RepeatedField<global::KYFramework.Network.CruiseSegment> CruiseSegmentArr {
  1464. get { return cruiseSegmentArr_; }
  1465. set { cruiseSegmentArr_ = value; }
  1466. }
  1467. private static readonly pb::FieldCodec<global::KYFramework.Network.TurningSegment> _repeated_turningSegmentArr_codec
  1468. = pb::FieldCodec.ForMessage(282, global::KYFramework.Network.TurningSegment.Parser);
  1469. private pbc::RepeatedField<global::KYFramework.Network.TurningSegment> turningSegmentArr_ = new pbc::RepeatedField<global::KYFramework.Network.TurningSegment>();
  1470. /// <summary>
  1471. /// 转弯航段集合
  1472. /// </summary>
  1473. public pbc::RepeatedField<global::KYFramework.Network.TurningSegment> TurningSegmentArr {
  1474. get { return turningSegmentArr_; }
  1475. set { turningSegmentArr_ = value; }
  1476. }
  1477. private string aircraftID_ = "";
  1478. /// <summary>
  1479. /// 飞行器编号:按照“子任务-编队号-机号”方式命名”
  1480. /// </summary>
  1481. public string AircraftID {
  1482. get { return aircraftID_; }
  1483. set {
  1484. aircraftID_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1485. }
  1486. }
  1487. public void WriteTo(pb::CodedOutputStream output) {
  1488. if (MissionName.Length != 0) {
  1489. output.WriteRawTag(10);
  1490. output.WriteString(MissionName);
  1491. }
  1492. if (MissionType.Length != 0) {
  1493. output.WriteRawTag(18);
  1494. output.WriteString(MissionType);
  1495. }
  1496. missionRectangle_.WriteTo(output, _repeated_missionRectangle_codec);
  1497. if (MaxTakeoffWeight != 0D) {
  1498. output.WriteRawTag(33);
  1499. output.WriteDouble(MaxTakeoffWeight);
  1500. }
  1501. if (TakeoffEmptyWeight != 0D) {
  1502. output.WriteRawTag(41);
  1503. output.WriteDouble(TakeoffEmptyWeight);
  1504. }
  1505. if (MaxFlightRange != 0D) {
  1506. output.WriteRawTag(49);
  1507. output.WriteDouble(MaxFlightRange);
  1508. }
  1509. if (MaxFlightTime != 0D) {
  1510. output.WriteRawTag(57);
  1511. output.WriteDouble(MaxFlightTime);
  1512. }
  1513. if (ServiceCeiling != 0D) {
  1514. output.WriteRawTag(65);
  1515. output.WriteDouble(ServiceCeiling);
  1516. }
  1517. if (MaxFuelCapacity != 0D) {
  1518. output.WriteRawTag(73);
  1519. output.WriteDouble(MaxFuelCapacity);
  1520. }
  1521. if (MaxWeightCapacity != 0D) {
  1522. output.WriteRawTag(81);
  1523. output.WriteDouble(MaxWeightCapacity);
  1524. }
  1525. if (LoadName.Length != 0) {
  1526. output.WriteRawTag(90);
  1527. output.WriteString(LoadName);
  1528. }
  1529. if (LoadQuantity != 0) {
  1530. output.WriteRawTag(96);
  1531. output.WriteInt32(LoadQuantity);
  1532. }
  1533. if (LoadWeight != 0D) {
  1534. output.WriteRawTag(105);
  1535. output.WriteDouble(LoadWeight);
  1536. }
  1537. cityWeatherArr_.WriteTo(output, _repeated_cityWeatherArr_codec);
  1538. baseArr_.WriteTo(output, _repeated_baseArr_codec);
  1539. airRouteArr_.WriteTo(output, _repeated_airRouteArr_codec);
  1540. if (EndSelection.Length != 0) {
  1541. output.WriteRawTag(138, 1);
  1542. output.WriteString(EndSelection);
  1543. }
  1544. terminusLocation_.WriteTo(output, _repeated_terminusLocation_codec);
  1545. noFlyZoneCircleArr_.WriteTo(output, _repeated_noFlyZoneCircleArr_codec);
  1546. noFlyZoneRectArr_.WriteTo(output, _repeated_noFlyZoneRectArr_codec);
  1547. if (VisualDistance != 0D) {
  1548. output.WriteRawTag(169, 1);
  1549. output.WriteDouble(VisualDistance);
  1550. }
  1551. if (DetourDirection.Length != 0) {
  1552. output.WriteRawTag(178, 1);
  1553. output.WriteString(DetourDirection);
  1554. }
  1555. if (NumberOfDetour != 0) {
  1556. output.WriteRawTag(184, 1);
  1557. output.WriteInt32(NumberOfDetour);
  1558. }
  1559. if (DetourIntervalDistance != 0D) {
  1560. output.WriteRawTag(193, 1);
  1561. output.WriteDouble(DetourIntervalDistance);
  1562. }
  1563. if (DetourVelocity != 0D) {
  1564. output.WriteRawTag(201, 1);
  1565. output.WriteDouble(DetourVelocity);
  1566. }
  1567. firePointLocation_.WriteTo(output, _repeated_firePointLocation_codec);
  1568. if (MinTurningRadius != 0D) {
  1569. output.WriteRawTag(217, 1);
  1570. output.WriteDouble(MinTurningRadius);
  1571. }
  1572. if (MaxTurningVelocity != 0D) {
  1573. output.WriteRawTag(225, 1);
  1574. output.WriteDouble(MaxTurningVelocity);
  1575. }
  1576. if (MaxClimbVelocity != 0D) {
  1577. output.WriteRawTag(233, 1);
  1578. output.WriteDouble(MaxClimbVelocity);
  1579. }
  1580. if (MaxDescentVelocity != 0D) {
  1581. output.WriteRawTag(241, 1);
  1582. output.WriteDouble(MaxDescentVelocity);
  1583. }
  1584. if (MaxCruiseVelocity != 0D) {
  1585. output.WriteRawTag(249, 1);
  1586. output.WriteDouble(MaxCruiseVelocity);
  1587. }
  1588. climbSegmentArr_.WriteTo(output, _repeated_climbSegmentArr_codec);
  1589. descentSegmentArr_.WriteTo(output, _repeated_descentSegmentArr_codec);
  1590. cruiseSegmentArr_.WriteTo(output, _repeated_cruiseSegmentArr_codec);
  1591. turningSegmentArr_.WriteTo(output, _repeated_turningSegmentArr_codec);
  1592. if (AircraftID.Length != 0) {
  1593. output.WriteRawTag(162, 2);
  1594. output.WriteString(AircraftID);
  1595. }
  1596. }
  1597. public int CalculateSize() {
  1598. int size = 0;
  1599. if (MissionName.Length != 0) {
  1600. size += 1 + pb::CodedOutputStream.ComputeStringSize(MissionName);
  1601. }
  1602. if (MissionType.Length != 0) {
  1603. size += 1 + pb::CodedOutputStream.ComputeStringSize(MissionType);
  1604. }
  1605. size += missionRectangle_.CalculateSize(_repeated_missionRectangle_codec);
  1606. if (MaxTakeoffWeight != 0D) {
  1607. size += 1 + 8;
  1608. }
  1609. if (TakeoffEmptyWeight != 0D) {
  1610. size += 1 + 8;
  1611. }
  1612. if (MaxFlightRange != 0D) {
  1613. size += 1 + 8;
  1614. }
  1615. if (MaxFlightTime != 0D) {
  1616. size += 1 + 8;
  1617. }
  1618. if (ServiceCeiling != 0D) {
  1619. size += 1 + 8;
  1620. }
  1621. if (MaxFuelCapacity != 0D) {
  1622. size += 1 + 8;
  1623. }
  1624. if (MaxWeightCapacity != 0D) {
  1625. size += 1 + 8;
  1626. }
  1627. if (LoadName.Length != 0) {
  1628. size += 1 + pb::CodedOutputStream.ComputeStringSize(LoadName);
  1629. }
  1630. if (LoadQuantity != 0) {
  1631. size += 1 + pb::CodedOutputStream.ComputeInt32Size(LoadQuantity);
  1632. }
  1633. if (LoadWeight != 0D) {
  1634. size += 1 + 8;
  1635. }
  1636. size += cityWeatherArr_.CalculateSize(_repeated_cityWeatherArr_codec);
  1637. size += baseArr_.CalculateSize(_repeated_baseArr_codec);
  1638. size += airRouteArr_.CalculateSize(_repeated_airRouteArr_codec);
  1639. if (EndSelection.Length != 0) {
  1640. size += 2 + pb::CodedOutputStream.ComputeStringSize(EndSelection);
  1641. }
  1642. size += terminusLocation_.CalculateSize(_repeated_terminusLocation_codec);
  1643. size += noFlyZoneCircleArr_.CalculateSize(_repeated_noFlyZoneCircleArr_codec);
  1644. size += noFlyZoneRectArr_.CalculateSize(_repeated_noFlyZoneRectArr_codec);
  1645. if (VisualDistance != 0D) {
  1646. size += 2 + 8;
  1647. }
  1648. if (DetourDirection.Length != 0) {
  1649. size += 2 + pb::CodedOutputStream.ComputeStringSize(DetourDirection);
  1650. }
  1651. if (NumberOfDetour != 0) {
  1652. size += 2 + pb::CodedOutputStream.ComputeInt32Size(NumberOfDetour);
  1653. }
  1654. if (DetourIntervalDistance != 0D) {
  1655. size += 2 + 8;
  1656. }
  1657. if (DetourVelocity != 0D) {
  1658. size += 2 + 8;
  1659. }
  1660. size += firePointLocation_.CalculateSize(_repeated_firePointLocation_codec);
  1661. if (MinTurningRadius != 0D) {
  1662. size += 2 + 8;
  1663. }
  1664. if (MaxTurningVelocity != 0D) {
  1665. size += 2 + 8;
  1666. }
  1667. if (MaxClimbVelocity != 0D) {
  1668. size += 2 + 8;
  1669. }
  1670. if (MaxDescentVelocity != 0D) {
  1671. size += 2 + 8;
  1672. }
  1673. if (MaxCruiseVelocity != 0D) {
  1674. size += 2 + 8;
  1675. }
  1676. size += climbSegmentArr_.CalculateSize(_repeated_climbSegmentArr_codec);
  1677. size += descentSegmentArr_.CalculateSize(_repeated_descentSegmentArr_codec);
  1678. size += cruiseSegmentArr_.CalculateSize(_repeated_cruiseSegmentArr_codec);
  1679. size += turningSegmentArr_.CalculateSize(_repeated_turningSegmentArr_codec);
  1680. if (AircraftID.Length != 0) {
  1681. size += 2 + pb::CodedOutputStream.ComputeStringSize(AircraftID);
  1682. }
  1683. return size;
  1684. }
  1685. public void MergeFrom(pb::CodedInputStream input) {
  1686. missionName_ = "";
  1687. missionType_ = "";
  1688. for (int i = 0; i < missionRectangle_.Count; i++) { MessagePool.Instance.Recycle(missionRectangle_[i]); }
  1689. missionRectangle_.Clear();
  1690. loadName_ = "";
  1691. loadQuantity_ = 0;
  1692. for (int i = 0; i < cityWeatherArr_.Count; i++) { MessagePool.Instance.Recycle(cityWeatherArr_[i]); }
  1693. cityWeatherArr_.Clear();
  1694. for (int i = 0; i < baseArr_.Count; i++) { MessagePool.Instance.Recycle(baseArr_[i]); }
  1695. baseArr_.Clear();
  1696. for (int i = 0; i < airRouteArr_.Count; i++) { MessagePool.Instance.Recycle(airRouteArr_[i]); }
  1697. airRouteArr_.Clear();
  1698. endSelection_ = "";
  1699. for (int i = 0; i < terminusLocation_.Count; i++) { MessagePool.Instance.Recycle(terminusLocation_[i]); }
  1700. terminusLocation_.Clear();
  1701. for (int i = 0; i < noFlyZoneCircleArr_.Count; i++) { MessagePool.Instance.Recycle(noFlyZoneCircleArr_[i]); }
  1702. noFlyZoneCircleArr_.Clear();
  1703. for (int i = 0; i < noFlyZoneRectArr_.Count; i++) { MessagePool.Instance.Recycle(noFlyZoneRectArr_[i]); }
  1704. noFlyZoneRectArr_.Clear();
  1705. detourDirection_ = "";
  1706. numberOfDetour_ = 0;
  1707. for (int i = 0; i < firePointLocation_.Count; i++) { MessagePool.Instance.Recycle(firePointLocation_[i]); }
  1708. firePointLocation_.Clear();
  1709. for (int i = 0; i < climbSegmentArr_.Count; i++) { MessagePool.Instance.Recycle(climbSegmentArr_[i]); }
  1710. climbSegmentArr_.Clear();
  1711. for (int i = 0; i < descentSegmentArr_.Count; i++) { MessagePool.Instance.Recycle(descentSegmentArr_[i]); }
  1712. descentSegmentArr_.Clear();
  1713. for (int i = 0; i < cruiseSegmentArr_.Count; i++) { MessagePool.Instance.Recycle(cruiseSegmentArr_[i]); }
  1714. cruiseSegmentArr_.Clear();
  1715. for (int i = 0; i < turningSegmentArr_.Count; i++) { MessagePool.Instance.Recycle(turningSegmentArr_[i]); }
  1716. turningSegmentArr_.Clear();
  1717. aircraftID_ = "";
  1718. uint tag;
  1719. while ((tag = input.ReadTag()) != 0) {
  1720. switch(tag) {
  1721. default:
  1722. input.SkipLastField();
  1723. break;
  1724. case 10: {
  1725. MissionName = input.ReadString();
  1726. break;
  1727. }
  1728. case 18: {
  1729. MissionType = input.ReadString();
  1730. break;
  1731. }
  1732. case 26: {
  1733. missionRectangle_.AddEntriesFrom(input, _repeated_missionRectangle_codec);
  1734. break;
  1735. }
  1736. case 33: {
  1737. MaxTakeoffWeight = input.ReadDouble();
  1738. break;
  1739. }
  1740. case 41: {
  1741. TakeoffEmptyWeight = input.ReadDouble();
  1742. break;
  1743. }
  1744. case 49: {
  1745. MaxFlightRange = input.ReadDouble();
  1746. break;
  1747. }
  1748. case 57: {
  1749. MaxFlightTime = input.ReadDouble();
  1750. break;
  1751. }
  1752. case 65: {
  1753. ServiceCeiling = input.ReadDouble();
  1754. break;
  1755. }
  1756. case 73: {
  1757. MaxFuelCapacity = input.ReadDouble();
  1758. break;
  1759. }
  1760. case 81: {
  1761. MaxWeightCapacity = input.ReadDouble();
  1762. break;
  1763. }
  1764. case 90: {
  1765. LoadName = input.ReadString();
  1766. break;
  1767. }
  1768. case 96: {
  1769. LoadQuantity = input.ReadInt32();
  1770. break;
  1771. }
  1772. case 105: {
  1773. LoadWeight = input.ReadDouble();
  1774. break;
  1775. }
  1776. case 114: {
  1777. cityWeatherArr_.AddEntriesFrom(input, _repeated_cityWeatherArr_codec);
  1778. break;
  1779. }
  1780. case 122: {
  1781. baseArr_.AddEntriesFrom(input, _repeated_baseArr_codec);
  1782. break;
  1783. }
  1784. case 130: {
  1785. airRouteArr_.AddEntriesFrom(input, _repeated_airRouteArr_codec);
  1786. break;
  1787. }
  1788. case 138: {
  1789. EndSelection = input.ReadString();
  1790. break;
  1791. }
  1792. case 146: {
  1793. terminusLocation_.AddEntriesFrom(input, _repeated_terminusLocation_codec);
  1794. break;
  1795. }
  1796. case 154: {
  1797. noFlyZoneCircleArr_.AddEntriesFrom(input, _repeated_noFlyZoneCircleArr_codec);
  1798. break;
  1799. }
  1800. case 162: {
  1801. noFlyZoneRectArr_.AddEntriesFrom(input, _repeated_noFlyZoneRectArr_codec);
  1802. break;
  1803. }
  1804. case 169: {
  1805. VisualDistance = input.ReadDouble();
  1806. break;
  1807. }
  1808. case 178: {
  1809. DetourDirection = input.ReadString();
  1810. break;
  1811. }
  1812. case 184: {
  1813. NumberOfDetour = input.ReadInt32();
  1814. break;
  1815. }
  1816. case 193: {
  1817. DetourIntervalDistance = input.ReadDouble();
  1818. break;
  1819. }
  1820. case 201: {
  1821. DetourVelocity = input.ReadDouble();
  1822. break;
  1823. }
  1824. case 210: {
  1825. firePointLocation_.AddEntriesFrom(input, _repeated_firePointLocation_codec);
  1826. break;
  1827. }
  1828. case 217: {
  1829. MinTurningRadius = input.ReadDouble();
  1830. break;
  1831. }
  1832. case 225: {
  1833. MaxTurningVelocity = input.ReadDouble();
  1834. break;
  1835. }
  1836. case 233: {
  1837. MaxClimbVelocity = input.ReadDouble();
  1838. break;
  1839. }
  1840. case 241: {
  1841. MaxDescentVelocity = input.ReadDouble();
  1842. break;
  1843. }
  1844. case 249: {
  1845. MaxCruiseVelocity = input.ReadDouble();
  1846. break;
  1847. }
  1848. case 258: {
  1849. climbSegmentArr_.AddEntriesFrom(input, _repeated_climbSegmentArr_codec);
  1850. break;
  1851. }
  1852. case 266: {
  1853. descentSegmentArr_.AddEntriesFrom(input, _repeated_descentSegmentArr_codec);
  1854. break;
  1855. }
  1856. case 274: {
  1857. cruiseSegmentArr_.AddEntriesFrom(input, _repeated_cruiseSegmentArr_codec);
  1858. break;
  1859. }
  1860. case 282: {
  1861. turningSegmentArr_.AddEntriesFrom(input, _repeated_turningSegmentArr_codec);
  1862. break;
  1863. }
  1864. case 290: {
  1865. AircraftID = input.ReadString();
  1866. break;
  1867. }
  1868. }
  1869. }
  1870. }
  1871. }
  1872. /// <summary>
  1873. /// 飞行计划编辑器(输出)
  1874. /// </summary>
  1875. public partial class S2C_FlyPlanOutput : pb::IMessage {
  1876. private static readonly pb::MessageParser<S2C_FlyPlanOutput> _parser = new pb::MessageParser<S2C_FlyPlanOutput>(() => (S2C_FlyPlanOutput)MessagePool.Instance.Fetch(typeof(S2C_FlyPlanOutput)));
  1877. public static pb::MessageParser<S2C_FlyPlanOutput> Parser { get { return _parser; } }
  1878. private string aircraftID_ = "";
  1879. /// <summary>
  1880. /// 飞行器编号
  1881. /// </summary>
  1882. public string AircraftID {
  1883. get { return aircraftID_; }
  1884. set {
  1885. aircraftID_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1886. }
  1887. }
  1888. private static readonly pb::FieldCodec<global::KYFramework.Network.PlanTurningPoint> _repeated_planTurningPointArr_codec
  1889. = pb::FieldCodec.ForMessage(18, global::KYFramework.Network.PlanTurningPoint.Parser);
  1890. private pbc::RepeatedField<global::KYFramework.Network.PlanTurningPoint> planTurningPointArr_ = new pbc::RepeatedField<global::KYFramework.Network.PlanTurningPoint>();
  1891. /// <summary>
  1892. /// 飞行航路点集合
  1893. /// </summary>
  1894. public pbc::RepeatedField<global::KYFramework.Network.PlanTurningPoint> PlanTurningPointArr {
  1895. get { return planTurningPointArr_; }
  1896. set { planTurningPointArr_ = value; }
  1897. }
  1898. public void WriteTo(pb::CodedOutputStream output) {
  1899. if (AircraftID.Length != 0) {
  1900. output.WriteRawTag(10);
  1901. output.WriteString(AircraftID);
  1902. }
  1903. planTurningPointArr_.WriteTo(output, _repeated_planTurningPointArr_codec);
  1904. }
  1905. public int CalculateSize() {
  1906. int size = 0;
  1907. if (AircraftID.Length != 0) {
  1908. size += 1 + pb::CodedOutputStream.ComputeStringSize(AircraftID);
  1909. }
  1910. size += planTurningPointArr_.CalculateSize(_repeated_planTurningPointArr_codec);
  1911. return size;
  1912. }
  1913. public void MergeFrom(pb::CodedInputStream input) {
  1914. aircraftID_ = "";
  1915. for (int i = 0; i < planTurningPointArr_.Count; i++) { MessagePool.Instance.Recycle(planTurningPointArr_[i]); }
  1916. planTurningPointArr_.Clear();
  1917. uint tag;
  1918. while ((tag = input.ReadTag()) != 0) {
  1919. switch(tag) {
  1920. default:
  1921. input.SkipLastField();
  1922. break;
  1923. case 10: {
  1924. AircraftID = input.ReadString();
  1925. break;
  1926. }
  1927. case 18: {
  1928. planTurningPointArr_.AddEntriesFrom(input, _repeated_planTurningPointArr_codec);
  1929. break;
  1930. }
  1931. }
  1932. }
  1933. }
  1934. }
  1935. /// <summary>
  1936. /// 计划航路点
  1937. /// </summary>
  1938. public partial class PlanTurningPoint : pb::IMessage {
  1939. private static readonly pb::MessageParser<PlanTurningPoint> _parser = new pb::MessageParser<PlanTurningPoint>(() => (PlanTurningPoint)MessagePool.Instance.Fetch(typeof(PlanTurningPoint)));
  1940. public static pb::MessageParser<PlanTurningPoint> Parser { get { return _parser; } }
  1941. private string name_ = "";
  1942. /// <summary>
  1943. /// 名称:爬升、巡航、转弯、下降、观测火场
  1944. /// </summary>
  1945. public string Name {
  1946. get { return name_; }
  1947. set {
  1948. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1949. }
  1950. }
  1951. private global::KYFramework.Network.Point location_;
  1952. /// <summary>
  1953. /// 位置
  1954. /// </summary>
  1955. public global::KYFramework.Network.Point Location {
  1956. get { return location_; }
  1957. set {
  1958. location_ = value;
  1959. }
  1960. }
  1961. private string type_ = "";
  1962. /// <summary>
  1963. /// 类型:普通、转弯、取水任务、灭火任务
  1964. /// </summary>
  1965. public string Type {
  1966. get { return type_; }
  1967. set {
  1968. type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1969. }
  1970. }
  1971. private double velocity_;
  1972. /// <summary>
  1973. /// 速度
  1974. /// </summary>
  1975. public double Velocity {
  1976. get { return velocity_; }
  1977. set {
  1978. velocity_ = value;
  1979. }
  1980. }
  1981. private double segmentConsumption_;
  1982. /// <summary>
  1983. /// 航段油耗
  1984. /// </summary>
  1985. public double SegmentConsumption {
  1986. get { return segmentConsumption_; }
  1987. set {
  1988. segmentConsumption_ = value;
  1989. }
  1990. }
  1991. private double segmentTime_;
  1992. /// <summary>
  1993. /// 航段飞行时间
  1994. /// </summary>
  1995. public double SegmentTime {
  1996. get { return segmentTime_; }
  1997. set {
  1998. segmentTime_ = value;
  1999. }
  2000. }
  2001. private double radius_;
  2002. /// <summary>
  2003. /// 转弯半径
  2004. /// </summary>
  2005. public double Radius {
  2006. get { return radius_; }
  2007. set {
  2008. radius_ = value;
  2009. }
  2010. }
  2011. public void WriteTo(pb::CodedOutputStream output) {
  2012. if (Name.Length != 0) {
  2013. output.WriteRawTag(10);
  2014. output.WriteString(Name);
  2015. }
  2016. if (location_ != null) {
  2017. output.WriteRawTag(18);
  2018. output.WriteMessage(Location);
  2019. }
  2020. if (Type.Length != 0) {
  2021. output.WriteRawTag(26);
  2022. output.WriteString(Type);
  2023. }
  2024. if (Velocity != 0D) {
  2025. output.WriteRawTag(33);
  2026. output.WriteDouble(Velocity);
  2027. }
  2028. if (SegmentConsumption != 0D) {
  2029. output.WriteRawTag(41);
  2030. output.WriteDouble(SegmentConsumption);
  2031. }
  2032. if (SegmentTime != 0D) {
  2033. output.WriteRawTag(49);
  2034. output.WriteDouble(SegmentTime);
  2035. }
  2036. if (Radius != 0D) {
  2037. output.WriteRawTag(57);
  2038. output.WriteDouble(Radius);
  2039. }
  2040. }
  2041. public int CalculateSize() {
  2042. int size = 0;
  2043. if (Name.Length != 0) {
  2044. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2045. }
  2046. if (location_ != null) {
  2047. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location);
  2048. }
  2049. if (Type.Length != 0) {
  2050. size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
  2051. }
  2052. if (Velocity != 0D) {
  2053. size += 1 + 8;
  2054. }
  2055. if (SegmentConsumption != 0D) {
  2056. size += 1 + 8;
  2057. }
  2058. if (SegmentTime != 0D) {
  2059. size += 1 + 8;
  2060. }
  2061. if (Radius != 0D) {
  2062. size += 1 + 8;
  2063. }
  2064. return size;
  2065. }
  2066. public void MergeFrom(pb::CodedInputStream input) {
  2067. name_ = "";
  2068. if (location_ != null) MessagePool.Instance.Recycle(location_); location_ = null;
  2069. type_ = "";
  2070. uint tag;
  2071. while ((tag = input.ReadTag()) != 0) {
  2072. switch(tag) {
  2073. default:
  2074. input.SkipLastField();
  2075. break;
  2076. case 10: {
  2077. Name = input.ReadString();
  2078. break;
  2079. }
  2080. case 18: {
  2081. if (location_ == null) {
  2082. location_ = new global::KYFramework.Network.Point();
  2083. }
  2084. input.ReadMessage(location_);
  2085. break;
  2086. }
  2087. case 26: {
  2088. Type = input.ReadString();
  2089. break;
  2090. }
  2091. case 33: {
  2092. Velocity = input.ReadDouble();
  2093. break;
  2094. }
  2095. case 41: {
  2096. SegmentConsumption = input.ReadDouble();
  2097. break;
  2098. }
  2099. case 49: {
  2100. SegmentTime = input.ReadDouble();
  2101. break;
  2102. }
  2103. case 57: {
  2104. Radius = input.ReadDouble();
  2105. break;
  2106. }
  2107. }
  2108. }
  2109. }
  2110. }
  2111. /// <summary>
  2112. /// 航路曲线(输出)
  2113. /// </summary>
  2114. public partial class S2C_TurningPointOutput : pb::IMessage {
  2115. private static readonly pb::MessageParser<S2C_TurningPointOutput> _parser = new pb::MessageParser<S2C_TurningPointOutput>(() => (S2C_TurningPointOutput)MessagePool.Instance.Fetch(typeof(S2C_TurningPointOutput)));
  2116. public static pb::MessageParser<S2C_TurningPointOutput> Parser { get { return _parser; } }
  2117. private string aircraftID_ = "";
  2118. /// <summary>
  2119. /// 飞行器编号
  2120. /// </summary>
  2121. public string AircraftID {
  2122. get { return aircraftID_; }
  2123. set {
  2124. aircraftID_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2125. }
  2126. }
  2127. private string turningPointName_ = "";
  2128. /// <summary>
  2129. /// 飞行航路点名称
  2130. /// </summary>
  2131. public string TurningPointName {
  2132. get { return turningPointName_; }
  2133. set {
  2134. turningPointName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2135. }
  2136. }
  2137. private static readonly pb::FieldCodec<global::KYFramework.Network.Point> _repeated_turningPointLocation_codec
  2138. = pb::FieldCodec.ForMessage(26, global::KYFramework.Network.Point.Parser);
  2139. private pbc::RepeatedField<global::KYFramework.Network.Point> turningPointLocation_ = new pbc::RepeatedField<global::KYFramework.Network.Point>();
  2140. /// <summary>
  2141. /// 飞行航路点位置列表
  2142. /// </summary>
  2143. public pbc::RepeatedField<global::KYFramework.Network.Point> TurningPointLocation {
  2144. get { return turningPointLocation_; }
  2145. set { turningPointLocation_ = value; }
  2146. }
  2147. private string presentMission_ = "";
  2148. /// <summary>
  2149. /// 当前任务阶段
  2150. /// </summary>
  2151. public string PresentMission {
  2152. get { return presentMission_; }
  2153. set {
  2154. presentMission_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2155. }
  2156. }
  2157. private string presentTarget_ = "";
  2158. /// <summary>
  2159. /// 当前飞行目标点
  2160. /// </summary>
  2161. public string PresentTarget {
  2162. get { return presentTarget_; }
  2163. set {
  2164. presentTarget_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2165. }
  2166. }
  2167. private string startDate_ = "";
  2168. /// <summary>
  2169. /// 航路开始日期
  2170. /// </summary>
  2171. public string StartDate {
  2172. get { return startDate_; }
  2173. set {
  2174. startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2175. }
  2176. }
  2177. private string startTime_ = "";
  2178. /// <summary>
  2179. /// 航路开始时间
  2180. /// </summary>
  2181. public string StartTime {
  2182. get { return startTime_; }
  2183. set {
  2184. startTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2185. }
  2186. }
  2187. private string endDate_ = "";
  2188. /// <summary>
  2189. /// 航路结束日期
  2190. /// </summary>
  2191. public string EndDate {
  2192. get { return endDate_; }
  2193. set {
  2194. endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2195. }
  2196. }
  2197. private string endTime_ = "";
  2198. /// <summary>
  2199. /// 航路结束时间
  2200. /// </summary>
  2201. public string EndTime {
  2202. get { return endTime_; }
  2203. set {
  2204. endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2205. }
  2206. }
  2207. private double elapsedTime_;
  2208. /// <summary>
  2209. /// 已飞行时间
  2210. /// </summary>
  2211. public double ElapsedTime {
  2212. get { return elapsedTime_; }
  2213. set {
  2214. elapsedTime_ = value;
  2215. }
  2216. }
  2217. private string presentDate_ = "";
  2218. /// <summary>
  2219. /// 当前日期
  2220. /// </summary>
  2221. public string PresentDate {
  2222. get { return presentDate_; }
  2223. set {
  2224. presentDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2225. }
  2226. }
  2227. private string presentTime_ = "";
  2228. /// <summary>
  2229. /// 当前时刻
  2230. /// </summary>
  2231. public string PresentTime {
  2232. get { return presentTime_; }
  2233. set {
  2234. presentTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2235. }
  2236. }
  2237. private global::KYFramework.Network.Point presentLocation_;
  2238. /// <summary>
  2239. /// 当前位置
  2240. /// </summary>
  2241. public global::KYFramework.Network.Point PresentLocation {
  2242. get { return presentLocation_; }
  2243. set {
  2244. presentLocation_ = value;
  2245. }
  2246. }
  2247. private double presentFuelConsumption_;
  2248. /// <summary>
  2249. /// 当前已消耗油量
  2250. /// </summary>
  2251. public double PresentFuelConsumption {
  2252. get { return presentFuelConsumption_; }
  2253. set {
  2254. presentFuelConsumption_ = value;
  2255. }
  2256. }
  2257. private double presentRemainingFuel_;
  2258. /// <summary>
  2259. /// 当前剩余油量
  2260. /// </summary>
  2261. public double PresentRemainingFuel {
  2262. get { return presentRemainingFuel_; }
  2263. set {
  2264. presentRemainingFuel_ = value;
  2265. }
  2266. }
  2267. private double presentVelocity_;
  2268. /// <summary>
  2269. /// 当前飞行速度
  2270. /// </summary>
  2271. public double PresentVelocity {
  2272. get { return presentVelocity_; }
  2273. set {
  2274. presentVelocity_ = value;
  2275. }
  2276. }
  2277. public void WriteTo(pb::CodedOutputStream output) {
  2278. if (AircraftID.Length != 0) {
  2279. output.WriteRawTag(10);
  2280. output.WriteString(AircraftID);
  2281. }
  2282. if (TurningPointName.Length != 0) {
  2283. output.WriteRawTag(18);
  2284. output.WriteString(TurningPointName);
  2285. }
  2286. turningPointLocation_.WriteTo(output, _repeated_turningPointLocation_codec);
  2287. if (PresentMission.Length != 0) {
  2288. output.WriteRawTag(34);
  2289. output.WriteString(PresentMission);
  2290. }
  2291. if (PresentTarget.Length != 0) {
  2292. output.WriteRawTag(42);
  2293. output.WriteString(PresentTarget);
  2294. }
  2295. if (StartDate.Length != 0) {
  2296. output.WriteRawTag(50);
  2297. output.WriteString(StartDate);
  2298. }
  2299. if (StartTime.Length != 0) {
  2300. output.WriteRawTag(58);
  2301. output.WriteString(StartTime);
  2302. }
  2303. if (EndDate.Length != 0) {
  2304. output.WriteRawTag(66);
  2305. output.WriteString(EndDate);
  2306. }
  2307. if (EndTime.Length != 0) {
  2308. output.WriteRawTag(74);
  2309. output.WriteString(EndTime);
  2310. }
  2311. if (ElapsedTime != 0D) {
  2312. output.WriteRawTag(81);
  2313. output.WriteDouble(ElapsedTime);
  2314. }
  2315. if (PresentDate.Length != 0) {
  2316. output.WriteRawTag(90);
  2317. output.WriteString(PresentDate);
  2318. }
  2319. if (PresentTime.Length != 0) {
  2320. output.WriteRawTag(98);
  2321. output.WriteString(PresentTime);
  2322. }
  2323. if (presentLocation_ != null) {
  2324. output.WriteRawTag(106);
  2325. output.WriteMessage(PresentLocation);
  2326. }
  2327. if (PresentFuelConsumption != 0D) {
  2328. output.WriteRawTag(113);
  2329. output.WriteDouble(PresentFuelConsumption);
  2330. }
  2331. if (PresentRemainingFuel != 0D) {
  2332. output.WriteRawTag(121);
  2333. output.WriteDouble(PresentRemainingFuel);
  2334. }
  2335. if (PresentVelocity != 0D) {
  2336. output.WriteRawTag(129, 1);
  2337. output.WriteDouble(PresentVelocity);
  2338. }
  2339. }
  2340. public int CalculateSize() {
  2341. int size = 0;
  2342. if (AircraftID.Length != 0) {
  2343. size += 1 + pb::CodedOutputStream.ComputeStringSize(AircraftID);
  2344. }
  2345. if (TurningPointName.Length != 0) {
  2346. size += 1 + pb::CodedOutputStream.ComputeStringSize(TurningPointName);
  2347. }
  2348. size += turningPointLocation_.CalculateSize(_repeated_turningPointLocation_codec);
  2349. if (PresentMission.Length != 0) {
  2350. size += 1 + pb::CodedOutputStream.ComputeStringSize(PresentMission);
  2351. }
  2352. if (PresentTarget.Length != 0) {
  2353. size += 1 + pb::CodedOutputStream.ComputeStringSize(PresentTarget);
  2354. }
  2355. if (StartDate.Length != 0) {
  2356. size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate);
  2357. }
  2358. if (StartTime.Length != 0) {
  2359. size += 1 + pb::CodedOutputStream.ComputeStringSize(StartTime);
  2360. }
  2361. if (EndDate.Length != 0) {
  2362. size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate);
  2363. }
  2364. if (EndTime.Length != 0) {
  2365. size += 1 + pb::CodedOutputStream.ComputeStringSize(EndTime);
  2366. }
  2367. if (ElapsedTime != 0D) {
  2368. size += 1 + 8;
  2369. }
  2370. if (PresentDate.Length != 0) {
  2371. size += 1 + pb::CodedOutputStream.ComputeStringSize(PresentDate);
  2372. }
  2373. if (PresentTime.Length != 0) {
  2374. size += 1 + pb::CodedOutputStream.ComputeStringSize(PresentTime);
  2375. }
  2376. if (presentLocation_ != null) {
  2377. size += 1 + pb::CodedOutputStream.ComputeMessageSize(PresentLocation);
  2378. }
  2379. if (PresentFuelConsumption != 0D) {
  2380. size += 1 + 8;
  2381. }
  2382. if (PresentRemainingFuel != 0D) {
  2383. size += 1 + 8;
  2384. }
  2385. if (PresentVelocity != 0D) {
  2386. size += 2 + 8;
  2387. }
  2388. return size;
  2389. }
  2390. public void MergeFrom(pb::CodedInputStream input) {
  2391. aircraftID_ = "";
  2392. turningPointName_ = "";
  2393. for (int i = 0; i < turningPointLocation_.Count; i++) { MessagePool.Instance.Recycle(turningPointLocation_[i]); }
  2394. turningPointLocation_.Clear();
  2395. presentMission_ = "";
  2396. presentTarget_ = "";
  2397. startDate_ = "";
  2398. startTime_ = "";
  2399. endDate_ = "";
  2400. endTime_ = "";
  2401. presentDate_ = "";
  2402. presentTime_ = "";
  2403. if (presentLocation_ != null) MessagePool.Instance.Recycle(presentLocation_); presentLocation_ = null;
  2404. uint tag;
  2405. while ((tag = input.ReadTag()) != 0) {
  2406. switch(tag) {
  2407. default:
  2408. input.SkipLastField();
  2409. break;
  2410. case 10: {
  2411. AircraftID = input.ReadString();
  2412. break;
  2413. }
  2414. case 18: {
  2415. TurningPointName = input.ReadString();
  2416. break;
  2417. }
  2418. case 26: {
  2419. turningPointLocation_.AddEntriesFrom(input, _repeated_turningPointLocation_codec);
  2420. break;
  2421. }
  2422. case 34: {
  2423. PresentMission = input.ReadString();
  2424. break;
  2425. }
  2426. case 42: {
  2427. PresentTarget = input.ReadString();
  2428. break;
  2429. }
  2430. case 50: {
  2431. StartDate = input.ReadString();
  2432. break;
  2433. }
  2434. case 58: {
  2435. StartTime = input.ReadString();
  2436. break;
  2437. }
  2438. case 66: {
  2439. EndDate = input.ReadString();
  2440. break;
  2441. }
  2442. case 74: {
  2443. EndTime = input.ReadString();
  2444. break;
  2445. }
  2446. case 81: {
  2447. ElapsedTime = input.ReadDouble();
  2448. break;
  2449. }
  2450. case 90: {
  2451. PresentDate = input.ReadString();
  2452. break;
  2453. }
  2454. case 98: {
  2455. PresentTime = input.ReadString();
  2456. break;
  2457. }
  2458. case 106: {
  2459. if (presentLocation_ == null) {
  2460. presentLocation_ = new global::KYFramework.Network.Point();
  2461. }
  2462. input.ReadMessage(presentLocation_);
  2463. break;
  2464. }
  2465. case 113: {
  2466. PresentFuelConsumption = input.ReadDouble();
  2467. break;
  2468. }
  2469. case 121: {
  2470. PresentRemainingFuel = input.ReadDouble();
  2471. break;
  2472. }
  2473. case 129: {
  2474. PresentVelocity = input.ReadDouble();
  2475. break;
  2476. }
  2477. }
  2478. }
  2479. }
  2480. }
  2481. /// <summary>
  2482. /// 仿真开始
  2483. /// </summary>
  2484. public partial class C2S_StmulationStart : pb::IMessage {
  2485. private static readonly pb::MessageParser<C2S_StmulationStart> _parser = new pb::MessageParser<C2S_StmulationStart>(() => (C2S_StmulationStart)MessagePool.Instance.Fetch(typeof(C2S_StmulationStart)));
  2486. public static pb::MessageParser<C2S_StmulationStart> Parser { get { return _parser; } }
  2487. public void WriteTo(pb::CodedOutputStream output) {
  2488. }
  2489. public int CalculateSize() {
  2490. int size = 0;
  2491. return size;
  2492. }
  2493. public void MergeFrom(pb::CodedInputStream input) {
  2494. uint tag;
  2495. while ((tag = input.ReadTag()) != 0) {
  2496. switch(tag) {
  2497. default:
  2498. input.SkipLastField();
  2499. break;
  2500. }
  2501. }
  2502. }
  2503. }
  2504. /// <summary>
  2505. /// 仿真结束
  2506. /// </summary>
  2507. public partial class S2C_StmulationEnd : pb::IMessage {
  2508. private static readonly pb::MessageParser<S2C_StmulationEnd> _parser = new pb::MessageParser<S2C_StmulationEnd>(() => (S2C_StmulationEnd)MessagePool.Instance.Fetch(typeof(S2C_StmulationEnd)));
  2509. public static pb::MessageParser<S2C_StmulationEnd> Parser { get { return _parser; } }
  2510. public void WriteTo(pb::CodedOutputStream output) {
  2511. }
  2512. public int CalculateSize() {
  2513. int size = 0;
  2514. return size;
  2515. }
  2516. public void MergeFrom(pb::CodedInputStream input) {
  2517. uint tag;
  2518. while ((tag = input.ReadTag()) != 0) {
  2519. switch(tag) {
  2520. default:
  2521. input.SkipLastField();
  2522. break;
  2523. }
  2524. }
  2525. }
  2526. }
  2527. /// <summary>
  2528. /// 请求 效能评估
  2529. /// </summary>
  2530. public partial class C2S_SimulationResult : pb::IMessage {
  2531. private static readonly pb::MessageParser<C2S_SimulationResult> _parser = new pb::MessageParser<C2S_SimulationResult>(() => (C2S_SimulationResult)MessagePool.Instance.Fetch(typeof(C2S_SimulationResult)));
  2532. public static pb::MessageParser<C2S_SimulationResult> Parser { get { return _parser; } }
  2533. private int rpcId_;
  2534. public int RpcId {
  2535. get { return rpcId_; }
  2536. set {
  2537. rpcId_ = value;
  2538. }
  2539. }
  2540. public void WriteTo(pb::CodedOutputStream output) {
  2541. if (RpcId != 0) {
  2542. output.WriteRawTag(208, 5);
  2543. output.WriteInt32(RpcId);
  2544. }
  2545. }
  2546. public int CalculateSize() {
  2547. int size = 0;
  2548. if (RpcId != 0) {
  2549. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  2550. }
  2551. return size;
  2552. }
  2553. public void MergeFrom(pb::CodedInputStream input) {
  2554. rpcId_ = 0;
  2555. uint tag;
  2556. while ((tag = input.ReadTag()) != 0) {
  2557. switch(tag) {
  2558. default:
  2559. input.SkipLastField();
  2560. break;
  2561. case 720: {
  2562. RpcId = input.ReadInt32();
  2563. break;
  2564. }
  2565. }
  2566. }
  2567. }
  2568. }
  2569. /// <summary>
  2570. /// 返回 效能评估
  2571. /// </summary>
  2572. public partial class S2C_SimulatinResult : pb::IMessage {
  2573. private static readonly pb::MessageParser<S2C_SimulatinResult> _parser = new pb::MessageParser<S2C_SimulatinResult>(() => (S2C_SimulatinResult)MessagePool.Instance.Fetch(typeof(S2C_SimulatinResult)));
  2574. public static pb::MessageParser<S2C_SimulatinResult> Parser { get { return _parser; } }
  2575. private int rpcId_;
  2576. public int RpcId {
  2577. get { return rpcId_; }
  2578. set {
  2579. rpcId_ = value;
  2580. }
  2581. }
  2582. private int error_;
  2583. public int Error {
  2584. get { return error_; }
  2585. set {
  2586. error_ = value;
  2587. }
  2588. }
  2589. private string message_ = "";
  2590. public string Message {
  2591. get { return message_; }
  2592. set {
  2593. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2594. }
  2595. }
  2596. private double taskResponseTime_;
  2597. /// <summary>
  2598. /// 任务响应时间(秒)
  2599. /// </summary>
  2600. public double TaskResponseTime {
  2601. get { return taskResponseTime_; }
  2602. set {
  2603. taskResponseTime_ = value;
  2604. }
  2605. }
  2606. private double taskTotalTime_;
  2607. /// <summary>
  2608. /// 总任务耗时(秒)
  2609. /// </summary>
  2610. public double TaskTotalTime {
  2611. get { return taskTotalTime_; }
  2612. set {
  2613. taskTotalTime_ = value;
  2614. }
  2615. }
  2616. private double singleJoinTime_;
  2617. /// <summary>
  2618. /// 单机入场时间(秒)
  2619. /// </summary>
  2620. public double SingleJoinTime {
  2621. get { return singleJoinTime_; }
  2622. set {
  2623. singleJoinTime_ = value;
  2624. }
  2625. }
  2626. private double singleEffectiveTaskTime_;
  2627. /// <summary>
  2628. /// 单机有效任务时长(秒)
  2629. /// </summary>
  2630. public double SingleEffectiveTaskTime {
  2631. get { return singleEffectiveTaskTime_; }
  2632. set {
  2633. singleEffectiveTaskTime_ = value;
  2634. }
  2635. }
  2636. private double singleAllPeopeo_;
  2637. /// <summary>
  2638. /// 单机总投送人数(人)
  2639. /// </summary>
  2640. public double SingleAllPeopeo {
  2641. get { return singleAllPeopeo_; }
  2642. set {
  2643. singleAllPeopeo_ = value;
  2644. }
  2645. }
  2646. private double singleEachPeople_;
  2647. /// <summary>
  2648. /// 单机单次投送人数(人)
  2649. /// </summary>
  2650. public double SingleEachPeople {
  2651. get { return singleEachPeople_; }
  2652. set {
  2653. singleEachPeople_ = value;
  2654. }
  2655. }
  2656. private double speedPatrol_;
  2657. /// <summary>
  2658. /// 巡护速度(km/h)
  2659. /// </summary>
  2660. public double SpeedPatrol {
  2661. get { return speedPatrol_; }
  2662. set {
  2663. speedPatrol_ = value;
  2664. }
  2665. }
  2666. private double voyagePatrol_;
  2667. /// <summary>
  2668. /// 巡护航程 (km)
  2669. /// </summary>
  2670. public double VoyagePatrol {
  2671. get { return voyagePatrol_; }
  2672. set {
  2673. voyagePatrol_ = value;
  2674. }
  2675. }
  2676. private double timeAllPatrol_;
  2677. /// <summary>
  2678. /// 总巡护耗时 (秒)
  2679. /// </summary>
  2680. public double TimeAllPatrol {
  2681. get { return timeAllPatrol_; }
  2682. set {
  2683. timeAllPatrol_ = value;
  2684. }
  2685. }
  2686. private double fireJoinTime_;
  2687. /// <summary>
  2688. /// 火情入场时间 (秒)
  2689. /// </summary>
  2690. public double FireJoinTime {
  2691. get { return fireJoinTime_; }
  2692. set {
  2693. fireJoinTime_ = value;
  2694. }
  2695. }
  2696. private double fuelSingle_;
  2697. /// <summary>
  2698. /// 单机总油耗 (kg)
  2699. /// </summary>
  2700. public double FuelSingle {
  2701. get { return fuelSingle_; }
  2702. set {
  2703. fuelSingle_ = value;
  2704. }
  2705. }
  2706. private string airportUseSituation_ = "";
  2707. /// <summary>
  2708. /// 单机机场使用情况
  2709. /// </summary>
  2710. public string AirportUseSituation {
  2711. get { return airportUseSituation_; }
  2712. set {
  2713. airportUseSituation_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2714. }
  2715. }
  2716. private string navUseSituation_ = "";
  2717. /// <summary>
  2718. /// 单机导航使用情况
  2719. /// </summary>
  2720. public string NavUseSituation {
  2721. get { return navUseSituation_; }
  2722. set {
  2723. navUseSituation_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2724. }
  2725. }
  2726. private double fireJoinTimeEconomical_;
  2727. /// <summary>
  2728. /// 单机总任务时长(秒)
  2729. /// </summary>
  2730. public double FireJoinTimeEconomical {
  2731. get { return fireJoinTimeEconomical_; }
  2732. set {
  2733. fireJoinTimeEconomical_ = value;
  2734. }
  2735. }
  2736. private double fuelSingleEconomical_;
  2737. /// <summary>
  2738. /// 单机总油耗(kg)
  2739. /// </summary>
  2740. public double FuelSingleEconomical {
  2741. get { return fuelSingleEconomical_; }
  2742. set {
  2743. fuelSingleEconomical_ = value;
  2744. }
  2745. }
  2746. private string airportUseSituationEconomical_ = "";
  2747. /// <summary>
  2748. /// 单机机场使用情况
  2749. /// </summary>
  2750. public string AirportUseSituationEconomical {
  2751. get { return airportUseSituationEconomical_; }
  2752. set {
  2753. airportUseSituationEconomical_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2754. }
  2755. }
  2756. private string navUseSituationEconomical_ = "";
  2757. /// <summary>
  2758. /// 单机导航使用情况
  2759. /// </summary>
  2760. public string NavUseSituationEconomical {
  2761. get { return navUseSituationEconomical_; }
  2762. set {
  2763. navUseSituationEconomical_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2764. }
  2765. }
  2766. public void WriteTo(pb::CodedOutputStream output) {
  2767. if (RpcId != 0) {
  2768. output.WriteRawTag(8);
  2769. output.WriteInt32(RpcId);
  2770. }
  2771. if (Error != 0) {
  2772. output.WriteRawTag(16);
  2773. output.WriteInt32(Error);
  2774. }
  2775. if (Message.Length != 0) {
  2776. output.WriteRawTag(26);
  2777. output.WriteString(Message);
  2778. }
  2779. if (TaskResponseTime != 0D) {
  2780. output.WriteRawTag(33);
  2781. output.WriteDouble(TaskResponseTime);
  2782. }
  2783. if (TaskTotalTime != 0D) {
  2784. output.WriteRawTag(41);
  2785. output.WriteDouble(TaskTotalTime);
  2786. }
  2787. if (SingleJoinTime != 0D) {
  2788. output.WriteRawTag(49);
  2789. output.WriteDouble(SingleJoinTime);
  2790. }
  2791. if (SingleEffectiveTaskTime != 0D) {
  2792. output.WriteRawTag(57);
  2793. output.WriteDouble(SingleEffectiveTaskTime);
  2794. }
  2795. if (SingleAllPeopeo != 0D) {
  2796. output.WriteRawTag(65);
  2797. output.WriteDouble(SingleAllPeopeo);
  2798. }
  2799. if (SingleEachPeople != 0D) {
  2800. output.WriteRawTag(73);
  2801. output.WriteDouble(SingleEachPeople);
  2802. }
  2803. if (SpeedPatrol != 0D) {
  2804. output.WriteRawTag(81);
  2805. output.WriteDouble(SpeedPatrol);
  2806. }
  2807. if (VoyagePatrol != 0D) {
  2808. output.WriteRawTag(89);
  2809. output.WriteDouble(VoyagePatrol);
  2810. }
  2811. if (TimeAllPatrol != 0D) {
  2812. output.WriteRawTag(97);
  2813. output.WriteDouble(TimeAllPatrol);
  2814. }
  2815. if (FireJoinTime != 0D) {
  2816. output.WriteRawTag(105);
  2817. output.WriteDouble(FireJoinTime);
  2818. }
  2819. if (FuelSingle != 0D) {
  2820. output.WriteRawTag(113);
  2821. output.WriteDouble(FuelSingle);
  2822. }
  2823. if (AirportUseSituation.Length != 0) {
  2824. output.WriteRawTag(122);
  2825. output.WriteString(AirportUseSituation);
  2826. }
  2827. if (NavUseSituation.Length != 0) {
  2828. output.WriteRawTag(130, 1);
  2829. output.WriteString(NavUseSituation);
  2830. }
  2831. if (FireJoinTimeEconomical != 0D) {
  2832. output.WriteRawTag(137, 1);
  2833. output.WriteDouble(FireJoinTimeEconomical);
  2834. }
  2835. if (FuelSingleEconomical != 0D) {
  2836. output.WriteRawTag(145, 1);
  2837. output.WriteDouble(FuelSingleEconomical);
  2838. }
  2839. if (AirportUseSituationEconomical.Length != 0) {
  2840. output.WriteRawTag(154, 1);
  2841. output.WriteString(AirportUseSituationEconomical);
  2842. }
  2843. if (NavUseSituationEconomical.Length != 0) {
  2844. output.WriteRawTag(162, 1);
  2845. output.WriteString(NavUseSituationEconomical);
  2846. }
  2847. }
  2848. public int CalculateSize() {
  2849. int size = 0;
  2850. if (RpcId != 0) {
  2851. size += 1 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  2852. }
  2853. if (Error != 0) {
  2854. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Error);
  2855. }
  2856. if (Message.Length != 0) {
  2857. size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
  2858. }
  2859. if (TaskResponseTime != 0D) {
  2860. size += 1 + 8;
  2861. }
  2862. if (TaskTotalTime != 0D) {
  2863. size += 1 + 8;
  2864. }
  2865. if (SingleJoinTime != 0D) {
  2866. size += 1 + 8;
  2867. }
  2868. if (SingleEffectiveTaskTime != 0D) {
  2869. size += 1 + 8;
  2870. }
  2871. if (SingleAllPeopeo != 0D) {
  2872. size += 1 + 8;
  2873. }
  2874. if (SingleEachPeople != 0D) {
  2875. size += 1 + 8;
  2876. }
  2877. if (SpeedPatrol != 0D) {
  2878. size += 1 + 8;
  2879. }
  2880. if (VoyagePatrol != 0D) {
  2881. size += 1 + 8;
  2882. }
  2883. if (TimeAllPatrol != 0D) {
  2884. size += 1 + 8;
  2885. }
  2886. if (FireJoinTime != 0D) {
  2887. size += 1 + 8;
  2888. }
  2889. if (FuelSingle != 0D) {
  2890. size += 1 + 8;
  2891. }
  2892. if (AirportUseSituation.Length != 0) {
  2893. size += 1 + pb::CodedOutputStream.ComputeStringSize(AirportUseSituation);
  2894. }
  2895. if (NavUseSituation.Length != 0) {
  2896. size += 2 + pb::CodedOutputStream.ComputeStringSize(NavUseSituation);
  2897. }
  2898. if (FireJoinTimeEconomical != 0D) {
  2899. size += 2 + 8;
  2900. }
  2901. if (FuelSingleEconomical != 0D) {
  2902. size += 2 + 8;
  2903. }
  2904. if (AirportUseSituationEconomical.Length != 0) {
  2905. size += 2 + pb::CodedOutputStream.ComputeStringSize(AirportUseSituationEconomical);
  2906. }
  2907. if (NavUseSituationEconomical.Length != 0) {
  2908. size += 2 + pb::CodedOutputStream.ComputeStringSize(NavUseSituationEconomical);
  2909. }
  2910. return size;
  2911. }
  2912. public void MergeFrom(pb::CodedInputStream input) {
  2913. rpcId_ = 0;
  2914. error_ = 0;
  2915. message_ = "";
  2916. airportUseSituation_ = "";
  2917. navUseSituation_ = "";
  2918. airportUseSituationEconomical_ = "";
  2919. navUseSituationEconomical_ = "";
  2920. uint tag;
  2921. while ((tag = input.ReadTag()) != 0) {
  2922. switch(tag) {
  2923. default:
  2924. input.SkipLastField();
  2925. break;
  2926. case 8: {
  2927. RpcId = input.ReadInt32();
  2928. break;
  2929. }
  2930. case 16: {
  2931. Error = input.ReadInt32();
  2932. break;
  2933. }
  2934. case 26: {
  2935. Message = input.ReadString();
  2936. break;
  2937. }
  2938. case 33: {
  2939. TaskResponseTime = input.ReadDouble();
  2940. break;
  2941. }
  2942. case 41: {
  2943. TaskTotalTime = input.ReadDouble();
  2944. break;
  2945. }
  2946. case 49: {
  2947. SingleJoinTime = input.ReadDouble();
  2948. break;
  2949. }
  2950. case 57: {
  2951. SingleEffectiveTaskTime = input.ReadDouble();
  2952. break;
  2953. }
  2954. case 65: {
  2955. SingleAllPeopeo = input.ReadDouble();
  2956. break;
  2957. }
  2958. case 73: {
  2959. SingleEachPeople = input.ReadDouble();
  2960. break;
  2961. }
  2962. case 81: {
  2963. SpeedPatrol = input.ReadDouble();
  2964. break;
  2965. }
  2966. case 89: {
  2967. VoyagePatrol = input.ReadDouble();
  2968. break;
  2969. }
  2970. case 97: {
  2971. TimeAllPatrol = input.ReadDouble();
  2972. break;
  2973. }
  2974. case 105: {
  2975. FireJoinTime = input.ReadDouble();
  2976. break;
  2977. }
  2978. case 113: {
  2979. FuelSingle = input.ReadDouble();
  2980. break;
  2981. }
  2982. case 122: {
  2983. AirportUseSituation = input.ReadString();
  2984. break;
  2985. }
  2986. case 130: {
  2987. NavUseSituation = input.ReadString();
  2988. break;
  2989. }
  2990. case 137: {
  2991. FireJoinTimeEconomical = input.ReadDouble();
  2992. break;
  2993. }
  2994. case 145: {
  2995. FuelSingleEconomical = input.ReadDouble();
  2996. break;
  2997. }
  2998. case 154: {
  2999. AirportUseSituationEconomical = input.ReadString();
  3000. break;
  3001. }
  3002. case 162: {
  3003. NavUseSituationEconomical = input.ReadString();
  3004. break;
  3005. }
  3006. }
  3007. }
  3008. }
  3009. }
  3010. /// <summary>
  3011. /// 火焰蔓延输出
  3012. /// </summary>
  3013. public partial class S2C_FireSpread : pb::IMessage {
  3014. private static readonly pb::MessageParser<S2C_FireSpread> _parser = new pb::MessageParser<S2C_FireSpread>(() => (S2C_FireSpread)MessagePool.Instance.Fetch(typeof(S2C_FireSpread)));
  3015. public static pb::MessageParser<S2C_FireSpread> Parser { get { return _parser; } }
  3016. private static readonly pb::FieldCodec<global::KYFramework.Network.FireSpread> _repeated_fireSpread_codec
  3017. = pb::FieldCodec.ForMessage(10, global::KYFramework.Network.FireSpread.Parser);
  3018. private pbc::RepeatedField<global::KYFramework.Network.FireSpread> fireSpread_ = new pbc::RepeatedField<global::KYFramework.Network.FireSpread>();
  3019. public pbc::RepeatedField<global::KYFramework.Network.FireSpread> FireSpread {
  3020. get { return fireSpread_; }
  3021. set { fireSpread_ = value; }
  3022. }
  3023. public void WriteTo(pb::CodedOutputStream output) {
  3024. fireSpread_.WriteTo(output, _repeated_fireSpread_codec);
  3025. }
  3026. public int CalculateSize() {
  3027. int size = 0;
  3028. size += fireSpread_.CalculateSize(_repeated_fireSpread_codec);
  3029. return size;
  3030. }
  3031. public void MergeFrom(pb::CodedInputStream input) {
  3032. for (int i = 0; i < fireSpread_.Count; i++) { MessagePool.Instance.Recycle(fireSpread_[i]); }
  3033. fireSpread_.Clear();
  3034. uint tag;
  3035. while ((tag = input.ReadTag()) != 0) {
  3036. switch(tag) {
  3037. default:
  3038. input.SkipLastField();
  3039. break;
  3040. case 10: {
  3041. fireSpread_.AddEntriesFrom(input, _repeated_fireSpread_codec);
  3042. break;
  3043. }
  3044. }
  3045. }
  3046. }
  3047. }
  3048. public partial class FireSpread : pb::IMessage {
  3049. private static readonly pb::MessageParser<FireSpread> _parser = new pb::MessageParser<FireSpread>(() => (FireSpread)MessagePool.Instance.Fetch(typeof(FireSpread)));
  3050. public static pb::MessageParser<FireSpread> Parser { get { return _parser; } }
  3051. private double longitude_;
  3052. public double Longitude {
  3053. get { return longitude_; }
  3054. set {
  3055. longitude_ = value;
  3056. }
  3057. }
  3058. private double latitude_;
  3059. public double Latitude {
  3060. get { return latitude_; }
  3061. set {
  3062. latitude_ = value;
  3063. }
  3064. }
  3065. private double spreadSpeed_;
  3066. public double SpreadSpeed {
  3067. get { return spreadSpeed_; }
  3068. set {
  3069. spreadSpeed_ = value;
  3070. }
  3071. }
  3072. private double elevation_;
  3073. public double Elevation {
  3074. get { return elevation_; }
  3075. set {
  3076. elevation_ = value;
  3077. }
  3078. }
  3079. private double fireIntensity_;
  3080. public double FireIntensity {
  3081. get { return fireIntensity_; }
  3082. set {
  3083. fireIntensity_ = value;
  3084. }
  3085. }
  3086. private string taskId_ = "";
  3087. public string TaskId {
  3088. get { return taskId_; }
  3089. set {
  3090. taskId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3091. }
  3092. }
  3093. private double fireHeight_;
  3094. public double FireHeight {
  3095. get { return fireHeight_; }
  3096. set {
  3097. fireHeight_ = value;
  3098. }
  3099. }
  3100. private int row_;
  3101. public int Row {
  3102. get { return row_; }
  3103. set {
  3104. row_ = value;
  3105. }
  3106. }
  3107. private int col_;
  3108. public int Col {
  3109. get { return col_; }
  3110. set {
  3111. col_ = value;
  3112. }
  3113. }
  3114. public void WriteTo(pb::CodedOutputStream output) {
  3115. if (Longitude != 0D) {
  3116. output.WriteRawTag(9);
  3117. output.WriteDouble(Longitude);
  3118. }
  3119. if (Latitude != 0D) {
  3120. output.WriteRawTag(17);
  3121. output.WriteDouble(Latitude);
  3122. }
  3123. if (SpreadSpeed != 0D) {
  3124. output.WriteRawTag(25);
  3125. output.WriteDouble(SpreadSpeed);
  3126. }
  3127. if (Elevation != 0D) {
  3128. output.WriteRawTag(33);
  3129. output.WriteDouble(Elevation);
  3130. }
  3131. if (FireIntensity != 0D) {
  3132. output.WriteRawTag(41);
  3133. output.WriteDouble(FireIntensity);
  3134. }
  3135. if (TaskId.Length != 0) {
  3136. output.WriteRawTag(50);
  3137. output.WriteString(TaskId);
  3138. }
  3139. if (FireHeight != 0D) {
  3140. output.WriteRawTag(57);
  3141. output.WriteDouble(FireHeight);
  3142. }
  3143. if (Row != 0) {
  3144. output.WriteRawTag(64);
  3145. output.WriteInt32(Row);
  3146. }
  3147. if (Col != 0) {
  3148. output.WriteRawTag(72);
  3149. output.WriteInt32(Col);
  3150. }
  3151. }
  3152. public int CalculateSize() {
  3153. int size = 0;
  3154. if (Longitude != 0D) {
  3155. size += 1 + 8;
  3156. }
  3157. if (Latitude != 0D) {
  3158. size += 1 + 8;
  3159. }
  3160. if (SpreadSpeed != 0D) {
  3161. size += 1 + 8;
  3162. }
  3163. if (Elevation != 0D) {
  3164. size += 1 + 8;
  3165. }
  3166. if (FireIntensity != 0D) {
  3167. size += 1 + 8;
  3168. }
  3169. if (TaskId.Length != 0) {
  3170. size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskId);
  3171. }
  3172. if (FireHeight != 0D) {
  3173. size += 1 + 8;
  3174. }
  3175. if (Row != 0) {
  3176. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Row);
  3177. }
  3178. if (Col != 0) {
  3179. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Col);
  3180. }
  3181. return size;
  3182. }
  3183. public void MergeFrom(pb::CodedInputStream input) {
  3184. taskId_ = "";
  3185. row_ = 0;
  3186. col_ = 0;
  3187. uint tag;
  3188. while ((tag = input.ReadTag()) != 0) {
  3189. switch(tag) {
  3190. default:
  3191. input.SkipLastField();
  3192. break;
  3193. case 9: {
  3194. Longitude = input.ReadDouble();
  3195. break;
  3196. }
  3197. case 17: {
  3198. Latitude = input.ReadDouble();
  3199. break;
  3200. }
  3201. case 25: {
  3202. SpreadSpeed = input.ReadDouble();
  3203. break;
  3204. }
  3205. case 33: {
  3206. Elevation = input.ReadDouble();
  3207. break;
  3208. }
  3209. case 41: {
  3210. FireIntensity = input.ReadDouble();
  3211. break;
  3212. }
  3213. case 50: {
  3214. TaskId = input.ReadString();
  3215. break;
  3216. }
  3217. case 57: {
  3218. FireHeight = input.ReadDouble();
  3219. break;
  3220. }
  3221. case 64: {
  3222. Row = input.ReadInt32();
  3223. break;
  3224. }
  3225. case 72: {
  3226. Col = input.ReadInt32();
  3227. break;
  3228. }
  3229. }
  3230. }
  3231. }
  3232. }
  3233. public partial class C2S_FireTest : pb::IMessage {
  3234. private static readonly pb::MessageParser<C2S_FireTest> _parser = new pb::MessageParser<C2S_FireTest>(() => (C2S_FireTest)MessagePool.Instance.Fetch(typeof(C2S_FireTest)));
  3235. public static pb::MessageParser<C2S_FireTest> Parser { get { return _parser; } }
  3236. public void WriteTo(pb::CodedOutputStream output) {
  3237. }
  3238. public int CalculateSize() {
  3239. int size = 0;
  3240. return size;
  3241. }
  3242. public void MergeFrom(pb::CodedInputStream input) {
  3243. uint tag;
  3244. while ((tag = input.ReadTag()) != 0) {
  3245. switch(tag) {
  3246. default:
  3247. input.SkipLastField();
  3248. break;
  3249. }
  3250. }
  3251. }
  3252. }
  3253. #endregion
  3254. }
  3255. #endregion Designer generated code