OuterMessage.cs 103 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615
  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 C2S_StmulationTimeScale : pb::IMessage {
  2508. private static readonly pb::MessageParser<C2S_StmulationTimeScale> _parser = new pb::MessageParser<C2S_StmulationTimeScale>(() => (C2S_StmulationTimeScale)MessagePool.Instance.Fetch(typeof(C2S_StmulationTimeScale)));
  2509. public static pb::MessageParser<C2S_StmulationTimeScale> Parser { get { return _parser; } }
  2510. private int timeScale_;
  2511. public int TimeScale {
  2512. get { return timeScale_; }
  2513. set {
  2514. timeScale_ = value;
  2515. }
  2516. }
  2517. public void WriteTo(pb::CodedOutputStream output) {
  2518. if (TimeScale != 0) {
  2519. output.WriteRawTag(8);
  2520. output.WriteInt32(TimeScale);
  2521. }
  2522. }
  2523. public int CalculateSize() {
  2524. int size = 0;
  2525. if (TimeScale != 0) {
  2526. size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimeScale);
  2527. }
  2528. return size;
  2529. }
  2530. public void MergeFrom(pb::CodedInputStream input) {
  2531. timeScale_ = 0;
  2532. uint tag;
  2533. while ((tag = input.ReadTag()) != 0) {
  2534. switch(tag) {
  2535. default:
  2536. input.SkipLastField();
  2537. break;
  2538. case 8: {
  2539. TimeScale = input.ReadInt32();
  2540. break;
  2541. }
  2542. }
  2543. }
  2544. }
  2545. }
  2546. /// <summary>
  2547. /// 仿真结束
  2548. /// </summary>
  2549. public partial class S2C_StmulationEnd : pb::IMessage {
  2550. private static readonly pb::MessageParser<S2C_StmulationEnd> _parser = new pb::MessageParser<S2C_StmulationEnd>(() => (S2C_StmulationEnd)MessagePool.Instance.Fetch(typeof(S2C_StmulationEnd)));
  2551. public static pb::MessageParser<S2C_StmulationEnd> Parser { get { return _parser; } }
  2552. private static readonly pb::FieldCodec<global::KYFramework.Network.EntitySheetReportValue> _repeated_entitySheetReportValueArr_codec
  2553. = pb::FieldCodec.ForMessage(10, global::KYFramework.Network.EntitySheetReportValue.Parser);
  2554. private pbc::RepeatedField<global::KYFramework.Network.EntitySheetReportValue> entitySheetReportValueArr_ = new pbc::RepeatedField<global::KYFramework.Network.EntitySheetReportValue>();
  2555. public pbc::RepeatedField<global::KYFramework.Network.EntitySheetReportValue> EntitySheetReportValueArr {
  2556. get { return entitySheetReportValueArr_; }
  2557. set { entitySheetReportValueArr_ = value; }
  2558. }
  2559. public void WriteTo(pb::CodedOutputStream output) {
  2560. entitySheetReportValueArr_.WriteTo(output, _repeated_entitySheetReportValueArr_codec);
  2561. }
  2562. public int CalculateSize() {
  2563. int size = 0;
  2564. size += entitySheetReportValueArr_.CalculateSize(_repeated_entitySheetReportValueArr_codec);
  2565. return size;
  2566. }
  2567. public void MergeFrom(pb::CodedInputStream input) {
  2568. for (int i = 0; i < entitySheetReportValueArr_.Count; i++) { MessagePool.Instance.Recycle(entitySheetReportValueArr_[i]); }
  2569. entitySheetReportValueArr_.Clear();
  2570. uint tag;
  2571. while ((tag = input.ReadTag()) != 0) {
  2572. switch(tag) {
  2573. default:
  2574. input.SkipLastField();
  2575. break;
  2576. case 10: {
  2577. entitySheetReportValueArr_.AddEntriesFrom(input, _repeated_entitySheetReportValueArr_codec);
  2578. break;
  2579. }
  2580. }
  2581. }
  2582. }
  2583. }
  2584. public partial class EntitySheetReportValue : pb::IMessage {
  2585. private static readonly pb::MessageParser<EntitySheetReportValue> _parser = new pb::MessageParser<EntitySheetReportValue>(() => (EntitySheetReportValue)MessagePool.Instance.Fetch(typeof(EntitySheetReportValue)));
  2586. public static pb::MessageParser<EntitySheetReportValue> Parser { get { return _parser; } }
  2587. private string name_ = "";
  2588. public string Name {
  2589. get { return name_; }
  2590. set {
  2591. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2592. }
  2593. }
  2594. private static readonly pb::FieldCodec<global::KYFramework.Network.SheetReportValue> _repeated_sheetReportValueArr_codec
  2595. = pb::FieldCodec.ForMessage(18, global::KYFramework.Network.SheetReportValue.Parser);
  2596. private pbc::RepeatedField<global::KYFramework.Network.SheetReportValue> sheetReportValueArr_ = new pbc::RepeatedField<global::KYFramework.Network.SheetReportValue>();
  2597. public pbc::RepeatedField<global::KYFramework.Network.SheetReportValue> SheetReportValueArr {
  2598. get { return sheetReportValueArr_; }
  2599. set { sheetReportValueArr_ = value; }
  2600. }
  2601. public void WriteTo(pb::CodedOutputStream output) {
  2602. if (Name.Length != 0) {
  2603. output.WriteRawTag(10);
  2604. output.WriteString(Name);
  2605. }
  2606. sheetReportValueArr_.WriteTo(output, _repeated_sheetReportValueArr_codec);
  2607. }
  2608. public int CalculateSize() {
  2609. int size = 0;
  2610. if (Name.Length != 0) {
  2611. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2612. }
  2613. size += sheetReportValueArr_.CalculateSize(_repeated_sheetReportValueArr_codec);
  2614. return size;
  2615. }
  2616. public void MergeFrom(pb::CodedInputStream input) {
  2617. name_ = "";
  2618. for (int i = 0; i < sheetReportValueArr_.Count; i++) { MessagePool.Instance.Recycle(sheetReportValueArr_[i]); }
  2619. sheetReportValueArr_.Clear();
  2620. uint tag;
  2621. while ((tag = input.ReadTag()) != 0) {
  2622. switch(tag) {
  2623. default:
  2624. input.SkipLastField();
  2625. break;
  2626. case 10: {
  2627. Name = input.ReadString();
  2628. break;
  2629. }
  2630. case 18: {
  2631. sheetReportValueArr_.AddEntriesFrom(input, _repeated_sheetReportValueArr_codec);
  2632. break;
  2633. }
  2634. }
  2635. }
  2636. }
  2637. }
  2638. public partial class SheetReportValue : pb::IMessage {
  2639. private static readonly pb::MessageParser<SheetReportValue> _parser = new pb::MessageParser<SheetReportValue>(() => (SheetReportValue)MessagePool.Instance.Fetch(typeof(SheetReportValue)));
  2640. public static pb::MessageParser<SheetReportValue> Parser { get { return _parser; } }
  2641. private string name_ = "";
  2642. public string Name {
  2643. get { return name_; }
  2644. set {
  2645. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2646. }
  2647. }
  2648. private static readonly pb::FieldCodec<global::KYFramework.Network.ReportValue> _repeated_valueArr_codec
  2649. = pb::FieldCodec.ForMessage(18, global::KYFramework.Network.ReportValue.Parser);
  2650. private pbc::RepeatedField<global::KYFramework.Network.ReportValue> valueArr_ = new pbc::RepeatedField<global::KYFramework.Network.ReportValue>();
  2651. public pbc::RepeatedField<global::KYFramework.Network.ReportValue> ValueArr {
  2652. get { return valueArr_; }
  2653. set { valueArr_ = value; }
  2654. }
  2655. public void WriteTo(pb::CodedOutputStream output) {
  2656. if (Name.Length != 0) {
  2657. output.WriteRawTag(10);
  2658. output.WriteString(Name);
  2659. }
  2660. valueArr_.WriteTo(output, _repeated_valueArr_codec);
  2661. }
  2662. public int CalculateSize() {
  2663. int size = 0;
  2664. if (Name.Length != 0) {
  2665. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2666. }
  2667. size += valueArr_.CalculateSize(_repeated_valueArr_codec);
  2668. return size;
  2669. }
  2670. public void MergeFrom(pb::CodedInputStream input) {
  2671. name_ = "";
  2672. for (int i = 0; i < valueArr_.Count; i++) { MessagePool.Instance.Recycle(valueArr_[i]); }
  2673. valueArr_.Clear();
  2674. uint tag;
  2675. while ((tag = input.ReadTag()) != 0) {
  2676. switch(tag) {
  2677. default:
  2678. input.SkipLastField();
  2679. break;
  2680. case 10: {
  2681. Name = input.ReadString();
  2682. break;
  2683. }
  2684. case 18: {
  2685. valueArr_.AddEntriesFrom(input, _repeated_valueArr_codec);
  2686. break;
  2687. }
  2688. }
  2689. }
  2690. }
  2691. }
  2692. public partial class ReportValue : pb::IMessage {
  2693. private static readonly pb::MessageParser<ReportValue> _parser = new pb::MessageParser<ReportValue>(() => (ReportValue)MessagePool.Instance.Fetch(typeof(ReportValue)));
  2694. public static pb::MessageParser<ReportValue> Parser { get { return _parser; } }
  2695. private string name_ = "";
  2696. public string Name {
  2697. get { return name_; }
  2698. set {
  2699. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2700. }
  2701. }
  2702. private string value_ = "";
  2703. public string Value {
  2704. get { return value_; }
  2705. set {
  2706. value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2707. }
  2708. }
  2709. public void WriteTo(pb::CodedOutputStream output) {
  2710. if (Name.Length != 0) {
  2711. output.WriteRawTag(10);
  2712. output.WriteString(Name);
  2713. }
  2714. if (Value.Length != 0) {
  2715. output.WriteRawTag(18);
  2716. output.WriteString(Value);
  2717. }
  2718. }
  2719. public int CalculateSize() {
  2720. int size = 0;
  2721. if (Name.Length != 0) {
  2722. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2723. }
  2724. if (Value.Length != 0) {
  2725. size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
  2726. }
  2727. return size;
  2728. }
  2729. public void MergeFrom(pb::CodedInputStream input) {
  2730. name_ = "";
  2731. value_ = "";
  2732. uint tag;
  2733. while ((tag = input.ReadTag()) != 0) {
  2734. switch(tag) {
  2735. default:
  2736. input.SkipLastField();
  2737. break;
  2738. case 10: {
  2739. Name = input.ReadString();
  2740. break;
  2741. }
  2742. case 18: {
  2743. Value = input.ReadString();
  2744. break;
  2745. }
  2746. }
  2747. }
  2748. }
  2749. }
  2750. /// <summary>
  2751. /// 请求 效能评估
  2752. /// </summary>
  2753. public partial class C2S_SimulationResult : pb::IMessage {
  2754. private static readonly pb::MessageParser<C2S_SimulationResult> _parser = new pb::MessageParser<C2S_SimulationResult>(() => (C2S_SimulationResult)MessagePool.Instance.Fetch(typeof(C2S_SimulationResult)));
  2755. public static pb::MessageParser<C2S_SimulationResult> Parser { get { return _parser; } }
  2756. private int rpcId_;
  2757. public int RpcId {
  2758. get { return rpcId_; }
  2759. set {
  2760. rpcId_ = value;
  2761. }
  2762. }
  2763. public void WriteTo(pb::CodedOutputStream output) {
  2764. if (RpcId != 0) {
  2765. output.WriteRawTag(208, 5);
  2766. output.WriteInt32(RpcId);
  2767. }
  2768. }
  2769. public int CalculateSize() {
  2770. int size = 0;
  2771. if (RpcId != 0) {
  2772. size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  2773. }
  2774. return size;
  2775. }
  2776. public void MergeFrom(pb::CodedInputStream input) {
  2777. rpcId_ = 0;
  2778. uint tag;
  2779. while ((tag = input.ReadTag()) != 0) {
  2780. switch(tag) {
  2781. default:
  2782. input.SkipLastField();
  2783. break;
  2784. case 720: {
  2785. RpcId = input.ReadInt32();
  2786. break;
  2787. }
  2788. }
  2789. }
  2790. }
  2791. }
  2792. /// <summary>
  2793. /// 返回 效能评估
  2794. /// </summary>
  2795. public partial class S2C_SimulatinResult : pb::IMessage {
  2796. private static readonly pb::MessageParser<S2C_SimulatinResult> _parser = new pb::MessageParser<S2C_SimulatinResult>(() => (S2C_SimulatinResult)MessagePool.Instance.Fetch(typeof(S2C_SimulatinResult)));
  2797. public static pb::MessageParser<S2C_SimulatinResult> Parser { get { return _parser; } }
  2798. private int rpcId_;
  2799. public int RpcId {
  2800. get { return rpcId_; }
  2801. set {
  2802. rpcId_ = value;
  2803. }
  2804. }
  2805. private int error_;
  2806. public int Error {
  2807. get { return error_; }
  2808. set {
  2809. error_ = value;
  2810. }
  2811. }
  2812. private string message_ = "";
  2813. public string Message {
  2814. get { return message_; }
  2815. set {
  2816. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2817. }
  2818. }
  2819. private double taskResponseTime_;
  2820. /// <summary>
  2821. /// 任务响应时间(秒)
  2822. /// </summary>
  2823. public double TaskResponseTime {
  2824. get { return taskResponseTime_; }
  2825. set {
  2826. taskResponseTime_ = value;
  2827. }
  2828. }
  2829. private double taskTotalTime_;
  2830. /// <summary>
  2831. /// 总任务耗时(秒)
  2832. /// </summary>
  2833. public double TaskTotalTime {
  2834. get { return taskTotalTime_; }
  2835. set {
  2836. taskTotalTime_ = value;
  2837. }
  2838. }
  2839. private double singleJoinTime_;
  2840. /// <summary>
  2841. /// 单机入场时间(秒)
  2842. /// </summary>
  2843. public double SingleJoinTime {
  2844. get { return singleJoinTime_; }
  2845. set {
  2846. singleJoinTime_ = value;
  2847. }
  2848. }
  2849. private double singleEffectiveTaskTime_;
  2850. /// <summary>
  2851. /// 单机有效任务时长(秒)
  2852. /// </summary>
  2853. public double SingleEffectiveTaskTime {
  2854. get { return singleEffectiveTaskTime_; }
  2855. set {
  2856. singleEffectiveTaskTime_ = value;
  2857. }
  2858. }
  2859. private double singleAllPeopeo_;
  2860. /// <summary>
  2861. /// 单机总投送人数(人)
  2862. /// </summary>
  2863. public double SingleAllPeopeo {
  2864. get { return singleAllPeopeo_; }
  2865. set {
  2866. singleAllPeopeo_ = value;
  2867. }
  2868. }
  2869. private double singleEachPeople_;
  2870. /// <summary>
  2871. /// 单机单次投送人数(人)
  2872. /// </summary>
  2873. public double SingleEachPeople {
  2874. get { return singleEachPeople_; }
  2875. set {
  2876. singleEachPeople_ = value;
  2877. }
  2878. }
  2879. private double speedPatrol_;
  2880. /// <summary>
  2881. /// 巡护速度(km/h)
  2882. /// </summary>
  2883. public double SpeedPatrol {
  2884. get { return speedPatrol_; }
  2885. set {
  2886. speedPatrol_ = value;
  2887. }
  2888. }
  2889. private double voyagePatrol_;
  2890. /// <summary>
  2891. /// 巡护航程 (km)
  2892. /// </summary>
  2893. public double VoyagePatrol {
  2894. get { return voyagePatrol_; }
  2895. set {
  2896. voyagePatrol_ = value;
  2897. }
  2898. }
  2899. private double timeAllPatrol_;
  2900. /// <summary>
  2901. /// 总巡护耗时 (秒)
  2902. /// </summary>
  2903. public double TimeAllPatrol {
  2904. get { return timeAllPatrol_; }
  2905. set {
  2906. timeAllPatrol_ = value;
  2907. }
  2908. }
  2909. private double fireJoinTime_;
  2910. /// <summary>
  2911. /// 火情入场时间 (秒)
  2912. /// </summary>
  2913. public double FireJoinTime {
  2914. get { return fireJoinTime_; }
  2915. set {
  2916. fireJoinTime_ = value;
  2917. }
  2918. }
  2919. private double fuelSingle_;
  2920. /// <summary>
  2921. /// 单机总油耗 (kg)
  2922. /// </summary>
  2923. public double FuelSingle {
  2924. get { return fuelSingle_; }
  2925. set {
  2926. fuelSingle_ = value;
  2927. }
  2928. }
  2929. private string airportUseSituation_ = "";
  2930. /// <summary>
  2931. /// 单机机场使用情况
  2932. /// </summary>
  2933. public string AirportUseSituation {
  2934. get { return airportUseSituation_; }
  2935. set {
  2936. airportUseSituation_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2937. }
  2938. }
  2939. private string navUseSituation_ = "";
  2940. /// <summary>
  2941. /// 单机导航使用情况
  2942. /// </summary>
  2943. public string NavUseSituation {
  2944. get { return navUseSituation_; }
  2945. set {
  2946. navUseSituation_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2947. }
  2948. }
  2949. private double fireJoinTimeEconomical_;
  2950. /// <summary>
  2951. /// 单机总任务时长(秒)
  2952. /// </summary>
  2953. public double FireJoinTimeEconomical {
  2954. get { return fireJoinTimeEconomical_; }
  2955. set {
  2956. fireJoinTimeEconomical_ = value;
  2957. }
  2958. }
  2959. private double fuelSingleEconomical_;
  2960. /// <summary>
  2961. /// 单机总油耗(kg)
  2962. /// </summary>
  2963. public double FuelSingleEconomical {
  2964. get { return fuelSingleEconomical_; }
  2965. set {
  2966. fuelSingleEconomical_ = value;
  2967. }
  2968. }
  2969. private string airportUseSituationEconomical_ = "";
  2970. /// <summary>
  2971. /// 单机机场使用情况
  2972. /// </summary>
  2973. public string AirportUseSituationEconomical {
  2974. get { return airportUseSituationEconomical_; }
  2975. set {
  2976. airportUseSituationEconomical_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2977. }
  2978. }
  2979. private string navUseSituationEconomical_ = "";
  2980. /// <summary>
  2981. /// 单机导航使用情况
  2982. /// </summary>
  2983. public string NavUseSituationEconomical {
  2984. get { return navUseSituationEconomical_; }
  2985. set {
  2986. navUseSituationEconomical_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2987. }
  2988. }
  2989. public void WriteTo(pb::CodedOutputStream output) {
  2990. if (RpcId != 0) {
  2991. output.WriteRawTag(8);
  2992. output.WriteInt32(RpcId);
  2993. }
  2994. if (Error != 0) {
  2995. output.WriteRawTag(16);
  2996. output.WriteInt32(Error);
  2997. }
  2998. if (Message.Length != 0) {
  2999. output.WriteRawTag(26);
  3000. output.WriteString(Message);
  3001. }
  3002. if (TaskResponseTime != 0D) {
  3003. output.WriteRawTag(33);
  3004. output.WriteDouble(TaskResponseTime);
  3005. }
  3006. if (TaskTotalTime != 0D) {
  3007. output.WriteRawTag(41);
  3008. output.WriteDouble(TaskTotalTime);
  3009. }
  3010. if (SingleJoinTime != 0D) {
  3011. output.WriteRawTag(49);
  3012. output.WriteDouble(SingleJoinTime);
  3013. }
  3014. if (SingleEffectiveTaskTime != 0D) {
  3015. output.WriteRawTag(57);
  3016. output.WriteDouble(SingleEffectiveTaskTime);
  3017. }
  3018. if (SingleAllPeopeo != 0D) {
  3019. output.WriteRawTag(65);
  3020. output.WriteDouble(SingleAllPeopeo);
  3021. }
  3022. if (SingleEachPeople != 0D) {
  3023. output.WriteRawTag(73);
  3024. output.WriteDouble(SingleEachPeople);
  3025. }
  3026. if (SpeedPatrol != 0D) {
  3027. output.WriteRawTag(81);
  3028. output.WriteDouble(SpeedPatrol);
  3029. }
  3030. if (VoyagePatrol != 0D) {
  3031. output.WriteRawTag(89);
  3032. output.WriteDouble(VoyagePatrol);
  3033. }
  3034. if (TimeAllPatrol != 0D) {
  3035. output.WriteRawTag(97);
  3036. output.WriteDouble(TimeAllPatrol);
  3037. }
  3038. if (FireJoinTime != 0D) {
  3039. output.WriteRawTag(105);
  3040. output.WriteDouble(FireJoinTime);
  3041. }
  3042. if (FuelSingle != 0D) {
  3043. output.WriteRawTag(113);
  3044. output.WriteDouble(FuelSingle);
  3045. }
  3046. if (AirportUseSituation.Length != 0) {
  3047. output.WriteRawTag(122);
  3048. output.WriteString(AirportUseSituation);
  3049. }
  3050. if (NavUseSituation.Length != 0) {
  3051. output.WriteRawTag(130, 1);
  3052. output.WriteString(NavUseSituation);
  3053. }
  3054. if (FireJoinTimeEconomical != 0D) {
  3055. output.WriteRawTag(137, 1);
  3056. output.WriteDouble(FireJoinTimeEconomical);
  3057. }
  3058. if (FuelSingleEconomical != 0D) {
  3059. output.WriteRawTag(145, 1);
  3060. output.WriteDouble(FuelSingleEconomical);
  3061. }
  3062. if (AirportUseSituationEconomical.Length != 0) {
  3063. output.WriteRawTag(154, 1);
  3064. output.WriteString(AirportUseSituationEconomical);
  3065. }
  3066. if (NavUseSituationEconomical.Length != 0) {
  3067. output.WriteRawTag(162, 1);
  3068. output.WriteString(NavUseSituationEconomical);
  3069. }
  3070. }
  3071. public int CalculateSize() {
  3072. int size = 0;
  3073. if (RpcId != 0) {
  3074. size += 1 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
  3075. }
  3076. if (Error != 0) {
  3077. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Error);
  3078. }
  3079. if (Message.Length != 0) {
  3080. size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
  3081. }
  3082. if (TaskResponseTime != 0D) {
  3083. size += 1 + 8;
  3084. }
  3085. if (TaskTotalTime != 0D) {
  3086. size += 1 + 8;
  3087. }
  3088. if (SingleJoinTime != 0D) {
  3089. size += 1 + 8;
  3090. }
  3091. if (SingleEffectiveTaskTime != 0D) {
  3092. size += 1 + 8;
  3093. }
  3094. if (SingleAllPeopeo != 0D) {
  3095. size += 1 + 8;
  3096. }
  3097. if (SingleEachPeople != 0D) {
  3098. size += 1 + 8;
  3099. }
  3100. if (SpeedPatrol != 0D) {
  3101. size += 1 + 8;
  3102. }
  3103. if (VoyagePatrol != 0D) {
  3104. size += 1 + 8;
  3105. }
  3106. if (TimeAllPatrol != 0D) {
  3107. size += 1 + 8;
  3108. }
  3109. if (FireJoinTime != 0D) {
  3110. size += 1 + 8;
  3111. }
  3112. if (FuelSingle != 0D) {
  3113. size += 1 + 8;
  3114. }
  3115. if (AirportUseSituation.Length != 0) {
  3116. size += 1 + pb::CodedOutputStream.ComputeStringSize(AirportUseSituation);
  3117. }
  3118. if (NavUseSituation.Length != 0) {
  3119. size += 2 + pb::CodedOutputStream.ComputeStringSize(NavUseSituation);
  3120. }
  3121. if (FireJoinTimeEconomical != 0D) {
  3122. size += 2 + 8;
  3123. }
  3124. if (FuelSingleEconomical != 0D) {
  3125. size += 2 + 8;
  3126. }
  3127. if (AirportUseSituationEconomical.Length != 0) {
  3128. size += 2 + pb::CodedOutputStream.ComputeStringSize(AirportUseSituationEconomical);
  3129. }
  3130. if (NavUseSituationEconomical.Length != 0) {
  3131. size += 2 + pb::CodedOutputStream.ComputeStringSize(NavUseSituationEconomical);
  3132. }
  3133. return size;
  3134. }
  3135. public void MergeFrom(pb::CodedInputStream input) {
  3136. rpcId_ = 0;
  3137. error_ = 0;
  3138. message_ = "";
  3139. airportUseSituation_ = "";
  3140. navUseSituation_ = "";
  3141. airportUseSituationEconomical_ = "";
  3142. navUseSituationEconomical_ = "";
  3143. uint tag;
  3144. while ((tag = input.ReadTag()) != 0) {
  3145. switch(tag) {
  3146. default:
  3147. input.SkipLastField();
  3148. break;
  3149. case 8: {
  3150. RpcId = input.ReadInt32();
  3151. break;
  3152. }
  3153. case 16: {
  3154. Error = input.ReadInt32();
  3155. break;
  3156. }
  3157. case 26: {
  3158. Message = input.ReadString();
  3159. break;
  3160. }
  3161. case 33: {
  3162. TaskResponseTime = input.ReadDouble();
  3163. break;
  3164. }
  3165. case 41: {
  3166. TaskTotalTime = input.ReadDouble();
  3167. break;
  3168. }
  3169. case 49: {
  3170. SingleJoinTime = input.ReadDouble();
  3171. break;
  3172. }
  3173. case 57: {
  3174. SingleEffectiveTaskTime = input.ReadDouble();
  3175. break;
  3176. }
  3177. case 65: {
  3178. SingleAllPeopeo = input.ReadDouble();
  3179. break;
  3180. }
  3181. case 73: {
  3182. SingleEachPeople = input.ReadDouble();
  3183. break;
  3184. }
  3185. case 81: {
  3186. SpeedPatrol = input.ReadDouble();
  3187. break;
  3188. }
  3189. case 89: {
  3190. VoyagePatrol = input.ReadDouble();
  3191. break;
  3192. }
  3193. case 97: {
  3194. TimeAllPatrol = input.ReadDouble();
  3195. break;
  3196. }
  3197. case 105: {
  3198. FireJoinTime = input.ReadDouble();
  3199. break;
  3200. }
  3201. case 113: {
  3202. FuelSingle = input.ReadDouble();
  3203. break;
  3204. }
  3205. case 122: {
  3206. AirportUseSituation = input.ReadString();
  3207. break;
  3208. }
  3209. case 130: {
  3210. NavUseSituation = input.ReadString();
  3211. break;
  3212. }
  3213. case 137: {
  3214. FireJoinTimeEconomical = input.ReadDouble();
  3215. break;
  3216. }
  3217. case 145: {
  3218. FuelSingleEconomical = input.ReadDouble();
  3219. break;
  3220. }
  3221. case 154: {
  3222. AirportUseSituationEconomical = input.ReadString();
  3223. break;
  3224. }
  3225. case 162: {
  3226. NavUseSituationEconomical = input.ReadString();
  3227. break;
  3228. }
  3229. }
  3230. }
  3231. }
  3232. }
  3233. /// <summary>
  3234. /// 火焰蔓延输出
  3235. /// </summary>
  3236. public partial class S2C_FireSpread : pb::IMessage {
  3237. private static readonly pb::MessageParser<S2C_FireSpread> _parser = new pb::MessageParser<S2C_FireSpread>(() => (S2C_FireSpread)MessagePool.Instance.Fetch(typeof(S2C_FireSpread)));
  3238. public static pb::MessageParser<S2C_FireSpread> Parser { get { return _parser; } }
  3239. private string aircraftId_ = "";
  3240. public string AircraftId {
  3241. get { return aircraftId_; }
  3242. set {
  3243. aircraftId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3244. }
  3245. }
  3246. private string firePointName_ = "";
  3247. public string FirePointName {
  3248. get { return firePointName_; }
  3249. set {
  3250. firePointName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3251. }
  3252. }
  3253. private double fireGrids_;
  3254. public double FireGrids {
  3255. get { return fireGrids_; }
  3256. set {
  3257. fireGrids_ = value;
  3258. }
  3259. }
  3260. private double firedGrids_;
  3261. public double FiredGrids {
  3262. get { return firedGrids_; }
  3263. set {
  3264. firedGrids_ = value;
  3265. }
  3266. }
  3267. public void WriteTo(pb::CodedOutputStream output) {
  3268. if (AircraftId.Length != 0) {
  3269. output.WriteRawTag(10);
  3270. output.WriteString(AircraftId);
  3271. }
  3272. if (FirePointName.Length != 0) {
  3273. output.WriteRawTag(18);
  3274. output.WriteString(FirePointName);
  3275. }
  3276. if (FireGrids != 0D) {
  3277. output.WriteRawTag(25);
  3278. output.WriteDouble(FireGrids);
  3279. }
  3280. if (FiredGrids != 0D) {
  3281. output.WriteRawTag(33);
  3282. output.WriteDouble(FiredGrids);
  3283. }
  3284. }
  3285. public int CalculateSize() {
  3286. int size = 0;
  3287. if (AircraftId.Length != 0) {
  3288. size += 1 + pb::CodedOutputStream.ComputeStringSize(AircraftId);
  3289. }
  3290. if (FirePointName.Length != 0) {
  3291. size += 1 + pb::CodedOutputStream.ComputeStringSize(FirePointName);
  3292. }
  3293. if (FireGrids != 0D) {
  3294. size += 1 + 8;
  3295. }
  3296. if (FiredGrids != 0D) {
  3297. size += 1 + 8;
  3298. }
  3299. return size;
  3300. }
  3301. public void MergeFrom(pb::CodedInputStream input) {
  3302. aircraftId_ = "";
  3303. firePointName_ = "";
  3304. uint tag;
  3305. while ((tag = input.ReadTag()) != 0) {
  3306. switch(tag) {
  3307. default:
  3308. input.SkipLastField();
  3309. break;
  3310. case 10: {
  3311. AircraftId = input.ReadString();
  3312. break;
  3313. }
  3314. case 18: {
  3315. FirePointName = input.ReadString();
  3316. break;
  3317. }
  3318. case 25: {
  3319. FireGrids = input.ReadDouble();
  3320. break;
  3321. }
  3322. case 33: {
  3323. FiredGrids = input.ReadDouble();
  3324. break;
  3325. }
  3326. }
  3327. }
  3328. }
  3329. }
  3330. #endregion
  3331. }
  3332. #endregion Designer generated code