OuterMessage.cs 109 KB

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