12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: OuterMessage.proto
- #pragma warning disable 1591, 0612, 3021
- #region Designer generated code
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using scg = global::System.Collections.Generic;
- namespace KYFramework.Network {
- #region Messages
- public partial class C2R_Ping : pb::IMessage {
- private static readonly pb::MessageParser<C2R_Ping> _parser = new pb::MessageParser<C2R_Ping>(() => (C2R_Ping)MessagePool.Instance.Fetch(typeof(C2R_Ping)));
- public static pb::MessageParser<C2R_Ping> Parser { get { return _parser; } }
- private int rpcId_;
- public int RpcId {
- get { return rpcId_; }
- set {
- rpcId_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (RpcId != 0) {
- output.WriteRawTag(208, 5);
- output.WriteInt32(RpcId);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (RpcId != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- rpcId_ = 0;
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 720: {
- RpcId = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public partial class R2C_Ping : pb::IMessage {
- private static readonly pb::MessageParser<R2C_Ping> _parser = new pb::MessageParser<R2C_Ping>(() => (R2C_Ping)MessagePool.Instance.Fetch(typeof(R2C_Ping)));
- public static pb::MessageParser<R2C_Ping> Parser { get { return _parser; } }
- private int rpcId_;
- public int RpcId {
- get { return rpcId_; }
- set {
- rpcId_ = value;
- }
- }
- private int error_;
- public int Error {
- get { return error_; }
- set {
- error_ = value;
- }
- }
- private string message_ = "";
- public string Message {
- get { return message_; }
- set {
- message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (RpcId != 0) {
- output.WriteRawTag(208, 5);
- output.WriteInt32(RpcId);
- }
- if (Error != 0) {
- output.WriteRawTag(216, 5);
- output.WriteInt32(Error);
- }
- if (Message.Length != 0) {
- output.WriteRawTag(226, 5);
- output.WriteString(Message);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (RpcId != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
- }
- if (Error != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
- }
- if (Message.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- rpcId_ = 0;
- error_ = 0;
- message_ = "";
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 720: {
- RpcId = input.ReadInt32();
- break;
- }
- case 728: {
- Error = input.ReadInt32();
- break;
- }
- case 738: {
- Message = input.ReadString();
- break;
- }
- }
- }
- }
- }
- public partial class C2S_Test : pb::IMessage {
- private static readonly pb::MessageParser<C2S_Test> _parser = new pb::MessageParser<C2S_Test>(() => (C2S_Test)MessagePool.Instance.Fetch(typeof(C2S_Test)));
- public static pb::MessageParser<C2S_Test> Parser { get { return _parser; } }
- private int rpcId_;
- public int RpcId {
- get { return rpcId_; }
- set {
- rpcId_ = value;
- }
- }
- private string message_ = "";
- public string Message {
- get { return message_; }
- set {
- message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (RpcId != 0) {
- output.WriteRawTag(208, 5);
- output.WriteInt32(RpcId);
- }
- if (Message.Length != 0) {
- output.WriteRawTag(226, 5);
- output.WriteString(Message);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (RpcId != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
- }
- if (Message.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- rpcId_ = 0;
- message_ = "";
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 720: {
- RpcId = input.ReadInt32();
- break;
- }
- case 738: {
- Message = input.ReadString();
- break;
- }
- }
- }
- }
- }
- public partial class S2C_Test : pb::IMessage {
- private static readonly pb::MessageParser<S2C_Test> _parser = new pb::MessageParser<S2C_Test>(() => (S2C_Test)MessagePool.Instance.Fetch(typeof(S2C_Test)));
- public static pb::MessageParser<S2C_Test> Parser { get { return _parser; } }
- private int rpcId_;
- public int RpcId {
- get { return rpcId_; }
- set {
- rpcId_ = value;
- }
- }
- private int error_;
- public int Error {
- get { return error_; }
- set {
- error_ = value;
- }
- }
- private string message_ = "";
- public string Message {
- get { return message_; }
- set {
- message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (RpcId != 0) {
- output.WriteRawTag(208, 5);
- output.WriteInt32(RpcId);
- }
- if (Error != 0) {
- output.WriteRawTag(216, 5);
- output.WriteInt32(Error);
- }
- if (Message.Length != 0) {
- output.WriteRawTag(226, 5);
- output.WriteString(Message);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (RpcId != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
- }
- if (Error != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
- }
- if (Message.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- rpcId_ = 0;
- error_ = 0;
- message_ = "";
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 720: {
- RpcId = input.ReadInt32();
- break;
- }
- case 728: {
- Error = input.ReadInt32();
- break;
- }
- case 738: {
- Message = input.ReadString();
- break;
- }
- }
- }
- }
- }
- public partial class C2S_TestMessage : pb::IMessage {
- private static readonly pb::MessageParser<C2S_TestMessage> _parser = new pb::MessageParser<C2S_TestMessage>(() => (C2S_TestMessage)MessagePool.Instance.Fetch(typeof(C2S_TestMessage)));
- public static pb::MessageParser<C2S_TestMessage> Parser { get { return _parser; } }
- private string message_ = "";
- public string Message {
- get { return message_; }
- set {
- message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Message.Length != 0) {
- output.WriteRawTag(210, 5);
- output.WriteString(Message);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Message.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- message_ = "";
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 722: {
- Message = input.ReadString();
- break;
- }
- }
- }
- }
- }
- public partial class S2C_TestMessage : pb::IMessage {
- private static readonly pb::MessageParser<S2C_TestMessage> _parser = new pb::MessageParser<S2C_TestMessage>(() => (S2C_TestMessage)MessagePool.Instance.Fetch(typeof(S2C_TestMessage)));
- public static pb::MessageParser<S2C_TestMessage> Parser { get { return _parser; } }
- private string message_ = "";
- public string Message {
- get { return message_; }
- set {
- message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Message.Length != 0) {
- output.WriteRawTag(210, 5);
- output.WriteString(Message);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Message.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- message_ = "";
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 722: {
- Message = input.ReadString();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 地理点:经纬高
- /// </summary>
- public partial class Point : pb::IMessage {
- private static readonly pb::MessageParser<Point> _parser = new pb::MessageParser<Point>(() => (Point)MessagePool.Instance.Fetch(typeof(Point)));
- public static pb::MessageParser<Point> Parser { get { return _parser; } }
- private double longitude_;
- public double Longitude {
- get { return longitude_; }
- set {
- longitude_ = value;
- }
- }
- private double latitude_;
- public double Latitude {
- get { return latitude_; }
- set {
- latitude_ = value;
- }
- }
- private double altitude_;
- public double Altitude {
- get { return altitude_; }
- set {
- altitude_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Longitude != 0D) {
- output.WriteRawTag(9);
- output.WriteDouble(Longitude);
- }
- if (Latitude != 0D) {
- output.WriteRawTag(17);
- output.WriteDouble(Latitude);
- }
- if (Altitude != 0D) {
- output.WriteRawTag(25);
- output.WriteDouble(Altitude);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Longitude != 0D) {
- size += 1 + 8;
- }
- if (Latitude != 0D) {
- size += 1 + 8;
- }
- if (Altitude != 0D) {
- size += 1 + 8;
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 9: {
- Longitude = input.ReadDouble();
- break;
- }
- case 17: {
- Latitude = input.ReadDouble();
- break;
- }
- case 25: {
- Altitude = input.ReadDouble();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 基地
- /// </summary>
- public partial class Base : pb::IMessage {
- private static readonly pb::MessageParser<Base> _parser = new pb::MessageParser<Base>(() => (Base)MessagePool.Instance.Fetch(typeof(Base)));
- public static pb::MessageParser<Base> Parser { get { return _parser; } }
- private string baseName_ = "";
- public string BaseName {
- get { return baseName_; }
- set {
- baseName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private global::KYFramework.Network.Point baseLocation_;
- public global::KYFramework.Network.Point BaseLocation {
- get { return baseLocation_; }
- set {
- baseLocation_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (BaseName.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(BaseName);
- }
- if (baseLocation_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(BaseLocation);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (BaseName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseName);
- }
- if (baseLocation_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseLocation);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- baseName_ = "";
- if (baseLocation_ != null) MessagePool.Instance.Recycle(baseLocation_); baseLocation_ = null;
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- BaseName = input.ReadString();
- break;
- }
- case 18: {
- if (baseLocation_ == null) {
- baseLocation_ = new global::KYFramework.Network.Point();
- }
- input.ReadMessage(baseLocation_);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 行政区气象数据
- /// </summary>
- public partial class CityWeather : pb::IMessage {
- private static readonly pb::MessageParser<CityWeather> _parser = new pb::MessageParser<CityWeather>(() => (CityWeather)MessagePool.Instance.Fetch(typeof(CityWeather)));
- public static pb::MessageParser<CityWeather> Parser { get { return _parser; } }
- private string cityName_ = "";
- /// <summary>
- /// 行政区域名称:XX市
- /// </summary>
- public string CityName {
- get { return cityName_; }
- set {
- cityName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string weatherCondition_ = "";
- /// <summary>
- /// 天气状况:晴/多云/雨等
- /// </summary>
- public string WeatherCondition {
- get { return weatherCondition_; }
- set {
- weatherCondition_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string windDirection_ = "";
- /// <summary>
- /// 风向:东南西北
- /// </summary>
- public string WindDirection {
- get { return windDirection_; }
- set {
- windDirection_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private double windVelocity_;
- /// <summary>
- /// 风速
- /// </summary>
- public double WindVelocity {
- get { return windVelocity_; }
- set {
- windVelocity_ = value;
- }
- }
- private double temperature_;
- /// <summary>
- /// 温度
- /// </summary>
- public double Temperature {
- get { return temperature_; }
- set {
- temperature_ = value;
- }
- }
- private double humidity_;
- /// <summary>
- /// 湿度
- /// </summary>
- public double Humidity {
- get { return humidity_; }
- set {
- humidity_ = value;
- }
- }
- private double visibility_;
- /// <summary>
- /// 能见度
- /// </summary>
- public double Visibility {
- get { return visibility_; }
- set {
- visibility_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (CityName.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(CityName);
- }
- if (WeatherCondition.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(WeatherCondition);
- }
- if (WindDirection.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(WindDirection);
- }
- if (WindVelocity != 0D) {
- output.WriteRawTag(33);
- output.WriteDouble(WindVelocity);
- }
- if (Temperature != 0D) {
- output.WriteRawTag(41);
- output.WriteDouble(Temperature);
- }
- if (Humidity != 0D) {
- output.WriteRawTag(49);
- output.WriteDouble(Humidity);
- }
- if (Visibility != 0D) {
- output.WriteRawTag(57);
- output.WriteDouble(Visibility);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (CityName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(CityName);
- }
- if (WeatherCondition.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(WeatherCondition);
- }
- if (WindDirection.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(WindDirection);
- }
- if (WindVelocity != 0D) {
- size += 1 + 8;
- }
- if (Temperature != 0D) {
- size += 1 + 8;
- }
- if (Humidity != 0D) {
- size += 1 + 8;
- }
- if (Visibility != 0D) {
- size += 1 + 8;
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- cityName_ = "";
- weatherCondition_ = "";
- windDirection_ = "";
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- CityName = input.ReadString();
- break;
- }
- case 18: {
- WeatherCondition = input.ReadString();
- break;
- }
- case 26: {
- WindDirection = input.ReadString();
- break;
- }
- case 33: {
- WindVelocity = input.ReadDouble();
- break;
- }
- case 41: {
- Temperature = input.ReadDouble();
- break;
- }
- case 49: {
- Humidity = input.ReadDouble();
- break;
- }
- case 57: {
- Visibility = input.ReadDouble();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 航线
- /// </summary>
- public partial class AirRoute : pb::IMessage {
- private static readonly pb::MessageParser<AirRoute> _parser = new pb::MessageParser<AirRoute>(() => (AirRoute)MessagePool.Instance.Fetch(typeof(AirRoute)));
- public static pb::MessageParser<AirRoute> Parser { get { return _parser; } }
- private string name_ = "";
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.Point> _repeated_pointArr_codec
- = pb::FieldCodec.ForMessage(18, global::KYFramework.Network.Point.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.Point> pointArr_ = new pbc::RepeatedField<global::KYFramework.Network.Point>();
- public pbc::RepeatedField<global::KYFramework.Network.Point> PointArr {
- get { return pointArr_; }
- set { pointArr_ = value; }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- pointArr_.WriteTo(output, _repeated_pointArr_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- size += pointArr_.CalculateSize(_repeated_pointArr_codec);
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- name_ = "";
- for (int i = 0; i < pointArr_.Count; i++) { MessagePool.Instance.Recycle(pointArr_[i]); }
- pointArr_.Clear();
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- pointArr_.AddEntriesFrom(input, _repeated_pointArr_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 圆形禁飞区
- /// </summary>
- public partial class NoFlyZoneCircle : pb::IMessage {
- private static readonly pb::MessageParser<NoFlyZoneCircle> _parser = new pb::MessageParser<NoFlyZoneCircle>(() => (NoFlyZoneCircle)MessagePool.Instance.Fetch(typeof(NoFlyZoneCircle)));
- public static pb::MessageParser<NoFlyZoneCircle> Parser { get { return _parser; } }
- private string noFlyZoneType_ = "";
- public string NoFlyZoneType {
- get { return noFlyZoneType_; }
- set {
- noFlyZoneType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private global::KYFramework.Network.Point noFlyZoneCenterLocation_;
- public global::KYFramework.Network.Point NoFlyZoneCenterLocation {
- get { return noFlyZoneCenterLocation_; }
- set {
- noFlyZoneCenterLocation_ = value;
- }
- }
- private double noFlyZoneRadius_;
- public double NoFlyZoneRadius {
- get { return noFlyZoneRadius_; }
- set {
- noFlyZoneRadius_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (NoFlyZoneType.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(NoFlyZoneType);
- }
- if (noFlyZoneCenterLocation_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(NoFlyZoneCenterLocation);
- }
- if (NoFlyZoneRadius != 0D) {
- output.WriteRawTag(25);
- output.WriteDouble(NoFlyZoneRadius);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (NoFlyZoneType.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(NoFlyZoneType);
- }
- if (noFlyZoneCenterLocation_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(NoFlyZoneCenterLocation);
- }
- if (NoFlyZoneRadius != 0D) {
- size += 1 + 8;
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- noFlyZoneType_ = "";
- if (noFlyZoneCenterLocation_ != null) MessagePool.Instance.Recycle(noFlyZoneCenterLocation_); noFlyZoneCenterLocation_ = null;
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- NoFlyZoneType = input.ReadString();
- break;
- }
- case 18: {
- if (noFlyZoneCenterLocation_ == null) {
- noFlyZoneCenterLocation_ = new global::KYFramework.Network.Point();
- }
- input.ReadMessage(noFlyZoneCenterLocation_);
- break;
- }
- case 25: {
- NoFlyZoneRadius = input.ReadDouble();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 矩形禁飞区
- /// </summary>
- public partial class NoFlyZoneRect : pb::IMessage {
- private static readonly pb::MessageParser<NoFlyZoneRect> _parser = new pb::MessageParser<NoFlyZoneRect>(() => (NoFlyZoneRect)MessagePool.Instance.Fetch(typeof(NoFlyZoneRect)));
- public static pb::MessageParser<NoFlyZoneRect> Parser { get { return _parser; } }
- private string noFlyZoneType_ = "";
- public string NoFlyZoneType {
- get { return noFlyZoneType_; }
- set {
- noFlyZoneType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.Point> _repeated_noFlyZoneRectangleLocation_codec
- = pb::FieldCodec.ForMessage(18, global::KYFramework.Network.Point.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.Point> noFlyZoneRectangleLocation_ = new pbc::RepeatedField<global::KYFramework.Network.Point>();
- public pbc::RepeatedField<global::KYFramework.Network.Point> NoFlyZoneRectangleLocation {
- get { return noFlyZoneRectangleLocation_; }
- set { noFlyZoneRectangleLocation_ = value; }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (NoFlyZoneType.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(NoFlyZoneType);
- }
- noFlyZoneRectangleLocation_.WriteTo(output, _repeated_noFlyZoneRectangleLocation_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (NoFlyZoneType.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(NoFlyZoneType);
- }
- size += noFlyZoneRectangleLocation_.CalculateSize(_repeated_noFlyZoneRectangleLocation_codec);
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- noFlyZoneType_ = "";
- for (int i = 0; i < noFlyZoneRectangleLocation_.Count; i++) { MessagePool.Instance.Recycle(noFlyZoneRectangleLocation_[i]); }
- noFlyZoneRectangleLocation_.Clear();
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- NoFlyZoneType = input.ReadString();
- break;
- }
- case 18: {
- noFlyZoneRectangleLocation_.AddEntriesFrom(input, _repeated_noFlyZoneRectangleLocation_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 爬升航段
- /// </summary>
- public partial class ClimbSegment : pb::IMessage {
- private static readonly pb::MessageParser<ClimbSegment> _parser = new pb::MessageParser<ClimbSegment>(() => (ClimbSegment)MessagePool.Instance.Fetch(typeof(ClimbSegment)));
- public static pb::MessageParser<ClimbSegment> Parser { get { return _parser; } }
- private double climbVelocity_;
- public double ClimbVelocity {
- get { return climbVelocity_; }
- set {
- climbVelocity_ = value;
- }
- }
- private double climbFuelConsumptionRate_;
- public double ClimbFuelConsumptionRate {
- get { return climbFuelConsumptionRate_; }
- set {
- climbFuelConsumptionRate_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (ClimbVelocity != 0D) {
- output.WriteRawTag(9);
- output.WriteDouble(ClimbVelocity);
- }
- if (ClimbFuelConsumptionRate != 0D) {
- output.WriteRawTag(17);
- output.WriteDouble(ClimbFuelConsumptionRate);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (ClimbVelocity != 0D) {
- size += 1 + 8;
- }
- if (ClimbFuelConsumptionRate != 0D) {
- size += 1 + 8;
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 9: {
- ClimbVelocity = input.ReadDouble();
- break;
- }
- case 17: {
- ClimbFuelConsumptionRate = input.ReadDouble();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 下降航段
- /// </summary>
- public partial class DescentSegment : pb::IMessage {
- private static readonly pb::MessageParser<DescentSegment> _parser = new pb::MessageParser<DescentSegment>(() => (DescentSegment)MessagePool.Instance.Fetch(typeof(DescentSegment)));
- public static pb::MessageParser<DescentSegment> Parser { get { return _parser; } }
- private double descentVelocity_;
- public double DescentVelocity {
- get { return descentVelocity_; }
- set {
- descentVelocity_ = value;
- }
- }
- private double descentFuelConsumptionRate_;
- public double DescentFuelConsumptionRate {
- get { return descentFuelConsumptionRate_; }
- set {
- descentFuelConsumptionRate_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (DescentVelocity != 0D) {
- output.WriteRawTag(9);
- output.WriteDouble(DescentVelocity);
- }
- if (DescentFuelConsumptionRate != 0D) {
- output.WriteRawTag(17);
- output.WriteDouble(DescentFuelConsumptionRate);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (DescentVelocity != 0D) {
- size += 1 + 8;
- }
- if (DescentFuelConsumptionRate != 0D) {
- size += 1 + 8;
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 9: {
- DescentVelocity = input.ReadDouble();
- break;
- }
- case 17: {
- DescentFuelConsumptionRate = input.ReadDouble();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 巡航航段
- /// </summary>
- public partial class CruiseSegment : pb::IMessage {
- private static readonly pb::MessageParser<CruiseSegment> _parser = new pb::MessageParser<CruiseSegment>(() => (CruiseSegment)MessagePool.Instance.Fetch(typeof(CruiseSegment)));
- public static pb::MessageParser<CruiseSegment> Parser { get { return _parser; } }
- private double cruiseAltitude_;
- public double CruiseAltitude {
- get { return cruiseAltitude_; }
- set {
- cruiseAltitude_ = value;
- }
- }
- private double cruiseVelocity_;
- public double CruiseVelocity {
- get { return cruiseVelocity_; }
- set {
- cruiseVelocity_ = value;
- }
- }
- private double cruiseFuelConsumptionRate_;
- public double CruiseFuelConsumptionRate {
- get { return cruiseFuelConsumptionRate_; }
- set {
- cruiseFuelConsumptionRate_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (CruiseAltitude != 0D) {
- output.WriteRawTag(9);
- output.WriteDouble(CruiseAltitude);
- }
- if (CruiseVelocity != 0D) {
- output.WriteRawTag(17);
- output.WriteDouble(CruiseVelocity);
- }
- if (CruiseFuelConsumptionRate != 0D) {
- output.WriteRawTag(25);
- output.WriteDouble(CruiseFuelConsumptionRate);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (CruiseAltitude != 0D) {
- size += 1 + 8;
- }
- if (CruiseVelocity != 0D) {
- size += 1 + 8;
- }
- if (CruiseFuelConsumptionRate != 0D) {
- size += 1 + 8;
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 9: {
- CruiseAltitude = input.ReadDouble();
- break;
- }
- case 17: {
- CruiseVelocity = input.ReadDouble();
- break;
- }
- case 25: {
- CruiseFuelConsumptionRate = input.ReadDouble();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 转弯航段
- /// </summary>
- public partial class TurningSegment : pb::IMessage {
- private static readonly pb::MessageParser<TurningSegment> _parser = new pb::MessageParser<TurningSegment>(() => (TurningSegment)MessagePool.Instance.Fetch(typeof(TurningSegment)));
- public static pb::MessageParser<TurningSegment> Parser { get { return _parser; } }
- private double turningRadius_;
- public double TurningRadius {
- get { return turningRadius_; }
- set {
- turningRadius_ = value;
- }
- }
- private double turningVelocity_;
- public double TurningVelocity {
- get { return turningVelocity_; }
- set {
- turningVelocity_ = value;
- }
- }
- private double climbFuelConsumptionRate_;
- public double ClimbFuelConsumptionRate {
- get { return climbFuelConsumptionRate_; }
- set {
- climbFuelConsumptionRate_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (TurningRadius != 0D) {
- output.WriteRawTag(9);
- output.WriteDouble(TurningRadius);
- }
- if (TurningVelocity != 0D) {
- output.WriteRawTag(17);
- output.WriteDouble(TurningVelocity);
- }
- if (ClimbFuelConsumptionRate != 0D) {
- output.WriteRawTag(25);
- output.WriteDouble(ClimbFuelConsumptionRate);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (TurningRadius != 0D) {
- size += 1 + 8;
- }
- if (TurningVelocity != 0D) {
- size += 1 + 8;
- }
- if (ClimbFuelConsumptionRate != 0D) {
- size += 1 + 8;
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 9: {
- TurningRadius = input.ReadDouble();
- break;
- }
- case 17: {
- TurningVelocity = input.ReadDouble();
- break;
- }
- case 25: {
- ClimbFuelConsumptionRate = input.ReadDouble();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 飞行计划编辑器(输入)
- /// </summary>
- public partial class C2S_FlyPlanInput : pb::IMessage {
- private static readonly pb::MessageParser<C2S_FlyPlanInput> _parser = new pb::MessageParser<C2S_FlyPlanInput>(() => (C2S_FlyPlanInput)MessagePool.Instance.Fetch(typeof(C2S_FlyPlanInput)));
- public static pb::MessageParser<C2S_FlyPlanInput> Parser { get { return _parser; } }
- private string missionName_ = "";
- /// <summary>
- /// 任务名称
- /// </summary>
- public string MissionName {
- get { return missionName_; }
- set {
- missionName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string missionType_ = "";
- /// <summary>
- /// 任务类型
- /// </summary>
- public string MissionType {
- get { return missionType_; }
- set {
- missionType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.Point> _repeated_missionRectangle_codec
- = pb::FieldCodec.ForMessage(26, global::KYFramework.Network.Point.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.Point> missionRectangle_ = new pbc::RepeatedField<global::KYFramework.Network.Point>();
- /// <summary>
- /// 任务矩形区域顶点集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.Point> MissionRectangle {
- get { return missionRectangle_; }
- set { missionRectangle_ = value; }
- }
- private double maxTakeoffWeight_;
- /// <summary>
- /// 最大起飞重量
- /// </summary>
- public double MaxTakeoffWeight {
- get { return maxTakeoffWeight_; }
- set {
- maxTakeoffWeight_ = value;
- }
- }
- private double takeoffEmptyWeight_;
- /// <summary>
- /// 起飞空重
- /// </summary>
- public double TakeoffEmptyWeight {
- get { return takeoffEmptyWeight_; }
- set {
- takeoffEmptyWeight_ = value;
- }
- }
- private double maxFlightRange_;
- /// <summary>
- /// 最大航程
- /// </summary>
- public double MaxFlightRange {
- get { return maxFlightRange_; }
- set {
- maxFlightRange_ = value;
- }
- }
- private double maxFlightTime_;
- /// <summary>
- /// 续航时间
- /// </summary>
- public double MaxFlightTime {
- get { return maxFlightTime_; }
- set {
- maxFlightTime_ = value;
- }
- }
- private double serviceCeiling_;
- /// <summary>
- /// 实用升限
- /// </summary>
- public double ServiceCeiling {
- get { return serviceCeiling_; }
- set {
- serviceCeiling_ = value;
- }
- }
- private double maxFuelCapacity_;
- /// <summary>
- /// 最大载油量
- /// </summary>
- public double MaxFuelCapacity {
- get { return maxFuelCapacity_; }
- set {
- maxFuelCapacity_ = value;
- }
- }
- private double maxWeightCapacity_;
- /// <summary>
- /// 最大商载量
- /// </summary>
- public double MaxWeightCapacity {
- get { return maxWeightCapacity_; }
- set {
- maxWeightCapacity_ = value;
- }
- }
- private string loadName_ = "";
- /// <summary>
- /// 载荷名称
- /// </summary>
- public string LoadName {
- get { return loadName_; }
- set {
- loadName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private int loadQuantity_;
- /// <summary>
- /// 载荷数量
- /// </summary>
- public int LoadQuantity {
- get { return loadQuantity_; }
- set {
- loadQuantity_ = value;
- }
- }
- private double loadWeight_;
- /// <summary>
- /// 载荷重量
- /// </summary>
- public double LoadWeight {
- get { return loadWeight_; }
- set {
- loadWeight_ = value;
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.CityWeather> _repeated_cityWeatherArr_codec
- = pb::FieldCodec.ForMessage(114, global::KYFramework.Network.CityWeather.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.CityWeather> cityWeatherArr_ = new pbc::RepeatedField<global::KYFramework.Network.CityWeather>();
- /// <summary>
- /// 行政区气象集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.CityWeather> CityWeatherArr {
- get { return cityWeatherArr_; }
- set { cityWeatherArr_ = value; }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.Base> _repeated_baseArr_codec
- = pb::FieldCodec.ForMessage(122, global::KYFramework.Network.Base.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.Base> baseArr_ = new pbc::RepeatedField<global::KYFramework.Network.Base>();
- /// <summary>
- /// 基地集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.Base> BaseArr {
- get { return baseArr_; }
- set { baseArr_ = value; }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.AirRoute> _repeated_airRouteArr_codec
- = pb::FieldCodec.ForMessage(130, global::KYFramework.Network.AirRoute.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.AirRoute> airRouteArr_ = new pbc::RepeatedField<global::KYFramework.Network.AirRoute>();
- /// <summary>
- /// 航线集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.AirRoute> AirRouteArr {
- get { return airRouteArr_; }
- set { airRouteArr_ = value; }
- }
- private string endSelection_ = "";
- /// <summary>
- /// 任务终点选择:Base代表返回基地,Point代表前往定点,Hover代表原地盘旋等待
- /// </summary>
- public string EndSelection {
- get { return endSelection_; }
- set {
- endSelection_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.Point> _repeated_terminusLocation_codec
- = pb::FieldCodec.ForMessage(146, global::KYFramework.Network.Point.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.Point> terminusLocation_ = new pbc::RepeatedField<global::KYFramework.Network.Point>();
- /// <summary>
- /// 终点位置集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.Point> TerminusLocation {
- get { return terminusLocation_; }
- set { terminusLocation_ = value; }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.NoFlyZoneCircle> _repeated_noFlyZoneCircleArr_codec
- = pb::FieldCodec.ForMessage(154, global::KYFramework.Network.NoFlyZoneCircle.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.NoFlyZoneCircle> noFlyZoneCircleArr_ = new pbc::RepeatedField<global::KYFramework.Network.NoFlyZoneCircle>();
- /// <summary>
- /// 圆形禁飞区集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.NoFlyZoneCircle> NoFlyZoneCircleArr {
- get { return noFlyZoneCircleArr_; }
- set { noFlyZoneCircleArr_ = value; }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.NoFlyZoneRect> _repeated_noFlyZoneRectArr_codec
- = pb::FieldCodec.ForMessage(162, global::KYFramework.Network.NoFlyZoneRect.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.NoFlyZoneRect> noFlyZoneRectArr_ = new pbc::RepeatedField<global::KYFramework.Network.NoFlyZoneRect>();
- /// <summary>
- /// 矩形禁飞区集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.NoFlyZoneRect> NoFlyZoneRectArr {
- get { return noFlyZoneRectArr_; }
- set { noFlyZoneRectArr_ = value; }
- }
- private double visualDistance_;
- /// <summary>
- /// 目视距离
- /// </summary>
- public double VisualDistance {
- get { return visualDistance_; }
- set {
- visualDistance_ = value;
- }
- }
- private string detourDirection_ = "";
- /// <summary>
- /// 火场绕行方向:Clockwise表示顺时针,Anticlockwise表示逆时针
- /// </summary>
- public string DetourDirection {
- get { return detourDirection_; }
- set {
- detourDirection_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private int numberOfDetour_;
- /// <summary>
- /// 火场绕行圈数
- /// </summary>
- public int NumberOfDetour {
- get { return numberOfDetour_; }
- set {
- numberOfDetour_ = value;
- }
- }
- private double detourIntervalDistance_;
- /// <summary>
- /// 绕行间隔距离
- /// </summary>
- public double DetourIntervalDistance {
- get { return detourIntervalDistance_; }
- set {
- detourIntervalDistance_ = value;
- }
- }
- private double detourVelocity_;
- /// <summary>
- /// 绕行速度
- /// </summary>
- public double DetourVelocity {
- get { return detourVelocity_; }
- set {
- detourVelocity_ = value;
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.Point> _repeated_firePointLocation_codec
- = pb::FieldCodec.ForMessage(210, global::KYFramework.Network.Point.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.Point> firePointLocation_ = new pbc::RepeatedField<global::KYFramework.Network.Point>();
- /// <summary>
- /// 火点位置集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.Point> FirePointLocation {
- get { return firePointLocation_; }
- set { firePointLocation_ = value; }
- }
- private double minTurningRadius_;
- /// <summary>
- /// 最小转弯半径
- /// </summary>
- public double MinTurningRadius {
- get { return minTurningRadius_; }
- set {
- minTurningRadius_ = value;
- }
- }
- private double maxTurningVelocity_;
- /// <summary>
- /// 最大转弯速度
- /// </summary>
- public double MaxTurningVelocity {
- get { return maxTurningVelocity_; }
- set {
- maxTurningVelocity_ = value;
- }
- }
- private double maxClimbVelocity_;
- /// <summary>
- /// 最大爬升速度
- /// </summary>
- public double MaxClimbVelocity {
- get { return maxClimbVelocity_; }
- set {
- maxClimbVelocity_ = value;
- }
- }
- private double maxDescentVelocity_;
- /// <summary>
- /// 最大下降速度
- /// </summary>
- public double MaxDescentVelocity {
- get { return maxDescentVelocity_; }
- set {
- maxDescentVelocity_ = value;
- }
- }
- private double maxCruiseVelocity_;
- /// <summary>
- /// 最大巡航速度
- /// </summary>
- public double MaxCruiseVelocity {
- get { return maxCruiseVelocity_; }
- set {
- maxCruiseVelocity_ = value;
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.ClimbSegment> _repeated_climbSegmentArr_codec
- = pb::FieldCodec.ForMessage(258, global::KYFramework.Network.ClimbSegment.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.ClimbSegment> climbSegmentArr_ = new pbc::RepeatedField<global::KYFramework.Network.ClimbSegment>();
- /// <summary>
- /// 爬升航段集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.ClimbSegment> ClimbSegmentArr {
- get { return climbSegmentArr_; }
- set { climbSegmentArr_ = value; }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.DescentSegment> _repeated_descentSegmentArr_codec
- = pb::FieldCodec.ForMessage(266, global::KYFramework.Network.DescentSegment.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.DescentSegment> descentSegmentArr_ = new pbc::RepeatedField<global::KYFramework.Network.DescentSegment>();
- /// <summary>
- /// 下降航段集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.DescentSegment> DescentSegmentArr {
- get { return descentSegmentArr_; }
- set { descentSegmentArr_ = value; }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.CruiseSegment> _repeated_cruiseSegmentArr_codec
- = pb::FieldCodec.ForMessage(274, global::KYFramework.Network.CruiseSegment.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.CruiseSegment> cruiseSegmentArr_ = new pbc::RepeatedField<global::KYFramework.Network.CruiseSegment>();
- /// <summary>
- /// 巡航航段集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.CruiseSegment> CruiseSegmentArr {
- get { return cruiseSegmentArr_; }
- set { cruiseSegmentArr_ = value; }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.TurningSegment> _repeated_turningSegmentArr_codec
- = pb::FieldCodec.ForMessage(282, global::KYFramework.Network.TurningSegment.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.TurningSegment> turningSegmentArr_ = new pbc::RepeatedField<global::KYFramework.Network.TurningSegment>();
- /// <summary>
- /// 转弯航段集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.TurningSegment> TurningSegmentArr {
- get { return turningSegmentArr_; }
- set { turningSegmentArr_ = value; }
- }
- private string aircraftID_ = "";
- /// <summary>
- /// 飞行器编号:按照“子任务-编队号-机号”方式命名”
- /// </summary>
- public string AircraftID {
- get { return aircraftID_; }
- set {
- aircraftID_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (MissionName.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(MissionName);
- }
- if (MissionType.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(MissionType);
- }
- missionRectangle_.WriteTo(output, _repeated_missionRectangle_codec);
- if (MaxTakeoffWeight != 0D) {
- output.WriteRawTag(33);
- output.WriteDouble(MaxTakeoffWeight);
- }
- if (TakeoffEmptyWeight != 0D) {
- output.WriteRawTag(41);
- output.WriteDouble(TakeoffEmptyWeight);
- }
- if (MaxFlightRange != 0D) {
- output.WriteRawTag(49);
- output.WriteDouble(MaxFlightRange);
- }
- if (MaxFlightTime != 0D) {
- output.WriteRawTag(57);
- output.WriteDouble(MaxFlightTime);
- }
- if (ServiceCeiling != 0D) {
- output.WriteRawTag(65);
- output.WriteDouble(ServiceCeiling);
- }
- if (MaxFuelCapacity != 0D) {
- output.WriteRawTag(73);
- output.WriteDouble(MaxFuelCapacity);
- }
- if (MaxWeightCapacity != 0D) {
- output.WriteRawTag(81);
- output.WriteDouble(MaxWeightCapacity);
- }
- if (LoadName.Length != 0) {
- output.WriteRawTag(90);
- output.WriteString(LoadName);
- }
- if (LoadQuantity != 0) {
- output.WriteRawTag(96);
- output.WriteInt32(LoadQuantity);
- }
- if (LoadWeight != 0D) {
- output.WriteRawTag(105);
- output.WriteDouble(LoadWeight);
- }
- cityWeatherArr_.WriteTo(output, _repeated_cityWeatherArr_codec);
- baseArr_.WriteTo(output, _repeated_baseArr_codec);
- airRouteArr_.WriteTo(output, _repeated_airRouteArr_codec);
- if (EndSelection.Length != 0) {
- output.WriteRawTag(138, 1);
- output.WriteString(EndSelection);
- }
- terminusLocation_.WriteTo(output, _repeated_terminusLocation_codec);
- noFlyZoneCircleArr_.WriteTo(output, _repeated_noFlyZoneCircleArr_codec);
- noFlyZoneRectArr_.WriteTo(output, _repeated_noFlyZoneRectArr_codec);
- if (VisualDistance != 0D) {
- output.WriteRawTag(169, 1);
- output.WriteDouble(VisualDistance);
- }
- if (DetourDirection.Length != 0) {
- output.WriteRawTag(178, 1);
- output.WriteString(DetourDirection);
- }
- if (NumberOfDetour != 0) {
- output.WriteRawTag(184, 1);
- output.WriteInt32(NumberOfDetour);
- }
- if (DetourIntervalDistance != 0D) {
- output.WriteRawTag(193, 1);
- output.WriteDouble(DetourIntervalDistance);
- }
- if (DetourVelocity != 0D) {
- output.WriteRawTag(201, 1);
- output.WriteDouble(DetourVelocity);
- }
- firePointLocation_.WriteTo(output, _repeated_firePointLocation_codec);
- if (MinTurningRadius != 0D) {
- output.WriteRawTag(217, 1);
- output.WriteDouble(MinTurningRadius);
- }
- if (MaxTurningVelocity != 0D) {
- output.WriteRawTag(225, 1);
- output.WriteDouble(MaxTurningVelocity);
- }
- if (MaxClimbVelocity != 0D) {
- output.WriteRawTag(233, 1);
- output.WriteDouble(MaxClimbVelocity);
- }
- if (MaxDescentVelocity != 0D) {
- output.WriteRawTag(241, 1);
- output.WriteDouble(MaxDescentVelocity);
- }
- if (MaxCruiseVelocity != 0D) {
- output.WriteRawTag(249, 1);
- output.WriteDouble(MaxCruiseVelocity);
- }
- climbSegmentArr_.WriteTo(output, _repeated_climbSegmentArr_codec);
- descentSegmentArr_.WriteTo(output, _repeated_descentSegmentArr_codec);
- cruiseSegmentArr_.WriteTo(output, _repeated_cruiseSegmentArr_codec);
- turningSegmentArr_.WriteTo(output, _repeated_turningSegmentArr_codec);
- if (AircraftID.Length != 0) {
- output.WriteRawTag(162, 2);
- output.WriteString(AircraftID);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (MissionName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(MissionName);
- }
- if (MissionType.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(MissionType);
- }
- size += missionRectangle_.CalculateSize(_repeated_missionRectangle_codec);
- if (MaxTakeoffWeight != 0D) {
- size += 1 + 8;
- }
- if (TakeoffEmptyWeight != 0D) {
- size += 1 + 8;
- }
- if (MaxFlightRange != 0D) {
- size += 1 + 8;
- }
- if (MaxFlightTime != 0D) {
- size += 1 + 8;
- }
- if (ServiceCeiling != 0D) {
- size += 1 + 8;
- }
- if (MaxFuelCapacity != 0D) {
- size += 1 + 8;
- }
- if (MaxWeightCapacity != 0D) {
- size += 1 + 8;
- }
- if (LoadName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(LoadName);
- }
- if (LoadQuantity != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(LoadQuantity);
- }
- if (LoadWeight != 0D) {
- size += 1 + 8;
- }
- size += cityWeatherArr_.CalculateSize(_repeated_cityWeatherArr_codec);
- size += baseArr_.CalculateSize(_repeated_baseArr_codec);
- size += airRouteArr_.CalculateSize(_repeated_airRouteArr_codec);
- if (EndSelection.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(EndSelection);
- }
- size += terminusLocation_.CalculateSize(_repeated_terminusLocation_codec);
- size += noFlyZoneCircleArr_.CalculateSize(_repeated_noFlyZoneCircleArr_codec);
- size += noFlyZoneRectArr_.CalculateSize(_repeated_noFlyZoneRectArr_codec);
- if (VisualDistance != 0D) {
- size += 2 + 8;
- }
- if (DetourDirection.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(DetourDirection);
- }
- if (NumberOfDetour != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(NumberOfDetour);
- }
- if (DetourIntervalDistance != 0D) {
- size += 2 + 8;
- }
- if (DetourVelocity != 0D) {
- size += 2 + 8;
- }
- size += firePointLocation_.CalculateSize(_repeated_firePointLocation_codec);
- if (MinTurningRadius != 0D) {
- size += 2 + 8;
- }
- if (MaxTurningVelocity != 0D) {
- size += 2 + 8;
- }
- if (MaxClimbVelocity != 0D) {
- size += 2 + 8;
- }
- if (MaxDescentVelocity != 0D) {
- size += 2 + 8;
- }
- if (MaxCruiseVelocity != 0D) {
- size += 2 + 8;
- }
- size += climbSegmentArr_.CalculateSize(_repeated_climbSegmentArr_codec);
- size += descentSegmentArr_.CalculateSize(_repeated_descentSegmentArr_codec);
- size += cruiseSegmentArr_.CalculateSize(_repeated_cruiseSegmentArr_codec);
- size += turningSegmentArr_.CalculateSize(_repeated_turningSegmentArr_codec);
- if (AircraftID.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(AircraftID);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- missionName_ = "";
- missionType_ = "";
- for (int i = 0; i < missionRectangle_.Count; i++) { MessagePool.Instance.Recycle(missionRectangle_[i]); }
- missionRectangle_.Clear();
- loadName_ = "";
- loadQuantity_ = 0;
- for (int i = 0; i < cityWeatherArr_.Count; i++) { MessagePool.Instance.Recycle(cityWeatherArr_[i]); }
- cityWeatherArr_.Clear();
- for (int i = 0; i < baseArr_.Count; i++) { MessagePool.Instance.Recycle(baseArr_[i]); }
- baseArr_.Clear();
- for (int i = 0; i < airRouteArr_.Count; i++) { MessagePool.Instance.Recycle(airRouteArr_[i]); }
- airRouteArr_.Clear();
- endSelection_ = "";
- for (int i = 0; i < terminusLocation_.Count; i++) { MessagePool.Instance.Recycle(terminusLocation_[i]); }
- terminusLocation_.Clear();
- for (int i = 0; i < noFlyZoneCircleArr_.Count; i++) { MessagePool.Instance.Recycle(noFlyZoneCircleArr_[i]); }
- noFlyZoneCircleArr_.Clear();
- for (int i = 0; i < noFlyZoneRectArr_.Count; i++) { MessagePool.Instance.Recycle(noFlyZoneRectArr_[i]); }
- noFlyZoneRectArr_.Clear();
- detourDirection_ = "";
- numberOfDetour_ = 0;
- for (int i = 0; i < firePointLocation_.Count; i++) { MessagePool.Instance.Recycle(firePointLocation_[i]); }
- firePointLocation_.Clear();
- for (int i = 0; i < climbSegmentArr_.Count; i++) { MessagePool.Instance.Recycle(climbSegmentArr_[i]); }
- climbSegmentArr_.Clear();
- for (int i = 0; i < descentSegmentArr_.Count; i++) { MessagePool.Instance.Recycle(descentSegmentArr_[i]); }
- descentSegmentArr_.Clear();
- for (int i = 0; i < cruiseSegmentArr_.Count; i++) { MessagePool.Instance.Recycle(cruiseSegmentArr_[i]); }
- cruiseSegmentArr_.Clear();
- for (int i = 0; i < turningSegmentArr_.Count; i++) { MessagePool.Instance.Recycle(turningSegmentArr_[i]); }
- turningSegmentArr_.Clear();
- aircraftID_ = "";
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- MissionName = input.ReadString();
- break;
- }
- case 18: {
- MissionType = input.ReadString();
- break;
- }
- case 26: {
- missionRectangle_.AddEntriesFrom(input, _repeated_missionRectangle_codec);
- break;
- }
- case 33: {
- MaxTakeoffWeight = input.ReadDouble();
- break;
- }
- case 41: {
- TakeoffEmptyWeight = input.ReadDouble();
- break;
- }
- case 49: {
- MaxFlightRange = input.ReadDouble();
- break;
- }
- case 57: {
- MaxFlightTime = input.ReadDouble();
- break;
- }
- case 65: {
- ServiceCeiling = input.ReadDouble();
- break;
- }
- case 73: {
- MaxFuelCapacity = input.ReadDouble();
- break;
- }
- case 81: {
- MaxWeightCapacity = input.ReadDouble();
- break;
- }
- case 90: {
- LoadName = input.ReadString();
- break;
- }
- case 96: {
- LoadQuantity = input.ReadInt32();
- break;
- }
- case 105: {
- LoadWeight = input.ReadDouble();
- break;
- }
- case 114: {
- cityWeatherArr_.AddEntriesFrom(input, _repeated_cityWeatherArr_codec);
- break;
- }
- case 122: {
- baseArr_.AddEntriesFrom(input, _repeated_baseArr_codec);
- break;
- }
- case 130: {
- airRouteArr_.AddEntriesFrom(input, _repeated_airRouteArr_codec);
- break;
- }
- case 138: {
- EndSelection = input.ReadString();
- break;
- }
- case 146: {
- terminusLocation_.AddEntriesFrom(input, _repeated_terminusLocation_codec);
- break;
- }
- case 154: {
- noFlyZoneCircleArr_.AddEntriesFrom(input, _repeated_noFlyZoneCircleArr_codec);
- break;
- }
- case 162: {
- noFlyZoneRectArr_.AddEntriesFrom(input, _repeated_noFlyZoneRectArr_codec);
- break;
- }
- case 169: {
- VisualDistance = input.ReadDouble();
- break;
- }
- case 178: {
- DetourDirection = input.ReadString();
- break;
- }
- case 184: {
- NumberOfDetour = input.ReadInt32();
- break;
- }
- case 193: {
- DetourIntervalDistance = input.ReadDouble();
- break;
- }
- case 201: {
- DetourVelocity = input.ReadDouble();
- break;
- }
- case 210: {
- firePointLocation_.AddEntriesFrom(input, _repeated_firePointLocation_codec);
- break;
- }
- case 217: {
- MinTurningRadius = input.ReadDouble();
- break;
- }
- case 225: {
- MaxTurningVelocity = input.ReadDouble();
- break;
- }
- case 233: {
- MaxClimbVelocity = input.ReadDouble();
- break;
- }
- case 241: {
- MaxDescentVelocity = input.ReadDouble();
- break;
- }
- case 249: {
- MaxCruiseVelocity = input.ReadDouble();
- break;
- }
- case 258: {
- climbSegmentArr_.AddEntriesFrom(input, _repeated_climbSegmentArr_codec);
- break;
- }
- case 266: {
- descentSegmentArr_.AddEntriesFrom(input, _repeated_descentSegmentArr_codec);
- break;
- }
- case 274: {
- cruiseSegmentArr_.AddEntriesFrom(input, _repeated_cruiseSegmentArr_codec);
- break;
- }
- case 282: {
- turningSegmentArr_.AddEntriesFrom(input, _repeated_turningSegmentArr_codec);
- break;
- }
- case 290: {
- AircraftID = input.ReadString();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 飞行计划编辑器(输出)
- /// </summary>
- public partial class S2C_FlyPlanOutput : pb::IMessage {
- private static readonly pb::MessageParser<S2C_FlyPlanOutput> _parser = new pb::MessageParser<S2C_FlyPlanOutput>(() => (S2C_FlyPlanOutput)MessagePool.Instance.Fetch(typeof(S2C_FlyPlanOutput)));
- public static pb::MessageParser<S2C_FlyPlanOutput> Parser { get { return _parser; } }
- private string aircraftID_ = "";
- /// <summary>
- /// 飞行器编号
- /// </summary>
- public string AircraftID {
- get { return aircraftID_; }
- set {
- aircraftID_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.PlanTurningPoint> _repeated_planTurningPointArr_codec
- = pb::FieldCodec.ForMessage(18, global::KYFramework.Network.PlanTurningPoint.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.PlanTurningPoint> planTurningPointArr_ = new pbc::RepeatedField<global::KYFramework.Network.PlanTurningPoint>();
- /// <summary>
- /// 飞行航路点集合
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.PlanTurningPoint> PlanTurningPointArr {
- get { return planTurningPointArr_; }
- set { planTurningPointArr_ = value; }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (AircraftID.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(AircraftID);
- }
- planTurningPointArr_.WriteTo(output, _repeated_planTurningPointArr_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (AircraftID.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(AircraftID);
- }
- size += planTurningPointArr_.CalculateSize(_repeated_planTurningPointArr_codec);
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- aircraftID_ = "";
- for (int i = 0; i < planTurningPointArr_.Count; i++) { MessagePool.Instance.Recycle(planTurningPointArr_[i]); }
- planTurningPointArr_.Clear();
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- AircraftID = input.ReadString();
- break;
- }
- case 18: {
- planTurningPointArr_.AddEntriesFrom(input, _repeated_planTurningPointArr_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 计划航路点
- /// </summary>
- public partial class PlanTurningPoint : pb::IMessage {
- private static readonly pb::MessageParser<PlanTurningPoint> _parser = new pb::MessageParser<PlanTurningPoint>(() => (PlanTurningPoint)MessagePool.Instance.Fetch(typeof(PlanTurningPoint)));
- public static pb::MessageParser<PlanTurningPoint> Parser { get { return _parser; } }
- private string name_ = "";
- /// <summary>
- /// 名称:爬升、巡航、转弯、下降、观测火场
- /// </summary>
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private global::KYFramework.Network.Point location_;
- /// <summary>
- /// 位置
- /// </summary>
- public global::KYFramework.Network.Point Location {
- get { return location_; }
- set {
- location_ = value;
- }
- }
- private string type_ = "";
- /// <summary>
- /// 类型:普通、转弯、取水任务、灭火任务
- /// </summary>
- public string Type {
- get { return type_; }
- set {
- type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private double velocity_;
- /// <summary>
- /// 速度
- /// </summary>
- public double Velocity {
- get { return velocity_; }
- set {
- velocity_ = value;
- }
- }
- private double segmentConsumption_;
- /// <summary>
- /// 航段油耗
- /// </summary>
- public double SegmentConsumption {
- get { return segmentConsumption_; }
- set {
- segmentConsumption_ = value;
- }
- }
- private double segmentTime_;
- /// <summary>
- /// 航段飞行时间
- /// </summary>
- public double SegmentTime {
- get { return segmentTime_; }
- set {
- segmentTime_ = value;
- }
- }
- private double radius_;
- /// <summary>
- /// 转弯半径
- /// </summary>
- public double Radius {
- get { return radius_; }
- set {
- radius_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (location_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Location);
- }
- if (Type.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(Type);
- }
- if (Velocity != 0D) {
- output.WriteRawTag(33);
- output.WriteDouble(Velocity);
- }
- if (SegmentConsumption != 0D) {
- output.WriteRawTag(41);
- output.WriteDouble(SegmentConsumption);
- }
- if (SegmentTime != 0D) {
- output.WriteRawTag(49);
- output.WriteDouble(SegmentTime);
- }
- if (Radius != 0D) {
- output.WriteRawTag(57);
- output.WriteDouble(Radius);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (location_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location);
- }
- if (Type.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
- }
- if (Velocity != 0D) {
- size += 1 + 8;
- }
- if (SegmentConsumption != 0D) {
- size += 1 + 8;
- }
- if (SegmentTime != 0D) {
- size += 1 + 8;
- }
- if (Radius != 0D) {
- size += 1 + 8;
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- name_ = "";
- if (location_ != null) MessagePool.Instance.Recycle(location_); location_ = null;
- type_ = "";
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- if (location_ == null) {
- location_ = new global::KYFramework.Network.Point();
- }
- input.ReadMessage(location_);
- break;
- }
- case 26: {
- Type = input.ReadString();
- break;
- }
- case 33: {
- Velocity = input.ReadDouble();
- break;
- }
- case 41: {
- SegmentConsumption = input.ReadDouble();
- break;
- }
- case 49: {
- SegmentTime = input.ReadDouble();
- break;
- }
- case 57: {
- Radius = input.ReadDouble();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 航路曲线(输出)
- /// </summary>
- public partial class S2C_TurningPointOutput : pb::IMessage {
- private static readonly pb::MessageParser<S2C_TurningPointOutput> _parser = new pb::MessageParser<S2C_TurningPointOutput>(() => (S2C_TurningPointOutput)MessagePool.Instance.Fetch(typeof(S2C_TurningPointOutput)));
- public static pb::MessageParser<S2C_TurningPointOutput> Parser { get { return _parser; } }
- private string aircraftID_ = "";
- /// <summary>
- /// 飞行器编号
- /// </summary>
- public string AircraftID {
- get { return aircraftID_; }
- set {
- aircraftID_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string turningPointName_ = "";
- /// <summary>
- /// 飞行航路点名称
- /// </summary>
- public string TurningPointName {
- get { return turningPointName_; }
- set {
- turningPointName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.Point> _repeated_turningPointLocation_codec
- = pb::FieldCodec.ForMessage(26, global::KYFramework.Network.Point.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.Point> turningPointLocation_ = new pbc::RepeatedField<global::KYFramework.Network.Point>();
- /// <summary>
- /// 飞行航路点位置列表
- /// </summary>
- public pbc::RepeatedField<global::KYFramework.Network.Point> TurningPointLocation {
- get { return turningPointLocation_; }
- set { turningPointLocation_ = value; }
- }
- private string presentMission_ = "";
- /// <summary>
- /// 当前任务阶段
- /// </summary>
- public string PresentMission {
- get { return presentMission_; }
- set {
- presentMission_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string presentTarget_ = "";
- /// <summary>
- /// 当前飞行目标点
- /// </summary>
- public string PresentTarget {
- get { return presentTarget_; }
- set {
- presentTarget_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string startDate_ = "";
- /// <summary>
- /// 航路开始日期
- /// </summary>
- public string StartDate {
- get { return startDate_; }
- set {
- startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string startTime_ = "";
- /// <summary>
- /// 航路开始时间
- /// </summary>
- public string StartTime {
- get { return startTime_; }
- set {
- startTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string endDate_ = "";
- /// <summary>
- /// 航路结束日期
- /// </summary>
- public string EndDate {
- get { return endDate_; }
- set {
- endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string endTime_ = "";
- /// <summary>
- /// 航路结束时间
- /// </summary>
- public string EndTime {
- get { return endTime_; }
- set {
- endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private double elapsedTime_;
- /// <summary>
- /// 已飞行时间
- /// </summary>
- public double ElapsedTime {
- get { return elapsedTime_; }
- set {
- elapsedTime_ = value;
- }
- }
- private string presentDate_ = "";
- /// <summary>
- /// 当前日期
- /// </summary>
- public string PresentDate {
- get { return presentDate_; }
- set {
- presentDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string presentTime_ = "";
- /// <summary>
- /// 当前时刻
- /// </summary>
- public string PresentTime {
- get { return presentTime_; }
- set {
- presentTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private global::KYFramework.Network.Point presentLocation_;
- /// <summary>
- /// 当前位置
- /// </summary>
- public global::KYFramework.Network.Point PresentLocation {
- get { return presentLocation_; }
- set {
- presentLocation_ = value;
- }
- }
- private double presentFuelConsumption_;
- /// <summary>
- /// 当前已消耗油量
- /// </summary>
- public double PresentFuelConsumption {
- get { return presentFuelConsumption_; }
- set {
- presentFuelConsumption_ = value;
- }
- }
- private double presentRemainingFuel_;
- /// <summary>
- /// 当前剩余油量
- /// </summary>
- public double PresentRemainingFuel {
- get { return presentRemainingFuel_; }
- set {
- presentRemainingFuel_ = value;
- }
- }
- private double presentVelocity_;
- /// <summary>
- /// 当前飞行速度
- /// </summary>
- public double PresentVelocity {
- get { return presentVelocity_; }
- set {
- presentVelocity_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (AircraftID.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(AircraftID);
- }
- if (TurningPointName.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(TurningPointName);
- }
- turningPointLocation_.WriteTo(output, _repeated_turningPointLocation_codec);
- if (PresentMission.Length != 0) {
- output.WriteRawTag(34);
- output.WriteString(PresentMission);
- }
- if (PresentTarget.Length != 0) {
- output.WriteRawTag(42);
- output.WriteString(PresentTarget);
- }
- if (StartDate.Length != 0) {
- output.WriteRawTag(50);
- output.WriteString(StartDate);
- }
- if (StartTime.Length != 0) {
- output.WriteRawTag(58);
- output.WriteString(StartTime);
- }
- if (EndDate.Length != 0) {
- output.WriteRawTag(66);
- output.WriteString(EndDate);
- }
- if (EndTime.Length != 0) {
- output.WriteRawTag(74);
- output.WriteString(EndTime);
- }
- if (ElapsedTime != 0D) {
- output.WriteRawTag(81);
- output.WriteDouble(ElapsedTime);
- }
- if (PresentDate.Length != 0) {
- output.WriteRawTag(90);
- output.WriteString(PresentDate);
- }
- if (PresentTime.Length != 0) {
- output.WriteRawTag(98);
- output.WriteString(PresentTime);
- }
- if (presentLocation_ != null) {
- output.WriteRawTag(106);
- output.WriteMessage(PresentLocation);
- }
- if (PresentFuelConsumption != 0D) {
- output.WriteRawTag(113);
- output.WriteDouble(PresentFuelConsumption);
- }
- if (PresentRemainingFuel != 0D) {
- output.WriteRawTag(121);
- output.WriteDouble(PresentRemainingFuel);
- }
- if (PresentVelocity != 0D) {
- output.WriteRawTag(129, 1);
- output.WriteDouble(PresentVelocity);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (AircraftID.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(AircraftID);
- }
- if (TurningPointName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(TurningPointName);
- }
- size += turningPointLocation_.CalculateSize(_repeated_turningPointLocation_codec);
- if (PresentMission.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(PresentMission);
- }
- if (PresentTarget.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(PresentTarget);
- }
- if (StartDate.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate);
- }
- if (StartTime.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(StartTime);
- }
- if (EndDate.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate);
- }
- if (EndTime.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(EndTime);
- }
- if (ElapsedTime != 0D) {
- size += 1 + 8;
- }
- if (PresentDate.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(PresentDate);
- }
- if (PresentTime.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(PresentTime);
- }
- if (presentLocation_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(PresentLocation);
- }
- if (PresentFuelConsumption != 0D) {
- size += 1 + 8;
- }
- if (PresentRemainingFuel != 0D) {
- size += 1 + 8;
- }
- if (PresentVelocity != 0D) {
- size += 2 + 8;
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- aircraftID_ = "";
- turningPointName_ = "";
- for (int i = 0; i < turningPointLocation_.Count; i++) { MessagePool.Instance.Recycle(turningPointLocation_[i]); }
- turningPointLocation_.Clear();
- presentMission_ = "";
- presentTarget_ = "";
- startDate_ = "";
- startTime_ = "";
- endDate_ = "";
- endTime_ = "";
- presentDate_ = "";
- presentTime_ = "";
- if (presentLocation_ != null) MessagePool.Instance.Recycle(presentLocation_); presentLocation_ = null;
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- AircraftID = input.ReadString();
- break;
- }
- case 18: {
- TurningPointName = input.ReadString();
- break;
- }
- case 26: {
- turningPointLocation_.AddEntriesFrom(input, _repeated_turningPointLocation_codec);
- break;
- }
- case 34: {
- PresentMission = input.ReadString();
- break;
- }
- case 42: {
- PresentTarget = input.ReadString();
- break;
- }
- case 50: {
- StartDate = input.ReadString();
- break;
- }
- case 58: {
- StartTime = input.ReadString();
- break;
- }
- case 66: {
- EndDate = input.ReadString();
- break;
- }
- case 74: {
- EndTime = input.ReadString();
- break;
- }
- case 81: {
- ElapsedTime = input.ReadDouble();
- break;
- }
- case 90: {
- PresentDate = input.ReadString();
- break;
- }
- case 98: {
- PresentTime = input.ReadString();
- break;
- }
- case 106: {
- if (presentLocation_ == null) {
- presentLocation_ = new global::KYFramework.Network.Point();
- }
- input.ReadMessage(presentLocation_);
- break;
- }
- case 113: {
- PresentFuelConsumption = input.ReadDouble();
- break;
- }
- case 121: {
- PresentRemainingFuel = input.ReadDouble();
- break;
- }
- case 129: {
- PresentVelocity = input.ReadDouble();
- break;
- }
- }
- }
- }
- }
- public partial class C2S_GetReport : pb::IMessage {
- private static readonly pb::MessageParser<C2S_GetReport> _parser = new pb::MessageParser<C2S_GetReport>(() => (C2S_GetReport)MessagePool.Instance.Fetch(typeof(C2S_GetReport)));
- public static pb::MessageParser<C2S_GetReport> Parser { get { return _parser; } }
- private int rpcId_;
- public int RpcId {
- get { return rpcId_; }
- set {
- rpcId_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (RpcId != 0) {
- output.WriteRawTag(208, 5);
- output.WriteInt32(RpcId);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (RpcId != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- rpcId_ = 0;
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 720: {
- RpcId = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public partial class S2C_GetReport : pb::IMessage {
- private static readonly pb::MessageParser<S2C_GetReport> _parser = new pb::MessageParser<S2C_GetReport>(() => (S2C_GetReport)MessagePool.Instance.Fetch(typeof(S2C_GetReport)));
- public static pb::MessageParser<S2C_GetReport> Parser { get { return _parser; } }
- private int rpcId_;
- public int RpcId {
- get { return rpcId_; }
- set {
- rpcId_ = value;
- }
- }
- private int error_;
- public int Error {
- get { return error_; }
- set {
- error_ = value;
- }
- }
- private string message_ = "";
- public string Message {
- get { return message_; }
- set {
- message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.ResportWithTaskName> _repeated_reports_codec
- = pb::FieldCodec.ForMessage(746, global::KYFramework.Network.ResportWithTaskName.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.ResportWithTaskName> reports_ = new pbc::RepeatedField<global::KYFramework.Network.ResportWithTaskName>();
- public pbc::RepeatedField<global::KYFramework.Network.ResportWithTaskName> Reports {
- get { return reports_; }
- set { reports_ = value; }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (RpcId != 0) {
- output.WriteRawTag(208, 5);
- output.WriteInt32(RpcId);
- }
- if (Error != 0) {
- output.WriteRawTag(216, 5);
- output.WriteInt32(Error);
- }
- if (Message.Length != 0) {
- output.WriteRawTag(226, 5);
- output.WriteString(Message);
- }
- reports_.WriteTo(output, _repeated_reports_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (RpcId != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
- }
- if (Error != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Error);
- }
- if (Message.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(Message);
- }
- size += reports_.CalculateSize(_repeated_reports_codec);
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- rpcId_ = 0;
- error_ = 0;
- message_ = "";
- for (int i = 0; i < reports_.Count; i++) { MessagePool.Instance.Recycle(reports_[i]); }
- reports_.Clear();
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 720: {
- RpcId = input.ReadInt32();
- break;
- }
- case 728: {
- Error = input.ReadInt32();
- break;
- }
- case 738: {
- Message = input.ReadString();
- break;
- }
- case 746: {
- reports_.AddEntriesFrom(input, _repeated_reports_codec);
- break;
- }
- }
- }
- }
- }
- public partial class ResportWithTaskName : pb::IMessage {
- private static readonly pb::MessageParser<ResportWithTaskName> _parser = new pb::MessageParser<ResportWithTaskName>(() => (ResportWithTaskName)MessagePool.Instance.Fetch(typeof(ResportWithTaskName)));
- public static pb::MessageParser<ResportWithTaskName> Parser { get { return _parser; } }
- private int firePointId_;
- public int FirePointId {
- get { return firePointId_; }
- set {
- firePointId_ = value;
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.EntitySheetReportValue> _repeated_entitySheetReportValueArr_codec
- = pb::FieldCodec.ForMessage(18, global::KYFramework.Network.EntitySheetReportValue.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.EntitySheetReportValue> entitySheetReportValueArr_ = new pbc::RepeatedField<global::KYFramework.Network.EntitySheetReportValue>();
- public pbc::RepeatedField<global::KYFramework.Network.EntitySheetReportValue> EntitySheetReportValueArr {
- get { return entitySheetReportValueArr_; }
- set { entitySheetReportValueArr_ = value; }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (FirePointId != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(FirePointId);
- }
- entitySheetReportValueArr_.WriteTo(output, _repeated_entitySheetReportValueArr_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (FirePointId != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FirePointId);
- }
- size += entitySheetReportValueArr_.CalculateSize(_repeated_entitySheetReportValueArr_codec);
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- firePointId_ = 0;
- for (int i = 0; i < entitySheetReportValueArr_.Count; i++) { MessagePool.Instance.Recycle(entitySheetReportValueArr_[i]); }
- entitySheetReportValueArr_.Clear();
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- FirePointId = input.ReadInt32();
- break;
- }
- case 18: {
- entitySheetReportValueArr_.AddEntriesFrom(input, _repeated_entitySheetReportValueArr_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 仿真开始
- /// </summary>
- public partial class C2S_StmulationStart : pb::IMessage {
- private static readonly pb::MessageParser<C2S_StmulationStart> _parser = new pb::MessageParser<C2S_StmulationStart>(() => (C2S_StmulationStart)MessagePool.Instance.Fetch(typeof(C2S_StmulationStart)));
- public static pb::MessageParser<C2S_StmulationStart> Parser { get { return _parser; } }
- public void WriteTo(pb::CodedOutputStream output) {
- }
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
- }
- /// <summary>
- /// 仿真倍速调整
- /// </summary>
- public partial class C2S_StmulationTimeScale : pb::IMessage {
- private static readonly pb::MessageParser<C2S_StmulationTimeScale> _parser = new pb::MessageParser<C2S_StmulationTimeScale>(() => (C2S_StmulationTimeScale)MessagePool.Instance.Fetch(typeof(C2S_StmulationTimeScale)));
- public static pb::MessageParser<C2S_StmulationTimeScale> Parser { get { return _parser; } }
- private int timeScale_;
- public int TimeScale {
- get { return timeScale_; }
- set {
- timeScale_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (TimeScale != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(TimeScale);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (TimeScale != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimeScale);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- timeScale_ = 0;
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- TimeScale = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 仿真结束
- /// </summary>
- public partial class S2C_StmulationEnd : pb::IMessage {
- private static readonly pb::MessageParser<S2C_StmulationEnd> _parser = new pb::MessageParser<S2C_StmulationEnd>(() => (S2C_StmulationEnd)MessagePool.Instance.Fetch(typeof(S2C_StmulationEnd)));
- public static pb::MessageParser<S2C_StmulationEnd> Parser { get { return _parser; } }
- private int firePointId_;
- public int FirePointId {
- get { return firePointId_; }
- set {
- firePointId_ = value;
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.EntitySheetReportValue> _repeated_entitySheetReportValueArr_codec
- = pb::FieldCodec.ForMessage(18, global::KYFramework.Network.EntitySheetReportValue.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.EntitySheetReportValue> entitySheetReportValueArr_ = new pbc::RepeatedField<global::KYFramework.Network.EntitySheetReportValue>();
- public pbc::RepeatedField<global::KYFramework.Network.EntitySheetReportValue> EntitySheetReportValueArr {
- get { return entitySheetReportValueArr_; }
- set { entitySheetReportValueArr_ = value; }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (FirePointId != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(FirePointId);
- }
- entitySheetReportValueArr_.WriteTo(output, _repeated_entitySheetReportValueArr_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (FirePointId != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FirePointId);
- }
- size += entitySheetReportValueArr_.CalculateSize(_repeated_entitySheetReportValueArr_codec);
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- firePointId_ = 0;
- for (int i = 0; i < entitySheetReportValueArr_.Count; i++) { MessagePool.Instance.Recycle(entitySheetReportValueArr_[i]); }
- entitySheetReportValueArr_.Clear();
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- FirePointId = input.ReadInt32();
- break;
- }
- case 18: {
- entitySheetReportValueArr_.AddEntriesFrom(input, _repeated_entitySheetReportValueArr_codec);
- break;
- }
- }
- }
- }
- }
- public partial class EntitySheetReportValue : pb::IMessage {
- private static readonly pb::MessageParser<EntitySheetReportValue> _parser = new pb::MessageParser<EntitySheetReportValue>(() => (EntitySheetReportValue)MessagePool.Instance.Fetch(typeof(EntitySheetReportValue)));
- public static pb::MessageParser<EntitySheetReportValue> Parser { get { return _parser; } }
- private string name_ = "";
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.SheetReportValue> _repeated_sheetReportValueArr_codec
- = pb::FieldCodec.ForMessage(18, global::KYFramework.Network.SheetReportValue.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.SheetReportValue> sheetReportValueArr_ = new pbc::RepeatedField<global::KYFramework.Network.SheetReportValue>();
- public pbc::RepeatedField<global::KYFramework.Network.SheetReportValue> SheetReportValueArr {
- get { return sheetReportValueArr_; }
- set { sheetReportValueArr_ = value; }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- sheetReportValueArr_.WriteTo(output, _repeated_sheetReportValueArr_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- size += sheetReportValueArr_.CalculateSize(_repeated_sheetReportValueArr_codec);
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- name_ = "";
- for (int i = 0; i < sheetReportValueArr_.Count; i++) { MessagePool.Instance.Recycle(sheetReportValueArr_[i]); }
- sheetReportValueArr_.Clear();
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- sheetReportValueArr_.AddEntriesFrom(input, _repeated_sheetReportValueArr_codec);
- break;
- }
- }
- }
- }
- }
- public partial class SheetReportValue : pb::IMessage {
- private static readonly pb::MessageParser<SheetReportValue> _parser = new pb::MessageParser<SheetReportValue>(() => (SheetReportValue)MessagePool.Instance.Fetch(typeof(SheetReportValue)));
- public static pb::MessageParser<SheetReportValue> Parser { get { return _parser; } }
- private string name_ = "";
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private static readonly pb::FieldCodec<global::KYFramework.Network.ReportValue> _repeated_valueArr_codec
- = pb::FieldCodec.ForMessage(18, global::KYFramework.Network.ReportValue.Parser);
- private pbc::RepeatedField<global::KYFramework.Network.ReportValue> valueArr_ = new pbc::RepeatedField<global::KYFramework.Network.ReportValue>();
- public pbc::RepeatedField<global::KYFramework.Network.ReportValue> ValueArr {
- get { return valueArr_; }
- set { valueArr_ = value; }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- valueArr_.WriteTo(output, _repeated_valueArr_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- size += valueArr_.CalculateSize(_repeated_valueArr_codec);
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- name_ = "";
- for (int i = 0; i < valueArr_.Count; i++) { MessagePool.Instance.Recycle(valueArr_[i]); }
- valueArr_.Clear();
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- valueArr_.AddEntriesFrom(input, _repeated_valueArr_codec);
- break;
- }
- }
- }
- }
- }
- public partial class ReportValue : pb::IMessage {
- private static readonly pb::MessageParser<ReportValue> _parser = new pb::MessageParser<ReportValue>(() => (ReportValue)MessagePool.Instance.Fetch(typeof(ReportValue)));
- public static pb::MessageParser<ReportValue> Parser { get { return _parser; } }
- private string name_ = "";
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string value_ = "";
- public string Value {
- get { return value_; }
- set {
- value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (Value.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Value);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (Value.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- name_ = "";
- value_ = "";
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- Value = input.ReadString();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 请求 效能评估
- /// </summary>
- public partial class C2S_SimulationResult : pb::IMessage {
- private static readonly pb::MessageParser<C2S_SimulationResult> _parser = new pb::MessageParser<C2S_SimulationResult>(() => (C2S_SimulationResult)MessagePool.Instance.Fetch(typeof(C2S_SimulationResult)));
- public static pb::MessageParser<C2S_SimulationResult> Parser { get { return _parser; } }
- private int rpcId_;
- public int RpcId {
- get { return rpcId_; }
- set {
- rpcId_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (RpcId != 0) {
- output.WriteRawTag(208, 5);
- output.WriteInt32(RpcId);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (RpcId != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- rpcId_ = 0;
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 720: {
- RpcId = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 返回 效能评估
- /// </summary>
- public partial class S2C_SimulatinResult : pb::IMessage {
- private static readonly pb::MessageParser<S2C_SimulatinResult> _parser = new pb::MessageParser<S2C_SimulatinResult>(() => (S2C_SimulatinResult)MessagePool.Instance.Fetch(typeof(S2C_SimulatinResult)));
- public static pb::MessageParser<S2C_SimulatinResult> Parser { get { return _parser; } }
- private int rpcId_;
- public int RpcId {
- get { return rpcId_; }
- set {
- rpcId_ = value;
- }
- }
- private int error_;
- public int Error {
- get { return error_; }
- set {
- error_ = value;
- }
- }
- private string message_ = "";
- public string Message {
- get { return message_; }
- set {
- message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private double taskResponseTime_;
- /// <summary>
- /// 任务响应时间(秒)
- /// </summary>
- public double TaskResponseTime {
- get { return taskResponseTime_; }
- set {
- taskResponseTime_ = value;
- }
- }
- private double taskTotalTime_;
- /// <summary>
- /// 总任务耗时(秒)
- /// </summary>
- public double TaskTotalTime {
- get { return taskTotalTime_; }
- set {
- taskTotalTime_ = value;
- }
- }
- private double singleJoinTime_;
- /// <summary>
- /// 单机入场时间(秒)
- /// </summary>
- public double SingleJoinTime {
- get { return singleJoinTime_; }
- set {
- singleJoinTime_ = value;
- }
- }
- private double singleEffectiveTaskTime_;
- /// <summary>
- /// 单机有效任务时长(秒)
- /// </summary>
- public double SingleEffectiveTaskTime {
- get { return singleEffectiveTaskTime_; }
- set {
- singleEffectiveTaskTime_ = value;
- }
- }
- private double singleAllPeopeo_;
- /// <summary>
- /// 单机总投送人数(人)
- /// </summary>
- public double SingleAllPeopeo {
- get { return singleAllPeopeo_; }
- set {
- singleAllPeopeo_ = value;
- }
- }
- private double singleEachPeople_;
- /// <summary>
- /// 单机单次投送人数(人)
- /// </summary>
- public double SingleEachPeople {
- get { return singleEachPeople_; }
- set {
- singleEachPeople_ = value;
- }
- }
- private double speedPatrol_;
- /// <summary>
- /// 巡护速度(km/h)
- /// </summary>
- public double SpeedPatrol {
- get { return speedPatrol_; }
- set {
- speedPatrol_ = value;
- }
- }
- private double voyagePatrol_;
- /// <summary>
- /// 巡护航程 (km)
- /// </summary>
- public double VoyagePatrol {
- get { return voyagePatrol_; }
- set {
- voyagePatrol_ = value;
- }
- }
- private double timeAllPatrol_;
- /// <summary>
- /// 总巡护耗时 (秒)
- /// </summary>
- public double TimeAllPatrol {
- get { return timeAllPatrol_; }
- set {
- timeAllPatrol_ = value;
- }
- }
- private double fireJoinTime_;
- /// <summary>
- /// 火情入场时间 (秒)
- /// </summary>
- public double FireJoinTime {
- get { return fireJoinTime_; }
- set {
- fireJoinTime_ = value;
- }
- }
- private double fuelSingle_;
- /// <summary>
- /// 单机总油耗 (kg)
- /// </summary>
- public double FuelSingle {
- get { return fuelSingle_; }
- set {
- fuelSingle_ = value;
- }
- }
- private string airportUseSituation_ = "";
- /// <summary>
- /// 单机机场使用情况
- /// </summary>
- public string AirportUseSituation {
- get { return airportUseSituation_; }
- set {
- airportUseSituation_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string navUseSituation_ = "";
- /// <summary>
- /// 单机导航使用情况
- /// </summary>
- public string NavUseSituation {
- get { return navUseSituation_; }
- set {
- navUseSituation_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private double fireJoinTimeEconomical_;
- /// <summary>
- /// 单机总任务时长(秒)
- /// </summary>
- public double FireJoinTimeEconomical {
- get { return fireJoinTimeEconomical_; }
- set {
- fireJoinTimeEconomical_ = value;
- }
- }
- private double fuelSingleEconomical_;
- /// <summary>
- /// 单机总油耗(kg)
- /// </summary>
- public double FuelSingleEconomical {
- get { return fuelSingleEconomical_; }
- set {
- fuelSingleEconomical_ = value;
- }
- }
- private string airportUseSituationEconomical_ = "";
- /// <summary>
- /// 单机机场使用情况
- /// </summary>
- public string AirportUseSituationEconomical {
- get { return airportUseSituationEconomical_; }
- set {
- airportUseSituationEconomical_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private string navUseSituationEconomical_ = "";
- /// <summary>
- /// 单机导航使用情况
- /// </summary>
- public string NavUseSituationEconomical {
- get { return navUseSituationEconomical_; }
- set {
- navUseSituationEconomical_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (RpcId != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(RpcId);
- }
- if (Error != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Error);
- }
- if (Message.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(Message);
- }
- if (TaskResponseTime != 0D) {
- output.WriteRawTag(33);
- output.WriteDouble(TaskResponseTime);
- }
- if (TaskTotalTime != 0D) {
- output.WriteRawTag(41);
- output.WriteDouble(TaskTotalTime);
- }
- if (SingleJoinTime != 0D) {
- output.WriteRawTag(49);
- output.WriteDouble(SingleJoinTime);
- }
- if (SingleEffectiveTaskTime != 0D) {
- output.WriteRawTag(57);
- output.WriteDouble(SingleEffectiveTaskTime);
- }
- if (SingleAllPeopeo != 0D) {
- output.WriteRawTag(65);
- output.WriteDouble(SingleAllPeopeo);
- }
- if (SingleEachPeople != 0D) {
- output.WriteRawTag(73);
- output.WriteDouble(SingleEachPeople);
- }
- if (SpeedPatrol != 0D) {
- output.WriteRawTag(81);
- output.WriteDouble(SpeedPatrol);
- }
- if (VoyagePatrol != 0D) {
- output.WriteRawTag(89);
- output.WriteDouble(VoyagePatrol);
- }
- if (TimeAllPatrol != 0D) {
- output.WriteRawTag(97);
- output.WriteDouble(TimeAllPatrol);
- }
- if (FireJoinTime != 0D) {
- output.WriteRawTag(105);
- output.WriteDouble(FireJoinTime);
- }
- if (FuelSingle != 0D) {
- output.WriteRawTag(113);
- output.WriteDouble(FuelSingle);
- }
- if (AirportUseSituation.Length != 0) {
- output.WriteRawTag(122);
- output.WriteString(AirportUseSituation);
- }
- if (NavUseSituation.Length != 0) {
- output.WriteRawTag(130, 1);
- output.WriteString(NavUseSituation);
- }
- if (FireJoinTimeEconomical != 0D) {
- output.WriteRawTag(137, 1);
- output.WriteDouble(FireJoinTimeEconomical);
- }
- if (FuelSingleEconomical != 0D) {
- output.WriteRawTag(145, 1);
- output.WriteDouble(FuelSingleEconomical);
- }
- if (AirportUseSituationEconomical.Length != 0) {
- output.WriteRawTag(154, 1);
- output.WriteString(AirportUseSituationEconomical);
- }
- if (NavUseSituationEconomical.Length != 0) {
- output.WriteRawTag(162, 1);
- output.WriteString(NavUseSituationEconomical);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (RpcId != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
- }
- if (Error != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Error);
- }
- if (Message.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
- }
- if (TaskResponseTime != 0D) {
- size += 1 + 8;
- }
- if (TaskTotalTime != 0D) {
- size += 1 + 8;
- }
- if (SingleJoinTime != 0D) {
- size += 1 + 8;
- }
- if (SingleEffectiveTaskTime != 0D) {
- size += 1 + 8;
- }
- if (SingleAllPeopeo != 0D) {
- size += 1 + 8;
- }
- if (SingleEachPeople != 0D) {
- size += 1 + 8;
- }
- if (SpeedPatrol != 0D) {
- size += 1 + 8;
- }
- if (VoyagePatrol != 0D) {
- size += 1 + 8;
- }
- if (TimeAllPatrol != 0D) {
- size += 1 + 8;
- }
- if (FireJoinTime != 0D) {
- size += 1 + 8;
- }
- if (FuelSingle != 0D) {
- size += 1 + 8;
- }
- if (AirportUseSituation.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(AirportUseSituation);
- }
- if (NavUseSituation.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(NavUseSituation);
- }
- if (FireJoinTimeEconomical != 0D) {
- size += 2 + 8;
- }
- if (FuelSingleEconomical != 0D) {
- size += 2 + 8;
- }
- if (AirportUseSituationEconomical.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(AirportUseSituationEconomical);
- }
- if (NavUseSituationEconomical.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(NavUseSituationEconomical);
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- rpcId_ = 0;
- error_ = 0;
- message_ = "";
- airportUseSituation_ = "";
- navUseSituation_ = "";
- airportUseSituationEconomical_ = "";
- navUseSituationEconomical_ = "";
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- RpcId = input.ReadInt32();
- break;
- }
- case 16: {
- Error = input.ReadInt32();
- break;
- }
- case 26: {
- Message = input.ReadString();
- break;
- }
- case 33: {
- TaskResponseTime = input.ReadDouble();
- break;
- }
- case 41: {
- TaskTotalTime = input.ReadDouble();
- break;
- }
- case 49: {
- SingleJoinTime = input.ReadDouble();
- break;
- }
- case 57: {
- SingleEffectiveTaskTime = input.ReadDouble();
- break;
- }
- case 65: {
- SingleAllPeopeo = input.ReadDouble();
- break;
- }
- case 73: {
- SingleEachPeople = input.ReadDouble();
- break;
- }
- case 81: {
- SpeedPatrol = input.ReadDouble();
- break;
- }
- case 89: {
- VoyagePatrol = input.ReadDouble();
- break;
- }
- case 97: {
- TimeAllPatrol = input.ReadDouble();
- break;
- }
- case 105: {
- FireJoinTime = input.ReadDouble();
- break;
- }
- case 113: {
- FuelSingle = input.ReadDouble();
- break;
- }
- case 122: {
- AirportUseSituation = input.ReadString();
- break;
- }
- case 130: {
- NavUseSituation = input.ReadString();
- break;
- }
- case 137: {
- FireJoinTimeEconomical = input.ReadDouble();
- break;
- }
- case 145: {
- FuelSingleEconomical = input.ReadDouble();
- break;
- }
- case 154: {
- AirportUseSituationEconomical = input.ReadString();
- break;
- }
- case 162: {
- NavUseSituationEconomical = input.ReadString();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 火焰蔓延输出
- /// </summary>
- public partial class S2C_FireSpread : pb::IMessage {
- private static readonly pb::MessageParser<S2C_FireSpread> _parser = new pb::MessageParser<S2C_FireSpread>(() => (S2C_FireSpread)MessagePool.Instance.Fetch(typeof(S2C_FireSpread)));
- public static pb::MessageParser<S2C_FireSpread> Parser { get { return _parser; } }
- private string aircraftId_ = "";
- public string AircraftId {
- get { return aircraftId_; }
- set {
- aircraftId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- private int firePointId_;
- public int FirePointId {
- get { return firePointId_; }
- set {
- firePointId_ = value;
- }
- }
- private double fireGrids_;
- public double FireGrids {
- get { return fireGrids_; }
- set {
- fireGrids_ = value;
- }
- }
- private double firedGrids_;
- public double FiredGrids {
- get { return firedGrids_; }
- set {
- firedGrids_ = value;
- }
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (AircraftId.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(AircraftId);
- }
- if (FirePointId != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(FirePointId);
- }
- if (FireGrids != 0D) {
- output.WriteRawTag(25);
- output.WriteDouble(FireGrids);
- }
- if (FiredGrids != 0D) {
- output.WriteRawTag(33);
- output.WriteDouble(FiredGrids);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (AircraftId.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(AircraftId);
- }
- if (FirePointId != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FirePointId);
- }
- if (FireGrids != 0D) {
- size += 1 + 8;
- }
- if (FiredGrids != 0D) {
- size += 1 + 8;
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- aircraftId_ = "";
- firePointId_ = 0;
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- AircraftId = input.ReadString();
- break;
- }
- case 16: {
- FirePointId = input.ReadInt32();
- break;
- }
- case 25: {
- FireGrids = input.ReadDouble();
- break;
- }
- case 33: {
- FiredGrids = input.ReadDouble();
- break;
- }
- }
- }
- }
- }
- #endregion
- }
- #endregion Designer generated code
|