123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615 |
- // 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;
- }
- }
- }
- }
- }
- /// <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 static readonly pb::FieldCodec<global::KYFramework.Network.EntitySheetReportValue> _repeated_entitySheetReportValueArr_codec
- = pb::FieldCodec.ForMessage(10, 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) {
- entitySheetReportValueArr_.WriteTo(output, _repeated_entitySheetReportValueArr_codec);
- }
- public int CalculateSize() {
- int size = 0;
- size += entitySheetReportValueArr_.CalculateSize(_repeated_entitySheetReportValueArr_codec);
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- 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 10: {
- 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 string firePointName_ = "";
- public string FirePointName {
- get { return firePointName_; }
- set {
- firePointName_ = pb::ProtoPreconditions.CheckNotNull(value, "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 (FirePointName.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(FirePointName);
- }
- 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 (FirePointName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(FirePointName);
- }
- if (FireGrids != 0D) {
- size += 1 + 8;
- }
- if (FiredGrids != 0D) {
- size += 1 + 8;
- }
- return size;
- }
- public void MergeFrom(pb::CodedInputStream input) {
- aircraftId_ = "";
- firePointName_ = "";
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- AircraftId = input.ReadString();
- break;
- }
- case 18: {
- FirePointName = input.ReadString();
- break;
- }
- case 25: {
- FireGrids = input.ReadDouble();
- break;
- }
- case 33: {
- FiredGrids = input.ReadDouble();
- break;
- }
- }
- }
- }
- }
- #endregion
- }
- #endregion Designer generated code
|