123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315 |
- /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
- import * as $protobuf from "protobufjs/minimal";
- // Common aliases
- const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
- // Exported root namespace
- const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
- export const game = $root.game = (() => {
- /**
- * Namespace game.
- * @exports game
- * @namespace
- */
- const game = {};
- game.ping = (function() {
- /**
- * Properties of a ping.
- * @memberof game
- * @interface Iping
- */
- /**
- * Constructs a new ping.
- * @memberof game
- * @classdesc Represents a ping.
- * @implements Iping
- * @constructor
- * @param {game.Iping=} [properties] Properties to set
- */
- function ping(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new ping instance using the specified properties.
- * @function create
- * @memberof game.ping
- * @static
- * @param {game.Iping=} [properties] Properties to set
- * @returns {game.ping} ping instance
- */
- ping.create = function create(properties) {
- return new ping(properties);
- };
- /**
- * Encodes the specified ping message. Does not implicitly {@link game.ping.verify|verify} messages.
- * @function encode
- * @memberof game.ping
- * @static
- * @param {game.Iping} message ping message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- ping.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified ping message, length delimited. Does not implicitly {@link game.ping.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.ping
- * @static
- * @param {game.Iping} message ping message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- ping.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a ping message from the specified reader or buffer.
- * @function decode
- * @memberof game.ping
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.ping} ping
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- ping.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ping();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a ping message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.ping
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.ping} ping
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- ping.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a ping message.
- * @function verify
- * @memberof game.ping
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- ping.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a ping message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.ping
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.ping} ping
- */
- ping.fromObject = function fromObject(object) {
- if (object instanceof $root.game.ping)
- return object;
- return new $root.game.ping();
- };
- /**
- * Creates a plain object from a ping message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.ping
- * @static
- * @param {game.ping} message ping
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- ping.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this ping to JSON.
- * @function toJSON
- * @memberof game.ping
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- ping.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return ping;
- })();
- game.ping_rsp = (function() {
- /**
- * Properties of a ping_rsp.
- * @memberof game
- * @interface Iping_rsp
- * @property {number|Long|null} [time] ping_rsp time
- */
- /**
- * Constructs a new ping_rsp.
- * @memberof game
- * @classdesc Represents a ping_rsp.
- * @implements Iping_rsp
- * @constructor
- * @param {game.Iping_rsp=} [properties] Properties to set
- */
- function ping_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * ping_rsp time.
- * @member {number|Long} time
- * @memberof game.ping_rsp
- * @instance
- */
- ping_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new ping_rsp instance using the specified properties.
- * @function create
- * @memberof game.ping_rsp
- * @static
- * @param {game.Iping_rsp=} [properties] Properties to set
- * @returns {game.ping_rsp} ping_rsp instance
- */
- ping_rsp.create = function create(properties) {
- return new ping_rsp(properties);
- };
- /**
- * Encodes the specified ping_rsp message. Does not implicitly {@link game.ping_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.ping_rsp
- * @static
- * @param {game.Iping_rsp} message ping_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- ping_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.time != null && Object.hasOwnProperty.call(message, "time"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.time);
- return writer;
- };
- /**
- * Encodes the specified ping_rsp message, length delimited. Does not implicitly {@link game.ping_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.ping_rsp
- * @static
- * @param {game.Iping_rsp} message ping_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- ping_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a ping_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.ping_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.ping_rsp} ping_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- ping_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ping_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.time = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a ping_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.ping_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.ping_rsp} ping_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- ping_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a ping_rsp message.
- * @function verify
- * @memberof game.ping_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- ping_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.time != null && message.hasOwnProperty("time"))
- if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
- return "time: integer|Long expected";
- return null;
- };
- /**
- * Creates a ping_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.ping_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.ping_rsp} ping_rsp
- */
- ping_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.ping_rsp)
- return object;
- let message = new $root.game.ping_rsp();
- if (object.time != null)
- if ($util.Long)
- (message.time = $util.Long.fromValue(object.time)).unsigned = false;
- else if (typeof object.time === "string")
- message.time = parseInt(object.time, 10);
- else if (typeof object.time === "number")
- message.time = object.time;
- else if (typeof object.time === "object")
- message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a ping_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.ping_rsp
- * @static
- * @param {game.ping_rsp} message ping_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- ping_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.time = options.longs === String ? "0" : 0;
- if (message.time != null && message.hasOwnProperty("time"))
- if (typeof message.time === "number")
- object.time = options.longs === String ? String(message.time) : message.time;
- else
- object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
- return object;
- };
- /**
- * Converts this ping_rsp to JSON.
- * @function toJSON
- * @memberof game.ping_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- ping_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return ping_rsp;
- })();
- game.login = (function() {
- /**
- * Properties of a login.
- * @memberof game
- * @interface Ilogin
- * @property {number|Long|null} [sid] login sid
- * @property {string|null} [account] login account
- * @property {string|null} [channel] login channel
- * @property {string|null} [token] login token
- * @property {string|null} [extension] login extension
- */
- /**
- * Constructs a new login.
- * @memberof game
- * @classdesc Represents a login.
- * @implements Ilogin
- * @constructor
- * @param {game.Ilogin=} [properties] Properties to set
- */
- function login(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * login sid.
- * @member {number|Long} sid
- * @memberof game.login
- * @instance
- */
- login.prototype.sid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * login account.
- * @member {string} account
- * @memberof game.login
- * @instance
- */
- login.prototype.account = "";
- /**
- * login channel.
- * @member {string} channel
- * @memberof game.login
- * @instance
- */
- login.prototype.channel = "";
- /**
- * login token.
- * @member {string} token
- * @memberof game.login
- * @instance
- */
- login.prototype.token = "";
- /**
- * login extension.
- * @member {string} extension
- * @memberof game.login
- * @instance
- */
- login.prototype.extension = "";
- /**
- * Creates a new login instance using the specified properties.
- * @function create
- * @memberof game.login
- * @static
- * @param {game.Ilogin=} [properties] Properties to set
- * @returns {game.login} login instance
- */
- login.create = function create(properties) {
- return new login(properties);
- };
- /**
- * Encodes the specified login message. Does not implicitly {@link game.login.verify|verify} messages.
- * @function encode
- * @memberof game.login
- * @static
- * @param {game.Ilogin} message login message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- login.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.sid);
- if (message.account != null && Object.hasOwnProperty.call(message, "account"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.account);
- if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.channel);
- if (message.token != null && Object.hasOwnProperty.call(message, "token"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.token);
- if (message.extension != null && Object.hasOwnProperty.call(message, "extension"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.extension);
- return writer;
- };
- /**
- * Encodes the specified login message, length delimited. Does not implicitly {@link game.login.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.login
- * @static
- * @param {game.Ilogin} message login message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- login.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a login message from the specified reader or buffer.
- * @function decode
- * @memberof game.login
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.login} login
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- login.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.login();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sid = reader.int64();
- break;
- case 2:
- message.account = reader.string();
- break;
- case 3:
- message.channel = reader.string();
- break;
- case 4:
- message.token = reader.string();
- break;
- case 5:
- message.extension = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a login message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.login
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.login} login
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- login.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a login message.
- * @function verify
- * @memberof game.login
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- login.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isInteger(message.sid) && !(message.sid && $util.isInteger(message.sid.low) && $util.isInteger(message.sid.high)))
- return "sid: integer|Long expected";
- if (message.account != null && message.hasOwnProperty("account"))
- if (!$util.isString(message.account))
- return "account: string expected";
- if (message.channel != null && message.hasOwnProperty("channel"))
- if (!$util.isString(message.channel))
- return "channel: string expected";
- if (message.token != null && message.hasOwnProperty("token"))
- if (!$util.isString(message.token))
- return "token: string expected";
- if (message.extension != null && message.hasOwnProperty("extension"))
- if (!$util.isString(message.extension))
- return "extension: string expected";
- return null;
- };
- /**
- * Creates a login message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.login
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.login} login
- */
- login.fromObject = function fromObject(object) {
- if (object instanceof $root.game.login)
- return object;
- let message = new $root.game.login();
- if (object.sid != null)
- if ($util.Long)
- (message.sid = $util.Long.fromValue(object.sid)).unsigned = false;
- else if (typeof object.sid === "string")
- message.sid = parseInt(object.sid, 10);
- else if (typeof object.sid === "number")
- message.sid = object.sid;
- else if (typeof object.sid === "object")
- message.sid = new $util.LongBits(object.sid.low >>> 0, object.sid.high >>> 0).toNumber();
- if (object.account != null)
- message.account = String(object.account);
- if (object.channel != null)
- message.channel = String(object.channel);
- if (object.token != null)
- message.token = String(object.token);
- if (object.extension != null)
- message.extension = String(object.extension);
- return message;
- };
- /**
- * Creates a plain object from a login message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.login
- * @static
- * @param {game.login} message login
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- login.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.sid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.sid = options.longs === String ? "0" : 0;
- object.account = "";
- object.channel = "";
- object.token = "";
- object.extension = "";
- }
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (typeof message.sid === "number")
- object.sid = options.longs === String ? String(message.sid) : message.sid;
- else
- object.sid = options.longs === String ? $util.Long.prototype.toString.call(message.sid) : options.longs === Number ? new $util.LongBits(message.sid.low >>> 0, message.sid.high >>> 0).toNumber() : message.sid;
- if (message.account != null && message.hasOwnProperty("account"))
- object.account = message.account;
- if (message.channel != null && message.hasOwnProperty("channel"))
- object.channel = message.channel;
- if (message.token != null && message.hasOwnProperty("token"))
- object.token = message.token;
- if (message.extension != null && message.hasOwnProperty("extension"))
- object.extension = message.extension;
- return object;
- };
- /**
- * Converts this login to JSON.
- * @function toJSON
- * @memberof game.login
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- login.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return login;
- })();
- game.login_rsp = (function() {
- /**
- * Properties of a login_rsp.
- * @memberof game
- * @interface Ilogin_rsp
- * @property {number|Long|null} [errno] login_rsp errno
- */
- /**
- * Constructs a new login_rsp.
- * @memberof game
- * @classdesc Represents a login_rsp.
- * @implements Ilogin_rsp
- * @constructor
- * @param {game.Ilogin_rsp=} [properties] Properties to set
- */
- function login_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * login_rsp errno.
- * @member {number|Long} errno
- * @memberof game.login_rsp
- * @instance
- */
- login_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new login_rsp instance using the specified properties.
- * @function create
- * @memberof game.login_rsp
- * @static
- * @param {game.Ilogin_rsp=} [properties] Properties to set
- * @returns {game.login_rsp} login_rsp instance
- */
- login_rsp.create = function create(properties) {
- return new login_rsp(properties);
- };
- /**
- * Encodes the specified login_rsp message. Does not implicitly {@link game.login_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.login_rsp
- * @static
- * @param {game.Ilogin_rsp} message login_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- login_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified login_rsp message, length delimited. Does not implicitly {@link game.login_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.login_rsp
- * @static
- * @param {game.Ilogin_rsp} message login_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- login_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a login_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.login_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.login_rsp} login_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- login_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.login_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a login_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.login_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.login_rsp} login_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- login_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a login_rsp message.
- * @function verify
- * @memberof game.login_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- login_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a login_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.login_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.login_rsp} login_rsp
- */
- login_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.login_rsp)
- return object;
- let message = new $root.game.login_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a login_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.login_rsp
- * @static
- * @param {game.login_rsp} message login_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- login_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this login_rsp to JSON.
- * @function toJSON
- * @memberof game.login_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- login_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return login_rsp;
- })();
- game.create = (function() {
- /**
- * Properties of a create.
- * @memberof game
- * @interface Icreate
- * @property {string|null} [nickname] create nickname
- */
- /**
- * Constructs a new create.
- * @memberof game
- * @classdesc Represents a create.
- * @implements Icreate
- * @constructor
- * @param {game.Icreate=} [properties] Properties to set
- */
- function create(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * create nickname.
- * @member {string} nickname
- * @memberof game.create
- * @instance
- */
- create.prototype.nickname = "";
- /**
- * Creates a new create instance using the specified properties.
- * @function create
- * @memberof game.create
- * @static
- * @param {game.Icreate=} [properties] Properties to set
- * @returns {game.create} create instance
- */
- create.create = function create(properties) {
- return new create(properties);
- };
- /**
- * Encodes the specified create message. Does not implicitly {@link game.create.verify|verify} messages.
- * @function encode
- * @memberof game.create
- * @static
- * @param {game.Icreate} message create message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- create.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.nickname != null && Object.hasOwnProperty.call(message, "nickname"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.nickname);
- return writer;
- };
- /**
- * Encodes the specified create message, length delimited. Does not implicitly {@link game.create.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.create
- * @static
- * @param {game.Icreate} message create message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- create.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a create message from the specified reader or buffer.
- * @function decode
- * @memberof game.create
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.create} create
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- create.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.create();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.nickname = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a create message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.create
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.create} create
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- create.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a create message.
- * @function verify
- * @memberof game.create
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- create.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.nickname != null && message.hasOwnProperty("nickname"))
- if (!$util.isString(message.nickname))
- return "nickname: string expected";
- return null;
- };
- /**
- * Creates a create message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.create
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.create} create
- */
- create.fromObject = function fromObject(object) {
- if (object instanceof $root.game.create)
- return object;
- let message = new $root.game.create();
- if (object.nickname != null)
- message.nickname = String(object.nickname);
- return message;
- };
- /**
- * Creates a plain object from a create message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.create
- * @static
- * @param {game.create} message create
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- create.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- object.nickname = "";
- if (message.nickname != null && message.hasOwnProperty("nickname"))
- object.nickname = message.nickname;
- return object;
- };
- /**
- * Converts this create to JSON.
- * @function toJSON
- * @memberof game.create
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- create.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return create;
- })();
- game.create_rsp = (function() {
- /**
- * Properties of a create_rsp.
- * @memberof game
- * @interface Icreate_rsp
- * @property {number|Long|null} [errno] create_rsp errno
- */
- /**
- * Constructs a new create_rsp.
- * @memberof game
- * @classdesc Represents a create_rsp.
- * @implements Icreate_rsp
- * @constructor
- * @param {game.Icreate_rsp=} [properties] Properties to set
- */
- function create_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * create_rsp errno.
- * @member {number|Long} errno
- * @memberof game.create_rsp
- * @instance
- */
- create_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new create_rsp instance using the specified properties.
- * @function create
- * @memberof game.create_rsp
- * @static
- * @param {game.Icreate_rsp=} [properties] Properties to set
- * @returns {game.create_rsp} create_rsp instance
- */
- create_rsp.create = function create(properties) {
- return new create_rsp(properties);
- };
- /**
- * Encodes the specified create_rsp message. Does not implicitly {@link game.create_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.create_rsp
- * @static
- * @param {game.Icreate_rsp} message create_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- create_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified create_rsp message, length delimited. Does not implicitly {@link game.create_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.create_rsp
- * @static
- * @param {game.Icreate_rsp} message create_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- create_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a create_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.create_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.create_rsp} create_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- create_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.create_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a create_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.create_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.create_rsp} create_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- create_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a create_rsp message.
- * @function verify
- * @memberof game.create_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- create_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a create_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.create_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.create_rsp} create_rsp
- */
- create_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.create_rsp)
- return object;
- let message = new $root.game.create_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a create_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.create_rsp
- * @static
- * @param {game.create_rsp} message create_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- create_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this create_rsp to JSON.
- * @function toJSON
- * @memberof game.create_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- create_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return create_rsp;
- })();
- game.user = (function() {
- /**
- * Properties of a user.
- * @memberof game
- * @interface Iuser
- * @property {string|null} [uid] user uid
- * @property {string|null} [nickname] user nickname
- * @property {number|Long|null} [level] user level
- * @property {number|Long|null} [exp] user exp
- * @property {number|Long|null} [avatar] user avatar
- * @property {number|Long|null} [svrtime] user svrtime
- * @property {number|Long|null} [renameTime] user renameTime
- * @property {number|Long|null} [createtime] user createtime
- * @property {number|Long|null} [sid] user sid
- * @property {boolean|null} [bfirst] user bfirst
- * @property {Array.<game.Iid_num>|null} [currency] user currency
- */
- /**
- * Constructs a new user.
- * @memberof game
- * @classdesc Represents a user.
- * @implements Iuser
- * @constructor
- * @param {game.Iuser=} [properties] Properties to set
- */
- function user(properties) {
- this.currency = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * user uid.
- * @member {string} uid
- * @memberof game.user
- * @instance
- */
- user.prototype.uid = "";
- /**
- * user nickname.
- * @member {string} nickname
- * @memberof game.user
- * @instance
- */
- user.prototype.nickname = "";
- /**
- * user level.
- * @member {number|Long} level
- * @memberof game.user
- * @instance
- */
- user.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * user exp.
- * @member {number|Long} exp
- * @memberof game.user
- * @instance
- */
- user.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * user avatar.
- * @member {number|Long} avatar
- * @memberof game.user
- * @instance
- */
- user.prototype.avatar = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * user svrtime.
- * @member {number|Long} svrtime
- * @memberof game.user
- * @instance
- */
- user.prototype.svrtime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * user renameTime.
- * @member {number|Long} renameTime
- * @memberof game.user
- * @instance
- */
- user.prototype.renameTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * user createtime.
- * @member {number|Long} createtime
- * @memberof game.user
- * @instance
- */
- user.prototype.createtime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * user sid.
- * @member {number|Long} sid
- * @memberof game.user
- * @instance
- */
- user.prototype.sid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * user bfirst.
- * @member {boolean} bfirst
- * @memberof game.user
- * @instance
- */
- user.prototype.bfirst = false;
- /**
- * user currency.
- * @member {Array.<game.Iid_num>} currency
- * @memberof game.user
- * @instance
- */
- user.prototype.currency = $util.emptyArray;
- /**
- * Creates a new user instance using the specified properties.
- * @function create
- * @memberof game.user
- * @static
- * @param {game.Iuser=} [properties] Properties to set
- * @returns {game.user} user instance
- */
- user.create = function create(properties) {
- return new user(properties);
- };
- /**
- * Encodes the specified user message. Does not implicitly {@link game.user.verify|verify} messages.
- * @function encode
- * @memberof game.user
- * @static
- * @param {game.Iuser} message user message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- user.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.uid);
- if (message.nickname != null && Object.hasOwnProperty.call(message, "nickname"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.nickname);
- if (message.level != null && Object.hasOwnProperty.call(message, "level"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.level);
- if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.exp);
- if (message.avatar != null && Object.hasOwnProperty.call(message, "avatar"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.avatar);
- if (message.svrtime != null && Object.hasOwnProperty.call(message, "svrtime"))
- writer.uint32(/* id 6, wireType 0 =*/48).int64(message.svrtime);
- if (message.renameTime != null && Object.hasOwnProperty.call(message, "renameTime"))
- writer.uint32(/* id 7, wireType 0 =*/56).int64(message.renameTime);
- if (message.createtime != null && Object.hasOwnProperty.call(message, "createtime"))
- writer.uint32(/* id 8, wireType 0 =*/64).int64(message.createtime);
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 9, wireType 0 =*/72).int64(message.sid);
- if (message.bfirst != null && Object.hasOwnProperty.call(message, "bfirst"))
- writer.uint32(/* id 10, wireType 0 =*/80).bool(message.bfirst);
- if (message.currency != null && message.currency.length)
- for (let i = 0; i < message.currency.length; ++i)
- $root.game.id_num.encode(message.currency[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified user message, length delimited. Does not implicitly {@link game.user.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.user
- * @static
- * @param {game.Iuser} message user message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- user.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a user message from the specified reader or buffer.
- * @function decode
- * @memberof game.user
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.user} user
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- user.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.user();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.uid = reader.string();
- break;
- case 2:
- message.nickname = reader.string();
- break;
- case 3:
- message.level = reader.int64();
- break;
- case 4:
- message.exp = reader.int64();
- break;
- case 5:
- message.avatar = reader.int64();
- break;
- case 6:
- message.svrtime = reader.int64();
- break;
- case 7:
- message.renameTime = reader.int64();
- break;
- case 8:
- message.createtime = reader.int64();
- break;
- case 9:
- message.sid = reader.int64();
- break;
- case 10:
- message.bfirst = reader.bool();
- break;
- case 20:
- if (!(message.currency && message.currency.length))
- message.currency = [];
- message.currency.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a user message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.user
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.user} user
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- user.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a user message.
- * @function verify
- * @memberof game.user
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- user.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.uid != null && message.hasOwnProperty("uid"))
- if (!$util.isString(message.uid))
- return "uid: string expected";
- if (message.nickname != null && message.hasOwnProperty("nickname"))
- if (!$util.isString(message.nickname))
- return "nickname: string expected";
- if (message.level != null && message.hasOwnProperty("level"))
- if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
- return "level: integer|Long expected";
- if (message.exp != null && message.hasOwnProperty("exp"))
- if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
- return "exp: integer|Long expected";
- if (message.avatar != null && message.hasOwnProperty("avatar"))
- if (!$util.isInteger(message.avatar) && !(message.avatar && $util.isInteger(message.avatar.low) && $util.isInteger(message.avatar.high)))
- return "avatar: integer|Long expected";
- if (message.svrtime != null && message.hasOwnProperty("svrtime"))
- if (!$util.isInteger(message.svrtime) && !(message.svrtime && $util.isInteger(message.svrtime.low) && $util.isInteger(message.svrtime.high)))
- return "svrtime: integer|Long expected";
- if (message.renameTime != null && message.hasOwnProperty("renameTime"))
- if (!$util.isInteger(message.renameTime) && !(message.renameTime && $util.isInteger(message.renameTime.low) && $util.isInteger(message.renameTime.high)))
- return "renameTime: integer|Long expected";
- if (message.createtime != null && message.hasOwnProperty("createtime"))
- if (!$util.isInteger(message.createtime) && !(message.createtime && $util.isInteger(message.createtime.low) && $util.isInteger(message.createtime.high)))
- return "createtime: integer|Long expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isInteger(message.sid) && !(message.sid && $util.isInteger(message.sid.low) && $util.isInteger(message.sid.high)))
- return "sid: integer|Long expected";
- if (message.bfirst != null && message.hasOwnProperty("bfirst"))
- if (typeof message.bfirst !== "boolean")
- return "bfirst: boolean expected";
- if (message.currency != null && message.hasOwnProperty("currency")) {
- if (!Array.isArray(message.currency))
- return "currency: array expected";
- for (let i = 0; i < message.currency.length; ++i) {
- let error = $root.game.id_num.verify(message.currency[i]);
- if (error)
- return "currency." + error;
- }
- }
- return null;
- };
- /**
- * Creates a user message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.user
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.user} user
- */
- user.fromObject = function fromObject(object) {
- if (object instanceof $root.game.user)
- return object;
- let message = new $root.game.user();
- if (object.uid != null)
- message.uid = String(object.uid);
- if (object.nickname != null)
- message.nickname = String(object.nickname);
- if (object.level != null)
- if ($util.Long)
- (message.level = $util.Long.fromValue(object.level)).unsigned = false;
- else if (typeof object.level === "string")
- message.level = parseInt(object.level, 10);
- else if (typeof object.level === "number")
- message.level = object.level;
- else if (typeof object.level === "object")
- message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
- if (object.exp != null)
- if ($util.Long)
- (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
- else if (typeof object.exp === "string")
- message.exp = parseInt(object.exp, 10);
- else if (typeof object.exp === "number")
- message.exp = object.exp;
- else if (typeof object.exp === "object")
- message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
- if (object.avatar != null)
- if ($util.Long)
- (message.avatar = $util.Long.fromValue(object.avatar)).unsigned = false;
- else if (typeof object.avatar === "string")
- message.avatar = parseInt(object.avatar, 10);
- else if (typeof object.avatar === "number")
- message.avatar = object.avatar;
- else if (typeof object.avatar === "object")
- message.avatar = new $util.LongBits(object.avatar.low >>> 0, object.avatar.high >>> 0).toNumber();
- if (object.svrtime != null)
- if ($util.Long)
- (message.svrtime = $util.Long.fromValue(object.svrtime)).unsigned = false;
- else if (typeof object.svrtime === "string")
- message.svrtime = parseInt(object.svrtime, 10);
- else if (typeof object.svrtime === "number")
- message.svrtime = object.svrtime;
- else if (typeof object.svrtime === "object")
- message.svrtime = new $util.LongBits(object.svrtime.low >>> 0, object.svrtime.high >>> 0).toNumber();
- if (object.renameTime != null)
- if ($util.Long)
- (message.renameTime = $util.Long.fromValue(object.renameTime)).unsigned = false;
- else if (typeof object.renameTime === "string")
- message.renameTime = parseInt(object.renameTime, 10);
- else if (typeof object.renameTime === "number")
- message.renameTime = object.renameTime;
- else if (typeof object.renameTime === "object")
- message.renameTime = new $util.LongBits(object.renameTime.low >>> 0, object.renameTime.high >>> 0).toNumber();
- if (object.createtime != null)
- if ($util.Long)
- (message.createtime = $util.Long.fromValue(object.createtime)).unsigned = false;
- else if (typeof object.createtime === "string")
- message.createtime = parseInt(object.createtime, 10);
- else if (typeof object.createtime === "number")
- message.createtime = object.createtime;
- else if (typeof object.createtime === "object")
- message.createtime = new $util.LongBits(object.createtime.low >>> 0, object.createtime.high >>> 0).toNumber();
- if (object.sid != null)
- if ($util.Long)
- (message.sid = $util.Long.fromValue(object.sid)).unsigned = false;
- else if (typeof object.sid === "string")
- message.sid = parseInt(object.sid, 10);
- else if (typeof object.sid === "number")
- message.sid = object.sid;
- else if (typeof object.sid === "object")
- message.sid = new $util.LongBits(object.sid.low >>> 0, object.sid.high >>> 0).toNumber();
- if (object.bfirst != null)
- message.bfirst = Boolean(object.bfirst);
- if (object.currency) {
- if (!Array.isArray(object.currency))
- throw TypeError(".game.user.currency: array expected");
- message.currency = [];
- for (let i = 0; i < object.currency.length; ++i) {
- if (typeof object.currency[i] !== "object")
- throw TypeError(".game.user.currency: object expected");
- message.currency[i] = $root.game.id_num.fromObject(object.currency[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a user message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.user
- * @static
- * @param {game.user} message user
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- user.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.currency = [];
- if (options.defaults) {
- object.uid = "";
- object.nickname = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.level = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.exp = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.avatar = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.avatar = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.svrtime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.svrtime = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.renameTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.renameTime = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.createtime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.createtime = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.sid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.sid = options.longs === String ? "0" : 0;
- object.bfirst = false;
- }
- if (message.uid != null && message.hasOwnProperty("uid"))
- object.uid = message.uid;
- if (message.nickname != null && message.hasOwnProperty("nickname"))
- object.nickname = message.nickname;
- if (message.level != null && message.hasOwnProperty("level"))
- if (typeof message.level === "number")
- object.level = options.longs === String ? String(message.level) : message.level;
- else
- object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
- if (message.exp != null && message.hasOwnProperty("exp"))
- if (typeof message.exp === "number")
- object.exp = options.longs === String ? String(message.exp) : message.exp;
- else
- object.exp = options.longs === String ? $util.Long.prototype.toString.call(message.exp) : options.longs === Number ? new $util.LongBits(message.exp.low >>> 0, message.exp.high >>> 0).toNumber() : message.exp;
- if (message.avatar != null && message.hasOwnProperty("avatar"))
- if (typeof message.avatar === "number")
- object.avatar = options.longs === String ? String(message.avatar) : message.avatar;
- else
- object.avatar = options.longs === String ? $util.Long.prototype.toString.call(message.avatar) : options.longs === Number ? new $util.LongBits(message.avatar.low >>> 0, message.avatar.high >>> 0).toNumber() : message.avatar;
- if (message.svrtime != null && message.hasOwnProperty("svrtime"))
- if (typeof message.svrtime === "number")
- object.svrtime = options.longs === String ? String(message.svrtime) : message.svrtime;
- else
- object.svrtime = options.longs === String ? $util.Long.prototype.toString.call(message.svrtime) : options.longs === Number ? new $util.LongBits(message.svrtime.low >>> 0, message.svrtime.high >>> 0).toNumber() : message.svrtime;
- if (message.renameTime != null && message.hasOwnProperty("renameTime"))
- if (typeof message.renameTime === "number")
- object.renameTime = options.longs === String ? String(message.renameTime) : message.renameTime;
- else
- object.renameTime = options.longs === String ? $util.Long.prototype.toString.call(message.renameTime) : options.longs === Number ? new $util.LongBits(message.renameTime.low >>> 0, message.renameTime.high >>> 0).toNumber() : message.renameTime;
- if (message.createtime != null && message.hasOwnProperty("createtime"))
- if (typeof message.createtime === "number")
- object.createtime = options.longs === String ? String(message.createtime) : message.createtime;
- else
- object.createtime = options.longs === String ? $util.Long.prototype.toString.call(message.createtime) : options.longs === Number ? new $util.LongBits(message.createtime.low >>> 0, message.createtime.high >>> 0).toNumber() : message.createtime;
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (typeof message.sid === "number")
- object.sid = options.longs === String ? String(message.sid) : message.sid;
- else
- object.sid = options.longs === String ? $util.Long.prototype.toString.call(message.sid) : options.longs === Number ? new $util.LongBits(message.sid.low >>> 0, message.sid.high >>> 0).toNumber() : message.sid;
- if (message.bfirst != null && message.hasOwnProperty("bfirst"))
- object.bfirst = message.bfirst;
- if (message.currency && message.currency.length) {
- object.currency = [];
- for (let j = 0; j < message.currency.length; ++j)
- object.currency[j] = $root.game.id_num.toObject(message.currency[j], options);
- }
- return object;
- };
- /**
- * Converts this user to JSON.
- * @function toJSON
- * @memberof game.user
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- user.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return user;
- })();
- game.reward_info = (function() {
- /**
- * Properties of a reward_info.
- * @memberof game
- * @interface Ireward_info
- * @property {string|null} [flags] reward_info flags
- * @property {game.Ireward|null} [added] reward_info added
- */
- /**
- * Constructs a new reward_info.
- * @memberof game
- * @classdesc Represents a reward_info.
- * @implements Ireward_info
- * @constructor
- * @param {game.Ireward_info=} [properties] Properties to set
- */
- function reward_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * reward_info flags.
- * @member {string} flags
- * @memberof game.reward_info
- * @instance
- */
- reward_info.prototype.flags = "";
- /**
- * reward_info added.
- * @member {game.Ireward|null|undefined} added
- * @memberof game.reward_info
- * @instance
- */
- reward_info.prototype.added = null;
- /**
- * Creates a new reward_info instance using the specified properties.
- * @function create
- * @memberof game.reward_info
- * @static
- * @param {game.Ireward_info=} [properties] Properties to set
- * @returns {game.reward_info} reward_info instance
- */
- reward_info.create = function create(properties) {
- return new reward_info(properties);
- };
- /**
- * Encodes the specified reward_info message. Does not implicitly {@link game.reward_info.verify|verify} messages.
- * @function encode
- * @memberof game.reward_info
- * @static
- * @param {game.Ireward_info} message reward_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- reward_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.flags != null && Object.hasOwnProperty.call(message, "flags"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.flags);
- if (message.added != null && Object.hasOwnProperty.call(message, "added"))
- $root.game.reward.encode(message.added, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified reward_info message, length delimited. Does not implicitly {@link game.reward_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.reward_info
- * @static
- * @param {game.Ireward_info} message reward_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- reward_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a reward_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.reward_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.reward_info} reward_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- reward_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.reward_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.flags = reader.string();
- break;
- case 2:
- message.added = $root.game.reward.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a reward_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.reward_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.reward_info} reward_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- reward_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a reward_info message.
- * @function verify
- * @memberof game.reward_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- reward_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.flags != null && message.hasOwnProperty("flags"))
- if (!$util.isString(message.flags))
- return "flags: string expected";
- if (message.added != null && message.hasOwnProperty("added")) {
- let error = $root.game.reward.verify(message.added);
- if (error)
- return "added." + error;
- }
- return null;
- };
- /**
- * Creates a reward_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.reward_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.reward_info} reward_info
- */
- reward_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.reward_info)
- return object;
- let message = new $root.game.reward_info();
- if (object.flags != null)
- message.flags = String(object.flags);
- if (object.added != null) {
- if (typeof object.added !== "object")
- throw TypeError(".game.reward_info.added: object expected");
- message.added = $root.game.reward.fromObject(object.added);
- }
- return message;
- };
- /**
- * Creates a plain object from a reward_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.reward_info
- * @static
- * @param {game.reward_info} message reward_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- reward_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.flags = "";
- object.added = null;
- }
- if (message.flags != null && message.hasOwnProperty("flags"))
- object.flags = message.flags;
- if (message.added != null && message.hasOwnProperty("added"))
- object.added = $root.game.reward.toObject(message.added, options);
- return object;
- };
- /**
- * Converts this reward_info to JSON.
- * @function toJSON
- * @memberof game.reward_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- reward_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return reward_info;
- })();
- game.city_change = (function() {
- /**
- * Properties of a city_change.
- * @memberof game
- * @interface Icity_change
- * @property {game.Iid_num|null} [currency] city_change currency
- * @property {number|Long|null} [time] city_change time
- */
- /**
- * Constructs a new city_change.
- * @memberof game
- * @classdesc Represents a city_change.
- * @implements Icity_change
- * @constructor
- * @param {game.Icity_change=} [properties] Properties to set
- */
- function city_change(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * city_change currency.
- * @member {game.Iid_num|null|undefined} currency
- * @memberof game.city_change
- * @instance
- */
- city_change.prototype.currency = null;
- /**
- * city_change time.
- * @member {number|Long} time
- * @memberof game.city_change
- * @instance
- */
- city_change.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new city_change instance using the specified properties.
- * @function create
- * @memberof game.city_change
- * @static
- * @param {game.Icity_change=} [properties] Properties to set
- * @returns {game.city_change} city_change instance
- */
- city_change.create = function create(properties) {
- return new city_change(properties);
- };
- /**
- * Encodes the specified city_change message. Does not implicitly {@link game.city_change.verify|verify} messages.
- * @function encode
- * @memberof game.city_change
- * @static
- * @param {game.Icity_change} message city_change message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_change.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
- $root.game.id_num.encode(message.currency, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- if (message.time != null && Object.hasOwnProperty.call(message, "time"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
- return writer;
- };
- /**
- * Encodes the specified city_change message, length delimited. Does not implicitly {@link game.city_change.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.city_change
- * @static
- * @param {game.Icity_change} message city_change message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_change.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a city_change message from the specified reader or buffer.
- * @function decode
- * @memberof game.city_change
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.city_change} city_change
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_change.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_change();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.currency = $root.game.id_num.decode(reader, reader.uint32());
- break;
- case 3:
- message.time = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a city_change message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.city_change
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.city_change} city_change
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_change.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a city_change message.
- * @function verify
- * @memberof game.city_change
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- city_change.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.currency != null && message.hasOwnProperty("currency")) {
- let error = $root.game.id_num.verify(message.currency);
- if (error)
- return "currency." + error;
- }
- if (message.time != null && message.hasOwnProperty("time"))
- if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
- return "time: integer|Long expected";
- return null;
- };
- /**
- * Creates a city_change message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.city_change
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.city_change} city_change
- */
- city_change.fromObject = function fromObject(object) {
- if (object instanceof $root.game.city_change)
- return object;
- let message = new $root.game.city_change();
- if (object.currency != null) {
- if (typeof object.currency !== "object")
- throw TypeError(".game.city_change.currency: object expected");
- message.currency = $root.game.id_num.fromObject(object.currency);
- }
- if (object.time != null)
- if ($util.Long)
- (message.time = $util.Long.fromValue(object.time)).unsigned = false;
- else if (typeof object.time === "string")
- message.time = parseInt(object.time, 10);
- else if (typeof object.time === "number")
- message.time = object.time;
- else if (typeof object.time === "object")
- message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a city_change message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.city_change
- * @static
- * @param {game.city_change} message city_change
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- city_change.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.currency = null;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.time = options.longs === String ? "0" : 0;
- }
- if (message.currency != null && message.hasOwnProperty("currency"))
- object.currency = $root.game.id_num.toObject(message.currency, options);
- if (message.time != null && message.hasOwnProperty("time"))
- if (typeof message.time === "number")
- object.time = options.longs === String ? String(message.time) : message.time;
- else
- object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
- return object;
- };
- /**
- * Converts this city_change to JSON.
- * @function toJSON
- * @memberof game.city_change
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- city_change.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return city_change;
- })();
- game.pay_currency = (function() {
- /**
- * Properties of a pay_currency.
- * @memberof game
- * @interface Ipay_currency
- * @property {Array.<game.Iid_num>|null} [now] pay_currency now
- * @property {Array.<game.Iid_num>|null} [pay] pay_currency pay
- */
- /**
- * Constructs a new pay_currency.
- * @memberof game
- * @classdesc Represents a pay_currency.
- * @implements Ipay_currency
- * @constructor
- * @param {game.Ipay_currency=} [properties] Properties to set
- */
- function pay_currency(properties) {
- this.now = [];
- this.pay = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pay_currency now.
- * @member {Array.<game.Iid_num>} now
- * @memberof game.pay_currency
- * @instance
- */
- pay_currency.prototype.now = $util.emptyArray;
- /**
- * pay_currency pay.
- * @member {Array.<game.Iid_num>} pay
- * @memberof game.pay_currency
- * @instance
- */
- pay_currency.prototype.pay = $util.emptyArray;
- /**
- * Creates a new pay_currency instance using the specified properties.
- * @function create
- * @memberof game.pay_currency
- * @static
- * @param {game.Ipay_currency=} [properties] Properties to set
- * @returns {game.pay_currency} pay_currency instance
- */
- pay_currency.create = function create(properties) {
- return new pay_currency(properties);
- };
- /**
- * Encodes the specified pay_currency message. Does not implicitly {@link game.pay_currency.verify|verify} messages.
- * @function encode
- * @memberof game.pay_currency
- * @static
- * @param {game.Ipay_currency} message pay_currency message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pay_currency.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.now != null && message.now.length)
- for (let i = 0; i < message.now.length; ++i)
- $root.game.id_num.encode(message.now[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- if (message.pay != null && message.pay.length)
- for (let i = 0; i < message.pay.length; ++i)
- $root.game.id_num.encode(message.pay[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified pay_currency message, length delimited. Does not implicitly {@link game.pay_currency.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pay_currency
- * @static
- * @param {game.Ipay_currency} message pay_currency message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pay_currency.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pay_currency message from the specified reader or buffer.
- * @function decode
- * @memberof game.pay_currency
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pay_currency} pay_currency
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pay_currency.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pay_currency();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.now && message.now.length))
- message.now = [];
- message.now.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- case 2:
- if (!(message.pay && message.pay.length))
- message.pay = [];
- message.pay.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pay_currency message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pay_currency
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pay_currency} pay_currency
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pay_currency.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pay_currency message.
- * @function verify
- * @memberof game.pay_currency
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pay_currency.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.now != null && message.hasOwnProperty("now")) {
- if (!Array.isArray(message.now))
- return "now: array expected";
- for (let i = 0; i < message.now.length; ++i) {
- let error = $root.game.id_num.verify(message.now[i]);
- if (error)
- return "now." + error;
- }
- }
- if (message.pay != null && message.hasOwnProperty("pay")) {
- if (!Array.isArray(message.pay))
- return "pay: array expected";
- for (let i = 0; i < message.pay.length; ++i) {
- let error = $root.game.id_num.verify(message.pay[i]);
- if (error)
- return "pay." + error;
- }
- }
- return null;
- };
- /**
- * Creates a pay_currency message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pay_currency
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pay_currency} pay_currency
- */
- pay_currency.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pay_currency)
- return object;
- let message = new $root.game.pay_currency();
- if (object.now) {
- if (!Array.isArray(object.now))
- throw TypeError(".game.pay_currency.now: array expected");
- message.now = [];
- for (let i = 0; i < object.now.length; ++i) {
- if (typeof object.now[i] !== "object")
- throw TypeError(".game.pay_currency.now: object expected");
- message.now[i] = $root.game.id_num.fromObject(object.now[i]);
- }
- }
- if (object.pay) {
- if (!Array.isArray(object.pay))
- throw TypeError(".game.pay_currency.pay: array expected");
- message.pay = [];
- for (let i = 0; i < object.pay.length; ++i) {
- if (typeof object.pay[i] !== "object")
- throw TypeError(".game.pay_currency.pay: object expected");
- message.pay[i] = $root.game.id_num.fromObject(object.pay[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a pay_currency message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pay_currency
- * @static
- * @param {game.pay_currency} message pay_currency
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pay_currency.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.now = [];
- object.pay = [];
- }
- if (message.now && message.now.length) {
- object.now = [];
- for (let j = 0; j < message.now.length; ++j)
- object.now[j] = $root.game.id_num.toObject(message.now[j], options);
- }
- if (message.pay && message.pay.length) {
- object.pay = [];
- for (let j = 0; j < message.pay.length; ++j)
- object.pay[j] = $root.game.id_num.toObject(message.pay[j], options);
- }
- return object;
- };
- /**
- * Converts this pay_currency to JSON.
- * @function toJSON
- * @memberof game.pay_currency
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pay_currency.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pay_currency;
- })();
- game.pay_debris_nty = (function() {
- /**
- * Properties of a pay_debris_nty.
- * @memberof game
- * @interface Ipay_debris_nty
- * @property {Array.<game.Iid_num>|null} [list] pay_debris_nty list
- */
- /**
- * Constructs a new pay_debris_nty.
- * @memberof game
- * @classdesc Represents a pay_debris_nty.
- * @implements Ipay_debris_nty
- * @constructor
- * @param {game.Ipay_debris_nty=} [properties] Properties to set
- */
- function pay_debris_nty(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pay_debris_nty list.
- * @member {Array.<game.Iid_num>} list
- * @memberof game.pay_debris_nty
- * @instance
- */
- pay_debris_nty.prototype.list = $util.emptyArray;
- /**
- * Creates a new pay_debris_nty instance using the specified properties.
- * @function create
- * @memberof game.pay_debris_nty
- * @static
- * @param {game.Ipay_debris_nty=} [properties] Properties to set
- * @returns {game.pay_debris_nty} pay_debris_nty instance
- */
- pay_debris_nty.create = function create(properties) {
- return new pay_debris_nty(properties);
- };
- /**
- * Encodes the specified pay_debris_nty message. Does not implicitly {@link game.pay_debris_nty.verify|verify} messages.
- * @function encode
- * @memberof game.pay_debris_nty
- * @static
- * @param {game.Ipay_debris_nty} message pay_debris_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pay_debris_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.id_num.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified pay_debris_nty message, length delimited. Does not implicitly {@link game.pay_debris_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pay_debris_nty
- * @static
- * @param {game.Ipay_debris_nty} message pay_debris_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pay_debris_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pay_debris_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.pay_debris_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pay_debris_nty} pay_debris_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pay_debris_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pay_debris_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pay_debris_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pay_debris_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pay_debris_nty} pay_debris_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pay_debris_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pay_debris_nty message.
- * @function verify
- * @memberof game.pay_debris_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pay_debris_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.id_num.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a pay_debris_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pay_debris_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pay_debris_nty} pay_debris_nty
- */
- pay_debris_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pay_debris_nty)
- return object;
- let message = new $root.game.pay_debris_nty();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.pay_debris_nty.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.pay_debris_nty.list: object expected");
- message.list[i] = $root.game.id_num.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a pay_debris_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pay_debris_nty
- * @static
- * @param {game.pay_debris_nty} message pay_debris_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pay_debris_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.id_num.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this pay_debris_nty to JSON.
- * @function toJSON
- * @memberof game.pay_debris_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pay_debris_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pay_debris_nty;
- })();
- game.exception_nty = (function() {
- /**
- * Properties of an exception_nty.
- * @memberof game
- * @interface Iexception_nty
- * @property {number|Long|null} [errno] exception_nty errno
- */
- /**
- * Constructs a new exception_nty.
- * @memberof game
- * @classdesc Represents an exception_nty.
- * @implements Iexception_nty
- * @constructor
- * @param {game.Iexception_nty=} [properties] Properties to set
- */
- function exception_nty(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * exception_nty errno.
- * @member {number|Long} errno
- * @memberof game.exception_nty
- * @instance
- */
- exception_nty.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new exception_nty instance using the specified properties.
- * @function create
- * @memberof game.exception_nty
- * @static
- * @param {game.Iexception_nty=} [properties] Properties to set
- * @returns {game.exception_nty} exception_nty instance
- */
- exception_nty.create = function create(properties) {
- return new exception_nty(properties);
- };
- /**
- * Encodes the specified exception_nty message. Does not implicitly {@link game.exception_nty.verify|verify} messages.
- * @function encode
- * @memberof game.exception_nty
- * @static
- * @param {game.Iexception_nty} message exception_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- exception_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified exception_nty message, length delimited. Does not implicitly {@link game.exception_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.exception_nty
- * @static
- * @param {game.Iexception_nty} message exception_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- exception_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an exception_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.exception_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.exception_nty} exception_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- exception_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.exception_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an exception_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.exception_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.exception_nty} exception_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- exception_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an exception_nty message.
- * @function verify
- * @memberof game.exception_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- exception_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates an exception_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.exception_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.exception_nty} exception_nty
- */
- exception_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.exception_nty)
- return object;
- let message = new $root.game.exception_nty();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an exception_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.exception_nty
- * @static
- * @param {game.exception_nty} message exception_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- exception_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this exception_nty to JSON.
- * @function toJSON
- * @memberof game.exception_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- exception_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return exception_nty;
- })();
- game.create_order_nty = (function() {
- /**
- * Properties of a create_order_nty.
- * @memberof game
- * @interface Icreate_order_nty
- * @property {string|null} [id] create_order_nty id
- * @property {number|Long|null} [cfid] create_order_nty cfid
- * @property {string|null} [sign] create_order_nty sign
- * @property {number|Long|null} [time] create_order_nty time
- */
- /**
- * Constructs a new create_order_nty.
- * @memberof game
- * @classdesc Represents a create_order_nty.
- * @implements Icreate_order_nty
- * @constructor
- * @param {game.Icreate_order_nty=} [properties] Properties to set
- */
- function create_order_nty(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * create_order_nty id.
- * @member {string} id
- * @memberof game.create_order_nty
- * @instance
- */
- create_order_nty.prototype.id = "";
- /**
- * create_order_nty cfid.
- * @member {number|Long} cfid
- * @memberof game.create_order_nty
- * @instance
- */
- create_order_nty.prototype.cfid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * create_order_nty sign.
- * @member {string} sign
- * @memberof game.create_order_nty
- * @instance
- */
- create_order_nty.prototype.sign = "";
- /**
- * create_order_nty time.
- * @member {number|Long} time
- * @memberof game.create_order_nty
- * @instance
- */
- create_order_nty.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new create_order_nty instance using the specified properties.
- * @function create
- * @memberof game.create_order_nty
- * @static
- * @param {game.Icreate_order_nty=} [properties] Properties to set
- * @returns {game.create_order_nty} create_order_nty instance
- */
- create_order_nty.create = function create(properties) {
- return new create_order_nty(properties);
- };
- /**
- * Encodes the specified create_order_nty message. Does not implicitly {@link game.create_order_nty.verify|verify} messages.
- * @function encode
- * @memberof game.create_order_nty
- * @static
- * @param {game.Icreate_order_nty} message create_order_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- create_order_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
- if (message.cfid != null && Object.hasOwnProperty.call(message, "cfid"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.cfid);
- if (message.sign != null && Object.hasOwnProperty.call(message, "sign"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.sign);
- if (message.time != null && Object.hasOwnProperty.call(message, "time"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.time);
- return writer;
- };
- /**
- * Encodes the specified create_order_nty message, length delimited. Does not implicitly {@link game.create_order_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.create_order_nty
- * @static
- * @param {game.Icreate_order_nty} message create_order_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- create_order_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a create_order_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.create_order_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.create_order_nty} create_order_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- create_order_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.create_order_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.string();
- break;
- case 2:
- message.cfid = reader.int64();
- break;
- case 3:
- message.sign = reader.string();
- break;
- case 4:
- message.time = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a create_order_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.create_order_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.create_order_nty} create_order_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- create_order_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a create_order_nty message.
- * @function verify
- * @memberof game.create_order_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- create_order_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isString(message.id))
- return "id: string expected";
- if (message.cfid != null && message.hasOwnProperty("cfid"))
- if (!$util.isInteger(message.cfid) && !(message.cfid && $util.isInteger(message.cfid.low) && $util.isInteger(message.cfid.high)))
- return "cfid: integer|Long expected";
- if (message.sign != null && message.hasOwnProperty("sign"))
- if (!$util.isString(message.sign))
- return "sign: string expected";
- if (message.time != null && message.hasOwnProperty("time"))
- if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
- return "time: integer|Long expected";
- return null;
- };
- /**
- * Creates a create_order_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.create_order_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.create_order_nty} create_order_nty
- */
- create_order_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.create_order_nty)
- return object;
- let message = new $root.game.create_order_nty();
- if (object.id != null)
- message.id = String(object.id);
- if (object.cfid != null)
- if ($util.Long)
- (message.cfid = $util.Long.fromValue(object.cfid)).unsigned = false;
- else if (typeof object.cfid === "string")
- message.cfid = parseInt(object.cfid, 10);
- else if (typeof object.cfid === "number")
- message.cfid = object.cfid;
- else if (typeof object.cfid === "object")
- message.cfid = new $util.LongBits(object.cfid.low >>> 0, object.cfid.high >>> 0).toNumber();
- if (object.sign != null)
- message.sign = String(object.sign);
- if (object.time != null)
- if ($util.Long)
- (message.time = $util.Long.fromValue(object.time)).unsigned = false;
- else if (typeof object.time === "string")
- message.time = parseInt(object.time, 10);
- else if (typeof object.time === "number")
- message.time = object.time;
- else if (typeof object.time === "object")
- message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a create_order_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.create_order_nty
- * @static
- * @param {game.create_order_nty} message create_order_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- create_order_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.id = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.cfid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.cfid = options.longs === String ? "0" : 0;
- object.sign = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.time = options.longs === String ? "0" : 0;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- object.id = message.id;
- if (message.cfid != null && message.hasOwnProperty("cfid"))
- if (typeof message.cfid === "number")
- object.cfid = options.longs === String ? String(message.cfid) : message.cfid;
- else
- object.cfid = options.longs === String ? $util.Long.prototype.toString.call(message.cfid) : options.longs === Number ? new $util.LongBits(message.cfid.low >>> 0, message.cfid.high >>> 0).toNumber() : message.cfid;
- if (message.sign != null && message.hasOwnProperty("sign"))
- object.sign = message.sign;
- if (message.time != null && message.hasOwnProperty("time"))
- if (typeof message.time === "number")
- object.time = options.longs === String ? String(message.time) : message.time;
- else
- object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
- return object;
- };
- /**
- * Converts this create_order_nty to JSON.
- * @function toJSON
- * @memberof game.create_order_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- create_order_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return create_order_nty;
- })();
- game.city_data = (function() {
- /**
- * Properties of a city_data.
- * @memberof game
- * @interface Icity_data
- */
- /**
- * Constructs a new city_data.
- * @memberof game
- * @classdesc Represents a city_data.
- * @implements Icity_data
- * @constructor
- * @param {game.Icity_data=} [properties] Properties to set
- */
- function city_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new city_data instance using the specified properties.
- * @function create
- * @memberof game.city_data
- * @static
- * @param {game.Icity_data=} [properties] Properties to set
- * @returns {game.city_data} city_data instance
- */
- city_data.create = function create(properties) {
- return new city_data(properties);
- };
- /**
- * Encodes the specified city_data message. Does not implicitly {@link game.city_data.verify|verify} messages.
- * @function encode
- * @memberof game.city_data
- * @static
- * @param {game.Icity_data} message city_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified city_data message, length delimited. Does not implicitly {@link game.city_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.city_data
- * @static
- * @param {game.Icity_data} message city_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a city_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.city_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.city_data} city_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a city_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.city_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.city_data} city_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a city_data message.
- * @function verify
- * @memberof game.city_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- city_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a city_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.city_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.city_data} city_data
- */
- city_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.city_data)
- return object;
- return new $root.game.city_data();
- };
- /**
- * Creates a plain object from a city_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.city_data
- * @static
- * @param {game.city_data} message city_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- city_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this city_data to JSON.
- * @function toJSON
- * @memberof game.city_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- city_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return city_data;
- })();
- game.city_data_rsp = (function() {
- /**
- * Properties of a city_data_rsp.
- * @memberof game
- * @interface Icity_data_rsp
- * @property {number|Long|null} [errno] city_data_rsp errno
- * @property {number|Long|null} [time] city_data_rsp time
- * @property {Array.<game.Ibuilding>|null} [list] city_data_rsp list
- * @property {Array.<number|Long>|null} [skillList] city_data_rsp skillList
- * @property {number|Long|null} [skillid] city_data_rsp skillid
- */
- /**
- * Constructs a new city_data_rsp.
- * @memberof game
- * @classdesc Represents a city_data_rsp.
- * @implements Icity_data_rsp
- * @constructor
- * @param {game.Icity_data_rsp=} [properties] Properties to set
- */
- function city_data_rsp(properties) {
- this.list = [];
- this.skillList = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * city_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.city_data_rsp
- * @instance
- */
- city_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * city_data_rsp time.
- * @member {number|Long} time
- * @memberof game.city_data_rsp
- * @instance
- */
- city_data_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * city_data_rsp list.
- * @member {Array.<game.Ibuilding>} list
- * @memberof game.city_data_rsp
- * @instance
- */
- city_data_rsp.prototype.list = $util.emptyArray;
- /**
- * city_data_rsp skillList.
- * @member {Array.<number|Long>} skillList
- * @memberof game.city_data_rsp
- * @instance
- */
- city_data_rsp.prototype.skillList = $util.emptyArray;
- /**
- * city_data_rsp skillid.
- * @member {number|Long} skillid
- * @memberof game.city_data_rsp
- * @instance
- */
- city_data_rsp.prototype.skillid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new city_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.city_data_rsp
- * @static
- * @param {game.Icity_data_rsp=} [properties] Properties to set
- * @returns {game.city_data_rsp} city_data_rsp instance
- */
- city_data_rsp.create = function create(properties) {
- return new city_data_rsp(properties);
- };
- /**
- * Encodes the specified city_data_rsp message. Does not implicitly {@link game.city_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.city_data_rsp
- * @static
- * @param {game.Icity_data_rsp} message city_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.time != null && Object.hasOwnProperty.call(message, "time"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.building.encode(message.list[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- if (message.skillList != null && message.skillList.length) {
- writer.uint32(/* id 4, wireType 2 =*/34).fork();
- for (let i = 0; i < message.skillList.length; ++i)
- writer.int64(message.skillList[i]);
- writer.ldelim();
- }
- if (message.skillid != null && Object.hasOwnProperty.call(message, "skillid"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.skillid);
- return writer;
- };
- /**
- * Encodes the specified city_data_rsp message, length delimited. Does not implicitly {@link game.city_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.city_data_rsp
- * @static
- * @param {game.Icity_data_rsp} message city_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a city_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.city_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.city_data_rsp} city_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.time = reader.int64();
- break;
- case 3:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.building.decode(reader, reader.uint32()));
- break;
- case 4:
- if (!(message.skillList && message.skillList.length))
- message.skillList = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.skillList.push(reader.int64());
- } else
- message.skillList.push(reader.int64());
- break;
- case 5:
- message.skillid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a city_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.city_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.city_data_rsp} city_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a city_data_rsp message.
- * @function verify
- * @memberof game.city_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- city_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.time != null && message.hasOwnProperty("time"))
- if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
- return "time: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.building.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- if (message.skillList != null && message.hasOwnProperty("skillList")) {
- if (!Array.isArray(message.skillList))
- return "skillList: array expected";
- for (let i = 0; i < message.skillList.length; ++i)
- if (!$util.isInteger(message.skillList[i]) && !(message.skillList[i] && $util.isInteger(message.skillList[i].low) && $util.isInteger(message.skillList[i].high)))
- return "skillList: integer|Long[] expected";
- }
- if (message.skillid != null && message.hasOwnProperty("skillid"))
- if (!$util.isInteger(message.skillid) && !(message.skillid && $util.isInteger(message.skillid.low) && $util.isInteger(message.skillid.high)))
- return "skillid: integer|Long expected";
- return null;
- };
- /**
- * Creates a city_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.city_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.city_data_rsp} city_data_rsp
- */
- city_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.city_data_rsp)
- return object;
- let message = new $root.game.city_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.time != null)
- if ($util.Long)
- (message.time = $util.Long.fromValue(object.time)).unsigned = false;
- else if (typeof object.time === "string")
- message.time = parseInt(object.time, 10);
- else if (typeof object.time === "number")
- message.time = object.time;
- else if (typeof object.time === "object")
- message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.city_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.city_data_rsp.list: object expected");
- message.list[i] = $root.game.building.fromObject(object.list[i]);
- }
- }
- if (object.skillList) {
- if (!Array.isArray(object.skillList))
- throw TypeError(".game.city_data_rsp.skillList: array expected");
- message.skillList = [];
- for (let i = 0; i < object.skillList.length; ++i)
- if ($util.Long)
- (message.skillList[i] = $util.Long.fromValue(object.skillList[i])).unsigned = false;
- else if (typeof object.skillList[i] === "string")
- message.skillList[i] = parseInt(object.skillList[i], 10);
- else if (typeof object.skillList[i] === "number")
- message.skillList[i] = object.skillList[i];
- else if (typeof object.skillList[i] === "object")
- message.skillList[i] = new $util.LongBits(object.skillList[i].low >>> 0, object.skillList[i].high >>> 0).toNumber();
- }
- if (object.skillid != null)
- if ($util.Long)
- (message.skillid = $util.Long.fromValue(object.skillid)).unsigned = false;
- else if (typeof object.skillid === "string")
- message.skillid = parseInt(object.skillid, 10);
- else if (typeof object.skillid === "number")
- message.skillid = object.skillid;
- else if (typeof object.skillid === "object")
- message.skillid = new $util.LongBits(object.skillid.low >>> 0, object.skillid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a city_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.city_data_rsp
- * @static
- * @param {game.city_data_rsp} message city_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- city_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.list = [];
- object.skillList = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.time = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.skillid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.skillid = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.time != null && message.hasOwnProperty("time"))
- if (typeof message.time === "number")
- object.time = options.longs === String ? String(message.time) : message.time;
- else
- object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.building.toObject(message.list[j], options);
- }
- if (message.skillList && message.skillList.length) {
- object.skillList = [];
- for (let j = 0; j < message.skillList.length; ++j)
- if (typeof message.skillList[j] === "number")
- object.skillList[j] = options.longs === String ? String(message.skillList[j]) : message.skillList[j];
- else
- object.skillList[j] = options.longs === String ? $util.Long.prototype.toString.call(message.skillList[j]) : options.longs === Number ? new $util.LongBits(message.skillList[j].low >>> 0, message.skillList[j].high >>> 0).toNumber() : message.skillList[j];
- }
- if (message.skillid != null && message.hasOwnProperty("skillid"))
- if (typeof message.skillid === "number")
- object.skillid = options.longs === String ? String(message.skillid) : message.skillid;
- else
- object.skillid = options.longs === String ? $util.Long.prototype.toString.call(message.skillid) : options.longs === Number ? new $util.LongBits(message.skillid.low >>> 0, message.skillid.high >>> 0).toNumber() : message.skillid;
- return object;
- };
- /**
- * Converts this city_data_rsp to JSON.
- * @function toJSON
- * @memberof game.city_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- city_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return city_data_rsp;
- })();
- game.city_data_send = (function() {
- /**
- * Properties of a city_data_send.
- * @memberof game
- * @interface Icity_data_send
- * @property {number|Long|null} [time] city_data_send time
- * @property {Array.<game.Ibuilding>|null} [list] city_data_send list
- */
- /**
- * Constructs a new city_data_send.
- * @memberof game
- * @classdesc Represents a city_data_send.
- * @implements Icity_data_send
- * @constructor
- * @param {game.Icity_data_send=} [properties] Properties to set
- */
- function city_data_send(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * city_data_send time.
- * @member {number|Long} time
- * @memberof game.city_data_send
- * @instance
- */
- city_data_send.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * city_data_send list.
- * @member {Array.<game.Ibuilding>} list
- * @memberof game.city_data_send
- * @instance
- */
- city_data_send.prototype.list = $util.emptyArray;
- /**
- * Creates a new city_data_send instance using the specified properties.
- * @function create
- * @memberof game.city_data_send
- * @static
- * @param {game.Icity_data_send=} [properties] Properties to set
- * @returns {game.city_data_send} city_data_send instance
- */
- city_data_send.create = function create(properties) {
- return new city_data_send(properties);
- };
- /**
- * Encodes the specified city_data_send message. Does not implicitly {@link game.city_data_send.verify|verify} messages.
- * @function encode
- * @memberof game.city_data_send
- * @static
- * @param {game.Icity_data_send} message city_data_send message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_data_send.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.time != null && Object.hasOwnProperty.call(message, "time"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.time);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.building.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified city_data_send message, length delimited. Does not implicitly {@link game.city_data_send.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.city_data_send
- * @static
- * @param {game.Icity_data_send} message city_data_send message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_data_send.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a city_data_send message from the specified reader or buffer.
- * @function decode
- * @memberof game.city_data_send
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.city_data_send} city_data_send
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_data_send.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_data_send();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.time = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.building.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a city_data_send message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.city_data_send
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.city_data_send} city_data_send
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_data_send.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a city_data_send message.
- * @function verify
- * @memberof game.city_data_send
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- city_data_send.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.time != null && message.hasOwnProperty("time"))
- if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
- return "time: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.building.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a city_data_send message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.city_data_send
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.city_data_send} city_data_send
- */
- city_data_send.fromObject = function fromObject(object) {
- if (object instanceof $root.game.city_data_send)
- return object;
- let message = new $root.game.city_data_send();
- if (object.time != null)
- if ($util.Long)
- (message.time = $util.Long.fromValue(object.time)).unsigned = false;
- else if (typeof object.time === "string")
- message.time = parseInt(object.time, 10);
- else if (typeof object.time === "number")
- message.time = object.time;
- else if (typeof object.time === "object")
- message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.city_data_send.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.city_data_send.list: object expected");
- message.list[i] = $root.game.building.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a city_data_send message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.city_data_send
- * @static
- * @param {game.city_data_send} message city_data_send
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- city_data_send.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.time = options.longs === String ? "0" : 0;
- if (message.time != null && message.hasOwnProperty("time"))
- if (typeof message.time === "number")
- object.time = options.longs === String ? String(message.time) : message.time;
- else
- object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.building.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this city_data_send to JSON.
- * @function toJSON
- * @memberof game.city_data_send
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- city_data_send.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return city_data_send;
- })();
- game.building_upgrade = (function() {
- /**
- * Properties of a building_upgrade.
- * @memberof game
- * @interface Ibuilding_upgrade
- * @property {number|Long|null} [id] building_upgrade id
- */
- /**
- * Constructs a new building_upgrade.
- * @memberof game
- * @classdesc Represents a building_upgrade.
- * @implements Ibuilding_upgrade
- * @constructor
- * @param {game.Ibuilding_upgrade=} [properties] Properties to set
- */
- function building_upgrade(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * building_upgrade id.
- * @member {number|Long} id
- * @memberof game.building_upgrade
- * @instance
- */
- building_upgrade.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new building_upgrade instance using the specified properties.
- * @function create
- * @memberof game.building_upgrade
- * @static
- * @param {game.Ibuilding_upgrade=} [properties] Properties to set
- * @returns {game.building_upgrade} building_upgrade instance
- */
- building_upgrade.create = function create(properties) {
- return new building_upgrade(properties);
- };
- /**
- * Encodes the specified building_upgrade message. Does not implicitly {@link game.building_upgrade.verify|verify} messages.
- * @function encode
- * @memberof game.building_upgrade
- * @static
- * @param {game.Ibuilding_upgrade} message building_upgrade message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_upgrade.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified building_upgrade message, length delimited. Does not implicitly {@link game.building_upgrade.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building_upgrade
- * @static
- * @param {game.Ibuilding_upgrade} message building_upgrade message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building_upgrade message from the specified reader or buffer.
- * @function decode
- * @memberof game.building_upgrade
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building_upgrade} building_upgrade
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_upgrade.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_upgrade();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building_upgrade message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building_upgrade
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building_upgrade} building_upgrade
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_upgrade.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building_upgrade message.
- * @function verify
- * @memberof game.building_upgrade
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building_upgrade.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a building_upgrade message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building_upgrade
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building_upgrade} building_upgrade
- */
- building_upgrade.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building_upgrade)
- return object;
- let message = new $root.game.building_upgrade();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a building_upgrade message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building_upgrade
- * @static
- * @param {game.building_upgrade} message building_upgrade
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building_upgrade.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this building_upgrade to JSON.
- * @function toJSON
- * @memberof game.building_upgrade
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building_upgrade.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building_upgrade;
- })();
- game.building_upgrade_rsp = (function() {
- /**
- * Properties of a building_upgrade_rsp.
- * @memberof game
- * @interface Ibuilding_upgrade_rsp
- * @property {number|Long|null} [errno] building_upgrade_rsp errno
- * @property {game.Ibuilding|null} [data] building_upgrade_rsp data
- */
- /**
- * Constructs a new building_upgrade_rsp.
- * @memberof game
- * @classdesc Represents a building_upgrade_rsp.
- * @implements Ibuilding_upgrade_rsp
- * @constructor
- * @param {game.Ibuilding_upgrade_rsp=} [properties] Properties to set
- */
- function building_upgrade_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * building_upgrade_rsp errno.
- * @member {number|Long} errno
- * @memberof game.building_upgrade_rsp
- * @instance
- */
- building_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building_upgrade_rsp data.
- * @member {game.Ibuilding|null|undefined} data
- * @memberof game.building_upgrade_rsp
- * @instance
- */
- building_upgrade_rsp.prototype.data = null;
- /**
- * Creates a new building_upgrade_rsp instance using the specified properties.
- * @function create
- * @memberof game.building_upgrade_rsp
- * @static
- * @param {game.Ibuilding_upgrade_rsp=} [properties] Properties to set
- * @returns {game.building_upgrade_rsp} building_upgrade_rsp instance
- */
- building_upgrade_rsp.create = function create(properties) {
- return new building_upgrade_rsp(properties);
- };
- /**
- * Encodes the specified building_upgrade_rsp message. Does not implicitly {@link game.building_upgrade_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.building_upgrade_rsp
- * @static
- * @param {game.Ibuilding_upgrade_rsp} message building_upgrade_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_upgrade_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified building_upgrade_rsp message, length delimited. Does not implicitly {@link game.building_upgrade_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building_upgrade_rsp
- * @static
- * @param {game.Ibuilding_upgrade_rsp} message building_upgrade_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building_upgrade_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.building_upgrade_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building_upgrade_rsp} building_upgrade_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_upgrade_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_upgrade_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.building.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building_upgrade_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building_upgrade_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building_upgrade_rsp} building_upgrade_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building_upgrade_rsp message.
- * @function verify
- * @memberof game.building_upgrade_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building_upgrade_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.building.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a building_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building_upgrade_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building_upgrade_rsp} building_upgrade_rsp
- */
- building_upgrade_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building_upgrade_rsp)
- return object;
- let message = new $root.game.building_upgrade_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.building_upgrade_rsp.data: object expected");
- message.data = $root.game.building.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a building_upgrade_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building_upgrade_rsp
- * @static
- * @param {game.building_upgrade_rsp} message building_upgrade_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building_upgrade_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.building.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this building_upgrade_rsp to JSON.
- * @function toJSON
- * @memberof game.building_upgrade_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building_upgrade_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building_upgrade_rsp;
- })();
- game.building_one_key = (function() {
- /**
- * Properties of a building_one_key.
- * @memberof game
- * @interface Ibuilding_one_key
- */
- /**
- * Constructs a new building_one_key.
- * @memberof game
- * @classdesc Represents a building_one_key.
- * @implements Ibuilding_one_key
- * @constructor
- * @param {game.Ibuilding_one_key=} [properties] Properties to set
- */
- function building_one_key(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new building_one_key instance using the specified properties.
- * @function create
- * @memberof game.building_one_key
- * @static
- * @param {game.Ibuilding_one_key=} [properties] Properties to set
- * @returns {game.building_one_key} building_one_key instance
- */
- building_one_key.create = function create(properties) {
- return new building_one_key(properties);
- };
- /**
- * Encodes the specified building_one_key message. Does not implicitly {@link game.building_one_key.verify|verify} messages.
- * @function encode
- * @memberof game.building_one_key
- * @static
- * @param {game.Ibuilding_one_key} message building_one_key message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_one_key.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified building_one_key message, length delimited. Does not implicitly {@link game.building_one_key.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building_one_key
- * @static
- * @param {game.Ibuilding_one_key} message building_one_key message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_one_key.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building_one_key message from the specified reader or buffer.
- * @function decode
- * @memberof game.building_one_key
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building_one_key} building_one_key
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_one_key.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_one_key();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building_one_key message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building_one_key
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building_one_key} building_one_key
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_one_key.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building_one_key message.
- * @function verify
- * @memberof game.building_one_key
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building_one_key.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a building_one_key message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building_one_key
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building_one_key} building_one_key
- */
- building_one_key.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building_one_key)
- return object;
- return new $root.game.building_one_key();
- };
- /**
- * Creates a plain object from a building_one_key message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building_one_key
- * @static
- * @param {game.building_one_key} message building_one_key
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building_one_key.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this building_one_key to JSON.
- * @function toJSON
- * @memberof game.building_one_key
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building_one_key.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building_one_key;
- })();
- game.building_one_key_rsp = (function() {
- /**
- * Properties of a building_one_key_rsp.
- * @memberof game
- * @interface Ibuilding_one_key_rsp
- * @property {number|Long|null} [errno] building_one_key_rsp errno
- * @property {Array.<game.Ibuilding>|null} [list] building_one_key_rsp list
- */
- /**
- * Constructs a new building_one_key_rsp.
- * @memberof game
- * @classdesc Represents a building_one_key_rsp.
- * @implements Ibuilding_one_key_rsp
- * @constructor
- * @param {game.Ibuilding_one_key_rsp=} [properties] Properties to set
- */
- function building_one_key_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * building_one_key_rsp errno.
- * @member {number|Long} errno
- * @memberof game.building_one_key_rsp
- * @instance
- */
- building_one_key_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building_one_key_rsp list.
- * @member {Array.<game.Ibuilding>} list
- * @memberof game.building_one_key_rsp
- * @instance
- */
- building_one_key_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new building_one_key_rsp instance using the specified properties.
- * @function create
- * @memberof game.building_one_key_rsp
- * @static
- * @param {game.Ibuilding_one_key_rsp=} [properties] Properties to set
- * @returns {game.building_one_key_rsp} building_one_key_rsp instance
- */
- building_one_key_rsp.create = function create(properties) {
- return new building_one_key_rsp(properties);
- };
- /**
- * Encodes the specified building_one_key_rsp message. Does not implicitly {@link game.building_one_key_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.building_one_key_rsp
- * @static
- * @param {game.Ibuilding_one_key_rsp} message building_one_key_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_one_key_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.building.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified building_one_key_rsp message, length delimited. Does not implicitly {@link game.building_one_key_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building_one_key_rsp
- * @static
- * @param {game.Ibuilding_one_key_rsp} message building_one_key_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_one_key_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building_one_key_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.building_one_key_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building_one_key_rsp} building_one_key_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_one_key_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_one_key_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.building.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building_one_key_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building_one_key_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building_one_key_rsp} building_one_key_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_one_key_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building_one_key_rsp message.
- * @function verify
- * @memberof game.building_one_key_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building_one_key_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.building.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a building_one_key_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building_one_key_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building_one_key_rsp} building_one_key_rsp
- */
- building_one_key_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building_one_key_rsp)
- return object;
- let message = new $root.game.building_one_key_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.building_one_key_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.building_one_key_rsp.list: object expected");
- message.list[i] = $root.game.building.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a building_one_key_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building_one_key_rsp
- * @static
- * @param {game.building_one_key_rsp} message building_one_key_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building_one_key_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.building.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this building_one_key_rsp to JSON.
- * @function toJSON
- * @memberof game.building_one_key_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building_one_key_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building_one_key_rsp;
- })();
- game.adventure_data = (function() {
- /**
- * Properties of an adventure_data.
- * @memberof game
- * @interface Iadventure_data
- */
- /**
- * Constructs a new adventure_data.
- * @memberof game
- * @classdesc Represents an adventure_data.
- * @implements Iadventure_data
- * @constructor
- * @param {game.Iadventure_data=} [properties] Properties to set
- */
- function adventure_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new adventure_data instance using the specified properties.
- * @function create
- * @memberof game.adventure_data
- * @static
- * @param {game.Iadventure_data=} [properties] Properties to set
- * @returns {game.adventure_data} adventure_data instance
- */
- adventure_data.create = function create(properties) {
- return new adventure_data(properties);
- };
- /**
- * Encodes the specified adventure_data message. Does not implicitly {@link game.adventure_data.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_data
- * @static
- * @param {game.Iadventure_data} message adventure_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified adventure_data message, length delimited. Does not implicitly {@link game.adventure_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_data
- * @static
- * @param {game.Iadventure_data} message adventure_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_data} adventure_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_data} adventure_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_data message.
- * @function verify
- * @memberof game.adventure_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates an adventure_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_data} adventure_data
- */
- adventure_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_data)
- return object;
- return new $root.game.adventure_data();
- };
- /**
- * Creates a plain object from an adventure_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_data
- * @static
- * @param {game.adventure_data} message adventure_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this adventure_data to JSON.
- * @function toJSON
- * @memberof game.adventure_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_data;
- })();
- game.adventure_data_rsp = (function() {
- /**
- * Properties of an adventure_data_rsp.
- * @memberof game
- * @interface Iadventure_data_rsp
- * @property {number|Long|null} [errno] adventure_data_rsp errno
- * @property {number|Long|null} [id1] adventure_data_rsp id1
- * @property {Array.<number|Long>|null} [award1] adventure_data_rsp award1
- * @property {number|Long|null} [id2] adventure_data_rsp id2
- * @property {Array.<number|Long>|null} [award2] adventure_data_rsp award2
- * @property {number|Long|null} [type] adventure_data_rsp type
- * @property {number|Long|null} [layer] adventure_data_rsp layer
- * @property {number|Long|null} [cost] adventure_data_rsp cost
- */
- /**
- * Constructs a new adventure_data_rsp.
- * @memberof game
- * @classdesc Represents an adventure_data_rsp.
- * @implements Iadventure_data_rsp
- * @constructor
- * @param {game.Iadventure_data_rsp=} [properties] Properties to set
- */
- function adventure_data_rsp(properties) {
- this.award1 = [];
- this.award2 = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.adventure_data_rsp
- * @instance
- */
- adventure_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_data_rsp id1.
- * @member {number|Long} id1
- * @memberof game.adventure_data_rsp
- * @instance
- */
- adventure_data_rsp.prototype.id1 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_data_rsp award1.
- * @member {Array.<number|Long>} award1
- * @memberof game.adventure_data_rsp
- * @instance
- */
- adventure_data_rsp.prototype.award1 = $util.emptyArray;
- /**
- * adventure_data_rsp id2.
- * @member {number|Long} id2
- * @memberof game.adventure_data_rsp
- * @instance
- */
- adventure_data_rsp.prototype.id2 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_data_rsp award2.
- * @member {Array.<number|Long>} award2
- * @memberof game.adventure_data_rsp
- * @instance
- */
- adventure_data_rsp.prototype.award2 = $util.emptyArray;
- /**
- * adventure_data_rsp type.
- * @member {number|Long} type
- * @memberof game.adventure_data_rsp
- * @instance
- */
- adventure_data_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_data_rsp layer.
- * @member {number|Long} layer
- * @memberof game.adventure_data_rsp
- * @instance
- */
- adventure_data_rsp.prototype.layer = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_data_rsp cost.
- * @member {number|Long} cost
- * @memberof game.adventure_data_rsp
- * @instance
- */
- adventure_data_rsp.prototype.cost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.adventure_data_rsp
- * @static
- * @param {game.Iadventure_data_rsp=} [properties] Properties to set
- * @returns {game.adventure_data_rsp} adventure_data_rsp instance
- */
- adventure_data_rsp.create = function create(properties) {
- return new adventure_data_rsp(properties);
- };
- /**
- * Encodes the specified adventure_data_rsp message. Does not implicitly {@link game.adventure_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_data_rsp
- * @static
- * @param {game.Iadventure_data_rsp} message adventure_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.id1 != null && Object.hasOwnProperty.call(message, "id1"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id1);
- if (message.award1 != null && message.award1.length) {
- writer.uint32(/* id 3, wireType 2 =*/26).fork();
- for (let i = 0; i < message.award1.length; ++i)
- writer.int64(message.award1[i]);
- writer.ldelim();
- }
- if (message.id2 != null && Object.hasOwnProperty.call(message, "id2"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.id2);
- if (message.award2 != null && message.award2.length) {
- writer.uint32(/* id 5, wireType 2 =*/42).fork();
- for (let i = 0; i < message.award2.length; ++i)
- writer.int64(message.award2[i]);
- writer.ldelim();
- }
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 6, wireType 0 =*/48).int64(message.type);
- if (message.layer != null && Object.hasOwnProperty.call(message, "layer"))
- writer.uint32(/* id 7, wireType 0 =*/56).int64(message.layer);
- if (message.cost != null && Object.hasOwnProperty.call(message, "cost"))
- writer.uint32(/* id 8, wireType 0 =*/64).int64(message.cost);
- return writer;
- };
- /**
- * Encodes the specified adventure_data_rsp message, length delimited. Does not implicitly {@link game.adventure_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_data_rsp
- * @static
- * @param {game.Iadventure_data_rsp} message adventure_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_data_rsp} adventure_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.id1 = reader.int64();
- break;
- case 3:
- if (!(message.award1 && message.award1.length))
- message.award1 = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.award1.push(reader.int64());
- } else
- message.award1.push(reader.int64());
- break;
- case 4:
- message.id2 = reader.int64();
- break;
- case 5:
- if (!(message.award2 && message.award2.length))
- message.award2 = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.award2.push(reader.int64());
- } else
- message.award2.push(reader.int64());
- break;
- case 6:
- message.type = reader.int64();
- break;
- case 7:
- message.layer = reader.int64();
- break;
- case 8:
- message.cost = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_data_rsp} adventure_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_data_rsp message.
- * @function verify
- * @memberof game.adventure_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.id1 != null && message.hasOwnProperty("id1"))
- if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high)))
- return "id1: integer|Long expected";
- if (message.award1 != null && message.hasOwnProperty("award1")) {
- if (!Array.isArray(message.award1))
- return "award1: array expected";
- for (let i = 0; i < message.award1.length; ++i)
- if (!$util.isInteger(message.award1[i]) && !(message.award1[i] && $util.isInteger(message.award1[i].low) && $util.isInteger(message.award1[i].high)))
- return "award1: integer|Long[] expected";
- }
- if (message.id2 != null && message.hasOwnProperty("id2"))
- if (!$util.isInteger(message.id2) && !(message.id2 && $util.isInteger(message.id2.low) && $util.isInteger(message.id2.high)))
- return "id2: integer|Long expected";
- if (message.award2 != null && message.hasOwnProperty("award2")) {
- if (!Array.isArray(message.award2))
- return "award2: array expected";
- for (let i = 0; i < message.award2.length; ++i)
- if (!$util.isInteger(message.award2[i]) && !(message.award2[i] && $util.isInteger(message.award2[i].low) && $util.isInteger(message.award2[i].high)))
- return "award2: integer|Long[] expected";
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.layer != null && message.hasOwnProperty("layer"))
- if (!$util.isInteger(message.layer) && !(message.layer && $util.isInteger(message.layer.low) && $util.isInteger(message.layer.high)))
- return "layer: integer|Long expected";
- if (message.cost != null && message.hasOwnProperty("cost"))
- if (!$util.isInteger(message.cost) && !(message.cost && $util.isInteger(message.cost.low) && $util.isInteger(message.cost.high)))
- return "cost: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_data_rsp} adventure_data_rsp
- */
- adventure_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_data_rsp)
- return object;
- let message = new $root.game.adventure_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.id1 != null)
- if ($util.Long)
- (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false;
- else if (typeof object.id1 === "string")
- message.id1 = parseInt(object.id1, 10);
- else if (typeof object.id1 === "number")
- message.id1 = object.id1;
- else if (typeof object.id1 === "object")
- message.id1 = new $util.LongBits(object.id1.low >>> 0, object.id1.high >>> 0).toNumber();
- if (object.award1) {
- if (!Array.isArray(object.award1))
- throw TypeError(".game.adventure_data_rsp.award1: array expected");
- message.award1 = [];
- for (let i = 0; i < object.award1.length; ++i)
- if ($util.Long)
- (message.award1[i] = $util.Long.fromValue(object.award1[i])).unsigned = false;
- else if (typeof object.award1[i] === "string")
- message.award1[i] = parseInt(object.award1[i], 10);
- else if (typeof object.award1[i] === "number")
- message.award1[i] = object.award1[i];
- else if (typeof object.award1[i] === "object")
- message.award1[i] = new $util.LongBits(object.award1[i].low >>> 0, object.award1[i].high >>> 0).toNumber();
- }
- if (object.id2 != null)
- if ($util.Long)
- (message.id2 = $util.Long.fromValue(object.id2)).unsigned = false;
- else if (typeof object.id2 === "string")
- message.id2 = parseInt(object.id2, 10);
- else if (typeof object.id2 === "number")
- message.id2 = object.id2;
- else if (typeof object.id2 === "object")
- message.id2 = new $util.LongBits(object.id2.low >>> 0, object.id2.high >>> 0).toNumber();
- if (object.award2) {
- if (!Array.isArray(object.award2))
- throw TypeError(".game.adventure_data_rsp.award2: array expected");
- message.award2 = [];
- for (let i = 0; i < object.award2.length; ++i)
- if ($util.Long)
- (message.award2[i] = $util.Long.fromValue(object.award2[i])).unsigned = false;
- else if (typeof object.award2[i] === "string")
- message.award2[i] = parseInt(object.award2[i], 10);
- else if (typeof object.award2[i] === "number")
- message.award2[i] = object.award2[i];
- else if (typeof object.award2[i] === "object")
- message.award2[i] = new $util.LongBits(object.award2[i].low >>> 0, object.award2[i].high >>> 0).toNumber();
- }
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.layer != null)
- if ($util.Long)
- (message.layer = $util.Long.fromValue(object.layer)).unsigned = false;
- else if (typeof object.layer === "string")
- message.layer = parseInt(object.layer, 10);
- else if (typeof object.layer === "number")
- message.layer = object.layer;
- else if (typeof object.layer === "object")
- message.layer = new $util.LongBits(object.layer.low >>> 0, object.layer.high >>> 0).toNumber();
- if (object.cost != null)
- if ($util.Long)
- (message.cost = $util.Long.fromValue(object.cost)).unsigned = false;
- else if (typeof object.cost === "string")
- message.cost = parseInt(object.cost, 10);
- else if (typeof object.cost === "number")
- message.cost = object.cost;
- else if (typeof object.cost === "object")
- message.cost = new $util.LongBits(object.cost.low >>> 0, object.cost.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_data_rsp
- * @static
- * @param {game.adventure_data_rsp} message adventure_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.award1 = [];
- object.award2 = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id1 = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id2 = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.layer = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.layer = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.cost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.cost = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.id1 != null && message.hasOwnProperty("id1"))
- if (typeof message.id1 === "number")
- object.id1 = options.longs === String ? String(message.id1) : message.id1;
- else
- object.id1 = options.longs === String ? $util.Long.prototype.toString.call(message.id1) : options.longs === Number ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() : message.id1;
- if (message.award1 && message.award1.length) {
- object.award1 = [];
- for (let j = 0; j < message.award1.length; ++j)
- if (typeof message.award1[j] === "number")
- object.award1[j] = options.longs === String ? String(message.award1[j]) : message.award1[j];
- else
- object.award1[j] = options.longs === String ? $util.Long.prototype.toString.call(message.award1[j]) : options.longs === Number ? new $util.LongBits(message.award1[j].low >>> 0, message.award1[j].high >>> 0).toNumber() : message.award1[j];
- }
- if (message.id2 != null && message.hasOwnProperty("id2"))
- if (typeof message.id2 === "number")
- object.id2 = options.longs === String ? String(message.id2) : message.id2;
- else
- object.id2 = options.longs === String ? $util.Long.prototype.toString.call(message.id2) : options.longs === Number ? new $util.LongBits(message.id2.low >>> 0, message.id2.high >>> 0).toNumber() : message.id2;
- if (message.award2 && message.award2.length) {
- object.award2 = [];
- for (let j = 0; j < message.award2.length; ++j)
- if (typeof message.award2[j] === "number")
- object.award2[j] = options.longs === String ? String(message.award2[j]) : message.award2[j];
- else
- object.award2[j] = options.longs === String ? $util.Long.prototype.toString.call(message.award2[j]) : options.longs === Number ? new $util.LongBits(message.award2[j].low >>> 0, message.award2[j].high >>> 0).toNumber() : message.award2[j];
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.layer != null && message.hasOwnProperty("layer"))
- if (typeof message.layer === "number")
- object.layer = options.longs === String ? String(message.layer) : message.layer;
- else
- object.layer = options.longs === String ? $util.Long.prototype.toString.call(message.layer) : options.longs === Number ? new $util.LongBits(message.layer.low >>> 0, message.layer.high >>> 0).toNumber() : message.layer;
- if (message.cost != null && message.hasOwnProperty("cost"))
- if (typeof message.cost === "number")
- object.cost = options.longs === String ? String(message.cost) : message.cost;
- else
- object.cost = options.longs === String ? $util.Long.prototype.toString.call(message.cost) : options.longs === Number ? new $util.LongBits(message.cost.low >>> 0, message.cost.high >>> 0).toNumber() : message.cost;
- return object;
- };
- /**
- * Converts this adventure_data_rsp to JSON.
- * @function toJSON
- * @memberof game.adventure_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_data_rsp;
- })();
- game.adventure_start = (function() {
- /**
- * Properties of an adventure_start.
- * @memberof game
- * @interface Iadventure_start
- * @property {number|Long|null} [id] adventure_start id
- * @property {number|Long|null} [type] adventure_start type
- */
- /**
- * Constructs a new adventure_start.
- * @memberof game
- * @classdesc Represents an adventure_start.
- * @implements Iadventure_start
- * @constructor
- * @param {game.Iadventure_start=} [properties] Properties to set
- */
- function adventure_start(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_start id.
- * @member {number|Long} id
- * @memberof game.adventure_start
- * @instance
- */
- adventure_start.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_start type.
- * @member {number|Long} type
- * @memberof game.adventure_start
- * @instance
- */
- adventure_start.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_start instance using the specified properties.
- * @function create
- * @memberof game.adventure_start
- * @static
- * @param {game.Iadventure_start=} [properties] Properties to set
- * @returns {game.adventure_start} adventure_start instance
- */
- adventure_start.create = function create(properties) {
- return new adventure_start(properties);
- };
- /**
- * Encodes the specified adventure_start message. Does not implicitly {@link game.adventure_start.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_start
- * @static
- * @param {game.Iadventure_start} message adventure_start message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_start.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
- return writer;
- };
- /**
- * Encodes the specified adventure_start message, length delimited. Does not implicitly {@link game.adventure_start.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_start
- * @static
- * @param {game.Iadventure_start} message adventure_start message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_start.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_start message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_start
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_start} adventure_start
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_start.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_start();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- message.type = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_start message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_start
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_start} adventure_start
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_start.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_start message.
- * @function verify
- * @memberof game.adventure_start
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_start.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_start message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_start
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_start} adventure_start
- */
- adventure_start.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_start)
- return object;
- let message = new $root.game.adventure_start();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_start message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_start
- * @static
- * @param {game.adventure_start} message adventure_start
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_start.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- return object;
- };
- /**
- * Converts this adventure_start to JSON.
- * @function toJSON
- * @memberof game.adventure_start
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_start.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_start;
- })();
- game.adventure_start_rsp = (function() {
- /**
- * Properties of an adventure_start_rsp.
- * @memberof game
- * @interface Iadventure_start_rsp
- * @property {number|Long|null} [errno] adventure_start_rsp errno
- * @property {boolean|null} [btrial] adventure_start_rsp btrial
- * @property {number|Long|null} [trialId] adventure_start_rsp trialId
- * @property {number|Long|null} [trialNum] adventure_start_rsp trialNum
- */
- /**
- * Constructs a new adventure_start_rsp.
- * @memberof game
- * @classdesc Represents an adventure_start_rsp.
- * @implements Iadventure_start_rsp
- * @constructor
- * @param {game.Iadventure_start_rsp=} [properties] Properties to set
- */
- function adventure_start_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_start_rsp errno.
- * @member {number|Long} errno
- * @memberof game.adventure_start_rsp
- * @instance
- */
- adventure_start_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_start_rsp btrial.
- * @member {boolean} btrial
- * @memberof game.adventure_start_rsp
- * @instance
- */
- adventure_start_rsp.prototype.btrial = false;
- /**
- * adventure_start_rsp trialId.
- * @member {number|Long} trialId
- * @memberof game.adventure_start_rsp
- * @instance
- */
- adventure_start_rsp.prototype.trialId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_start_rsp trialNum.
- * @member {number|Long} trialNum
- * @memberof game.adventure_start_rsp
- * @instance
- */
- adventure_start_rsp.prototype.trialNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_start_rsp instance using the specified properties.
- * @function create
- * @memberof game.adventure_start_rsp
- * @static
- * @param {game.Iadventure_start_rsp=} [properties] Properties to set
- * @returns {game.adventure_start_rsp} adventure_start_rsp instance
- */
- adventure_start_rsp.create = function create(properties) {
- return new adventure_start_rsp(properties);
- };
- /**
- * Encodes the specified adventure_start_rsp message. Does not implicitly {@link game.adventure_start_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_start_rsp
- * @static
- * @param {game.Iadventure_start_rsp} message adventure_start_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_start_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.btrial != null && Object.hasOwnProperty.call(message, "btrial"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.btrial);
- if (message.trialId != null && Object.hasOwnProperty.call(message, "trialId"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.trialId);
- if (message.trialNum != null && Object.hasOwnProperty.call(message, "trialNum"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.trialNum);
- return writer;
- };
- /**
- * Encodes the specified adventure_start_rsp message, length delimited. Does not implicitly {@link game.adventure_start_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_start_rsp
- * @static
- * @param {game.Iadventure_start_rsp} message adventure_start_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_start_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_start_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_start_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_start_rsp} adventure_start_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_start_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_start_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.btrial = reader.bool();
- break;
- case 3:
- message.trialId = reader.int64();
- break;
- case 4:
- message.trialNum = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_start_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_start_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_start_rsp} adventure_start_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_start_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_start_rsp message.
- * @function verify
- * @memberof game.adventure_start_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_start_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.btrial != null && message.hasOwnProperty("btrial"))
- if (typeof message.btrial !== "boolean")
- return "btrial: boolean expected";
- if (message.trialId != null && message.hasOwnProperty("trialId"))
- if (!$util.isInteger(message.trialId) && !(message.trialId && $util.isInteger(message.trialId.low) && $util.isInteger(message.trialId.high)))
- return "trialId: integer|Long expected";
- if (message.trialNum != null && message.hasOwnProperty("trialNum"))
- if (!$util.isInteger(message.trialNum) && !(message.trialNum && $util.isInteger(message.trialNum.low) && $util.isInteger(message.trialNum.high)))
- return "trialNum: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_start_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_start_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_start_rsp} adventure_start_rsp
- */
- adventure_start_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_start_rsp)
- return object;
- let message = new $root.game.adventure_start_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.btrial != null)
- message.btrial = Boolean(object.btrial);
- if (object.trialId != null)
- if ($util.Long)
- (message.trialId = $util.Long.fromValue(object.trialId)).unsigned = false;
- else if (typeof object.trialId === "string")
- message.trialId = parseInt(object.trialId, 10);
- else if (typeof object.trialId === "number")
- message.trialId = object.trialId;
- else if (typeof object.trialId === "object")
- message.trialId = new $util.LongBits(object.trialId.low >>> 0, object.trialId.high >>> 0).toNumber();
- if (object.trialNum != null)
- if ($util.Long)
- (message.trialNum = $util.Long.fromValue(object.trialNum)).unsigned = false;
- else if (typeof object.trialNum === "string")
- message.trialNum = parseInt(object.trialNum, 10);
- else if (typeof object.trialNum === "number")
- message.trialNum = object.trialNum;
- else if (typeof object.trialNum === "object")
- message.trialNum = new $util.LongBits(object.trialNum.low >>> 0, object.trialNum.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_start_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_start_rsp
- * @static
- * @param {game.adventure_start_rsp} message adventure_start_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_start_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.btrial = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.trialId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.trialId = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.trialNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.trialNum = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.btrial != null && message.hasOwnProperty("btrial"))
- object.btrial = message.btrial;
- if (message.trialId != null && message.hasOwnProperty("trialId"))
- if (typeof message.trialId === "number")
- object.trialId = options.longs === String ? String(message.trialId) : message.trialId;
- else
- object.trialId = options.longs === String ? $util.Long.prototype.toString.call(message.trialId) : options.longs === Number ? new $util.LongBits(message.trialId.low >>> 0, message.trialId.high >>> 0).toNumber() : message.trialId;
- if (message.trialNum != null && message.hasOwnProperty("trialNum"))
- if (typeof message.trialNum === "number")
- object.trialNum = options.longs === String ? String(message.trialNum) : message.trialNum;
- else
- object.trialNum = options.longs === String ? $util.Long.prototype.toString.call(message.trialNum) : options.longs === Number ? new $util.LongBits(message.trialNum.low >>> 0, message.trialNum.high >>> 0).toNumber() : message.trialNum;
- return object;
- };
- /**
- * Converts this adventure_start_rsp to JSON.
- * @function toJSON
- * @memberof game.adventure_start_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_start_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_start_rsp;
- })();
- game.adventure_end = (function() {
- /**
- * Properties of an adventure_end.
- * @memberof game
- * @interface Iadventure_end
- * @property {boolean|null} [win] adventure_end win
- * @property {number|Long|null} [monsterNum] adventure_end monsterNum
- * @property {number|Long|null} [bossNum] adventure_end bossNum
- * @property {number|Long|null} [eliteNum] adventure_end eliteNum
- */
- /**
- * Constructs a new adventure_end.
- * @memberof game
- * @classdesc Represents an adventure_end.
- * @implements Iadventure_end
- * @constructor
- * @param {game.Iadventure_end=} [properties] Properties to set
- */
- function adventure_end(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_end win.
- * @member {boolean} win
- * @memberof game.adventure_end
- * @instance
- */
- adventure_end.prototype.win = false;
- /**
- * adventure_end monsterNum.
- * @member {number|Long} monsterNum
- * @memberof game.adventure_end
- * @instance
- */
- adventure_end.prototype.monsterNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_end bossNum.
- * @member {number|Long} bossNum
- * @memberof game.adventure_end
- * @instance
- */
- adventure_end.prototype.bossNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_end eliteNum.
- * @member {number|Long} eliteNum
- * @memberof game.adventure_end
- * @instance
- */
- adventure_end.prototype.eliteNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_end instance using the specified properties.
- * @function create
- * @memberof game.adventure_end
- * @static
- * @param {game.Iadventure_end=} [properties] Properties to set
- * @returns {game.adventure_end} adventure_end instance
- */
- adventure_end.create = function create(properties) {
- return new adventure_end(properties);
- };
- /**
- * Encodes the specified adventure_end message. Does not implicitly {@link game.adventure_end.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_end
- * @static
- * @param {game.Iadventure_end} message adventure_end message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_end.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.win != null && Object.hasOwnProperty.call(message, "win"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.win);
- if (message.monsterNum != null && Object.hasOwnProperty.call(message, "monsterNum"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.monsterNum);
- if (message.bossNum != null && Object.hasOwnProperty.call(message, "bossNum"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.bossNum);
- if (message.eliteNum != null && Object.hasOwnProperty.call(message, "eliteNum"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.eliteNum);
- return writer;
- };
- /**
- * Encodes the specified adventure_end message, length delimited. Does not implicitly {@link game.adventure_end.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_end
- * @static
- * @param {game.Iadventure_end} message adventure_end message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_end.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_end message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_end
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_end} adventure_end
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_end.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_end();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.win = reader.bool();
- break;
- case 2:
- message.monsterNum = reader.int64();
- break;
- case 3:
- message.bossNum = reader.int64();
- break;
- case 4:
- message.eliteNum = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_end message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_end
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_end} adventure_end
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_end.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_end message.
- * @function verify
- * @memberof game.adventure_end
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_end.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.win != null && message.hasOwnProperty("win"))
- if (typeof message.win !== "boolean")
- return "win: boolean expected";
- if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
- if (!$util.isInteger(message.monsterNum) && !(message.monsterNum && $util.isInteger(message.monsterNum.low) && $util.isInteger(message.monsterNum.high)))
- return "monsterNum: integer|Long expected";
- if (message.bossNum != null && message.hasOwnProperty("bossNum"))
- if (!$util.isInteger(message.bossNum) && !(message.bossNum && $util.isInteger(message.bossNum.low) && $util.isInteger(message.bossNum.high)))
- return "bossNum: integer|Long expected";
- if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
- if (!$util.isInteger(message.eliteNum) && !(message.eliteNum && $util.isInteger(message.eliteNum.low) && $util.isInteger(message.eliteNum.high)))
- return "eliteNum: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_end message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_end
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_end} adventure_end
- */
- adventure_end.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_end)
- return object;
- let message = new $root.game.adventure_end();
- if (object.win != null)
- message.win = Boolean(object.win);
- if (object.monsterNum != null)
- if ($util.Long)
- (message.monsterNum = $util.Long.fromValue(object.monsterNum)).unsigned = false;
- else if (typeof object.monsterNum === "string")
- message.monsterNum = parseInt(object.monsterNum, 10);
- else if (typeof object.monsterNum === "number")
- message.monsterNum = object.monsterNum;
- else if (typeof object.monsterNum === "object")
- message.monsterNum = new $util.LongBits(object.monsterNum.low >>> 0, object.monsterNum.high >>> 0).toNumber();
- if (object.bossNum != null)
- if ($util.Long)
- (message.bossNum = $util.Long.fromValue(object.bossNum)).unsigned = false;
- else if (typeof object.bossNum === "string")
- message.bossNum = parseInt(object.bossNum, 10);
- else if (typeof object.bossNum === "number")
- message.bossNum = object.bossNum;
- else if (typeof object.bossNum === "object")
- message.bossNum = new $util.LongBits(object.bossNum.low >>> 0, object.bossNum.high >>> 0).toNumber();
- if (object.eliteNum != null)
- if ($util.Long)
- (message.eliteNum = $util.Long.fromValue(object.eliteNum)).unsigned = false;
- else if (typeof object.eliteNum === "string")
- message.eliteNum = parseInt(object.eliteNum, 10);
- else if (typeof object.eliteNum === "number")
- message.eliteNum = object.eliteNum;
- else if (typeof object.eliteNum === "object")
- message.eliteNum = new $util.LongBits(object.eliteNum.low >>> 0, object.eliteNum.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_end message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_end
- * @static
- * @param {game.adventure_end} message adventure_end
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_end.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.win = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.monsterNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.monsterNum = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.bossNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.bossNum = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.eliteNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.eliteNum = options.longs === String ? "0" : 0;
- }
- if (message.win != null && message.hasOwnProperty("win"))
- object.win = message.win;
- if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
- if (typeof message.monsterNum === "number")
- object.monsterNum = options.longs === String ? String(message.monsterNum) : message.monsterNum;
- else
- object.monsterNum = options.longs === String ? $util.Long.prototype.toString.call(message.monsterNum) : options.longs === Number ? new $util.LongBits(message.monsterNum.low >>> 0, message.monsterNum.high >>> 0).toNumber() : message.monsterNum;
- if (message.bossNum != null && message.hasOwnProperty("bossNum"))
- if (typeof message.bossNum === "number")
- object.bossNum = options.longs === String ? String(message.bossNum) : message.bossNum;
- else
- object.bossNum = options.longs === String ? $util.Long.prototype.toString.call(message.bossNum) : options.longs === Number ? new $util.LongBits(message.bossNum.low >>> 0, message.bossNum.high >>> 0).toNumber() : message.bossNum;
- if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
- if (typeof message.eliteNum === "number")
- object.eliteNum = options.longs === String ? String(message.eliteNum) : message.eliteNum;
- else
- object.eliteNum = options.longs === String ? $util.Long.prototype.toString.call(message.eliteNum) : options.longs === Number ? new $util.LongBits(message.eliteNum.low >>> 0, message.eliteNum.high >>> 0).toNumber() : message.eliteNum;
- return object;
- };
- /**
- * Converts this adventure_end to JSON.
- * @function toJSON
- * @memberof game.adventure_end
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_end.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_end;
- })();
- game.adventure_end_rsp = (function() {
- /**
- * Properties of an adventure_end_rsp.
- * @memberof game
- * @interface Iadventure_end_rsp
- * @property {number|Long|null} [errno] adventure_end_rsp errno
- */
- /**
- * Constructs a new adventure_end_rsp.
- * @memberof game
- * @classdesc Represents an adventure_end_rsp.
- * @implements Iadventure_end_rsp
- * @constructor
- * @param {game.Iadventure_end_rsp=} [properties] Properties to set
- */
- function adventure_end_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_end_rsp errno.
- * @member {number|Long} errno
- * @memberof game.adventure_end_rsp
- * @instance
- */
- adventure_end_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_end_rsp instance using the specified properties.
- * @function create
- * @memberof game.adventure_end_rsp
- * @static
- * @param {game.Iadventure_end_rsp=} [properties] Properties to set
- * @returns {game.adventure_end_rsp} adventure_end_rsp instance
- */
- adventure_end_rsp.create = function create(properties) {
- return new adventure_end_rsp(properties);
- };
- /**
- * Encodes the specified adventure_end_rsp message. Does not implicitly {@link game.adventure_end_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_end_rsp
- * @static
- * @param {game.Iadventure_end_rsp} message adventure_end_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_end_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified adventure_end_rsp message, length delimited. Does not implicitly {@link game.adventure_end_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_end_rsp
- * @static
- * @param {game.Iadventure_end_rsp} message adventure_end_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_end_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_end_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_end_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_end_rsp} adventure_end_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_end_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_end_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_end_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_end_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_end_rsp} adventure_end_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_end_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_end_rsp message.
- * @function verify
- * @memberof game.adventure_end_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_end_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_end_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_end_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_end_rsp} adventure_end_rsp
- */
- adventure_end_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_end_rsp)
- return object;
- let message = new $root.game.adventure_end_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_end_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_end_rsp
- * @static
- * @param {game.adventure_end_rsp} message adventure_end_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_end_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this adventure_end_rsp to JSON.
- * @function toJSON
- * @memberof game.adventure_end_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_end_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_end_rsp;
- })();
- game.adventure_layer = (function() {
- /**
- * Properties of an adventure_layer.
- * @memberof game
- * @interface Iadventure_layer
- * @property {number|Long|null} [layer] adventure_layer layer
- * @property {number|Long|null} [cost] adventure_layer cost
- * @property {number|Long|null} [monsterNum] adventure_layer monsterNum
- * @property {number|Long|null} [bossNum] adventure_layer bossNum
- * @property {number|Long|null} [eliteNum] adventure_layer eliteNum
- */
- /**
- * Constructs a new adventure_layer.
- * @memberof game
- * @classdesc Represents an adventure_layer.
- * @implements Iadventure_layer
- * @constructor
- * @param {game.Iadventure_layer=} [properties] Properties to set
- */
- function adventure_layer(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_layer layer.
- * @member {number|Long} layer
- * @memberof game.adventure_layer
- * @instance
- */
- adventure_layer.prototype.layer = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_layer cost.
- * @member {number|Long} cost
- * @memberof game.adventure_layer
- * @instance
- */
- adventure_layer.prototype.cost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_layer monsterNum.
- * @member {number|Long} monsterNum
- * @memberof game.adventure_layer
- * @instance
- */
- adventure_layer.prototype.monsterNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_layer bossNum.
- * @member {number|Long} bossNum
- * @memberof game.adventure_layer
- * @instance
- */
- adventure_layer.prototype.bossNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_layer eliteNum.
- * @member {number|Long} eliteNum
- * @memberof game.adventure_layer
- * @instance
- */
- adventure_layer.prototype.eliteNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_layer instance using the specified properties.
- * @function create
- * @memberof game.adventure_layer
- * @static
- * @param {game.Iadventure_layer=} [properties] Properties to set
- * @returns {game.adventure_layer} adventure_layer instance
- */
- adventure_layer.create = function create(properties) {
- return new adventure_layer(properties);
- };
- /**
- * Encodes the specified adventure_layer message. Does not implicitly {@link game.adventure_layer.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_layer
- * @static
- * @param {game.Iadventure_layer} message adventure_layer message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_layer.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.layer != null && Object.hasOwnProperty.call(message, "layer"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.layer);
- if (message.cost != null && Object.hasOwnProperty.call(message, "cost"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.cost);
- if (message.monsterNum != null && Object.hasOwnProperty.call(message, "monsterNum"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.monsterNum);
- if (message.bossNum != null && Object.hasOwnProperty.call(message, "bossNum"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.bossNum);
- if (message.eliteNum != null && Object.hasOwnProperty.call(message, "eliteNum"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.eliteNum);
- return writer;
- };
- /**
- * Encodes the specified adventure_layer message, length delimited. Does not implicitly {@link game.adventure_layer.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_layer
- * @static
- * @param {game.Iadventure_layer} message adventure_layer message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_layer.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_layer message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_layer
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_layer} adventure_layer
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_layer.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_layer();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.layer = reader.int64();
- break;
- case 2:
- message.cost = reader.int64();
- break;
- case 3:
- message.monsterNum = reader.int64();
- break;
- case 4:
- message.bossNum = reader.int64();
- break;
- case 5:
- message.eliteNum = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_layer message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_layer
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_layer} adventure_layer
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_layer.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_layer message.
- * @function verify
- * @memberof game.adventure_layer
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_layer.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.layer != null && message.hasOwnProperty("layer"))
- if (!$util.isInteger(message.layer) && !(message.layer && $util.isInteger(message.layer.low) && $util.isInteger(message.layer.high)))
- return "layer: integer|Long expected";
- if (message.cost != null && message.hasOwnProperty("cost"))
- if (!$util.isInteger(message.cost) && !(message.cost && $util.isInteger(message.cost.low) && $util.isInteger(message.cost.high)))
- return "cost: integer|Long expected";
- if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
- if (!$util.isInteger(message.monsterNum) && !(message.monsterNum && $util.isInteger(message.monsterNum.low) && $util.isInteger(message.monsterNum.high)))
- return "monsterNum: integer|Long expected";
- if (message.bossNum != null && message.hasOwnProperty("bossNum"))
- if (!$util.isInteger(message.bossNum) && !(message.bossNum && $util.isInteger(message.bossNum.low) && $util.isInteger(message.bossNum.high)))
- return "bossNum: integer|Long expected";
- if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
- if (!$util.isInteger(message.eliteNum) && !(message.eliteNum && $util.isInteger(message.eliteNum.low) && $util.isInteger(message.eliteNum.high)))
- return "eliteNum: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_layer message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_layer
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_layer} adventure_layer
- */
- adventure_layer.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_layer)
- return object;
- let message = new $root.game.adventure_layer();
- if (object.layer != null)
- if ($util.Long)
- (message.layer = $util.Long.fromValue(object.layer)).unsigned = false;
- else if (typeof object.layer === "string")
- message.layer = parseInt(object.layer, 10);
- else if (typeof object.layer === "number")
- message.layer = object.layer;
- else if (typeof object.layer === "object")
- message.layer = new $util.LongBits(object.layer.low >>> 0, object.layer.high >>> 0).toNumber();
- if (object.cost != null)
- if ($util.Long)
- (message.cost = $util.Long.fromValue(object.cost)).unsigned = false;
- else if (typeof object.cost === "string")
- message.cost = parseInt(object.cost, 10);
- else if (typeof object.cost === "number")
- message.cost = object.cost;
- else if (typeof object.cost === "object")
- message.cost = new $util.LongBits(object.cost.low >>> 0, object.cost.high >>> 0).toNumber();
- if (object.monsterNum != null)
- if ($util.Long)
- (message.monsterNum = $util.Long.fromValue(object.monsterNum)).unsigned = false;
- else if (typeof object.monsterNum === "string")
- message.monsterNum = parseInt(object.monsterNum, 10);
- else if (typeof object.monsterNum === "number")
- message.monsterNum = object.monsterNum;
- else if (typeof object.monsterNum === "object")
- message.monsterNum = new $util.LongBits(object.monsterNum.low >>> 0, object.monsterNum.high >>> 0).toNumber();
- if (object.bossNum != null)
- if ($util.Long)
- (message.bossNum = $util.Long.fromValue(object.bossNum)).unsigned = false;
- else if (typeof object.bossNum === "string")
- message.bossNum = parseInt(object.bossNum, 10);
- else if (typeof object.bossNum === "number")
- message.bossNum = object.bossNum;
- else if (typeof object.bossNum === "object")
- message.bossNum = new $util.LongBits(object.bossNum.low >>> 0, object.bossNum.high >>> 0).toNumber();
- if (object.eliteNum != null)
- if ($util.Long)
- (message.eliteNum = $util.Long.fromValue(object.eliteNum)).unsigned = false;
- else if (typeof object.eliteNum === "string")
- message.eliteNum = parseInt(object.eliteNum, 10);
- else if (typeof object.eliteNum === "number")
- message.eliteNum = object.eliteNum;
- else if (typeof object.eliteNum === "object")
- message.eliteNum = new $util.LongBits(object.eliteNum.low >>> 0, object.eliteNum.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_layer message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_layer
- * @static
- * @param {game.adventure_layer} message adventure_layer
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_layer.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.layer = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.layer = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.cost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.cost = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.monsterNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.monsterNum = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.bossNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.bossNum = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.eliteNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.eliteNum = options.longs === String ? "0" : 0;
- }
- if (message.layer != null && message.hasOwnProperty("layer"))
- if (typeof message.layer === "number")
- object.layer = options.longs === String ? String(message.layer) : message.layer;
- else
- object.layer = options.longs === String ? $util.Long.prototype.toString.call(message.layer) : options.longs === Number ? new $util.LongBits(message.layer.low >>> 0, message.layer.high >>> 0).toNumber() : message.layer;
- if (message.cost != null && message.hasOwnProperty("cost"))
- if (typeof message.cost === "number")
- object.cost = options.longs === String ? String(message.cost) : message.cost;
- else
- object.cost = options.longs === String ? $util.Long.prototype.toString.call(message.cost) : options.longs === Number ? new $util.LongBits(message.cost.low >>> 0, message.cost.high >>> 0).toNumber() : message.cost;
- if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
- if (typeof message.monsterNum === "number")
- object.monsterNum = options.longs === String ? String(message.monsterNum) : message.monsterNum;
- else
- object.monsterNum = options.longs === String ? $util.Long.prototype.toString.call(message.monsterNum) : options.longs === Number ? new $util.LongBits(message.monsterNum.low >>> 0, message.monsterNum.high >>> 0).toNumber() : message.monsterNum;
- if (message.bossNum != null && message.hasOwnProperty("bossNum"))
- if (typeof message.bossNum === "number")
- object.bossNum = options.longs === String ? String(message.bossNum) : message.bossNum;
- else
- object.bossNum = options.longs === String ? $util.Long.prototype.toString.call(message.bossNum) : options.longs === Number ? new $util.LongBits(message.bossNum.low >>> 0, message.bossNum.high >>> 0).toNumber() : message.bossNum;
- if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
- if (typeof message.eliteNum === "number")
- object.eliteNum = options.longs === String ? String(message.eliteNum) : message.eliteNum;
- else
- object.eliteNum = options.longs === String ? $util.Long.prototype.toString.call(message.eliteNum) : options.longs === Number ? new $util.LongBits(message.eliteNum.low >>> 0, message.eliteNum.high >>> 0).toNumber() : message.eliteNum;
- return object;
- };
- /**
- * Converts this adventure_layer to JSON.
- * @function toJSON
- * @memberof game.adventure_layer
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_layer.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_layer;
- })();
- game.adventure_layer_rsp = (function() {
- /**
- * Properties of an adventure_layer_rsp.
- * @memberof game
- * @interface Iadventure_layer_rsp
- * @property {number|Long|null} [errno] adventure_layer_rsp errno
- */
- /**
- * Constructs a new adventure_layer_rsp.
- * @memberof game
- * @classdesc Represents an adventure_layer_rsp.
- * @implements Iadventure_layer_rsp
- * @constructor
- * @param {game.Iadventure_layer_rsp=} [properties] Properties to set
- */
- function adventure_layer_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_layer_rsp errno.
- * @member {number|Long} errno
- * @memberof game.adventure_layer_rsp
- * @instance
- */
- adventure_layer_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_layer_rsp instance using the specified properties.
- * @function create
- * @memberof game.adventure_layer_rsp
- * @static
- * @param {game.Iadventure_layer_rsp=} [properties] Properties to set
- * @returns {game.adventure_layer_rsp} adventure_layer_rsp instance
- */
- adventure_layer_rsp.create = function create(properties) {
- return new adventure_layer_rsp(properties);
- };
- /**
- * Encodes the specified adventure_layer_rsp message. Does not implicitly {@link game.adventure_layer_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_layer_rsp
- * @static
- * @param {game.Iadventure_layer_rsp} message adventure_layer_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_layer_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified adventure_layer_rsp message, length delimited. Does not implicitly {@link game.adventure_layer_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_layer_rsp
- * @static
- * @param {game.Iadventure_layer_rsp} message adventure_layer_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_layer_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_layer_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_layer_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_layer_rsp} adventure_layer_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_layer_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_layer_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_layer_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_layer_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_layer_rsp} adventure_layer_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_layer_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_layer_rsp message.
- * @function verify
- * @memberof game.adventure_layer_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_layer_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_layer_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_layer_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_layer_rsp} adventure_layer_rsp
- */
- adventure_layer_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_layer_rsp)
- return object;
- let message = new $root.game.adventure_layer_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_layer_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_layer_rsp
- * @static
- * @param {game.adventure_layer_rsp} message adventure_layer_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_layer_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this adventure_layer_rsp to JSON.
- * @function toJSON
- * @memberof game.adventure_layer_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_layer_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_layer_rsp;
- })();
- game.adventure_sweep = (function() {
- /**
- * Properties of an adventure_sweep.
- * @memberof game
- * @interface Iadventure_sweep
- * @property {number|Long|null} [id] adventure_sweep id
- * @property {number|Long|null} [type] adventure_sweep type
- */
- /**
- * Constructs a new adventure_sweep.
- * @memberof game
- * @classdesc Represents an adventure_sweep.
- * @implements Iadventure_sweep
- * @constructor
- * @param {game.Iadventure_sweep=} [properties] Properties to set
- */
- function adventure_sweep(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_sweep id.
- * @member {number|Long} id
- * @memberof game.adventure_sweep
- * @instance
- */
- adventure_sweep.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_sweep type.
- * @member {number|Long} type
- * @memberof game.adventure_sweep
- * @instance
- */
- adventure_sweep.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_sweep instance using the specified properties.
- * @function create
- * @memberof game.adventure_sweep
- * @static
- * @param {game.Iadventure_sweep=} [properties] Properties to set
- * @returns {game.adventure_sweep} adventure_sweep instance
- */
- adventure_sweep.create = function create(properties) {
- return new adventure_sweep(properties);
- };
- /**
- * Encodes the specified adventure_sweep message. Does not implicitly {@link game.adventure_sweep.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_sweep
- * @static
- * @param {game.Iadventure_sweep} message adventure_sweep message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_sweep.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
- return writer;
- };
- /**
- * Encodes the specified adventure_sweep message, length delimited. Does not implicitly {@link game.adventure_sweep.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_sweep
- * @static
- * @param {game.Iadventure_sweep} message adventure_sweep message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_sweep.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_sweep message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_sweep
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_sweep} adventure_sweep
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_sweep.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_sweep();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- message.type = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_sweep message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_sweep
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_sweep} adventure_sweep
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_sweep.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_sweep message.
- * @function verify
- * @memberof game.adventure_sweep
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_sweep.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_sweep message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_sweep
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_sweep} adventure_sweep
- */
- adventure_sweep.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_sweep)
- return object;
- let message = new $root.game.adventure_sweep();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_sweep message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_sweep
- * @static
- * @param {game.adventure_sweep} message adventure_sweep
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_sweep.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- return object;
- };
- /**
- * Converts this adventure_sweep to JSON.
- * @function toJSON
- * @memberof game.adventure_sweep
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_sweep.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_sweep;
- })();
- game.adventure_sweep_rsp = (function() {
- /**
- * Properties of an adventure_sweep_rsp.
- * @memberof game
- * @interface Iadventure_sweep_rsp
- * @property {number|Long|null} [errno] adventure_sweep_rsp errno
- */
- /**
- * Constructs a new adventure_sweep_rsp.
- * @memberof game
- * @classdesc Represents an adventure_sweep_rsp.
- * @implements Iadventure_sweep_rsp
- * @constructor
- * @param {game.Iadventure_sweep_rsp=} [properties] Properties to set
- */
- function adventure_sweep_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_sweep_rsp errno.
- * @member {number|Long} errno
- * @memberof game.adventure_sweep_rsp
- * @instance
- */
- adventure_sweep_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_sweep_rsp instance using the specified properties.
- * @function create
- * @memberof game.adventure_sweep_rsp
- * @static
- * @param {game.Iadventure_sweep_rsp=} [properties] Properties to set
- * @returns {game.adventure_sweep_rsp} adventure_sweep_rsp instance
- */
- adventure_sweep_rsp.create = function create(properties) {
- return new adventure_sweep_rsp(properties);
- };
- /**
- * Encodes the specified adventure_sweep_rsp message. Does not implicitly {@link game.adventure_sweep_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_sweep_rsp
- * @static
- * @param {game.Iadventure_sweep_rsp} message adventure_sweep_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_sweep_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified adventure_sweep_rsp message, length delimited. Does not implicitly {@link game.adventure_sweep_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_sweep_rsp
- * @static
- * @param {game.Iadventure_sweep_rsp} message adventure_sweep_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_sweep_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_sweep_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_sweep_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_sweep_rsp} adventure_sweep_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_sweep_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_sweep_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_sweep_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_sweep_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_sweep_rsp} adventure_sweep_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_sweep_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_sweep_rsp message.
- * @function verify
- * @memberof game.adventure_sweep_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_sweep_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_sweep_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_sweep_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_sweep_rsp} adventure_sweep_rsp
- */
- adventure_sweep_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_sweep_rsp)
- return object;
- let message = new $root.game.adventure_sweep_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_sweep_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_sweep_rsp
- * @static
- * @param {game.adventure_sweep_rsp} message adventure_sweep_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_sweep_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this adventure_sweep_rsp to JSON.
- * @function toJSON
- * @memberof game.adventure_sweep_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_sweep_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_sweep_rsp;
- })();
- game.adventure_pass_award = (function() {
- /**
- * Properties of an adventure_pass_award.
- * @memberof game
- * @interface Iadventure_pass_award
- * @property {number|Long|null} [id] adventure_pass_award id
- * @property {number|Long|null} [type] adventure_pass_award type
- */
- /**
- * Constructs a new adventure_pass_award.
- * @memberof game
- * @classdesc Represents an adventure_pass_award.
- * @implements Iadventure_pass_award
- * @constructor
- * @param {game.Iadventure_pass_award=} [properties] Properties to set
- */
- function adventure_pass_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_pass_award id.
- * @member {number|Long} id
- * @memberof game.adventure_pass_award
- * @instance
- */
- adventure_pass_award.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_pass_award type.
- * @member {number|Long} type
- * @memberof game.adventure_pass_award
- * @instance
- */
- adventure_pass_award.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_pass_award instance using the specified properties.
- * @function create
- * @memberof game.adventure_pass_award
- * @static
- * @param {game.Iadventure_pass_award=} [properties] Properties to set
- * @returns {game.adventure_pass_award} adventure_pass_award instance
- */
- adventure_pass_award.create = function create(properties) {
- return new adventure_pass_award(properties);
- };
- /**
- * Encodes the specified adventure_pass_award message. Does not implicitly {@link game.adventure_pass_award.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_pass_award
- * @static
- * @param {game.Iadventure_pass_award} message adventure_pass_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_pass_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
- return writer;
- };
- /**
- * Encodes the specified adventure_pass_award message, length delimited. Does not implicitly {@link game.adventure_pass_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_pass_award
- * @static
- * @param {game.Iadventure_pass_award} message adventure_pass_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_pass_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_pass_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_pass_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_pass_award} adventure_pass_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_pass_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_pass_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- message.type = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_pass_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_pass_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_pass_award} adventure_pass_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_pass_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_pass_award message.
- * @function verify
- * @memberof game.adventure_pass_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_pass_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_pass_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_pass_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_pass_award} adventure_pass_award
- */
- adventure_pass_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_pass_award)
- return object;
- let message = new $root.game.adventure_pass_award();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_pass_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_pass_award
- * @static
- * @param {game.adventure_pass_award} message adventure_pass_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_pass_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- return object;
- };
- /**
- * Converts this adventure_pass_award to JSON.
- * @function toJSON
- * @memberof game.adventure_pass_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_pass_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_pass_award;
- })();
- game.adventure_pass_award_rsp = (function() {
- /**
- * Properties of an adventure_pass_award_rsp.
- * @memberof game
- * @interface Iadventure_pass_award_rsp
- * @property {number|Long|null} [errno] adventure_pass_award_rsp errno
- * @property {number|Long|null} [id] adventure_pass_award_rsp id
- * @property {number|Long|null} [type] adventure_pass_award_rsp type
- */
- /**
- * Constructs a new adventure_pass_award_rsp.
- * @memberof game
- * @classdesc Represents an adventure_pass_award_rsp.
- * @implements Iadventure_pass_award_rsp
- * @constructor
- * @param {game.Iadventure_pass_award_rsp=} [properties] Properties to set
- */
- function adventure_pass_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_pass_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.adventure_pass_award_rsp
- * @instance
- */
- adventure_pass_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_pass_award_rsp id.
- * @member {number|Long} id
- * @memberof game.adventure_pass_award_rsp
- * @instance
- */
- adventure_pass_award_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * adventure_pass_award_rsp type.
- * @member {number|Long} type
- * @memberof game.adventure_pass_award_rsp
- * @instance
- */
- adventure_pass_award_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_pass_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.adventure_pass_award_rsp
- * @static
- * @param {game.Iadventure_pass_award_rsp=} [properties] Properties to set
- * @returns {game.adventure_pass_award_rsp} adventure_pass_award_rsp instance
- */
- adventure_pass_award_rsp.create = function create(properties) {
- return new adventure_pass_award_rsp(properties);
- };
- /**
- * Encodes the specified adventure_pass_award_rsp message. Does not implicitly {@link game.adventure_pass_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_pass_award_rsp
- * @static
- * @param {game.Iadventure_pass_award_rsp} message adventure_pass_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_pass_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.type);
- return writer;
- };
- /**
- * Encodes the specified adventure_pass_award_rsp message, length delimited. Does not implicitly {@link game.adventure_pass_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_pass_award_rsp
- * @static
- * @param {game.Iadventure_pass_award_rsp} message adventure_pass_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_pass_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_pass_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_pass_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_pass_award_rsp} adventure_pass_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_pass_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_pass_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.id = reader.int64();
- break;
- case 3:
- message.type = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_pass_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_pass_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_pass_award_rsp} adventure_pass_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_pass_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_pass_award_rsp message.
- * @function verify
- * @memberof game.adventure_pass_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_pass_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_pass_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_pass_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_pass_award_rsp} adventure_pass_award_rsp
- */
- adventure_pass_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_pass_award_rsp)
- return object;
- let message = new $root.game.adventure_pass_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_pass_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_pass_award_rsp
- * @static
- * @param {game.adventure_pass_award_rsp} message adventure_pass_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_pass_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- return object;
- };
- /**
- * Converts this adventure_pass_award_rsp to JSON.
- * @function toJSON
- * @memberof game.adventure_pass_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_pass_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_pass_award_rsp;
- })();
- game.adventure_ad_award = (function() {
- /**
- * Properties of an adventure_ad_award.
- * @memberof game
- * @interface Iadventure_ad_award
- */
- /**
- * Constructs a new adventure_ad_award.
- * @memberof game
- * @classdesc Represents an adventure_ad_award.
- * @implements Iadventure_ad_award
- * @constructor
- * @param {game.Iadventure_ad_award=} [properties] Properties to set
- */
- function adventure_ad_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new adventure_ad_award instance using the specified properties.
- * @function create
- * @memberof game.adventure_ad_award
- * @static
- * @param {game.Iadventure_ad_award=} [properties] Properties to set
- * @returns {game.adventure_ad_award} adventure_ad_award instance
- */
- adventure_ad_award.create = function create(properties) {
- return new adventure_ad_award(properties);
- };
- /**
- * Encodes the specified adventure_ad_award message. Does not implicitly {@link game.adventure_ad_award.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_ad_award
- * @static
- * @param {game.Iadventure_ad_award} message adventure_ad_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_ad_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified adventure_ad_award message, length delimited. Does not implicitly {@link game.adventure_ad_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_ad_award
- * @static
- * @param {game.Iadventure_ad_award} message adventure_ad_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_ad_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_ad_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_ad_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_ad_award} adventure_ad_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_ad_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_ad_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_ad_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_ad_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_ad_award} adventure_ad_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_ad_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_ad_award message.
- * @function verify
- * @memberof game.adventure_ad_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_ad_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates an adventure_ad_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_ad_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_ad_award} adventure_ad_award
- */
- adventure_ad_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_ad_award)
- return object;
- return new $root.game.adventure_ad_award();
- };
- /**
- * Creates a plain object from an adventure_ad_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_ad_award
- * @static
- * @param {game.adventure_ad_award} message adventure_ad_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_ad_award.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this adventure_ad_award to JSON.
- * @function toJSON
- * @memberof game.adventure_ad_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_ad_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_ad_award;
- })();
- game.adventure_ad_award_rsp = (function() {
- /**
- * Properties of an adventure_ad_award_rsp.
- * @memberof game
- * @interface Iadventure_ad_award_rsp
- * @property {number|Long|null} [errno] adventure_ad_award_rsp errno
- */
- /**
- * Constructs a new adventure_ad_award_rsp.
- * @memberof game
- * @classdesc Represents an adventure_ad_award_rsp.
- * @implements Iadventure_ad_award_rsp
- * @constructor
- * @param {game.Iadventure_ad_award_rsp=} [properties] Properties to set
- */
- function adventure_ad_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_ad_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.adventure_ad_award_rsp
- * @instance
- */
- adventure_ad_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_ad_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.adventure_ad_award_rsp
- * @static
- * @param {game.Iadventure_ad_award_rsp=} [properties] Properties to set
- * @returns {game.adventure_ad_award_rsp} adventure_ad_award_rsp instance
- */
- adventure_ad_award_rsp.create = function create(properties) {
- return new adventure_ad_award_rsp(properties);
- };
- /**
- * Encodes the specified adventure_ad_award_rsp message. Does not implicitly {@link game.adventure_ad_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_ad_award_rsp
- * @static
- * @param {game.Iadventure_ad_award_rsp} message adventure_ad_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_ad_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified adventure_ad_award_rsp message, length delimited. Does not implicitly {@link game.adventure_ad_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_ad_award_rsp
- * @static
- * @param {game.Iadventure_ad_award_rsp} message adventure_ad_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_ad_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_ad_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_ad_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_ad_award_rsp} adventure_ad_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_ad_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_ad_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_ad_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_ad_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_ad_award_rsp} adventure_ad_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_ad_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_ad_award_rsp message.
- * @function verify
- * @memberof game.adventure_ad_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_ad_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_ad_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_ad_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_ad_award_rsp} adventure_ad_award_rsp
- */
- adventure_ad_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_ad_award_rsp)
- return object;
- let message = new $root.game.adventure_ad_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_ad_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_ad_award_rsp
- * @static
- * @param {game.adventure_ad_award_rsp} message adventure_ad_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_ad_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this adventure_ad_award_rsp to JSON.
- * @function toJSON
- * @memberof game.adventure_ad_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_ad_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_ad_award_rsp;
- })();
- game.adventure_trial = (function() {
- /**
- * Properties of an adventure_trial.
- * @memberof game
- * @interface Iadventure_trial
- */
- /**
- * Constructs a new adventure_trial.
- * @memberof game
- * @classdesc Represents an adventure_trial.
- * @implements Iadventure_trial
- * @constructor
- * @param {game.Iadventure_trial=} [properties] Properties to set
- */
- function adventure_trial(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new adventure_trial instance using the specified properties.
- * @function create
- * @memberof game.adventure_trial
- * @static
- * @param {game.Iadventure_trial=} [properties] Properties to set
- * @returns {game.adventure_trial} adventure_trial instance
- */
- adventure_trial.create = function create(properties) {
- return new adventure_trial(properties);
- };
- /**
- * Encodes the specified adventure_trial message. Does not implicitly {@link game.adventure_trial.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_trial
- * @static
- * @param {game.Iadventure_trial} message adventure_trial message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_trial.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified adventure_trial message, length delimited. Does not implicitly {@link game.adventure_trial.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_trial
- * @static
- * @param {game.Iadventure_trial} message adventure_trial message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_trial.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_trial message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_trial
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_trial} adventure_trial
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_trial.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_trial();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_trial message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_trial
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_trial} adventure_trial
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_trial.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_trial message.
- * @function verify
- * @memberof game.adventure_trial
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_trial.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates an adventure_trial message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_trial
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_trial} adventure_trial
- */
- adventure_trial.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_trial)
- return object;
- return new $root.game.adventure_trial();
- };
- /**
- * Creates a plain object from an adventure_trial message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_trial
- * @static
- * @param {game.adventure_trial} message adventure_trial
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_trial.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this adventure_trial to JSON.
- * @function toJSON
- * @memberof game.adventure_trial
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_trial.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_trial;
- })();
- game.adventure_trial_rsp = (function() {
- /**
- * Properties of an adventure_trial_rsp.
- * @memberof game
- * @interface Iadventure_trial_rsp
- * @property {number|Long|null} [errno] adventure_trial_rsp errno
- */
- /**
- * Constructs a new adventure_trial_rsp.
- * @memberof game
- * @classdesc Represents an adventure_trial_rsp.
- * @implements Iadventure_trial_rsp
- * @constructor
- * @param {game.Iadventure_trial_rsp=} [properties] Properties to set
- */
- function adventure_trial_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adventure_trial_rsp errno.
- * @member {number|Long} errno
- * @memberof game.adventure_trial_rsp
- * @instance
- */
- adventure_trial_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adventure_trial_rsp instance using the specified properties.
- * @function create
- * @memberof game.adventure_trial_rsp
- * @static
- * @param {game.Iadventure_trial_rsp=} [properties] Properties to set
- * @returns {game.adventure_trial_rsp} adventure_trial_rsp instance
- */
- adventure_trial_rsp.create = function create(properties) {
- return new adventure_trial_rsp(properties);
- };
- /**
- * Encodes the specified adventure_trial_rsp message. Does not implicitly {@link game.adventure_trial_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.adventure_trial_rsp
- * @static
- * @param {game.Iadventure_trial_rsp} message adventure_trial_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_trial_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified adventure_trial_rsp message, length delimited. Does not implicitly {@link game.adventure_trial_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adventure_trial_rsp
- * @static
- * @param {game.Iadventure_trial_rsp} message adventure_trial_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adventure_trial_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adventure_trial_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.adventure_trial_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adventure_trial_rsp} adventure_trial_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_trial_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_trial_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adventure_trial_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adventure_trial_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adventure_trial_rsp} adventure_trial_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adventure_trial_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adventure_trial_rsp message.
- * @function verify
- * @memberof game.adventure_trial_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adventure_trial_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates an adventure_trial_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adventure_trial_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adventure_trial_rsp} adventure_trial_rsp
- */
- adventure_trial_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adventure_trial_rsp)
- return object;
- let message = new $root.game.adventure_trial_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adventure_trial_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adventure_trial_rsp
- * @static
- * @param {game.adventure_trial_rsp} message adventure_trial_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adventure_trial_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this adventure_trial_rsp to JSON.
- * @function toJSON
- * @memberof game.adventure_trial_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adventure_trial_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adventure_trial_rsp;
- })();
- game.get_mail = (function() {
- /**
- * Properties of a get_mail.
- * @memberof game
- * @interface Iget_mail
- */
- /**
- * Constructs a new get_mail.
- * @memberof game
- * @classdesc Represents a get_mail.
- * @implements Iget_mail
- * @constructor
- * @param {game.Iget_mail=} [properties] Properties to set
- */
- function get_mail(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new get_mail instance using the specified properties.
- * @function create
- * @memberof game.get_mail
- * @static
- * @param {game.Iget_mail=} [properties] Properties to set
- * @returns {game.get_mail} get_mail instance
- */
- get_mail.create = function create(properties) {
- return new get_mail(properties);
- };
- /**
- * Encodes the specified get_mail message. Does not implicitly {@link game.get_mail.verify|verify} messages.
- * @function encode
- * @memberof game.get_mail
- * @static
- * @param {game.Iget_mail} message get_mail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- get_mail.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified get_mail message, length delimited. Does not implicitly {@link game.get_mail.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.get_mail
- * @static
- * @param {game.Iget_mail} message get_mail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- get_mail.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a get_mail message from the specified reader or buffer.
- * @function decode
- * @memberof game.get_mail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.get_mail} get_mail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- get_mail.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_mail();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a get_mail message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.get_mail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.get_mail} get_mail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- get_mail.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a get_mail message.
- * @function verify
- * @memberof game.get_mail
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- get_mail.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a get_mail message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.get_mail
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.get_mail} get_mail
- */
- get_mail.fromObject = function fromObject(object) {
- if (object instanceof $root.game.get_mail)
- return object;
- return new $root.game.get_mail();
- };
- /**
- * Creates a plain object from a get_mail message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.get_mail
- * @static
- * @param {game.get_mail} message get_mail
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- get_mail.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this get_mail to JSON.
- * @function toJSON
- * @memberof game.get_mail
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- get_mail.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return get_mail;
- })();
- game.get_mail_rsp = (function() {
- /**
- * Properties of a get_mail_rsp.
- * @memberof game
- * @interface Iget_mail_rsp
- * @property {number|Long|null} [errno] get_mail_rsp errno
- * @property {Array.<game.Imail>|null} [list] get_mail_rsp list
- */
- /**
- * Constructs a new get_mail_rsp.
- * @memberof game
- * @classdesc Represents a get_mail_rsp.
- * @implements Iget_mail_rsp
- * @constructor
- * @param {game.Iget_mail_rsp=} [properties] Properties to set
- */
- function get_mail_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * get_mail_rsp errno.
- * @member {number|Long} errno
- * @memberof game.get_mail_rsp
- * @instance
- */
- get_mail_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * get_mail_rsp list.
- * @member {Array.<game.Imail>} list
- * @memberof game.get_mail_rsp
- * @instance
- */
- get_mail_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new get_mail_rsp instance using the specified properties.
- * @function create
- * @memberof game.get_mail_rsp
- * @static
- * @param {game.Iget_mail_rsp=} [properties] Properties to set
- * @returns {game.get_mail_rsp} get_mail_rsp instance
- */
- get_mail_rsp.create = function create(properties) {
- return new get_mail_rsp(properties);
- };
- /**
- * Encodes the specified get_mail_rsp message. Does not implicitly {@link game.get_mail_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.get_mail_rsp
- * @static
- * @param {game.Iget_mail_rsp} message get_mail_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- get_mail_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.mail.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified get_mail_rsp message, length delimited. Does not implicitly {@link game.get_mail_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.get_mail_rsp
- * @static
- * @param {game.Iget_mail_rsp} message get_mail_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- get_mail_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a get_mail_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.get_mail_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.get_mail_rsp} get_mail_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- get_mail_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_mail_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.mail.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a get_mail_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.get_mail_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.get_mail_rsp} get_mail_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- get_mail_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a get_mail_rsp message.
- * @function verify
- * @memberof game.get_mail_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- get_mail_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.mail.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a get_mail_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.get_mail_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.get_mail_rsp} get_mail_rsp
- */
- get_mail_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.get_mail_rsp)
- return object;
- let message = new $root.game.get_mail_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.get_mail_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.get_mail_rsp.list: object expected");
- message.list[i] = $root.game.mail.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a get_mail_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.get_mail_rsp
- * @static
- * @param {game.get_mail_rsp} message get_mail_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- get_mail_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.mail.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this get_mail_rsp to JSON.
- * @function toJSON
- * @memberof game.get_mail_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- get_mail_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return get_mail_rsp;
- })();
- game.get_mail_goods = (function() {
- /**
- * Properties of a get_mail_goods.
- * @memberof game
- * @interface Iget_mail_goods
- * @property {Array.<string>|null} [list] get_mail_goods list
- * @property {boolean|null} [bonekey] get_mail_goods bonekey
- */
- /**
- * Constructs a new get_mail_goods.
- * @memberof game
- * @classdesc Represents a get_mail_goods.
- * @implements Iget_mail_goods
- * @constructor
- * @param {game.Iget_mail_goods=} [properties] Properties to set
- */
- function get_mail_goods(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * get_mail_goods list.
- * @member {Array.<string>} list
- * @memberof game.get_mail_goods
- * @instance
- */
- get_mail_goods.prototype.list = $util.emptyArray;
- /**
- * get_mail_goods bonekey.
- * @member {boolean} bonekey
- * @memberof game.get_mail_goods
- * @instance
- */
- get_mail_goods.prototype.bonekey = false;
- /**
- * Creates a new get_mail_goods instance using the specified properties.
- * @function create
- * @memberof game.get_mail_goods
- * @static
- * @param {game.Iget_mail_goods=} [properties] Properties to set
- * @returns {game.get_mail_goods} get_mail_goods instance
- */
- get_mail_goods.create = function create(properties) {
- return new get_mail_goods(properties);
- };
- /**
- * Encodes the specified get_mail_goods message. Does not implicitly {@link game.get_mail_goods.verify|verify} messages.
- * @function encode
- * @memberof game.get_mail_goods
- * @static
- * @param {game.Iget_mail_goods} message get_mail_goods message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- get_mail_goods.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.list[i]);
- if (message.bonekey != null && Object.hasOwnProperty.call(message, "bonekey"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.bonekey);
- return writer;
- };
- /**
- * Encodes the specified get_mail_goods message, length delimited. Does not implicitly {@link game.get_mail_goods.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.get_mail_goods
- * @static
- * @param {game.Iget_mail_goods} message get_mail_goods message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- get_mail_goods.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a get_mail_goods message from the specified reader or buffer.
- * @function decode
- * @memberof game.get_mail_goods
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.get_mail_goods} get_mail_goods
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- get_mail_goods.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_mail_goods();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push(reader.string());
- break;
- case 2:
- message.bonekey = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a get_mail_goods message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.get_mail_goods
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.get_mail_goods} get_mail_goods
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- get_mail_goods.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a get_mail_goods message.
- * @function verify
- * @memberof game.get_mail_goods
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- get_mail_goods.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isString(message.list[i]))
- return "list: string[] expected";
- }
- if (message.bonekey != null && message.hasOwnProperty("bonekey"))
- if (typeof message.bonekey !== "boolean")
- return "bonekey: boolean expected";
- return null;
- };
- /**
- * Creates a get_mail_goods message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.get_mail_goods
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.get_mail_goods} get_mail_goods
- */
- get_mail_goods.fromObject = function fromObject(object) {
- if (object instanceof $root.game.get_mail_goods)
- return object;
- let message = new $root.game.get_mail_goods();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.get_mail_goods.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- message.list[i] = String(object.list[i]);
- }
- if (object.bonekey != null)
- message.bonekey = Boolean(object.bonekey);
- return message;
- };
- /**
- * Creates a plain object from a get_mail_goods message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.get_mail_goods
- * @static
- * @param {game.get_mail_goods} message get_mail_goods
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- get_mail_goods.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- object.bonekey = false;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = message.list[j];
- }
- if (message.bonekey != null && message.hasOwnProperty("bonekey"))
- object.bonekey = message.bonekey;
- return object;
- };
- /**
- * Converts this get_mail_goods to JSON.
- * @function toJSON
- * @memberof game.get_mail_goods
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- get_mail_goods.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return get_mail_goods;
- })();
- game.get_mail_goods_rsp = (function() {
- /**
- * Properties of a get_mail_goods_rsp.
- * @memberof game
- * @interface Iget_mail_goods_rsp
- * @property {number|Long|null} [errno] get_mail_goods_rsp errno
- * @property {Array.<string>|null} [list] get_mail_goods_rsp list
- */
- /**
- * Constructs a new get_mail_goods_rsp.
- * @memberof game
- * @classdesc Represents a get_mail_goods_rsp.
- * @implements Iget_mail_goods_rsp
- * @constructor
- * @param {game.Iget_mail_goods_rsp=} [properties] Properties to set
- */
- function get_mail_goods_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * get_mail_goods_rsp errno.
- * @member {number|Long} errno
- * @memberof game.get_mail_goods_rsp
- * @instance
- */
- get_mail_goods_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * get_mail_goods_rsp list.
- * @member {Array.<string>} list
- * @memberof game.get_mail_goods_rsp
- * @instance
- */
- get_mail_goods_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new get_mail_goods_rsp instance using the specified properties.
- * @function create
- * @memberof game.get_mail_goods_rsp
- * @static
- * @param {game.Iget_mail_goods_rsp=} [properties] Properties to set
- * @returns {game.get_mail_goods_rsp} get_mail_goods_rsp instance
- */
- get_mail_goods_rsp.create = function create(properties) {
- return new get_mail_goods_rsp(properties);
- };
- /**
- * Encodes the specified get_mail_goods_rsp message. Does not implicitly {@link game.get_mail_goods_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.get_mail_goods_rsp
- * @static
- * @param {game.Iget_mail_goods_rsp} message get_mail_goods_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- get_mail_goods_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
- return writer;
- };
- /**
- * Encodes the specified get_mail_goods_rsp message, length delimited. Does not implicitly {@link game.get_mail_goods_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.get_mail_goods_rsp
- * @static
- * @param {game.Iget_mail_goods_rsp} message get_mail_goods_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- get_mail_goods_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a get_mail_goods_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.get_mail_goods_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.get_mail_goods_rsp} get_mail_goods_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- get_mail_goods_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_mail_goods_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push(reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a get_mail_goods_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.get_mail_goods_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.get_mail_goods_rsp} get_mail_goods_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- get_mail_goods_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a get_mail_goods_rsp message.
- * @function verify
- * @memberof game.get_mail_goods_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- get_mail_goods_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isString(message.list[i]))
- return "list: string[] expected";
- }
- return null;
- };
- /**
- * Creates a get_mail_goods_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.get_mail_goods_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.get_mail_goods_rsp} get_mail_goods_rsp
- */
- get_mail_goods_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.get_mail_goods_rsp)
- return object;
- let message = new $root.game.get_mail_goods_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.get_mail_goods_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- message.list[i] = String(object.list[i]);
- }
- return message;
- };
- /**
- * Creates a plain object from a get_mail_goods_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.get_mail_goods_rsp
- * @static
- * @param {game.get_mail_goods_rsp} message get_mail_goods_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- get_mail_goods_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = message.list[j];
- }
- return object;
- };
- /**
- * Converts this get_mail_goods_rsp to JSON.
- * @function toJSON
- * @memberof game.get_mail_goods_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- get_mail_goods_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return get_mail_goods_rsp;
- })();
- game.del_mail = (function() {
- /**
- * Properties of a del_mail.
- * @memberof game
- * @interface Idel_mail
- * @property {Array.<string>|null} [list] del_mail list
- */
- /**
- * Constructs a new del_mail.
- * @memberof game
- * @classdesc Represents a del_mail.
- * @implements Idel_mail
- * @constructor
- * @param {game.Idel_mail=} [properties] Properties to set
- */
- function del_mail(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * del_mail list.
- * @member {Array.<string>} list
- * @memberof game.del_mail
- * @instance
- */
- del_mail.prototype.list = $util.emptyArray;
- /**
- * Creates a new del_mail instance using the specified properties.
- * @function create
- * @memberof game.del_mail
- * @static
- * @param {game.Idel_mail=} [properties] Properties to set
- * @returns {game.del_mail} del_mail instance
- */
- del_mail.create = function create(properties) {
- return new del_mail(properties);
- };
- /**
- * Encodes the specified del_mail message. Does not implicitly {@link game.del_mail.verify|verify} messages.
- * @function encode
- * @memberof game.del_mail
- * @static
- * @param {game.Idel_mail} message del_mail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- del_mail.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.list[i]);
- return writer;
- };
- /**
- * Encodes the specified del_mail message, length delimited. Does not implicitly {@link game.del_mail.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.del_mail
- * @static
- * @param {game.Idel_mail} message del_mail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- del_mail.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a del_mail message from the specified reader or buffer.
- * @function decode
- * @memberof game.del_mail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.del_mail} del_mail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- del_mail.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.del_mail();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push(reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a del_mail message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.del_mail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.del_mail} del_mail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- del_mail.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a del_mail message.
- * @function verify
- * @memberof game.del_mail
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- del_mail.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isString(message.list[i]))
- return "list: string[] expected";
- }
- return null;
- };
- /**
- * Creates a del_mail message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.del_mail
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.del_mail} del_mail
- */
- del_mail.fromObject = function fromObject(object) {
- if (object instanceof $root.game.del_mail)
- return object;
- let message = new $root.game.del_mail();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.del_mail.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- message.list[i] = String(object.list[i]);
- }
- return message;
- };
- /**
- * Creates a plain object from a del_mail message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.del_mail
- * @static
- * @param {game.del_mail} message del_mail
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- del_mail.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = message.list[j];
- }
- return object;
- };
- /**
- * Converts this del_mail to JSON.
- * @function toJSON
- * @memberof game.del_mail
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- del_mail.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return del_mail;
- })();
- game.del_mail_rsp = (function() {
- /**
- * Properties of a del_mail_rsp.
- * @memberof game
- * @interface Idel_mail_rsp
- * @property {number|Long|null} [errno] del_mail_rsp errno
- * @property {Array.<string>|null} [list] del_mail_rsp list
- */
- /**
- * Constructs a new del_mail_rsp.
- * @memberof game
- * @classdesc Represents a del_mail_rsp.
- * @implements Idel_mail_rsp
- * @constructor
- * @param {game.Idel_mail_rsp=} [properties] Properties to set
- */
- function del_mail_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * del_mail_rsp errno.
- * @member {number|Long} errno
- * @memberof game.del_mail_rsp
- * @instance
- */
- del_mail_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * del_mail_rsp list.
- * @member {Array.<string>} list
- * @memberof game.del_mail_rsp
- * @instance
- */
- del_mail_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new del_mail_rsp instance using the specified properties.
- * @function create
- * @memberof game.del_mail_rsp
- * @static
- * @param {game.Idel_mail_rsp=} [properties] Properties to set
- * @returns {game.del_mail_rsp} del_mail_rsp instance
- */
- del_mail_rsp.create = function create(properties) {
- return new del_mail_rsp(properties);
- };
- /**
- * Encodes the specified del_mail_rsp message. Does not implicitly {@link game.del_mail_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.del_mail_rsp
- * @static
- * @param {game.Idel_mail_rsp} message del_mail_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- del_mail_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
- return writer;
- };
- /**
- * Encodes the specified del_mail_rsp message, length delimited. Does not implicitly {@link game.del_mail_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.del_mail_rsp
- * @static
- * @param {game.Idel_mail_rsp} message del_mail_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- del_mail_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a del_mail_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.del_mail_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.del_mail_rsp} del_mail_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- del_mail_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.del_mail_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push(reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a del_mail_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.del_mail_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.del_mail_rsp} del_mail_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- del_mail_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a del_mail_rsp message.
- * @function verify
- * @memberof game.del_mail_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- del_mail_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isString(message.list[i]))
- return "list: string[] expected";
- }
- return null;
- };
- /**
- * Creates a del_mail_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.del_mail_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.del_mail_rsp} del_mail_rsp
- */
- del_mail_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.del_mail_rsp)
- return object;
- let message = new $root.game.del_mail_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.del_mail_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- message.list[i] = String(object.list[i]);
- }
- return message;
- };
- /**
- * Creates a plain object from a del_mail_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.del_mail_rsp
- * @static
- * @param {game.del_mail_rsp} message del_mail_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- del_mail_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = message.list[j];
- }
- return object;
- };
- /**
- * Converts this del_mail_rsp to JSON.
- * @function toJSON
- * @memberof game.del_mail_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- del_mail_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return del_mail_rsp;
- })();
- game.flag_mail = (function() {
- /**
- * Properties of a flag_mail.
- * @memberof game
- * @interface Iflag_mail
- * @property {Array.<string>|null} [list] flag_mail list
- */
- /**
- * Constructs a new flag_mail.
- * @memberof game
- * @classdesc Represents a flag_mail.
- * @implements Iflag_mail
- * @constructor
- * @param {game.Iflag_mail=} [properties] Properties to set
- */
- function flag_mail(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * flag_mail list.
- * @member {Array.<string>} list
- * @memberof game.flag_mail
- * @instance
- */
- flag_mail.prototype.list = $util.emptyArray;
- /**
- * Creates a new flag_mail instance using the specified properties.
- * @function create
- * @memberof game.flag_mail
- * @static
- * @param {game.Iflag_mail=} [properties] Properties to set
- * @returns {game.flag_mail} flag_mail instance
- */
- flag_mail.create = function create(properties) {
- return new flag_mail(properties);
- };
- /**
- * Encodes the specified flag_mail message. Does not implicitly {@link game.flag_mail.verify|verify} messages.
- * @function encode
- * @memberof game.flag_mail
- * @static
- * @param {game.Iflag_mail} message flag_mail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- flag_mail.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.list[i]);
- return writer;
- };
- /**
- * Encodes the specified flag_mail message, length delimited. Does not implicitly {@link game.flag_mail.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.flag_mail
- * @static
- * @param {game.Iflag_mail} message flag_mail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- flag_mail.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a flag_mail message from the specified reader or buffer.
- * @function decode
- * @memberof game.flag_mail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.flag_mail} flag_mail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- flag_mail.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.flag_mail();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push(reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a flag_mail message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.flag_mail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.flag_mail} flag_mail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- flag_mail.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a flag_mail message.
- * @function verify
- * @memberof game.flag_mail
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- flag_mail.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isString(message.list[i]))
- return "list: string[] expected";
- }
- return null;
- };
- /**
- * Creates a flag_mail message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.flag_mail
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.flag_mail} flag_mail
- */
- flag_mail.fromObject = function fromObject(object) {
- if (object instanceof $root.game.flag_mail)
- return object;
- let message = new $root.game.flag_mail();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.flag_mail.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- message.list[i] = String(object.list[i]);
- }
- return message;
- };
- /**
- * Creates a plain object from a flag_mail message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.flag_mail
- * @static
- * @param {game.flag_mail} message flag_mail
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- flag_mail.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = message.list[j];
- }
- return object;
- };
- /**
- * Converts this flag_mail to JSON.
- * @function toJSON
- * @memberof game.flag_mail
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- flag_mail.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return flag_mail;
- })();
- game.flag_mail_rsp = (function() {
- /**
- * Properties of a flag_mail_rsp.
- * @memberof game
- * @interface Iflag_mail_rsp
- * @property {number|Long|null} [errno] flag_mail_rsp errno
- */
- /**
- * Constructs a new flag_mail_rsp.
- * @memberof game
- * @classdesc Represents a flag_mail_rsp.
- * @implements Iflag_mail_rsp
- * @constructor
- * @param {game.Iflag_mail_rsp=} [properties] Properties to set
- */
- function flag_mail_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * flag_mail_rsp errno.
- * @member {number|Long} errno
- * @memberof game.flag_mail_rsp
- * @instance
- */
- flag_mail_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new flag_mail_rsp instance using the specified properties.
- * @function create
- * @memberof game.flag_mail_rsp
- * @static
- * @param {game.Iflag_mail_rsp=} [properties] Properties to set
- * @returns {game.flag_mail_rsp} flag_mail_rsp instance
- */
- flag_mail_rsp.create = function create(properties) {
- return new flag_mail_rsp(properties);
- };
- /**
- * Encodes the specified flag_mail_rsp message. Does not implicitly {@link game.flag_mail_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.flag_mail_rsp
- * @static
- * @param {game.Iflag_mail_rsp} message flag_mail_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- flag_mail_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified flag_mail_rsp message, length delimited. Does not implicitly {@link game.flag_mail_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.flag_mail_rsp
- * @static
- * @param {game.Iflag_mail_rsp} message flag_mail_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- flag_mail_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a flag_mail_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.flag_mail_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.flag_mail_rsp} flag_mail_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- flag_mail_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.flag_mail_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a flag_mail_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.flag_mail_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.flag_mail_rsp} flag_mail_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- flag_mail_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a flag_mail_rsp message.
- * @function verify
- * @memberof game.flag_mail_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- flag_mail_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a flag_mail_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.flag_mail_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.flag_mail_rsp} flag_mail_rsp
- */
- flag_mail_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.flag_mail_rsp)
- return object;
- let message = new $root.game.flag_mail_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a flag_mail_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.flag_mail_rsp
- * @static
- * @param {game.flag_mail_rsp} message flag_mail_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- flag_mail_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this flag_mail_rsp to JSON.
- * @function toJSON
- * @memberof game.flag_mail_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- flag_mail_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return flag_mail_rsp;
- })();
- game.send_mail = (function() {
- /**
- * Properties of a send_mail.
- * @memberof game
- * @interface Isend_mail
- * @property {Array.<game.Imail>|null} [list] send_mail list
- */
- /**
- * Constructs a new send_mail.
- * @memberof game
- * @classdesc Represents a send_mail.
- * @implements Isend_mail
- * @constructor
- * @param {game.Isend_mail=} [properties] Properties to set
- */
- function send_mail(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * send_mail list.
- * @member {Array.<game.Imail>} list
- * @memberof game.send_mail
- * @instance
- */
- send_mail.prototype.list = $util.emptyArray;
- /**
- * Creates a new send_mail instance using the specified properties.
- * @function create
- * @memberof game.send_mail
- * @static
- * @param {game.Isend_mail=} [properties] Properties to set
- * @returns {game.send_mail} send_mail instance
- */
- send_mail.create = function create(properties) {
- return new send_mail(properties);
- };
- /**
- * Encodes the specified send_mail message. Does not implicitly {@link game.send_mail.verify|verify} messages.
- * @function encode
- * @memberof game.send_mail
- * @static
- * @param {game.Isend_mail} message send_mail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- send_mail.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.mail.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified send_mail message, length delimited. Does not implicitly {@link game.send_mail.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.send_mail
- * @static
- * @param {game.Isend_mail} message send_mail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- send_mail.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a send_mail message from the specified reader or buffer.
- * @function decode
- * @memberof game.send_mail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.send_mail} send_mail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- send_mail.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.send_mail();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.mail.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a send_mail message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.send_mail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.send_mail} send_mail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- send_mail.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a send_mail message.
- * @function verify
- * @memberof game.send_mail
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- send_mail.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.mail.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a send_mail message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.send_mail
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.send_mail} send_mail
- */
- send_mail.fromObject = function fromObject(object) {
- if (object instanceof $root.game.send_mail)
- return object;
- let message = new $root.game.send_mail();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.send_mail.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.send_mail.list: object expected");
- message.list[i] = $root.game.mail.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a send_mail message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.send_mail
- * @static
- * @param {game.send_mail} message send_mail
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- send_mail.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.mail.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this send_mail to JSON.
- * @function toJSON
- * @memberof game.send_mail
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- send_mail.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return send_mail;
- })();
- game.simple_mail = (function() {
- /**
- * Properties of a simple_mail.
- * @memberof game
- * @interface Isimple_mail
- * @property {number|Long|null} [num] simple_mail num
- * @property {number|Long|null} [noread] simple_mail noread
- * @property {number|Long|null} [needread] simple_mail needread
- */
- /**
- * Constructs a new simple_mail.
- * @memberof game
- * @classdesc Represents a simple_mail.
- * @implements Isimple_mail
- * @constructor
- * @param {game.Isimple_mail=} [properties] Properties to set
- */
- function simple_mail(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * simple_mail num.
- * @member {number|Long} num
- * @memberof game.simple_mail
- * @instance
- */
- simple_mail.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * simple_mail noread.
- * @member {number|Long} noread
- * @memberof game.simple_mail
- * @instance
- */
- simple_mail.prototype.noread = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * simple_mail needread.
- * @member {number|Long} needread
- * @memberof game.simple_mail
- * @instance
- */
- simple_mail.prototype.needread = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new simple_mail instance using the specified properties.
- * @function create
- * @memberof game.simple_mail
- * @static
- * @param {game.Isimple_mail=} [properties] Properties to set
- * @returns {game.simple_mail} simple_mail instance
- */
- simple_mail.create = function create(properties) {
- return new simple_mail(properties);
- };
- /**
- * Encodes the specified simple_mail message. Does not implicitly {@link game.simple_mail.verify|verify} messages.
- * @function encode
- * @memberof game.simple_mail
- * @static
- * @param {game.Isimple_mail} message simple_mail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- simple_mail.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.num);
- if (message.noread != null && Object.hasOwnProperty.call(message, "noread"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.noread);
- if (message.needread != null && Object.hasOwnProperty.call(message, "needread"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.needread);
- return writer;
- };
- /**
- * Encodes the specified simple_mail message, length delimited. Does not implicitly {@link game.simple_mail.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.simple_mail
- * @static
- * @param {game.Isimple_mail} message simple_mail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- simple_mail.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a simple_mail message from the specified reader or buffer.
- * @function decode
- * @memberof game.simple_mail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.simple_mail} simple_mail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- simple_mail.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.simple_mail();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.num = reader.int64();
- break;
- case 2:
- message.noread = reader.int64();
- break;
- case 3:
- message.needread = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a simple_mail message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.simple_mail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.simple_mail} simple_mail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- simple_mail.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a simple_mail message.
- * @function verify
- * @memberof game.simple_mail
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- simple_mail.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- if (message.noread != null && message.hasOwnProperty("noread"))
- if (!$util.isInteger(message.noread) && !(message.noread && $util.isInteger(message.noread.low) && $util.isInteger(message.noread.high)))
- return "noread: integer|Long expected";
- if (message.needread != null && message.hasOwnProperty("needread"))
- if (!$util.isInteger(message.needread) && !(message.needread && $util.isInteger(message.needread.low) && $util.isInteger(message.needread.high)))
- return "needread: integer|Long expected";
- return null;
- };
- /**
- * Creates a simple_mail message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.simple_mail
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.simple_mail} simple_mail
- */
- simple_mail.fromObject = function fromObject(object) {
- if (object instanceof $root.game.simple_mail)
- return object;
- let message = new $root.game.simple_mail();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- if (object.noread != null)
- if ($util.Long)
- (message.noread = $util.Long.fromValue(object.noread)).unsigned = false;
- else if (typeof object.noread === "string")
- message.noread = parseInt(object.noread, 10);
- else if (typeof object.noread === "number")
- message.noread = object.noread;
- else if (typeof object.noread === "object")
- message.noread = new $util.LongBits(object.noread.low >>> 0, object.noread.high >>> 0).toNumber();
- if (object.needread != null)
- if ($util.Long)
- (message.needread = $util.Long.fromValue(object.needread)).unsigned = false;
- else if (typeof object.needread === "string")
- message.needread = parseInt(object.needread, 10);
- else if (typeof object.needread === "number")
- message.needread = object.needread;
- else if (typeof object.needread === "object")
- message.needread = new $util.LongBits(object.needread.low >>> 0, object.needread.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a simple_mail message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.simple_mail
- * @static
- * @param {game.simple_mail} message simple_mail
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- simple_mail.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.noread = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.noread = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.needread = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.needread = options.longs === String ? "0" : 0;
- }
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- if (message.noread != null && message.hasOwnProperty("noread"))
- if (typeof message.noread === "number")
- object.noread = options.longs === String ? String(message.noread) : message.noread;
- else
- object.noread = options.longs === String ? $util.Long.prototype.toString.call(message.noread) : options.longs === Number ? new $util.LongBits(message.noread.low >>> 0, message.noread.high >>> 0).toNumber() : message.noread;
- if (message.needread != null && message.hasOwnProperty("needread"))
- if (typeof message.needread === "number")
- object.needread = options.longs === String ? String(message.needread) : message.needread;
- else
- object.needread = options.longs === String ? $util.Long.prototype.toString.call(message.needread) : options.longs === Number ? new $util.LongBits(message.needread.low >>> 0, message.needread.high >>> 0).toNumber() : message.needread;
- return object;
- };
- /**
- * Converts this simple_mail to JSON.
- * @function toJSON
- * @memberof game.simple_mail
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- simple_mail.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return simple_mail;
- })();
- game.embattle_get_data = (function() {
- /**
- * Properties of an embattle_get_data.
- * @memberof game
- * @interface Iembattle_get_data
- */
- /**
- * Constructs a new embattle_get_data.
- * @memberof game
- * @classdesc Represents an embattle_get_data.
- * @implements Iembattle_get_data
- * @constructor
- * @param {game.Iembattle_get_data=} [properties] Properties to set
- */
- function embattle_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new embattle_get_data instance using the specified properties.
- * @function create
- * @memberof game.embattle_get_data
- * @static
- * @param {game.Iembattle_get_data=} [properties] Properties to set
- * @returns {game.embattle_get_data} embattle_get_data instance
- */
- embattle_get_data.create = function create(properties) {
- return new embattle_get_data(properties);
- };
- /**
- * Encodes the specified embattle_get_data message. Does not implicitly {@link game.embattle_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.embattle_get_data
- * @static
- * @param {game.Iembattle_get_data} message embattle_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- embattle_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified embattle_get_data message, length delimited. Does not implicitly {@link game.embattle_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.embattle_get_data
- * @static
- * @param {game.Iembattle_get_data} message embattle_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- embattle_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an embattle_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.embattle_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.embattle_get_data} embattle_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- embattle_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an embattle_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.embattle_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.embattle_get_data} embattle_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- embattle_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an embattle_get_data message.
- * @function verify
- * @memberof game.embattle_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- embattle_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates an embattle_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.embattle_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.embattle_get_data} embattle_get_data
- */
- embattle_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.embattle_get_data)
- return object;
- return new $root.game.embattle_get_data();
- };
- /**
- * Creates a plain object from an embattle_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.embattle_get_data
- * @static
- * @param {game.embattle_get_data} message embattle_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- embattle_get_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this embattle_get_data to JSON.
- * @function toJSON
- * @memberof game.embattle_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- embattle_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return embattle_get_data;
- })();
- game.embattle_get_data_rsp = (function() {
- /**
- * Properties of an embattle_get_data_rsp.
- * @memberof game
- * @interface Iembattle_get_data_rsp
- * @property {number|Long|null} [errno] embattle_get_data_rsp errno
- * @property {Array.<game.Isid_pos>|null} [list] embattle_get_data_rsp list
- * @property {Array.<game.Isid_pos>|null} [cardList] embattle_get_data_rsp cardList
- */
- /**
- * Constructs a new embattle_get_data_rsp.
- * @memberof game
- * @classdesc Represents an embattle_get_data_rsp.
- * @implements Iembattle_get_data_rsp
- * @constructor
- * @param {game.Iembattle_get_data_rsp=} [properties] Properties to set
- */
- function embattle_get_data_rsp(properties) {
- this.list = [];
- this.cardList = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * embattle_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.embattle_get_data_rsp
- * @instance
- */
- embattle_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * embattle_get_data_rsp list.
- * @member {Array.<game.Isid_pos>} list
- * @memberof game.embattle_get_data_rsp
- * @instance
- */
- embattle_get_data_rsp.prototype.list = $util.emptyArray;
- /**
- * embattle_get_data_rsp cardList.
- * @member {Array.<game.Isid_pos>} cardList
- * @memberof game.embattle_get_data_rsp
- * @instance
- */
- embattle_get_data_rsp.prototype.cardList = $util.emptyArray;
- /**
- * Creates a new embattle_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.embattle_get_data_rsp
- * @static
- * @param {game.Iembattle_get_data_rsp=} [properties] Properties to set
- * @returns {game.embattle_get_data_rsp} embattle_get_data_rsp instance
- */
- embattle_get_data_rsp.create = function create(properties) {
- return new embattle_get_data_rsp(properties);
- };
- /**
- * Encodes the specified embattle_get_data_rsp message. Does not implicitly {@link game.embattle_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.embattle_get_data_rsp
- * @static
- * @param {game.Iembattle_get_data_rsp} message embattle_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- embattle_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.sid_pos.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- if (message.cardList != null && message.cardList.length)
- for (let i = 0; i < message.cardList.length; ++i)
- $root.game.sid_pos.encode(message.cardList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified embattle_get_data_rsp message, length delimited. Does not implicitly {@link game.embattle_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.embattle_get_data_rsp
- * @static
- * @param {game.Iembattle_get_data_rsp} message embattle_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- embattle_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an embattle_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.embattle_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.embattle_get_data_rsp} embattle_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- embattle_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.sid_pos.decode(reader, reader.uint32()));
- break;
- case 3:
- if (!(message.cardList && message.cardList.length))
- message.cardList = [];
- message.cardList.push($root.game.sid_pos.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an embattle_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.embattle_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.embattle_get_data_rsp} embattle_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- embattle_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an embattle_get_data_rsp message.
- * @function verify
- * @memberof game.embattle_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- embattle_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.sid_pos.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- if (message.cardList != null && message.hasOwnProperty("cardList")) {
- if (!Array.isArray(message.cardList))
- return "cardList: array expected";
- for (let i = 0; i < message.cardList.length; ++i) {
- let error = $root.game.sid_pos.verify(message.cardList[i]);
- if (error)
- return "cardList." + error;
- }
- }
- return null;
- };
- /**
- * Creates an embattle_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.embattle_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.embattle_get_data_rsp} embattle_get_data_rsp
- */
- embattle_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.embattle_get_data_rsp)
- return object;
- let message = new $root.game.embattle_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.embattle_get_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.embattle_get_data_rsp.list: object expected");
- message.list[i] = $root.game.sid_pos.fromObject(object.list[i]);
- }
- }
- if (object.cardList) {
- if (!Array.isArray(object.cardList))
- throw TypeError(".game.embattle_get_data_rsp.cardList: array expected");
- message.cardList = [];
- for (let i = 0; i < object.cardList.length; ++i) {
- if (typeof object.cardList[i] !== "object")
- throw TypeError(".game.embattle_get_data_rsp.cardList: object expected");
- message.cardList[i] = $root.game.sid_pos.fromObject(object.cardList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from an embattle_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.embattle_get_data_rsp
- * @static
- * @param {game.embattle_get_data_rsp} message embattle_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- embattle_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.list = [];
- object.cardList = [];
- }
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.sid_pos.toObject(message.list[j], options);
- }
- if (message.cardList && message.cardList.length) {
- object.cardList = [];
- for (let j = 0; j < message.cardList.length; ++j)
- object.cardList[j] = $root.game.sid_pos.toObject(message.cardList[j], options);
- }
- return object;
- };
- /**
- * Converts this embattle_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.embattle_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- embattle_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return embattle_get_data_rsp;
- })();
- game.embattle_battle = (function() {
- /**
- * Properties of an embattle_battle.
- * @memberof game
- * @interface Iembattle_battle
- * @property {boolean|null} [skill] embattle_battle skill
- * @property {string|null} [sid] embattle_battle sid
- * @property {number|Long|null} [pos] embattle_battle pos
- */
- /**
- * Constructs a new embattle_battle.
- * @memberof game
- * @classdesc Represents an embattle_battle.
- * @implements Iembattle_battle
- * @constructor
- * @param {game.Iembattle_battle=} [properties] Properties to set
- */
- function embattle_battle(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * embattle_battle skill.
- * @member {boolean} skill
- * @memberof game.embattle_battle
- * @instance
- */
- embattle_battle.prototype.skill = false;
- /**
- * embattle_battle sid.
- * @member {string} sid
- * @memberof game.embattle_battle
- * @instance
- */
- embattle_battle.prototype.sid = "";
- /**
- * embattle_battle pos.
- * @member {number|Long} pos
- * @memberof game.embattle_battle
- * @instance
- */
- embattle_battle.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new embattle_battle instance using the specified properties.
- * @function create
- * @memberof game.embattle_battle
- * @static
- * @param {game.Iembattle_battle=} [properties] Properties to set
- * @returns {game.embattle_battle} embattle_battle instance
- */
- embattle_battle.create = function create(properties) {
- return new embattle_battle(properties);
- };
- /**
- * Encodes the specified embattle_battle message. Does not implicitly {@link game.embattle_battle.verify|verify} messages.
- * @function encode
- * @memberof game.embattle_battle
- * @static
- * @param {game.Iembattle_battle} message embattle_battle message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- embattle_battle.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.skill != null && Object.hasOwnProperty.call(message, "skill"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.skill);
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.pos);
- return writer;
- };
- /**
- * Encodes the specified embattle_battle message, length delimited. Does not implicitly {@link game.embattle_battle.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.embattle_battle
- * @static
- * @param {game.Iembattle_battle} message embattle_battle message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- embattle_battle.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an embattle_battle message from the specified reader or buffer.
- * @function decode
- * @memberof game.embattle_battle
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.embattle_battle} embattle_battle
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- embattle_battle.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_battle();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.skill = reader.bool();
- break;
- case 2:
- message.sid = reader.string();
- break;
- case 3:
- message.pos = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an embattle_battle message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.embattle_battle
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.embattle_battle} embattle_battle
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- embattle_battle.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an embattle_battle message.
- * @function verify
- * @memberof game.embattle_battle
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- embattle_battle.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.skill != null && message.hasOwnProperty("skill"))
- if (typeof message.skill !== "boolean")
- return "skill: boolean expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- return null;
- };
- /**
- * Creates an embattle_battle message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.embattle_battle
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.embattle_battle} embattle_battle
- */
- embattle_battle.fromObject = function fromObject(object) {
- if (object instanceof $root.game.embattle_battle)
- return object;
- let message = new $root.game.embattle_battle();
- if (object.skill != null)
- message.skill = Boolean(object.skill);
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an embattle_battle message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.embattle_battle
- * @static
- * @param {game.embattle_battle} message embattle_battle
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- embattle_battle.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.skill = false;
- object.sid = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- }
- if (message.skill != null && message.hasOwnProperty("skill"))
- object.skill = message.skill;
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- return object;
- };
- /**
- * Converts this embattle_battle to JSON.
- * @function toJSON
- * @memberof game.embattle_battle
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- embattle_battle.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return embattle_battle;
- })();
- game.embattle_battle_rsp = (function() {
- /**
- * Properties of an embattle_battle_rsp.
- * @memberof game
- * @interface Iembattle_battle_rsp
- * @property {number|Long|null} [errno] embattle_battle_rsp errno
- * @property {Array.<game.Isid_pos>|null} [list] embattle_battle_rsp list
- * @property {Array.<game.Isid_pos>|null} [cardList] embattle_battle_rsp cardList
- */
- /**
- * Constructs a new embattle_battle_rsp.
- * @memberof game
- * @classdesc Represents an embattle_battle_rsp.
- * @implements Iembattle_battle_rsp
- * @constructor
- * @param {game.Iembattle_battle_rsp=} [properties] Properties to set
- */
- function embattle_battle_rsp(properties) {
- this.list = [];
- this.cardList = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * embattle_battle_rsp errno.
- * @member {number|Long} errno
- * @memberof game.embattle_battle_rsp
- * @instance
- */
- embattle_battle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * embattle_battle_rsp list.
- * @member {Array.<game.Isid_pos>} list
- * @memberof game.embattle_battle_rsp
- * @instance
- */
- embattle_battle_rsp.prototype.list = $util.emptyArray;
- /**
- * embattle_battle_rsp cardList.
- * @member {Array.<game.Isid_pos>} cardList
- * @memberof game.embattle_battle_rsp
- * @instance
- */
- embattle_battle_rsp.prototype.cardList = $util.emptyArray;
- /**
- * Creates a new embattle_battle_rsp instance using the specified properties.
- * @function create
- * @memberof game.embattle_battle_rsp
- * @static
- * @param {game.Iembattle_battle_rsp=} [properties] Properties to set
- * @returns {game.embattle_battle_rsp} embattle_battle_rsp instance
- */
- embattle_battle_rsp.create = function create(properties) {
- return new embattle_battle_rsp(properties);
- };
- /**
- * Encodes the specified embattle_battle_rsp message. Does not implicitly {@link game.embattle_battle_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.embattle_battle_rsp
- * @static
- * @param {game.Iembattle_battle_rsp} message embattle_battle_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- embattle_battle_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.sid_pos.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- if (message.cardList != null && message.cardList.length)
- for (let i = 0; i < message.cardList.length; ++i)
- $root.game.sid_pos.encode(message.cardList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified embattle_battle_rsp message, length delimited. Does not implicitly {@link game.embattle_battle_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.embattle_battle_rsp
- * @static
- * @param {game.Iembattle_battle_rsp} message embattle_battle_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- embattle_battle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an embattle_battle_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.embattle_battle_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.embattle_battle_rsp} embattle_battle_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- embattle_battle_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_battle_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.sid_pos.decode(reader, reader.uint32()));
- break;
- case 3:
- if (!(message.cardList && message.cardList.length))
- message.cardList = [];
- message.cardList.push($root.game.sid_pos.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an embattle_battle_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.embattle_battle_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.embattle_battle_rsp} embattle_battle_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- embattle_battle_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an embattle_battle_rsp message.
- * @function verify
- * @memberof game.embattle_battle_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- embattle_battle_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.sid_pos.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- if (message.cardList != null && message.hasOwnProperty("cardList")) {
- if (!Array.isArray(message.cardList))
- return "cardList: array expected";
- for (let i = 0; i < message.cardList.length; ++i) {
- let error = $root.game.sid_pos.verify(message.cardList[i]);
- if (error)
- return "cardList." + error;
- }
- }
- return null;
- };
- /**
- * Creates an embattle_battle_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.embattle_battle_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.embattle_battle_rsp} embattle_battle_rsp
- */
- embattle_battle_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.embattle_battle_rsp)
- return object;
- let message = new $root.game.embattle_battle_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.embattle_battle_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.embattle_battle_rsp.list: object expected");
- message.list[i] = $root.game.sid_pos.fromObject(object.list[i]);
- }
- }
- if (object.cardList) {
- if (!Array.isArray(object.cardList))
- throw TypeError(".game.embattle_battle_rsp.cardList: array expected");
- message.cardList = [];
- for (let i = 0; i < object.cardList.length; ++i) {
- if (typeof object.cardList[i] !== "object")
- throw TypeError(".game.embattle_battle_rsp.cardList: object expected");
- message.cardList[i] = $root.game.sid_pos.fromObject(object.cardList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from an embattle_battle_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.embattle_battle_rsp
- * @static
- * @param {game.embattle_battle_rsp} message embattle_battle_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- embattle_battle_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.list = [];
- object.cardList = [];
- }
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.sid_pos.toObject(message.list[j], options);
- }
- if (message.cardList && message.cardList.length) {
- object.cardList = [];
- for (let j = 0; j < message.cardList.length; ++j)
- object.cardList[j] = $root.game.sid_pos.toObject(message.cardList[j], options);
- }
- return object;
- };
- /**
- * Converts this embattle_battle_rsp to JSON.
- * @function toJSON
- * @memberof game.embattle_battle_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- embattle_battle_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return embattle_battle_rsp;
- })();
- game.hero_get_data = (function() {
- /**
- * Properties of a hero_get_data.
- * @memberof game
- * @interface Ihero_get_data
- */
- /**
- * Constructs a new hero_get_data.
- * @memberof game
- * @classdesc Represents a hero_get_data.
- * @implements Ihero_get_data
- * @constructor
- * @param {game.Ihero_get_data=} [properties] Properties to set
- */
- function hero_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new hero_get_data instance using the specified properties.
- * @function create
- * @memberof game.hero_get_data
- * @static
- * @param {game.Ihero_get_data=} [properties] Properties to set
- * @returns {game.hero_get_data} hero_get_data instance
- */
- hero_get_data.create = function create(properties) {
- return new hero_get_data(properties);
- };
- /**
- * Encodes the specified hero_get_data message. Does not implicitly {@link game.hero_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.hero_get_data
- * @static
- * @param {game.Ihero_get_data} message hero_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified hero_get_data message, length delimited. Does not implicitly {@link game.hero_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_get_data
- * @static
- * @param {game.Ihero_get_data} message hero_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_get_data} hero_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_get_data} hero_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_get_data message.
- * @function verify
- * @memberof game.hero_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a hero_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_get_data} hero_get_data
- */
- hero_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_get_data)
- return object;
- return new $root.game.hero_get_data();
- };
- /**
- * Creates a plain object from a hero_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_get_data
- * @static
- * @param {game.hero_get_data} message hero_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_get_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this hero_get_data to JSON.
- * @function toJSON
- * @memberof game.hero_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_get_data;
- })();
- game.hero_get_data_rsp = (function() {
- /**
- * Properties of a hero_get_data_rsp.
- * @memberof game
- * @interface Ihero_get_data_rsp
- * @property {number|Long|null} [errno] hero_get_data_rsp errno
- * @property {Array.<game.Ihero>|null} [list] hero_get_data_rsp list
- */
- /**
- * Constructs a new hero_get_data_rsp.
- * @memberof game
- * @classdesc Represents a hero_get_data_rsp.
- * @implements Ihero_get_data_rsp
- * @constructor
- * @param {game.Ihero_get_data_rsp=} [properties] Properties to set
- */
- function hero_get_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.hero_get_data_rsp
- * @instance
- */
- hero_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * hero_get_data_rsp list.
- * @member {Array.<game.Ihero>} list
- * @memberof game.hero_get_data_rsp
- * @instance
- */
- hero_get_data_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new hero_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.hero_get_data_rsp
- * @static
- * @param {game.Ihero_get_data_rsp=} [properties] Properties to set
- * @returns {game.hero_get_data_rsp} hero_get_data_rsp instance
- */
- hero_get_data_rsp.create = function create(properties) {
- return new hero_get_data_rsp(properties);
- };
- /**
- * Encodes the specified hero_get_data_rsp message. Does not implicitly {@link game.hero_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.hero_get_data_rsp
- * @static
- * @param {game.Ihero_get_data_rsp} message hero_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.hero.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified hero_get_data_rsp message, length delimited. Does not implicitly {@link game.hero_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_get_data_rsp
- * @static
- * @param {game.Ihero_get_data_rsp} message hero_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_get_data_rsp} hero_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.hero.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_get_data_rsp} hero_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_get_data_rsp message.
- * @function verify
- * @memberof game.hero_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.hero.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a hero_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_get_data_rsp} hero_get_data_rsp
- */
- hero_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_get_data_rsp)
- return object;
- let message = new $root.game.hero_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.hero_get_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.hero_get_data_rsp.list: object expected");
- message.list[i] = $root.game.hero.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a hero_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_get_data_rsp
- * @static
- * @param {game.hero_get_data_rsp} message hero_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.hero.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this hero_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.hero_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_get_data_rsp;
- })();
- game.hero_upgrade = (function() {
- /**
- * Properties of a hero_upgrade.
- * @memberof game
- * @interface Ihero_upgrade
- * @property {string|null} [sid] hero_upgrade sid
- * @property {number|Long|null} [num] hero_upgrade num
- */
- /**
- * Constructs a new hero_upgrade.
- * @memberof game
- * @classdesc Represents a hero_upgrade.
- * @implements Ihero_upgrade
- * @constructor
- * @param {game.Ihero_upgrade=} [properties] Properties to set
- */
- function hero_upgrade(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero_upgrade sid.
- * @member {string} sid
- * @memberof game.hero_upgrade
- * @instance
- */
- hero_upgrade.prototype.sid = "";
- /**
- * hero_upgrade num.
- * @member {number|Long} num
- * @memberof game.hero_upgrade
- * @instance
- */
- hero_upgrade.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new hero_upgrade instance using the specified properties.
- * @function create
- * @memberof game.hero_upgrade
- * @static
- * @param {game.Ihero_upgrade=} [properties] Properties to set
- * @returns {game.hero_upgrade} hero_upgrade instance
- */
- hero_upgrade.create = function create(properties) {
- return new hero_upgrade(properties);
- };
- /**
- * Encodes the specified hero_upgrade message. Does not implicitly {@link game.hero_upgrade.verify|verify} messages.
- * @function encode
- * @memberof game.hero_upgrade
- * @static
- * @param {game.Ihero_upgrade} message hero_upgrade message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_upgrade.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
- return writer;
- };
- /**
- * Encodes the specified hero_upgrade message, length delimited. Does not implicitly {@link game.hero_upgrade.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_upgrade
- * @static
- * @param {game.Ihero_upgrade} message hero_upgrade message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_upgrade message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_upgrade
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_upgrade} hero_upgrade
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_upgrade.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_upgrade();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sid = reader.string();
- break;
- case 2:
- message.num = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_upgrade message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_upgrade
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_upgrade} hero_upgrade
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_upgrade.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_upgrade message.
- * @function verify
- * @memberof game.hero_upgrade
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_upgrade.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- return null;
- };
- /**
- * Creates a hero_upgrade message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_upgrade
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_upgrade} hero_upgrade
- */
- hero_upgrade.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_upgrade)
- return object;
- let message = new $root.game.hero_upgrade();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a hero_upgrade message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_upgrade
- * @static
- * @param {game.hero_upgrade} message hero_upgrade
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_upgrade.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.sid = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- }
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- return object;
- };
- /**
- * Converts this hero_upgrade to JSON.
- * @function toJSON
- * @memberof game.hero_upgrade
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_upgrade.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_upgrade;
- })();
- game.hero_upgrade_rsp = (function() {
- /**
- * Properties of a hero_upgrade_rsp.
- * @memberof game
- * @interface Ihero_upgrade_rsp
- * @property {number|Long|null} [errno] hero_upgrade_rsp errno
- * @property {game.Ihero|null} [data] hero_upgrade_rsp data
- */
- /**
- * Constructs a new hero_upgrade_rsp.
- * @memberof game
- * @classdesc Represents a hero_upgrade_rsp.
- * @implements Ihero_upgrade_rsp
- * @constructor
- * @param {game.Ihero_upgrade_rsp=} [properties] Properties to set
- */
- function hero_upgrade_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero_upgrade_rsp errno.
- * @member {number|Long} errno
- * @memberof game.hero_upgrade_rsp
- * @instance
- */
- hero_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * hero_upgrade_rsp data.
- * @member {game.Ihero|null|undefined} data
- * @memberof game.hero_upgrade_rsp
- * @instance
- */
- hero_upgrade_rsp.prototype.data = null;
- /**
- * Creates a new hero_upgrade_rsp instance using the specified properties.
- * @function create
- * @memberof game.hero_upgrade_rsp
- * @static
- * @param {game.Ihero_upgrade_rsp=} [properties] Properties to set
- * @returns {game.hero_upgrade_rsp} hero_upgrade_rsp instance
- */
- hero_upgrade_rsp.create = function create(properties) {
- return new hero_upgrade_rsp(properties);
- };
- /**
- * Encodes the specified hero_upgrade_rsp message. Does not implicitly {@link game.hero_upgrade_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.hero_upgrade_rsp
- * @static
- * @param {game.Ihero_upgrade_rsp} message hero_upgrade_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_upgrade_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.hero.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified hero_upgrade_rsp message, length delimited. Does not implicitly {@link game.hero_upgrade_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_upgrade_rsp
- * @static
- * @param {game.Ihero_upgrade_rsp} message hero_upgrade_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_upgrade_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_upgrade_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_upgrade_rsp} hero_upgrade_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_upgrade_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_upgrade_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.hero.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_upgrade_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_upgrade_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_upgrade_rsp} hero_upgrade_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_upgrade_rsp message.
- * @function verify
- * @memberof game.hero_upgrade_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_upgrade_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.hero.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a hero_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_upgrade_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_upgrade_rsp} hero_upgrade_rsp
- */
- hero_upgrade_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_upgrade_rsp)
- return object;
- let message = new $root.game.hero_upgrade_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.hero_upgrade_rsp.data: object expected");
- message.data = $root.game.hero.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a hero_upgrade_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_upgrade_rsp
- * @static
- * @param {game.hero_upgrade_rsp} message hero_upgrade_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_upgrade_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.hero.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this hero_upgrade_rsp to JSON.
- * @function toJSON
- * @memberof game.hero_upgrade_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_upgrade_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_upgrade_rsp;
- })();
- game.hero_upgrade_star = (function() {
- /**
- * Properties of a hero_upgrade_star.
- * @memberof game
- * @interface Ihero_upgrade_star
- * @property {string|null} [sid] hero_upgrade_star sid
- * @property {Array.<string>|null} [same] hero_upgrade_star same
- * @property {Array.<string>|null} [other] hero_upgrade_star other
- * @property {game.Iid_num|null} [currency] hero_upgrade_star currency
- */
- /**
- * Constructs a new hero_upgrade_star.
- * @memberof game
- * @classdesc Represents a hero_upgrade_star.
- * @implements Ihero_upgrade_star
- * @constructor
- * @param {game.Ihero_upgrade_star=} [properties] Properties to set
- */
- function hero_upgrade_star(properties) {
- this.same = [];
- this.other = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero_upgrade_star sid.
- * @member {string} sid
- * @memberof game.hero_upgrade_star
- * @instance
- */
- hero_upgrade_star.prototype.sid = "";
- /**
- * hero_upgrade_star same.
- * @member {Array.<string>} same
- * @memberof game.hero_upgrade_star
- * @instance
- */
- hero_upgrade_star.prototype.same = $util.emptyArray;
- /**
- * hero_upgrade_star other.
- * @member {Array.<string>} other
- * @memberof game.hero_upgrade_star
- * @instance
- */
- hero_upgrade_star.prototype.other = $util.emptyArray;
- /**
- * hero_upgrade_star currency.
- * @member {game.Iid_num|null|undefined} currency
- * @memberof game.hero_upgrade_star
- * @instance
- */
- hero_upgrade_star.prototype.currency = null;
- /**
- * Creates a new hero_upgrade_star instance using the specified properties.
- * @function create
- * @memberof game.hero_upgrade_star
- * @static
- * @param {game.Ihero_upgrade_star=} [properties] Properties to set
- * @returns {game.hero_upgrade_star} hero_upgrade_star instance
- */
- hero_upgrade_star.create = function create(properties) {
- return new hero_upgrade_star(properties);
- };
- /**
- * Encodes the specified hero_upgrade_star message. Does not implicitly {@link game.hero_upgrade_star.verify|verify} messages.
- * @function encode
- * @memberof game.hero_upgrade_star
- * @static
- * @param {game.Ihero_upgrade_star} message hero_upgrade_star message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_upgrade_star.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
- if (message.same != null && message.same.length)
- for (let i = 0; i < message.same.length; ++i)
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.same[i]);
- if (message.other != null && message.other.length)
- for (let i = 0; i < message.other.length; ++i)
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.other[i]);
- if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
- $root.game.id_num.encode(message.currency, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified hero_upgrade_star message, length delimited. Does not implicitly {@link game.hero_upgrade_star.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_upgrade_star
- * @static
- * @param {game.Ihero_upgrade_star} message hero_upgrade_star message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_upgrade_star message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_upgrade_star
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_upgrade_star} hero_upgrade_star
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_upgrade_star.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_upgrade_star();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sid = reader.string();
- break;
- case 2:
- if (!(message.same && message.same.length))
- message.same = [];
- message.same.push(reader.string());
- break;
- case 3:
- if (!(message.other && message.other.length))
- message.other = [];
- message.other.push(reader.string());
- break;
- case 4:
- message.currency = $root.game.id_num.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_upgrade_star message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_upgrade_star
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_upgrade_star} hero_upgrade_star
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_upgrade_star message.
- * @function verify
- * @memberof game.hero_upgrade_star
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_upgrade_star.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.same != null && message.hasOwnProperty("same")) {
- if (!Array.isArray(message.same))
- return "same: array expected";
- for (let i = 0; i < message.same.length; ++i)
- if (!$util.isString(message.same[i]))
- return "same: string[] expected";
- }
- if (message.other != null && message.hasOwnProperty("other")) {
- if (!Array.isArray(message.other))
- return "other: array expected";
- for (let i = 0; i < message.other.length; ++i)
- if (!$util.isString(message.other[i]))
- return "other: string[] expected";
- }
- if (message.currency != null && message.hasOwnProperty("currency")) {
- let error = $root.game.id_num.verify(message.currency);
- if (error)
- return "currency." + error;
- }
- return null;
- };
- /**
- * Creates a hero_upgrade_star message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_upgrade_star
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_upgrade_star} hero_upgrade_star
- */
- hero_upgrade_star.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_upgrade_star)
- return object;
- let message = new $root.game.hero_upgrade_star();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.same) {
- if (!Array.isArray(object.same))
- throw TypeError(".game.hero_upgrade_star.same: array expected");
- message.same = [];
- for (let i = 0; i < object.same.length; ++i)
- message.same[i] = String(object.same[i]);
- }
- if (object.other) {
- if (!Array.isArray(object.other))
- throw TypeError(".game.hero_upgrade_star.other: array expected");
- message.other = [];
- for (let i = 0; i < object.other.length; ++i)
- message.other[i] = String(object.other[i]);
- }
- if (object.currency != null) {
- if (typeof object.currency !== "object")
- throw TypeError(".game.hero_upgrade_star.currency: object expected");
- message.currency = $root.game.id_num.fromObject(object.currency);
- }
- return message;
- };
- /**
- * Creates a plain object from a hero_upgrade_star message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_upgrade_star
- * @static
- * @param {game.hero_upgrade_star} message hero_upgrade_star
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_upgrade_star.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.same = [];
- object.other = [];
- }
- if (options.defaults) {
- object.sid = "";
- object.currency = null;
- }
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.same && message.same.length) {
- object.same = [];
- for (let j = 0; j < message.same.length; ++j)
- object.same[j] = message.same[j];
- }
- if (message.other && message.other.length) {
- object.other = [];
- for (let j = 0; j < message.other.length; ++j)
- object.other[j] = message.other[j];
- }
- if (message.currency != null && message.hasOwnProperty("currency"))
- object.currency = $root.game.id_num.toObject(message.currency, options);
- return object;
- };
- /**
- * Converts this hero_upgrade_star to JSON.
- * @function toJSON
- * @memberof game.hero_upgrade_star
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_upgrade_star.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_upgrade_star;
- })();
- game.hero_upgrade_star_rsp = (function() {
- /**
- * Properties of a hero_upgrade_star_rsp.
- * @memberof game
- * @interface Ihero_upgrade_star_rsp
- * @property {number|Long|null} [errno] hero_upgrade_star_rsp errno
- * @property {game.Ihero|null} [data] hero_upgrade_star_rsp data
- * @property {Array.<string>|null} [same] hero_upgrade_star_rsp same
- * @property {Array.<string>|null} [other] hero_upgrade_star_rsp other
- * @property {game.Iid_num|null} [currency] hero_upgrade_star_rsp currency
- */
- /**
- * Constructs a new hero_upgrade_star_rsp.
- * @memberof game
- * @classdesc Represents a hero_upgrade_star_rsp.
- * @implements Ihero_upgrade_star_rsp
- * @constructor
- * @param {game.Ihero_upgrade_star_rsp=} [properties] Properties to set
- */
- function hero_upgrade_star_rsp(properties) {
- this.same = [];
- this.other = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero_upgrade_star_rsp errno.
- * @member {number|Long} errno
- * @memberof game.hero_upgrade_star_rsp
- * @instance
- */
- hero_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * hero_upgrade_star_rsp data.
- * @member {game.Ihero|null|undefined} data
- * @memberof game.hero_upgrade_star_rsp
- * @instance
- */
- hero_upgrade_star_rsp.prototype.data = null;
- /**
- * hero_upgrade_star_rsp same.
- * @member {Array.<string>} same
- * @memberof game.hero_upgrade_star_rsp
- * @instance
- */
- hero_upgrade_star_rsp.prototype.same = $util.emptyArray;
- /**
- * hero_upgrade_star_rsp other.
- * @member {Array.<string>} other
- * @memberof game.hero_upgrade_star_rsp
- * @instance
- */
- hero_upgrade_star_rsp.prototype.other = $util.emptyArray;
- /**
- * hero_upgrade_star_rsp currency.
- * @member {game.Iid_num|null|undefined} currency
- * @memberof game.hero_upgrade_star_rsp
- * @instance
- */
- hero_upgrade_star_rsp.prototype.currency = null;
- /**
- * Creates a new hero_upgrade_star_rsp instance using the specified properties.
- * @function create
- * @memberof game.hero_upgrade_star_rsp
- * @static
- * @param {game.Ihero_upgrade_star_rsp=} [properties] Properties to set
- * @returns {game.hero_upgrade_star_rsp} hero_upgrade_star_rsp instance
- */
- hero_upgrade_star_rsp.create = function create(properties) {
- return new hero_upgrade_star_rsp(properties);
- };
- /**
- * Encodes the specified hero_upgrade_star_rsp message. Does not implicitly {@link game.hero_upgrade_star_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.hero_upgrade_star_rsp
- * @static
- * @param {game.Ihero_upgrade_star_rsp} message hero_upgrade_star_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_upgrade_star_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.hero.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- if (message.same != null && message.same.length)
- for (let i = 0; i < message.same.length; ++i)
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.same[i]);
- if (message.other != null && message.other.length)
- for (let i = 0; i < message.other.length; ++i)
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.other[i]);
- if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
- $root.game.id_num.encode(message.currency, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified hero_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.hero_upgrade_star_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_upgrade_star_rsp
- * @static
- * @param {game.Ihero_upgrade_star_rsp} message hero_upgrade_star_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_upgrade_star_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_upgrade_star_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_upgrade_star_rsp} hero_upgrade_star_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_upgrade_star_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_upgrade_star_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.hero.decode(reader, reader.uint32());
- break;
- case 3:
- if (!(message.same && message.same.length))
- message.same = [];
- message.same.push(reader.string());
- break;
- case 4:
- if (!(message.other && message.other.length))
- message.other = [];
- message.other.push(reader.string());
- break;
- case 5:
- message.currency = $root.game.id_num.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_upgrade_star_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_upgrade_star_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_upgrade_star_rsp} hero_upgrade_star_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_upgrade_star_rsp message.
- * @function verify
- * @memberof game.hero_upgrade_star_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_upgrade_star_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.hero.verify(message.data);
- if (error)
- return "data." + error;
- }
- if (message.same != null && message.hasOwnProperty("same")) {
- if (!Array.isArray(message.same))
- return "same: array expected";
- for (let i = 0; i < message.same.length; ++i)
- if (!$util.isString(message.same[i]))
- return "same: string[] expected";
- }
- if (message.other != null && message.hasOwnProperty("other")) {
- if (!Array.isArray(message.other))
- return "other: array expected";
- for (let i = 0; i < message.other.length; ++i)
- if (!$util.isString(message.other[i]))
- return "other: string[] expected";
- }
- if (message.currency != null && message.hasOwnProperty("currency")) {
- let error = $root.game.id_num.verify(message.currency);
- if (error)
- return "currency." + error;
- }
- return null;
- };
- /**
- * Creates a hero_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_upgrade_star_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_upgrade_star_rsp} hero_upgrade_star_rsp
- */
- hero_upgrade_star_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_upgrade_star_rsp)
- return object;
- let message = new $root.game.hero_upgrade_star_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.hero_upgrade_star_rsp.data: object expected");
- message.data = $root.game.hero.fromObject(object.data);
- }
- if (object.same) {
- if (!Array.isArray(object.same))
- throw TypeError(".game.hero_upgrade_star_rsp.same: array expected");
- message.same = [];
- for (let i = 0; i < object.same.length; ++i)
- message.same[i] = String(object.same[i]);
- }
- if (object.other) {
- if (!Array.isArray(object.other))
- throw TypeError(".game.hero_upgrade_star_rsp.other: array expected");
- message.other = [];
- for (let i = 0; i < object.other.length; ++i)
- message.other[i] = String(object.other[i]);
- }
- if (object.currency != null) {
- if (typeof object.currency !== "object")
- throw TypeError(".game.hero_upgrade_star_rsp.currency: object expected");
- message.currency = $root.game.id_num.fromObject(object.currency);
- }
- return message;
- };
- /**
- * Creates a plain object from a hero_upgrade_star_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_upgrade_star_rsp
- * @static
- * @param {game.hero_upgrade_star_rsp} message hero_upgrade_star_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_upgrade_star_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.same = [];
- object.other = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- object.currency = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.hero.toObject(message.data, options);
- if (message.same && message.same.length) {
- object.same = [];
- for (let j = 0; j < message.same.length; ++j)
- object.same[j] = message.same[j];
- }
- if (message.other && message.other.length) {
- object.other = [];
- for (let j = 0; j < message.other.length; ++j)
- object.other[j] = message.other[j];
- }
- if (message.currency != null && message.hasOwnProperty("currency"))
- object.currency = $root.game.id_num.toObject(message.currency, options);
- return object;
- };
- /**
- * Converts this hero_upgrade_star_rsp to JSON.
- * @function toJSON
- * @memberof game.hero_upgrade_star_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_upgrade_star_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_upgrade_star_rsp;
- })();
- game.hero_onekey_upgrade_star = (function() {
- /**
- * Properties of a hero_onekey_upgrade_star.
- * @memberof game
- * @interface Ihero_onekey_upgrade_star
- */
- /**
- * Constructs a new hero_onekey_upgrade_star.
- * @memberof game
- * @classdesc Represents a hero_onekey_upgrade_star.
- * @implements Ihero_onekey_upgrade_star
- * @constructor
- * @param {game.Ihero_onekey_upgrade_star=} [properties] Properties to set
- */
- function hero_onekey_upgrade_star(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new hero_onekey_upgrade_star instance using the specified properties.
- * @function create
- * @memberof game.hero_onekey_upgrade_star
- * @static
- * @param {game.Ihero_onekey_upgrade_star=} [properties] Properties to set
- * @returns {game.hero_onekey_upgrade_star} hero_onekey_upgrade_star instance
- */
- hero_onekey_upgrade_star.create = function create(properties) {
- return new hero_onekey_upgrade_star(properties);
- };
- /**
- * Encodes the specified hero_onekey_upgrade_star message. Does not implicitly {@link game.hero_onekey_upgrade_star.verify|verify} messages.
- * @function encode
- * @memberof game.hero_onekey_upgrade_star
- * @static
- * @param {game.Ihero_onekey_upgrade_star} message hero_onekey_upgrade_star message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_onekey_upgrade_star.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified hero_onekey_upgrade_star message, length delimited. Does not implicitly {@link game.hero_onekey_upgrade_star.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_onekey_upgrade_star
- * @static
- * @param {game.Ihero_onekey_upgrade_star} message hero_onekey_upgrade_star message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_onekey_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_onekey_upgrade_star message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_onekey_upgrade_star
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_onekey_upgrade_star} hero_onekey_upgrade_star
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_onekey_upgrade_star.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_onekey_upgrade_star();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_onekey_upgrade_star message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_onekey_upgrade_star
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_onekey_upgrade_star} hero_onekey_upgrade_star
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_onekey_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_onekey_upgrade_star message.
- * @function verify
- * @memberof game.hero_onekey_upgrade_star
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_onekey_upgrade_star.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a hero_onekey_upgrade_star message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_onekey_upgrade_star
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_onekey_upgrade_star} hero_onekey_upgrade_star
- */
- hero_onekey_upgrade_star.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_onekey_upgrade_star)
- return object;
- return new $root.game.hero_onekey_upgrade_star();
- };
- /**
- * Creates a plain object from a hero_onekey_upgrade_star message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_onekey_upgrade_star
- * @static
- * @param {game.hero_onekey_upgrade_star} message hero_onekey_upgrade_star
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_onekey_upgrade_star.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this hero_onekey_upgrade_star to JSON.
- * @function toJSON
- * @memberof game.hero_onekey_upgrade_star
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_onekey_upgrade_star.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_onekey_upgrade_star;
- })();
- game.hero_onekey_upgrade_star_rsp = (function() {
- /**
- * Properties of a hero_onekey_upgrade_star_rsp.
- * @memberof game
- * @interface Ihero_onekey_upgrade_star_rsp
- * @property {number|Long|null} [errno] hero_onekey_upgrade_star_rsp errno
- * @property {Array.<string>|null} [delList] hero_onekey_upgrade_star_rsp delList
- * @property {Array.<game.Ihero>|null} [changeList] hero_onekey_upgrade_star_rsp changeList
- */
- /**
- * Constructs a new hero_onekey_upgrade_star_rsp.
- * @memberof game
- * @classdesc Represents a hero_onekey_upgrade_star_rsp.
- * @implements Ihero_onekey_upgrade_star_rsp
- * @constructor
- * @param {game.Ihero_onekey_upgrade_star_rsp=} [properties] Properties to set
- */
- function hero_onekey_upgrade_star_rsp(properties) {
- this.delList = [];
- this.changeList = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero_onekey_upgrade_star_rsp errno.
- * @member {number|Long} errno
- * @memberof game.hero_onekey_upgrade_star_rsp
- * @instance
- */
- hero_onekey_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * hero_onekey_upgrade_star_rsp delList.
- * @member {Array.<string>} delList
- * @memberof game.hero_onekey_upgrade_star_rsp
- * @instance
- */
- hero_onekey_upgrade_star_rsp.prototype.delList = $util.emptyArray;
- /**
- * hero_onekey_upgrade_star_rsp changeList.
- * @member {Array.<game.Ihero>} changeList
- * @memberof game.hero_onekey_upgrade_star_rsp
- * @instance
- */
- hero_onekey_upgrade_star_rsp.prototype.changeList = $util.emptyArray;
- /**
- * Creates a new hero_onekey_upgrade_star_rsp instance using the specified properties.
- * @function create
- * @memberof game.hero_onekey_upgrade_star_rsp
- * @static
- * @param {game.Ihero_onekey_upgrade_star_rsp=} [properties] Properties to set
- * @returns {game.hero_onekey_upgrade_star_rsp} hero_onekey_upgrade_star_rsp instance
- */
- hero_onekey_upgrade_star_rsp.create = function create(properties) {
- return new hero_onekey_upgrade_star_rsp(properties);
- };
- /**
- * Encodes the specified hero_onekey_upgrade_star_rsp message. Does not implicitly {@link game.hero_onekey_upgrade_star_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.hero_onekey_upgrade_star_rsp
- * @static
- * @param {game.Ihero_onekey_upgrade_star_rsp} message hero_onekey_upgrade_star_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_onekey_upgrade_star_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.delList != null && message.delList.length)
- for (let i = 0; i < message.delList.length; ++i)
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.delList[i]);
- if (message.changeList != null && message.changeList.length)
- for (let i = 0; i < message.changeList.length; ++i)
- $root.game.hero.encode(message.changeList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified hero_onekey_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.hero_onekey_upgrade_star_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_onekey_upgrade_star_rsp
- * @static
- * @param {game.Ihero_onekey_upgrade_star_rsp} message hero_onekey_upgrade_star_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_onekey_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_onekey_upgrade_star_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_onekey_upgrade_star_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_onekey_upgrade_star_rsp} hero_onekey_upgrade_star_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_onekey_upgrade_star_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_onekey_upgrade_star_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.delList && message.delList.length))
- message.delList = [];
- message.delList.push(reader.string());
- break;
- case 3:
- if (!(message.changeList && message.changeList.length))
- message.changeList = [];
- message.changeList.push($root.game.hero.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_onekey_upgrade_star_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_onekey_upgrade_star_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_onekey_upgrade_star_rsp} hero_onekey_upgrade_star_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_onekey_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_onekey_upgrade_star_rsp message.
- * @function verify
- * @memberof game.hero_onekey_upgrade_star_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_onekey_upgrade_star_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.delList != null && message.hasOwnProperty("delList")) {
- if (!Array.isArray(message.delList))
- return "delList: array expected";
- for (let i = 0; i < message.delList.length; ++i)
- if (!$util.isString(message.delList[i]))
- return "delList: string[] expected";
- }
- if (message.changeList != null && message.hasOwnProperty("changeList")) {
- if (!Array.isArray(message.changeList))
- return "changeList: array expected";
- for (let i = 0; i < message.changeList.length; ++i) {
- let error = $root.game.hero.verify(message.changeList[i]);
- if (error)
- return "changeList." + error;
- }
- }
- return null;
- };
- /**
- * Creates a hero_onekey_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_onekey_upgrade_star_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_onekey_upgrade_star_rsp} hero_onekey_upgrade_star_rsp
- */
- hero_onekey_upgrade_star_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_onekey_upgrade_star_rsp)
- return object;
- let message = new $root.game.hero_onekey_upgrade_star_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.delList) {
- if (!Array.isArray(object.delList))
- throw TypeError(".game.hero_onekey_upgrade_star_rsp.delList: array expected");
- message.delList = [];
- for (let i = 0; i < object.delList.length; ++i)
- message.delList[i] = String(object.delList[i]);
- }
- if (object.changeList) {
- if (!Array.isArray(object.changeList))
- throw TypeError(".game.hero_onekey_upgrade_star_rsp.changeList: array expected");
- message.changeList = [];
- for (let i = 0; i < object.changeList.length; ++i) {
- if (typeof object.changeList[i] !== "object")
- throw TypeError(".game.hero_onekey_upgrade_star_rsp.changeList: object expected");
- message.changeList[i] = $root.game.hero.fromObject(object.changeList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a hero_onekey_upgrade_star_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_onekey_upgrade_star_rsp
- * @static
- * @param {game.hero_onekey_upgrade_star_rsp} message hero_onekey_upgrade_star_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_onekey_upgrade_star_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.delList = [];
- object.changeList = [];
- }
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.delList && message.delList.length) {
- object.delList = [];
- for (let j = 0; j < message.delList.length; ++j)
- object.delList[j] = message.delList[j];
- }
- if (message.changeList && message.changeList.length) {
- object.changeList = [];
- for (let j = 0; j < message.changeList.length; ++j)
- object.changeList[j] = $root.game.hero.toObject(message.changeList[j], options);
- }
- return object;
- };
- /**
- * Converts this hero_onekey_upgrade_star_rsp to JSON.
- * @function toJSON
- * @memberof game.hero_onekey_upgrade_star_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_onekey_upgrade_star_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_onekey_upgrade_star_rsp;
- })();
- game.hero_reset = (function() {
- /**
- * Properties of a hero_reset.
- * @memberof game
- * @interface Ihero_reset
- * @property {boolean|null} [level] hero_reset level
- * @property {string|null} [sid] hero_reset sid
- */
- /**
- * Constructs a new hero_reset.
- * @memberof game
- * @classdesc Represents a hero_reset.
- * @implements Ihero_reset
- * @constructor
- * @param {game.Ihero_reset=} [properties] Properties to set
- */
- function hero_reset(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero_reset level.
- * @member {boolean} level
- * @memberof game.hero_reset
- * @instance
- */
- hero_reset.prototype.level = false;
- /**
- * hero_reset sid.
- * @member {string} sid
- * @memberof game.hero_reset
- * @instance
- */
- hero_reset.prototype.sid = "";
- /**
- * Creates a new hero_reset instance using the specified properties.
- * @function create
- * @memberof game.hero_reset
- * @static
- * @param {game.Ihero_reset=} [properties] Properties to set
- * @returns {game.hero_reset} hero_reset instance
- */
- hero_reset.create = function create(properties) {
- return new hero_reset(properties);
- };
- /**
- * Encodes the specified hero_reset message. Does not implicitly {@link game.hero_reset.verify|verify} messages.
- * @function encode
- * @memberof game.hero_reset
- * @static
- * @param {game.Ihero_reset} message hero_reset message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_reset.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.level != null && Object.hasOwnProperty.call(message, "level"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.level);
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
- return writer;
- };
- /**
- * Encodes the specified hero_reset message, length delimited. Does not implicitly {@link game.hero_reset.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_reset
- * @static
- * @param {game.Ihero_reset} message hero_reset message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_reset.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_reset message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_reset
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_reset} hero_reset
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_reset.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_reset();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.level = reader.bool();
- break;
- case 2:
- message.sid = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_reset message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_reset
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_reset} hero_reset
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_reset.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_reset message.
- * @function verify
- * @memberof game.hero_reset
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_reset.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.level != null && message.hasOwnProperty("level"))
- if (typeof message.level !== "boolean")
- return "level: boolean expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- return null;
- };
- /**
- * Creates a hero_reset message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_reset
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_reset} hero_reset
- */
- hero_reset.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_reset)
- return object;
- let message = new $root.game.hero_reset();
- if (object.level != null)
- message.level = Boolean(object.level);
- if (object.sid != null)
- message.sid = String(object.sid);
- return message;
- };
- /**
- * Creates a plain object from a hero_reset message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_reset
- * @static
- * @param {game.hero_reset} message hero_reset
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_reset.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.level = false;
- object.sid = "";
- }
- if (message.level != null && message.hasOwnProperty("level"))
- object.level = message.level;
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- return object;
- };
- /**
- * Converts this hero_reset to JSON.
- * @function toJSON
- * @memberof game.hero_reset
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_reset.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_reset;
- })();
- game.hero_reset_rsp = (function() {
- /**
- * Properties of a hero_reset_rsp.
- * @memberof game
- * @interface Ihero_reset_rsp
- * @property {number|Long|null} [errno] hero_reset_rsp errno
- * @property {game.Ihero|null} [data] hero_reset_rsp data
- */
- /**
- * Constructs a new hero_reset_rsp.
- * @memberof game
- * @classdesc Represents a hero_reset_rsp.
- * @implements Ihero_reset_rsp
- * @constructor
- * @param {game.Ihero_reset_rsp=} [properties] Properties to set
- */
- function hero_reset_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero_reset_rsp errno.
- * @member {number|Long} errno
- * @memberof game.hero_reset_rsp
- * @instance
- */
- hero_reset_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * hero_reset_rsp data.
- * @member {game.Ihero|null|undefined} data
- * @memberof game.hero_reset_rsp
- * @instance
- */
- hero_reset_rsp.prototype.data = null;
- /**
- * Creates a new hero_reset_rsp instance using the specified properties.
- * @function create
- * @memberof game.hero_reset_rsp
- * @static
- * @param {game.Ihero_reset_rsp=} [properties] Properties to set
- * @returns {game.hero_reset_rsp} hero_reset_rsp instance
- */
- hero_reset_rsp.create = function create(properties) {
- return new hero_reset_rsp(properties);
- };
- /**
- * Encodes the specified hero_reset_rsp message. Does not implicitly {@link game.hero_reset_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.hero_reset_rsp
- * @static
- * @param {game.Ihero_reset_rsp} message hero_reset_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_reset_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.hero.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified hero_reset_rsp message, length delimited. Does not implicitly {@link game.hero_reset_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_reset_rsp
- * @static
- * @param {game.Ihero_reset_rsp} message hero_reset_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_reset_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_reset_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_reset_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_reset_rsp} hero_reset_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_reset_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_reset_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.hero.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_reset_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_reset_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_reset_rsp} hero_reset_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_reset_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_reset_rsp message.
- * @function verify
- * @memberof game.hero_reset_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_reset_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.hero.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a hero_reset_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_reset_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_reset_rsp} hero_reset_rsp
- */
- hero_reset_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_reset_rsp)
- return object;
- let message = new $root.game.hero_reset_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.hero_reset_rsp.data: object expected");
- message.data = $root.game.hero.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a hero_reset_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_reset_rsp
- * @static
- * @param {game.hero_reset_rsp} message hero_reset_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_reset_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.hero.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this hero_reset_rsp to JSON.
- * @function toJSON
- * @memberof game.hero_reset_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_reset_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_reset_rsp;
- })();
- game.hero_wear_equip = (function() {
- /**
- * Properties of a hero_wear_equip.
- * @memberof game
- * @interface Ihero_wear_equip
- * @property {string|null} [sid] hero_wear_equip sid
- * @property {Array.<string>|null} [list] hero_wear_equip list
- */
- /**
- * Constructs a new hero_wear_equip.
- * @memberof game
- * @classdesc Represents a hero_wear_equip.
- * @implements Ihero_wear_equip
- * @constructor
- * @param {game.Ihero_wear_equip=} [properties] Properties to set
- */
- function hero_wear_equip(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero_wear_equip sid.
- * @member {string} sid
- * @memberof game.hero_wear_equip
- * @instance
- */
- hero_wear_equip.prototype.sid = "";
- /**
- * hero_wear_equip list.
- * @member {Array.<string>} list
- * @memberof game.hero_wear_equip
- * @instance
- */
- hero_wear_equip.prototype.list = $util.emptyArray;
- /**
- * Creates a new hero_wear_equip instance using the specified properties.
- * @function create
- * @memberof game.hero_wear_equip
- * @static
- * @param {game.Ihero_wear_equip=} [properties] Properties to set
- * @returns {game.hero_wear_equip} hero_wear_equip instance
- */
- hero_wear_equip.create = function create(properties) {
- return new hero_wear_equip(properties);
- };
- /**
- * Encodes the specified hero_wear_equip message. Does not implicitly {@link game.hero_wear_equip.verify|verify} messages.
- * @function encode
- * @memberof game.hero_wear_equip
- * @static
- * @param {game.Ihero_wear_equip} message hero_wear_equip message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_wear_equip.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
- return writer;
- };
- /**
- * Encodes the specified hero_wear_equip message, length delimited. Does not implicitly {@link game.hero_wear_equip.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_wear_equip
- * @static
- * @param {game.Ihero_wear_equip} message hero_wear_equip message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_wear_equip.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_wear_equip message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_wear_equip
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_wear_equip} hero_wear_equip
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_wear_equip.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_wear_equip();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sid = reader.string();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push(reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_wear_equip message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_wear_equip
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_wear_equip} hero_wear_equip
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_wear_equip.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_wear_equip message.
- * @function verify
- * @memberof game.hero_wear_equip
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_wear_equip.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isString(message.list[i]))
- return "list: string[] expected";
- }
- return null;
- };
- /**
- * Creates a hero_wear_equip message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_wear_equip
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_wear_equip} hero_wear_equip
- */
- hero_wear_equip.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_wear_equip)
- return object;
- let message = new $root.game.hero_wear_equip();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.hero_wear_equip.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- message.list[i] = String(object.list[i]);
- }
- return message;
- };
- /**
- * Creates a plain object from a hero_wear_equip message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_wear_equip
- * @static
- * @param {game.hero_wear_equip} message hero_wear_equip
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_wear_equip.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- object.sid = "";
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = message.list[j];
- }
- return object;
- };
- /**
- * Converts this hero_wear_equip to JSON.
- * @function toJSON
- * @memberof game.hero_wear_equip
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_wear_equip.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_wear_equip;
- })();
- game.hero_wear_equip_rsp = (function() {
- /**
- * Properties of a hero_wear_equip_rsp.
- * @memberof game
- * @interface Ihero_wear_equip_rsp
- * @property {number|Long|null} [errno] hero_wear_equip_rsp errno
- * @property {Array.<string>|null} [list] hero_wear_equip_rsp list
- * @property {game.Ihero|null} [data] hero_wear_equip_rsp data
- */
- /**
- * Constructs a new hero_wear_equip_rsp.
- * @memberof game
- * @classdesc Represents a hero_wear_equip_rsp.
- * @implements Ihero_wear_equip_rsp
- * @constructor
- * @param {game.Ihero_wear_equip_rsp=} [properties] Properties to set
- */
- function hero_wear_equip_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero_wear_equip_rsp errno.
- * @member {number|Long} errno
- * @memberof game.hero_wear_equip_rsp
- * @instance
- */
- hero_wear_equip_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * hero_wear_equip_rsp list.
- * @member {Array.<string>} list
- * @memberof game.hero_wear_equip_rsp
- * @instance
- */
- hero_wear_equip_rsp.prototype.list = $util.emptyArray;
- /**
- * hero_wear_equip_rsp data.
- * @member {game.Ihero|null|undefined} data
- * @memberof game.hero_wear_equip_rsp
- * @instance
- */
- hero_wear_equip_rsp.prototype.data = null;
- /**
- * Creates a new hero_wear_equip_rsp instance using the specified properties.
- * @function create
- * @memberof game.hero_wear_equip_rsp
- * @static
- * @param {game.Ihero_wear_equip_rsp=} [properties] Properties to set
- * @returns {game.hero_wear_equip_rsp} hero_wear_equip_rsp instance
- */
- hero_wear_equip_rsp.create = function create(properties) {
- return new hero_wear_equip_rsp(properties);
- };
- /**
- * Encodes the specified hero_wear_equip_rsp message. Does not implicitly {@link game.hero_wear_equip_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.hero_wear_equip_rsp
- * @static
- * @param {game.Ihero_wear_equip_rsp} message hero_wear_equip_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_wear_equip_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.hero.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified hero_wear_equip_rsp message, length delimited. Does not implicitly {@link game.hero_wear_equip_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_wear_equip_rsp
- * @static
- * @param {game.Ihero_wear_equip_rsp} message hero_wear_equip_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_wear_equip_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_wear_equip_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_wear_equip_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_wear_equip_rsp} hero_wear_equip_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_wear_equip_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_wear_equip_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push(reader.string());
- break;
- case 3:
- message.data = $root.game.hero.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_wear_equip_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_wear_equip_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_wear_equip_rsp} hero_wear_equip_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_wear_equip_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_wear_equip_rsp message.
- * @function verify
- * @memberof game.hero_wear_equip_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_wear_equip_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isString(message.list[i]))
- return "list: string[] expected";
- }
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.hero.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a hero_wear_equip_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_wear_equip_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_wear_equip_rsp} hero_wear_equip_rsp
- */
- hero_wear_equip_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_wear_equip_rsp)
- return object;
- let message = new $root.game.hero_wear_equip_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.hero_wear_equip_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- message.list[i] = String(object.list[i]);
- }
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.hero_wear_equip_rsp.data: object expected");
- message.data = $root.game.hero.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a hero_wear_equip_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_wear_equip_rsp
- * @static
- * @param {game.hero_wear_equip_rsp} message hero_wear_equip_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_wear_equip_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = message.list[j];
- }
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.hero.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this hero_wear_equip_rsp to JSON.
- * @function toJSON
- * @memberof game.hero_wear_equip_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_wear_equip_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_wear_equip_rsp;
- })();
- game.hero_change_nty = (function() {
- /**
- * Properties of a hero_change_nty.
- * @memberof game
- * @interface Ihero_change_nty
- * @property {Array.<game.Ihero>|null} [list] hero_change_nty list
- */
- /**
- * Constructs a new hero_change_nty.
- * @memberof game
- * @classdesc Represents a hero_change_nty.
- * @implements Ihero_change_nty
- * @constructor
- * @param {game.Ihero_change_nty=} [properties] Properties to set
- */
- function hero_change_nty(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero_change_nty list.
- * @member {Array.<game.Ihero>} list
- * @memberof game.hero_change_nty
- * @instance
- */
- hero_change_nty.prototype.list = $util.emptyArray;
- /**
- * Creates a new hero_change_nty instance using the specified properties.
- * @function create
- * @memberof game.hero_change_nty
- * @static
- * @param {game.Ihero_change_nty=} [properties] Properties to set
- * @returns {game.hero_change_nty} hero_change_nty instance
- */
- hero_change_nty.create = function create(properties) {
- return new hero_change_nty(properties);
- };
- /**
- * Encodes the specified hero_change_nty message. Does not implicitly {@link game.hero_change_nty.verify|verify} messages.
- * @function encode
- * @memberof game.hero_change_nty
- * @static
- * @param {game.Ihero_change_nty} message hero_change_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_change_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.hero.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified hero_change_nty message, length delimited. Does not implicitly {@link game.hero_change_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_change_nty
- * @static
- * @param {game.Ihero_change_nty} message hero_change_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_change_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_change_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_change_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_change_nty} hero_change_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_change_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_change_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.hero.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_change_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_change_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_change_nty} hero_change_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_change_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_change_nty message.
- * @function verify
- * @memberof game.hero_change_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_change_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.hero.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a hero_change_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_change_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_change_nty} hero_change_nty
- */
- hero_change_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_change_nty)
- return object;
- let message = new $root.game.hero_change_nty();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.hero_change_nty.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.hero_change_nty.list: object expected");
- message.list[i] = $root.game.hero.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a hero_change_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_change_nty
- * @static
- * @param {game.hero_change_nty} message hero_change_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_change_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.hero.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this hero_change_nty to JSON.
- * @function toJSON
- * @memberof game.hero_change_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_change_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_change_nty;
- })();
- game.skill_card_get_data = (function() {
- /**
- * Properties of a skill_card_get_data.
- * @memberof game
- * @interface Iskill_card_get_data
- */
- /**
- * Constructs a new skill_card_get_data.
- * @memberof game
- * @classdesc Represents a skill_card_get_data.
- * @implements Iskill_card_get_data
- * @constructor
- * @param {game.Iskill_card_get_data=} [properties] Properties to set
- */
- function skill_card_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new skill_card_get_data instance using the specified properties.
- * @function create
- * @memberof game.skill_card_get_data
- * @static
- * @param {game.Iskill_card_get_data=} [properties] Properties to set
- * @returns {game.skill_card_get_data} skill_card_get_data instance
- */
- skill_card_get_data.create = function create(properties) {
- return new skill_card_get_data(properties);
- };
- /**
- * Encodes the specified skill_card_get_data message. Does not implicitly {@link game.skill_card_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.skill_card_get_data
- * @static
- * @param {game.Iskill_card_get_data} message skill_card_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- skill_card_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified skill_card_get_data message, length delimited. Does not implicitly {@link game.skill_card_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.skill_card_get_data
- * @static
- * @param {game.Iskill_card_get_data} message skill_card_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- skill_card_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a skill_card_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.skill_card_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.skill_card_get_data} skill_card_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- skill_card_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a skill_card_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.skill_card_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.skill_card_get_data} skill_card_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- skill_card_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a skill_card_get_data message.
- * @function verify
- * @memberof game.skill_card_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- skill_card_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a skill_card_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.skill_card_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.skill_card_get_data} skill_card_get_data
- */
- skill_card_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.skill_card_get_data)
- return object;
- return new $root.game.skill_card_get_data();
- };
- /**
- * Creates a plain object from a skill_card_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.skill_card_get_data
- * @static
- * @param {game.skill_card_get_data} message skill_card_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- skill_card_get_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this skill_card_get_data to JSON.
- * @function toJSON
- * @memberof game.skill_card_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- skill_card_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return skill_card_get_data;
- })();
- game.skill_card_get_data_rsp = (function() {
- /**
- * Properties of a skill_card_get_data_rsp.
- * @memberof game
- * @interface Iskill_card_get_data_rsp
- * @property {number|Long|null} [errno] skill_card_get_data_rsp errno
- * @property {Array.<game.Icard>|null} [list] skill_card_get_data_rsp list
- */
- /**
- * Constructs a new skill_card_get_data_rsp.
- * @memberof game
- * @classdesc Represents a skill_card_get_data_rsp.
- * @implements Iskill_card_get_data_rsp
- * @constructor
- * @param {game.Iskill_card_get_data_rsp=} [properties] Properties to set
- */
- function skill_card_get_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * skill_card_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.skill_card_get_data_rsp
- * @instance
- */
- skill_card_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * skill_card_get_data_rsp list.
- * @member {Array.<game.Icard>} list
- * @memberof game.skill_card_get_data_rsp
- * @instance
- */
- skill_card_get_data_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new skill_card_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.skill_card_get_data_rsp
- * @static
- * @param {game.Iskill_card_get_data_rsp=} [properties] Properties to set
- * @returns {game.skill_card_get_data_rsp} skill_card_get_data_rsp instance
- */
- skill_card_get_data_rsp.create = function create(properties) {
- return new skill_card_get_data_rsp(properties);
- };
- /**
- * Encodes the specified skill_card_get_data_rsp message. Does not implicitly {@link game.skill_card_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.skill_card_get_data_rsp
- * @static
- * @param {game.Iskill_card_get_data_rsp} message skill_card_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- skill_card_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.card.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified skill_card_get_data_rsp message, length delimited. Does not implicitly {@link game.skill_card_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.skill_card_get_data_rsp
- * @static
- * @param {game.Iskill_card_get_data_rsp} message skill_card_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- skill_card_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a skill_card_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.skill_card_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.skill_card_get_data_rsp} skill_card_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- skill_card_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.card.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a skill_card_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.skill_card_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.skill_card_get_data_rsp} skill_card_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- skill_card_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a skill_card_get_data_rsp message.
- * @function verify
- * @memberof game.skill_card_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- skill_card_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.card.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a skill_card_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.skill_card_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.skill_card_get_data_rsp} skill_card_get_data_rsp
- */
- skill_card_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.skill_card_get_data_rsp)
- return object;
- let message = new $root.game.skill_card_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.skill_card_get_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.skill_card_get_data_rsp.list: object expected");
- message.list[i] = $root.game.card.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a skill_card_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.skill_card_get_data_rsp
- * @static
- * @param {game.skill_card_get_data_rsp} message skill_card_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- skill_card_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.card.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this skill_card_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.skill_card_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- skill_card_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return skill_card_get_data_rsp;
- })();
- game.skill_card_upgrade = (function() {
- /**
- * Properties of a skill_card_upgrade.
- * @memberof game
- * @interface Iskill_card_upgrade
- * @property {string|null} [sid] skill_card_upgrade sid
- * @property {number|Long|null} [num] skill_card_upgrade num
- */
- /**
- * Constructs a new skill_card_upgrade.
- * @memberof game
- * @classdesc Represents a skill_card_upgrade.
- * @implements Iskill_card_upgrade
- * @constructor
- * @param {game.Iskill_card_upgrade=} [properties] Properties to set
- */
- function skill_card_upgrade(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * skill_card_upgrade sid.
- * @member {string} sid
- * @memberof game.skill_card_upgrade
- * @instance
- */
- skill_card_upgrade.prototype.sid = "";
- /**
- * skill_card_upgrade num.
- * @member {number|Long} num
- * @memberof game.skill_card_upgrade
- * @instance
- */
- skill_card_upgrade.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new skill_card_upgrade instance using the specified properties.
- * @function create
- * @memberof game.skill_card_upgrade
- * @static
- * @param {game.Iskill_card_upgrade=} [properties] Properties to set
- * @returns {game.skill_card_upgrade} skill_card_upgrade instance
- */
- skill_card_upgrade.create = function create(properties) {
- return new skill_card_upgrade(properties);
- };
- /**
- * Encodes the specified skill_card_upgrade message. Does not implicitly {@link game.skill_card_upgrade.verify|verify} messages.
- * @function encode
- * @memberof game.skill_card_upgrade
- * @static
- * @param {game.Iskill_card_upgrade} message skill_card_upgrade message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- skill_card_upgrade.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
- return writer;
- };
- /**
- * Encodes the specified skill_card_upgrade message, length delimited. Does not implicitly {@link game.skill_card_upgrade.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.skill_card_upgrade
- * @static
- * @param {game.Iskill_card_upgrade} message skill_card_upgrade message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- skill_card_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a skill_card_upgrade message from the specified reader or buffer.
- * @function decode
- * @memberof game.skill_card_upgrade
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.skill_card_upgrade} skill_card_upgrade
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- skill_card_upgrade.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_upgrade();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sid = reader.string();
- break;
- case 2:
- message.num = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a skill_card_upgrade message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.skill_card_upgrade
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.skill_card_upgrade} skill_card_upgrade
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- skill_card_upgrade.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a skill_card_upgrade message.
- * @function verify
- * @memberof game.skill_card_upgrade
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- skill_card_upgrade.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- return null;
- };
- /**
- * Creates a skill_card_upgrade message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.skill_card_upgrade
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.skill_card_upgrade} skill_card_upgrade
- */
- skill_card_upgrade.fromObject = function fromObject(object) {
- if (object instanceof $root.game.skill_card_upgrade)
- return object;
- let message = new $root.game.skill_card_upgrade();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a skill_card_upgrade message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.skill_card_upgrade
- * @static
- * @param {game.skill_card_upgrade} message skill_card_upgrade
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- skill_card_upgrade.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.sid = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- }
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- return object;
- };
- /**
- * Converts this skill_card_upgrade to JSON.
- * @function toJSON
- * @memberof game.skill_card_upgrade
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- skill_card_upgrade.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return skill_card_upgrade;
- })();
- game.skill_card_upgrade_rsp = (function() {
- /**
- * Properties of a skill_card_upgrade_rsp.
- * @memberof game
- * @interface Iskill_card_upgrade_rsp
- * @property {number|Long|null} [errno] skill_card_upgrade_rsp errno
- * @property {game.Icard|null} [data] skill_card_upgrade_rsp data
- */
- /**
- * Constructs a new skill_card_upgrade_rsp.
- * @memberof game
- * @classdesc Represents a skill_card_upgrade_rsp.
- * @implements Iskill_card_upgrade_rsp
- * @constructor
- * @param {game.Iskill_card_upgrade_rsp=} [properties] Properties to set
- */
- function skill_card_upgrade_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * skill_card_upgrade_rsp errno.
- * @member {number|Long} errno
- * @memberof game.skill_card_upgrade_rsp
- * @instance
- */
- skill_card_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * skill_card_upgrade_rsp data.
- * @member {game.Icard|null|undefined} data
- * @memberof game.skill_card_upgrade_rsp
- * @instance
- */
- skill_card_upgrade_rsp.prototype.data = null;
- /**
- * Creates a new skill_card_upgrade_rsp instance using the specified properties.
- * @function create
- * @memberof game.skill_card_upgrade_rsp
- * @static
- * @param {game.Iskill_card_upgrade_rsp=} [properties] Properties to set
- * @returns {game.skill_card_upgrade_rsp} skill_card_upgrade_rsp instance
- */
- skill_card_upgrade_rsp.create = function create(properties) {
- return new skill_card_upgrade_rsp(properties);
- };
- /**
- * Encodes the specified skill_card_upgrade_rsp message. Does not implicitly {@link game.skill_card_upgrade_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.skill_card_upgrade_rsp
- * @static
- * @param {game.Iskill_card_upgrade_rsp} message skill_card_upgrade_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- skill_card_upgrade_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.card.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified skill_card_upgrade_rsp message, length delimited. Does not implicitly {@link game.skill_card_upgrade_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.skill_card_upgrade_rsp
- * @static
- * @param {game.Iskill_card_upgrade_rsp} message skill_card_upgrade_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- skill_card_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a skill_card_upgrade_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.skill_card_upgrade_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.skill_card_upgrade_rsp} skill_card_upgrade_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- skill_card_upgrade_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_upgrade_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.card.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a skill_card_upgrade_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.skill_card_upgrade_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.skill_card_upgrade_rsp} skill_card_upgrade_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- skill_card_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a skill_card_upgrade_rsp message.
- * @function verify
- * @memberof game.skill_card_upgrade_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- skill_card_upgrade_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.card.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a skill_card_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.skill_card_upgrade_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.skill_card_upgrade_rsp} skill_card_upgrade_rsp
- */
- skill_card_upgrade_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.skill_card_upgrade_rsp)
- return object;
- let message = new $root.game.skill_card_upgrade_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.skill_card_upgrade_rsp.data: object expected");
- message.data = $root.game.card.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a skill_card_upgrade_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.skill_card_upgrade_rsp
- * @static
- * @param {game.skill_card_upgrade_rsp} message skill_card_upgrade_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- skill_card_upgrade_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.card.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this skill_card_upgrade_rsp to JSON.
- * @function toJSON
- * @memberof game.skill_card_upgrade_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- skill_card_upgrade_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return skill_card_upgrade_rsp;
- })();
- game.skill_card_upgrade_star = (function() {
- /**
- * Properties of a skill_card_upgrade_star.
- * @memberof game
- * @interface Iskill_card_upgrade_star
- * @property {string|null} [sid] skill_card_upgrade_star sid
- */
- /**
- * Constructs a new skill_card_upgrade_star.
- * @memberof game
- * @classdesc Represents a skill_card_upgrade_star.
- * @implements Iskill_card_upgrade_star
- * @constructor
- * @param {game.Iskill_card_upgrade_star=} [properties] Properties to set
- */
- function skill_card_upgrade_star(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * skill_card_upgrade_star sid.
- * @member {string} sid
- * @memberof game.skill_card_upgrade_star
- * @instance
- */
- skill_card_upgrade_star.prototype.sid = "";
- /**
- * Creates a new skill_card_upgrade_star instance using the specified properties.
- * @function create
- * @memberof game.skill_card_upgrade_star
- * @static
- * @param {game.Iskill_card_upgrade_star=} [properties] Properties to set
- * @returns {game.skill_card_upgrade_star} skill_card_upgrade_star instance
- */
- skill_card_upgrade_star.create = function create(properties) {
- return new skill_card_upgrade_star(properties);
- };
- /**
- * Encodes the specified skill_card_upgrade_star message. Does not implicitly {@link game.skill_card_upgrade_star.verify|verify} messages.
- * @function encode
- * @memberof game.skill_card_upgrade_star
- * @static
- * @param {game.Iskill_card_upgrade_star} message skill_card_upgrade_star message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- skill_card_upgrade_star.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
- return writer;
- };
- /**
- * Encodes the specified skill_card_upgrade_star message, length delimited. Does not implicitly {@link game.skill_card_upgrade_star.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.skill_card_upgrade_star
- * @static
- * @param {game.Iskill_card_upgrade_star} message skill_card_upgrade_star message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- skill_card_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a skill_card_upgrade_star message from the specified reader or buffer.
- * @function decode
- * @memberof game.skill_card_upgrade_star
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.skill_card_upgrade_star} skill_card_upgrade_star
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- skill_card_upgrade_star.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_upgrade_star();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sid = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a skill_card_upgrade_star message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.skill_card_upgrade_star
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.skill_card_upgrade_star} skill_card_upgrade_star
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- skill_card_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a skill_card_upgrade_star message.
- * @function verify
- * @memberof game.skill_card_upgrade_star
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- skill_card_upgrade_star.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- return null;
- };
- /**
- * Creates a skill_card_upgrade_star message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.skill_card_upgrade_star
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.skill_card_upgrade_star} skill_card_upgrade_star
- */
- skill_card_upgrade_star.fromObject = function fromObject(object) {
- if (object instanceof $root.game.skill_card_upgrade_star)
- return object;
- let message = new $root.game.skill_card_upgrade_star();
- if (object.sid != null)
- message.sid = String(object.sid);
- return message;
- };
- /**
- * Creates a plain object from a skill_card_upgrade_star message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.skill_card_upgrade_star
- * @static
- * @param {game.skill_card_upgrade_star} message skill_card_upgrade_star
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- skill_card_upgrade_star.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- object.sid = "";
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- return object;
- };
- /**
- * Converts this skill_card_upgrade_star to JSON.
- * @function toJSON
- * @memberof game.skill_card_upgrade_star
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- skill_card_upgrade_star.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return skill_card_upgrade_star;
- })();
- game.skill_card_upgrade_star_rsp = (function() {
- /**
- * Properties of a skill_card_upgrade_star_rsp.
- * @memberof game
- * @interface Iskill_card_upgrade_star_rsp
- * @property {number|Long|null} [errno] skill_card_upgrade_star_rsp errno
- * @property {game.Icard|null} [data] skill_card_upgrade_star_rsp data
- */
- /**
- * Constructs a new skill_card_upgrade_star_rsp.
- * @memberof game
- * @classdesc Represents a skill_card_upgrade_star_rsp.
- * @implements Iskill_card_upgrade_star_rsp
- * @constructor
- * @param {game.Iskill_card_upgrade_star_rsp=} [properties] Properties to set
- */
- function skill_card_upgrade_star_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * skill_card_upgrade_star_rsp errno.
- * @member {number|Long} errno
- * @memberof game.skill_card_upgrade_star_rsp
- * @instance
- */
- skill_card_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * skill_card_upgrade_star_rsp data.
- * @member {game.Icard|null|undefined} data
- * @memberof game.skill_card_upgrade_star_rsp
- * @instance
- */
- skill_card_upgrade_star_rsp.prototype.data = null;
- /**
- * Creates a new skill_card_upgrade_star_rsp instance using the specified properties.
- * @function create
- * @memberof game.skill_card_upgrade_star_rsp
- * @static
- * @param {game.Iskill_card_upgrade_star_rsp=} [properties] Properties to set
- * @returns {game.skill_card_upgrade_star_rsp} skill_card_upgrade_star_rsp instance
- */
- skill_card_upgrade_star_rsp.create = function create(properties) {
- return new skill_card_upgrade_star_rsp(properties);
- };
- /**
- * Encodes the specified skill_card_upgrade_star_rsp message. Does not implicitly {@link game.skill_card_upgrade_star_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.skill_card_upgrade_star_rsp
- * @static
- * @param {game.Iskill_card_upgrade_star_rsp} message skill_card_upgrade_star_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- skill_card_upgrade_star_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.card.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified skill_card_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.skill_card_upgrade_star_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.skill_card_upgrade_star_rsp
- * @static
- * @param {game.Iskill_card_upgrade_star_rsp} message skill_card_upgrade_star_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- skill_card_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a skill_card_upgrade_star_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.skill_card_upgrade_star_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.skill_card_upgrade_star_rsp} skill_card_upgrade_star_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- skill_card_upgrade_star_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_upgrade_star_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.card.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a skill_card_upgrade_star_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.skill_card_upgrade_star_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.skill_card_upgrade_star_rsp} skill_card_upgrade_star_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- skill_card_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a skill_card_upgrade_star_rsp message.
- * @function verify
- * @memberof game.skill_card_upgrade_star_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- skill_card_upgrade_star_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.card.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a skill_card_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.skill_card_upgrade_star_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.skill_card_upgrade_star_rsp} skill_card_upgrade_star_rsp
- */
- skill_card_upgrade_star_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.skill_card_upgrade_star_rsp)
- return object;
- let message = new $root.game.skill_card_upgrade_star_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.skill_card_upgrade_star_rsp.data: object expected");
- message.data = $root.game.card.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a skill_card_upgrade_star_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.skill_card_upgrade_star_rsp
- * @static
- * @param {game.skill_card_upgrade_star_rsp} message skill_card_upgrade_star_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- skill_card_upgrade_star_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.card.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this skill_card_upgrade_star_rsp to JSON.
- * @function toJSON
- * @memberof game.skill_card_upgrade_star_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- skill_card_upgrade_star_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return skill_card_upgrade_star_rsp;
- })();
- game.role_get_data = (function() {
- /**
- * Properties of a role_get_data.
- * @memberof game
- * @interface Irole_get_data
- */
- /**
- * Constructs a new role_get_data.
- * @memberof game
- * @classdesc Represents a role_get_data.
- * @implements Irole_get_data
- * @constructor
- * @param {game.Irole_get_data=} [properties] Properties to set
- */
- function role_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new role_get_data instance using the specified properties.
- * @function create
- * @memberof game.role_get_data
- * @static
- * @param {game.Irole_get_data=} [properties] Properties to set
- * @returns {game.role_get_data} role_get_data instance
- */
- role_get_data.create = function create(properties) {
- return new role_get_data(properties);
- };
- /**
- * Encodes the specified role_get_data message. Does not implicitly {@link game.role_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.role_get_data
- * @static
- * @param {game.Irole_get_data} message role_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified role_get_data message, length delimited. Does not implicitly {@link game.role_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.role_get_data
- * @static
- * @param {game.Irole_get_data} message role_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a role_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.role_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.role_get_data} role_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a role_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.role_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.role_get_data} role_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a role_get_data message.
- * @function verify
- * @memberof game.role_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- role_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a role_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.role_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.role_get_data} role_get_data
- */
- role_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.role_get_data)
- return object;
- return new $root.game.role_get_data();
- };
- /**
- * Creates a plain object from a role_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.role_get_data
- * @static
- * @param {game.role_get_data} message role_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- role_get_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this role_get_data to JSON.
- * @function toJSON
- * @memberof game.role_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- role_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return role_get_data;
- })();
- game.role_get_data_rsp = (function() {
- /**
- * Properties of a role_get_data_rsp.
- * @memberof game
- * @interface Irole_get_data_rsp
- * @property {number|Long|null} [errno] role_get_data_rsp errno
- * @property {number|Long|null} [level] role_get_data_rsp level
- * @property {number|Long|null} [exp] role_get_data_rsp exp
- */
- /**
- * Constructs a new role_get_data_rsp.
- * @memberof game
- * @classdesc Represents a role_get_data_rsp.
- * @implements Irole_get_data_rsp
- * @constructor
- * @param {game.Irole_get_data_rsp=} [properties] Properties to set
- */
- function role_get_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * role_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.role_get_data_rsp
- * @instance
- */
- role_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * role_get_data_rsp level.
- * @member {number|Long} level
- * @memberof game.role_get_data_rsp
- * @instance
- */
- role_get_data_rsp.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * role_get_data_rsp exp.
- * @member {number|Long} exp
- * @memberof game.role_get_data_rsp
- * @instance
- */
- role_get_data_rsp.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new role_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.role_get_data_rsp
- * @static
- * @param {game.Irole_get_data_rsp=} [properties] Properties to set
- * @returns {game.role_get_data_rsp} role_get_data_rsp instance
- */
- role_get_data_rsp.create = function create(properties) {
- return new role_get_data_rsp(properties);
- };
- /**
- * Encodes the specified role_get_data_rsp message. Does not implicitly {@link game.role_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.role_get_data_rsp
- * @static
- * @param {game.Irole_get_data_rsp} message role_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.level != null && Object.hasOwnProperty.call(message, "level"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.level);
- if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.exp);
- return writer;
- };
- /**
- * Encodes the specified role_get_data_rsp message, length delimited. Does not implicitly {@link game.role_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.role_get_data_rsp
- * @static
- * @param {game.Irole_get_data_rsp} message role_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a role_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.role_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.role_get_data_rsp} role_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.level = reader.int64();
- break;
- case 3:
- message.exp = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a role_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.role_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.role_get_data_rsp} role_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a role_get_data_rsp message.
- * @function verify
- * @memberof game.role_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- role_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.level != null && message.hasOwnProperty("level"))
- if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
- return "level: integer|Long expected";
- if (message.exp != null && message.hasOwnProperty("exp"))
- if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
- return "exp: integer|Long expected";
- return null;
- };
- /**
- * Creates a role_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.role_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.role_get_data_rsp} role_get_data_rsp
- */
- role_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.role_get_data_rsp)
- return object;
- let message = new $root.game.role_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.level != null)
- if ($util.Long)
- (message.level = $util.Long.fromValue(object.level)).unsigned = false;
- else if (typeof object.level === "string")
- message.level = parseInt(object.level, 10);
- else if (typeof object.level === "number")
- message.level = object.level;
- else if (typeof object.level === "object")
- message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
- if (object.exp != null)
- if ($util.Long)
- (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
- else if (typeof object.exp === "string")
- message.exp = parseInt(object.exp, 10);
- else if (typeof object.exp === "number")
- message.exp = object.exp;
- else if (typeof object.exp === "object")
- message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a role_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.role_get_data_rsp
- * @static
- * @param {game.role_get_data_rsp} message role_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- role_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.level = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.exp = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.level != null && message.hasOwnProperty("level"))
- if (typeof message.level === "number")
- object.level = options.longs === String ? String(message.level) : message.level;
- else
- object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
- if (message.exp != null && message.hasOwnProperty("exp"))
- if (typeof message.exp === "number")
- object.exp = options.longs === String ? String(message.exp) : message.exp;
- else
- object.exp = options.longs === String ? $util.Long.prototype.toString.call(message.exp) : options.longs === Number ? new $util.LongBits(message.exp.low >>> 0, message.exp.high >>> 0).toNumber() : message.exp;
- return object;
- };
- /**
- * Converts this role_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.role_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- role_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return role_get_data_rsp;
- })();
- game.role_upgrade = (function() {
- /**
- * Properties of a role_upgrade.
- * @memberof game
- * @interface Irole_upgrade
- */
- /**
- * Constructs a new role_upgrade.
- * @memberof game
- * @classdesc Represents a role_upgrade.
- * @implements Irole_upgrade
- * @constructor
- * @param {game.Irole_upgrade=} [properties] Properties to set
- */
- function role_upgrade(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new role_upgrade instance using the specified properties.
- * @function create
- * @memberof game.role_upgrade
- * @static
- * @param {game.Irole_upgrade=} [properties] Properties to set
- * @returns {game.role_upgrade} role_upgrade instance
- */
- role_upgrade.create = function create(properties) {
- return new role_upgrade(properties);
- };
- /**
- * Encodes the specified role_upgrade message. Does not implicitly {@link game.role_upgrade.verify|verify} messages.
- * @function encode
- * @memberof game.role_upgrade
- * @static
- * @param {game.Irole_upgrade} message role_upgrade message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_upgrade.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified role_upgrade message, length delimited. Does not implicitly {@link game.role_upgrade.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.role_upgrade
- * @static
- * @param {game.Irole_upgrade} message role_upgrade message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a role_upgrade message from the specified reader or buffer.
- * @function decode
- * @memberof game.role_upgrade
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.role_upgrade} role_upgrade
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_upgrade.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_upgrade();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a role_upgrade message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.role_upgrade
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.role_upgrade} role_upgrade
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_upgrade.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a role_upgrade message.
- * @function verify
- * @memberof game.role_upgrade
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- role_upgrade.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a role_upgrade message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.role_upgrade
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.role_upgrade} role_upgrade
- */
- role_upgrade.fromObject = function fromObject(object) {
- if (object instanceof $root.game.role_upgrade)
- return object;
- return new $root.game.role_upgrade();
- };
- /**
- * Creates a plain object from a role_upgrade message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.role_upgrade
- * @static
- * @param {game.role_upgrade} message role_upgrade
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- role_upgrade.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this role_upgrade to JSON.
- * @function toJSON
- * @memberof game.role_upgrade
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- role_upgrade.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return role_upgrade;
- })();
- game.role_upgrade_rsp = (function() {
- /**
- * Properties of a role_upgrade_rsp.
- * @memberof game
- * @interface Irole_upgrade_rsp
- * @property {number|Long|null} [errno] role_upgrade_rsp errno
- * @property {number|Long|null} [level] role_upgrade_rsp level
- * @property {number|Long|null} [exp] role_upgrade_rsp exp
- */
- /**
- * Constructs a new role_upgrade_rsp.
- * @memberof game
- * @classdesc Represents a role_upgrade_rsp.
- * @implements Irole_upgrade_rsp
- * @constructor
- * @param {game.Irole_upgrade_rsp=} [properties] Properties to set
- */
- function role_upgrade_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * role_upgrade_rsp errno.
- * @member {number|Long} errno
- * @memberof game.role_upgrade_rsp
- * @instance
- */
- role_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * role_upgrade_rsp level.
- * @member {number|Long} level
- * @memberof game.role_upgrade_rsp
- * @instance
- */
- role_upgrade_rsp.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * role_upgrade_rsp exp.
- * @member {number|Long} exp
- * @memberof game.role_upgrade_rsp
- * @instance
- */
- role_upgrade_rsp.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new role_upgrade_rsp instance using the specified properties.
- * @function create
- * @memberof game.role_upgrade_rsp
- * @static
- * @param {game.Irole_upgrade_rsp=} [properties] Properties to set
- * @returns {game.role_upgrade_rsp} role_upgrade_rsp instance
- */
- role_upgrade_rsp.create = function create(properties) {
- return new role_upgrade_rsp(properties);
- };
- /**
- * Encodes the specified role_upgrade_rsp message. Does not implicitly {@link game.role_upgrade_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.role_upgrade_rsp
- * @static
- * @param {game.Irole_upgrade_rsp} message role_upgrade_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_upgrade_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.level != null && Object.hasOwnProperty.call(message, "level"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.level);
- if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.exp);
- return writer;
- };
- /**
- * Encodes the specified role_upgrade_rsp message, length delimited. Does not implicitly {@link game.role_upgrade_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.role_upgrade_rsp
- * @static
- * @param {game.Irole_upgrade_rsp} message role_upgrade_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a role_upgrade_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.role_upgrade_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.role_upgrade_rsp} role_upgrade_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_upgrade_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_upgrade_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.level = reader.int64();
- break;
- case 3:
- message.exp = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a role_upgrade_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.role_upgrade_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.role_upgrade_rsp} role_upgrade_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a role_upgrade_rsp message.
- * @function verify
- * @memberof game.role_upgrade_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- role_upgrade_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.level != null && message.hasOwnProperty("level"))
- if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
- return "level: integer|Long expected";
- if (message.exp != null && message.hasOwnProperty("exp"))
- if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
- return "exp: integer|Long expected";
- return null;
- };
- /**
- * Creates a role_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.role_upgrade_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.role_upgrade_rsp} role_upgrade_rsp
- */
- role_upgrade_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.role_upgrade_rsp)
- return object;
- let message = new $root.game.role_upgrade_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.level != null)
- if ($util.Long)
- (message.level = $util.Long.fromValue(object.level)).unsigned = false;
- else if (typeof object.level === "string")
- message.level = parseInt(object.level, 10);
- else if (typeof object.level === "number")
- message.level = object.level;
- else if (typeof object.level === "object")
- message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
- if (object.exp != null)
- if ($util.Long)
- (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
- else if (typeof object.exp === "string")
- message.exp = parseInt(object.exp, 10);
- else if (typeof object.exp === "number")
- message.exp = object.exp;
- else if (typeof object.exp === "object")
- message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a role_upgrade_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.role_upgrade_rsp
- * @static
- * @param {game.role_upgrade_rsp} message role_upgrade_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- role_upgrade_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.level = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.exp = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.level != null && message.hasOwnProperty("level"))
- if (typeof message.level === "number")
- object.level = options.longs === String ? String(message.level) : message.level;
- else
- object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
- if (message.exp != null && message.hasOwnProperty("exp"))
- if (typeof message.exp === "number")
- object.exp = options.longs === String ? String(message.exp) : message.exp;
- else
- object.exp = options.longs === String ? $util.Long.prototype.toString.call(message.exp) : options.longs === Number ? new $util.LongBits(message.exp.low >>> 0, message.exp.high >>> 0).toNumber() : message.exp;
- return object;
- };
- /**
- * Converts this role_upgrade_rsp to JSON.
- * @function toJSON
- * @memberof game.role_upgrade_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- role_upgrade_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return role_upgrade_rsp;
- })();
- game.role_rename = (function() {
- /**
- * Properties of a role_rename.
- * @memberof game
- * @interface Irole_rename
- * @property {string|null} [name] role_rename name
- */
- /**
- * Constructs a new role_rename.
- * @memberof game
- * @classdesc Represents a role_rename.
- * @implements Irole_rename
- * @constructor
- * @param {game.Irole_rename=} [properties] Properties to set
- */
- function role_rename(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * role_rename name.
- * @member {string} name
- * @memberof game.role_rename
- * @instance
- */
- role_rename.prototype.name = "";
- /**
- * Creates a new role_rename instance using the specified properties.
- * @function create
- * @memberof game.role_rename
- * @static
- * @param {game.Irole_rename=} [properties] Properties to set
- * @returns {game.role_rename} role_rename instance
- */
- role_rename.create = function create(properties) {
- return new role_rename(properties);
- };
- /**
- * Encodes the specified role_rename message. Does not implicitly {@link game.role_rename.verify|verify} messages.
- * @function encode
- * @memberof game.role_rename
- * @static
- * @param {game.Irole_rename} message role_rename message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_rename.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
- return writer;
- };
- /**
- * Encodes the specified role_rename message, length delimited. Does not implicitly {@link game.role_rename.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.role_rename
- * @static
- * @param {game.Irole_rename} message role_rename message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_rename.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a role_rename message from the specified reader or buffer.
- * @function decode
- * @memberof game.role_rename
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.role_rename} role_rename
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_rename.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_rename();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a role_rename message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.role_rename
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.role_rename} role_rename
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_rename.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a role_rename message.
- * @function verify
- * @memberof game.role_rename
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- role_rename.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.name != null && message.hasOwnProperty("name"))
- if (!$util.isString(message.name))
- return "name: string expected";
- return null;
- };
- /**
- * Creates a role_rename message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.role_rename
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.role_rename} role_rename
- */
- role_rename.fromObject = function fromObject(object) {
- if (object instanceof $root.game.role_rename)
- return object;
- let message = new $root.game.role_rename();
- if (object.name != null)
- message.name = String(object.name);
- return message;
- };
- /**
- * Creates a plain object from a role_rename message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.role_rename
- * @static
- * @param {game.role_rename} message role_rename
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- role_rename.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- object.name = "";
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- return object;
- };
- /**
- * Converts this role_rename to JSON.
- * @function toJSON
- * @memberof game.role_rename
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- role_rename.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return role_rename;
- })();
- game.role_rename_rsp = (function() {
- /**
- * Properties of a role_rename_rsp.
- * @memberof game
- * @interface Irole_rename_rsp
- * @property {number|Long|null} [errno] role_rename_rsp errno
- * @property {string|null} [name] role_rename_rsp name
- * @property {number|Long|null} [time] role_rename_rsp time
- */
- /**
- * Constructs a new role_rename_rsp.
- * @memberof game
- * @classdesc Represents a role_rename_rsp.
- * @implements Irole_rename_rsp
- * @constructor
- * @param {game.Irole_rename_rsp=} [properties] Properties to set
- */
- function role_rename_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * role_rename_rsp errno.
- * @member {number|Long} errno
- * @memberof game.role_rename_rsp
- * @instance
- */
- role_rename_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * role_rename_rsp name.
- * @member {string} name
- * @memberof game.role_rename_rsp
- * @instance
- */
- role_rename_rsp.prototype.name = "";
- /**
- * role_rename_rsp time.
- * @member {number|Long} time
- * @memberof game.role_rename_rsp
- * @instance
- */
- role_rename_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new role_rename_rsp instance using the specified properties.
- * @function create
- * @memberof game.role_rename_rsp
- * @static
- * @param {game.Irole_rename_rsp=} [properties] Properties to set
- * @returns {game.role_rename_rsp} role_rename_rsp instance
- */
- role_rename_rsp.create = function create(properties) {
- return new role_rename_rsp(properties);
- };
- /**
- * Encodes the specified role_rename_rsp message. Does not implicitly {@link game.role_rename_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.role_rename_rsp
- * @static
- * @param {game.Irole_rename_rsp} message role_rename_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_rename_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
- if (message.time != null && Object.hasOwnProperty.call(message, "time"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
- return writer;
- };
- /**
- * Encodes the specified role_rename_rsp message, length delimited. Does not implicitly {@link game.role_rename_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.role_rename_rsp
- * @static
- * @param {game.Irole_rename_rsp} message role_rename_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_rename_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a role_rename_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.role_rename_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.role_rename_rsp} role_rename_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_rename_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_rename_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.name = reader.string();
- break;
- case 3:
- message.time = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a role_rename_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.role_rename_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.role_rename_rsp} role_rename_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_rename_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a role_rename_rsp message.
- * @function verify
- * @memberof game.role_rename_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- role_rename_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.name != null && message.hasOwnProperty("name"))
- if (!$util.isString(message.name))
- return "name: string expected";
- if (message.time != null && message.hasOwnProperty("time"))
- if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
- return "time: integer|Long expected";
- return null;
- };
- /**
- * Creates a role_rename_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.role_rename_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.role_rename_rsp} role_rename_rsp
- */
- role_rename_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.role_rename_rsp)
- return object;
- let message = new $root.game.role_rename_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.name != null)
- message.name = String(object.name);
- if (object.time != null)
- if ($util.Long)
- (message.time = $util.Long.fromValue(object.time)).unsigned = false;
- else if (typeof object.time === "string")
- message.time = parseInt(object.time, 10);
- else if (typeof object.time === "number")
- message.time = object.time;
- else if (typeof object.time === "object")
- message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a role_rename_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.role_rename_rsp
- * @static
- * @param {game.role_rename_rsp} message role_rename_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- role_rename_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.name = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.time = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.time != null && message.hasOwnProperty("time"))
- if (typeof message.time === "number")
- object.time = options.longs === String ? String(message.time) : message.time;
- else
- object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
- return object;
- };
- /**
- * Converts this role_rename_rsp to JSON.
- * @function toJSON
- * @memberof game.role_rename_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- role_rename_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return role_rename_rsp;
- })();
- game.debris_get_data = (function() {
- /**
- * Properties of a debris_get_data.
- * @memberof game
- * @interface Idebris_get_data
- */
- /**
- * Constructs a new debris_get_data.
- * @memberof game
- * @classdesc Represents a debris_get_data.
- * @implements Idebris_get_data
- * @constructor
- * @param {game.Idebris_get_data=} [properties] Properties to set
- */
- function debris_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new debris_get_data instance using the specified properties.
- * @function create
- * @memberof game.debris_get_data
- * @static
- * @param {game.Idebris_get_data=} [properties] Properties to set
- * @returns {game.debris_get_data} debris_get_data instance
- */
- debris_get_data.create = function create(properties) {
- return new debris_get_data(properties);
- };
- /**
- * Encodes the specified debris_get_data message. Does not implicitly {@link game.debris_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.debris_get_data
- * @static
- * @param {game.Idebris_get_data} message debris_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- debris_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified debris_get_data message, length delimited. Does not implicitly {@link game.debris_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.debris_get_data
- * @static
- * @param {game.Idebris_get_data} message debris_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- debris_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a debris_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.debris_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.debris_get_data} debris_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- debris_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.debris_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a debris_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.debris_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.debris_get_data} debris_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- debris_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a debris_get_data message.
- * @function verify
- * @memberof game.debris_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- debris_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a debris_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.debris_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.debris_get_data} debris_get_data
- */
- debris_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.debris_get_data)
- return object;
- return new $root.game.debris_get_data();
- };
- /**
- * Creates a plain object from a debris_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.debris_get_data
- * @static
- * @param {game.debris_get_data} message debris_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- debris_get_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this debris_get_data to JSON.
- * @function toJSON
- * @memberof game.debris_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- debris_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return debris_get_data;
- })();
- game.debris_get_data_rsp = (function() {
- /**
- * Properties of a debris_get_data_rsp.
- * @memberof game
- * @interface Idebris_get_data_rsp
- * @property {number|Long|null} [errno] debris_get_data_rsp errno
- * @property {Array.<game.Iid_num>|null} [list] debris_get_data_rsp list
- */
- /**
- * Constructs a new debris_get_data_rsp.
- * @memberof game
- * @classdesc Represents a debris_get_data_rsp.
- * @implements Idebris_get_data_rsp
- * @constructor
- * @param {game.Idebris_get_data_rsp=} [properties] Properties to set
- */
- function debris_get_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * debris_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.debris_get_data_rsp
- * @instance
- */
- debris_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * debris_get_data_rsp list.
- * @member {Array.<game.Iid_num>} list
- * @memberof game.debris_get_data_rsp
- * @instance
- */
- debris_get_data_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new debris_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.debris_get_data_rsp
- * @static
- * @param {game.Idebris_get_data_rsp=} [properties] Properties to set
- * @returns {game.debris_get_data_rsp} debris_get_data_rsp instance
- */
- debris_get_data_rsp.create = function create(properties) {
- return new debris_get_data_rsp(properties);
- };
- /**
- * Encodes the specified debris_get_data_rsp message. Does not implicitly {@link game.debris_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.debris_get_data_rsp
- * @static
- * @param {game.Idebris_get_data_rsp} message debris_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- debris_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.id_num.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified debris_get_data_rsp message, length delimited. Does not implicitly {@link game.debris_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.debris_get_data_rsp
- * @static
- * @param {game.Idebris_get_data_rsp} message debris_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- debris_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a debris_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.debris_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.debris_get_data_rsp} debris_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- debris_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.debris_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a debris_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.debris_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.debris_get_data_rsp} debris_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- debris_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a debris_get_data_rsp message.
- * @function verify
- * @memberof game.debris_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- debris_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.id_num.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a debris_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.debris_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.debris_get_data_rsp} debris_get_data_rsp
- */
- debris_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.debris_get_data_rsp)
- return object;
- let message = new $root.game.debris_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.debris_get_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.debris_get_data_rsp.list: object expected");
- message.list[i] = $root.game.id_num.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a debris_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.debris_get_data_rsp
- * @static
- * @param {game.debris_get_data_rsp} message debris_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- debris_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.id_num.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this debris_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.debris_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- debris_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return debris_get_data_rsp;
- })();
- game.debris_merge = (function() {
- /**
- * Properties of a debris_merge.
- * @memberof game
- * @interface Idebris_merge
- * @property {number|Long|null} [id] debris_merge id
- */
- /**
- * Constructs a new debris_merge.
- * @memberof game
- * @classdesc Represents a debris_merge.
- * @implements Idebris_merge
- * @constructor
- * @param {game.Idebris_merge=} [properties] Properties to set
- */
- function debris_merge(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * debris_merge id.
- * @member {number|Long} id
- * @memberof game.debris_merge
- * @instance
- */
- debris_merge.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new debris_merge instance using the specified properties.
- * @function create
- * @memberof game.debris_merge
- * @static
- * @param {game.Idebris_merge=} [properties] Properties to set
- * @returns {game.debris_merge} debris_merge instance
- */
- debris_merge.create = function create(properties) {
- return new debris_merge(properties);
- };
- /**
- * Encodes the specified debris_merge message. Does not implicitly {@link game.debris_merge.verify|verify} messages.
- * @function encode
- * @memberof game.debris_merge
- * @static
- * @param {game.Idebris_merge} message debris_merge message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- debris_merge.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified debris_merge message, length delimited. Does not implicitly {@link game.debris_merge.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.debris_merge
- * @static
- * @param {game.Idebris_merge} message debris_merge message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- debris_merge.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a debris_merge message from the specified reader or buffer.
- * @function decode
- * @memberof game.debris_merge
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.debris_merge} debris_merge
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- debris_merge.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.debris_merge();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a debris_merge message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.debris_merge
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.debris_merge} debris_merge
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- debris_merge.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a debris_merge message.
- * @function verify
- * @memberof game.debris_merge
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- debris_merge.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a debris_merge message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.debris_merge
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.debris_merge} debris_merge
- */
- debris_merge.fromObject = function fromObject(object) {
- if (object instanceof $root.game.debris_merge)
- return object;
- let message = new $root.game.debris_merge();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a debris_merge message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.debris_merge
- * @static
- * @param {game.debris_merge} message debris_merge
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- debris_merge.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this debris_merge to JSON.
- * @function toJSON
- * @memberof game.debris_merge
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- debris_merge.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return debris_merge;
- })();
- game.debris_merge_rsp = (function() {
- /**
- * Properties of a debris_merge_rsp.
- * @memberof game
- * @interface Idebris_merge_rsp
- * @property {number|Long|null} [errno] debris_merge_rsp errno
- */
- /**
- * Constructs a new debris_merge_rsp.
- * @memberof game
- * @classdesc Represents a debris_merge_rsp.
- * @implements Idebris_merge_rsp
- * @constructor
- * @param {game.Idebris_merge_rsp=} [properties] Properties to set
- */
- function debris_merge_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * debris_merge_rsp errno.
- * @member {number|Long} errno
- * @memberof game.debris_merge_rsp
- * @instance
- */
- debris_merge_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new debris_merge_rsp instance using the specified properties.
- * @function create
- * @memberof game.debris_merge_rsp
- * @static
- * @param {game.Idebris_merge_rsp=} [properties] Properties to set
- * @returns {game.debris_merge_rsp} debris_merge_rsp instance
- */
- debris_merge_rsp.create = function create(properties) {
- return new debris_merge_rsp(properties);
- };
- /**
- * Encodes the specified debris_merge_rsp message. Does not implicitly {@link game.debris_merge_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.debris_merge_rsp
- * @static
- * @param {game.Idebris_merge_rsp} message debris_merge_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- debris_merge_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified debris_merge_rsp message, length delimited. Does not implicitly {@link game.debris_merge_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.debris_merge_rsp
- * @static
- * @param {game.Idebris_merge_rsp} message debris_merge_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- debris_merge_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a debris_merge_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.debris_merge_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.debris_merge_rsp} debris_merge_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- debris_merge_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.debris_merge_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a debris_merge_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.debris_merge_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.debris_merge_rsp} debris_merge_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- debris_merge_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a debris_merge_rsp message.
- * @function verify
- * @memberof game.debris_merge_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- debris_merge_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a debris_merge_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.debris_merge_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.debris_merge_rsp} debris_merge_rsp
- */
- debris_merge_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.debris_merge_rsp)
- return object;
- let message = new $root.game.debris_merge_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a debris_merge_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.debris_merge_rsp
- * @static
- * @param {game.debris_merge_rsp} message debris_merge_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- debris_merge_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this debris_merge_rsp to JSON.
- * @function toJSON
- * @memberof game.debris_merge_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- debris_merge_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return debris_merge_rsp;
- })();
- game.equip_get_data = (function() {
- /**
- * Properties of an equip_get_data.
- * @memberof game
- * @interface Iequip_get_data
- */
- /**
- * Constructs a new equip_get_data.
- * @memberof game
- * @classdesc Represents an equip_get_data.
- * @implements Iequip_get_data
- * @constructor
- * @param {game.Iequip_get_data=} [properties] Properties to set
- */
- function equip_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new equip_get_data instance using the specified properties.
- * @function create
- * @memberof game.equip_get_data
- * @static
- * @param {game.Iequip_get_data=} [properties] Properties to set
- * @returns {game.equip_get_data} equip_get_data instance
- */
- equip_get_data.create = function create(properties) {
- return new equip_get_data(properties);
- };
- /**
- * Encodes the specified equip_get_data message. Does not implicitly {@link game.equip_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.equip_get_data
- * @static
- * @param {game.Iequip_get_data} message equip_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified equip_get_data message, length delimited. Does not implicitly {@link game.equip_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.equip_get_data
- * @static
- * @param {game.Iequip_get_data} message equip_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an equip_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.equip_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.equip_get_data} equip_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an equip_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.equip_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.equip_get_data} equip_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an equip_get_data message.
- * @function verify
- * @memberof game.equip_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- equip_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates an equip_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.equip_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.equip_get_data} equip_get_data
- */
- equip_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.equip_get_data)
- return object;
- return new $root.game.equip_get_data();
- };
- /**
- * Creates a plain object from an equip_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.equip_get_data
- * @static
- * @param {game.equip_get_data} message equip_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- equip_get_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this equip_get_data to JSON.
- * @function toJSON
- * @memberof game.equip_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- equip_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return equip_get_data;
- })();
- game.equip_get_data_rsp = (function() {
- /**
- * Properties of an equip_get_data_rsp.
- * @memberof game
- * @interface Iequip_get_data_rsp
- * @property {number|Long|null} [errno] equip_get_data_rsp errno
- * @property {Array.<game.Iequip>|null} [list] equip_get_data_rsp list
- */
- /**
- * Constructs a new equip_get_data_rsp.
- * @memberof game
- * @classdesc Represents an equip_get_data_rsp.
- * @implements Iequip_get_data_rsp
- * @constructor
- * @param {game.Iequip_get_data_rsp=} [properties] Properties to set
- */
- function equip_get_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * equip_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.equip_get_data_rsp
- * @instance
- */
- equip_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * equip_get_data_rsp list.
- * @member {Array.<game.Iequip>} list
- * @memberof game.equip_get_data_rsp
- * @instance
- */
- equip_get_data_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new equip_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.equip_get_data_rsp
- * @static
- * @param {game.Iequip_get_data_rsp=} [properties] Properties to set
- * @returns {game.equip_get_data_rsp} equip_get_data_rsp instance
- */
- equip_get_data_rsp.create = function create(properties) {
- return new equip_get_data_rsp(properties);
- };
- /**
- * Encodes the specified equip_get_data_rsp message. Does not implicitly {@link game.equip_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.equip_get_data_rsp
- * @static
- * @param {game.Iequip_get_data_rsp} message equip_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.equip.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified equip_get_data_rsp message, length delimited. Does not implicitly {@link game.equip_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.equip_get_data_rsp
- * @static
- * @param {game.Iequip_get_data_rsp} message equip_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an equip_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.equip_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.equip_get_data_rsp} equip_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.equip.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an equip_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.equip_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.equip_get_data_rsp} equip_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an equip_get_data_rsp message.
- * @function verify
- * @memberof game.equip_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- equip_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.equip.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates an equip_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.equip_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.equip_get_data_rsp} equip_get_data_rsp
- */
- equip_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.equip_get_data_rsp)
- return object;
- let message = new $root.game.equip_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.equip_get_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.equip_get_data_rsp.list: object expected");
- message.list[i] = $root.game.equip.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from an equip_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.equip_get_data_rsp
- * @static
- * @param {game.equip_get_data_rsp} message equip_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- equip_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.equip.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this equip_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.equip_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- equip_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return equip_get_data_rsp;
- })();
- game.equip_upgrade = (function() {
- /**
- * Properties of an equip_upgrade.
- * @memberof game
- * @interface Iequip_upgrade
- * @property {string|null} [sid] equip_upgrade sid
- * @property {number|Long|null} [num] equip_upgrade num
- */
- /**
- * Constructs a new equip_upgrade.
- * @memberof game
- * @classdesc Represents an equip_upgrade.
- * @implements Iequip_upgrade
- * @constructor
- * @param {game.Iequip_upgrade=} [properties] Properties to set
- */
- function equip_upgrade(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * equip_upgrade sid.
- * @member {string} sid
- * @memberof game.equip_upgrade
- * @instance
- */
- equip_upgrade.prototype.sid = "";
- /**
- * equip_upgrade num.
- * @member {number|Long} num
- * @memberof game.equip_upgrade
- * @instance
- */
- equip_upgrade.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new equip_upgrade instance using the specified properties.
- * @function create
- * @memberof game.equip_upgrade
- * @static
- * @param {game.Iequip_upgrade=} [properties] Properties to set
- * @returns {game.equip_upgrade} equip_upgrade instance
- */
- equip_upgrade.create = function create(properties) {
- return new equip_upgrade(properties);
- };
- /**
- * Encodes the specified equip_upgrade message. Does not implicitly {@link game.equip_upgrade.verify|verify} messages.
- * @function encode
- * @memberof game.equip_upgrade
- * @static
- * @param {game.Iequip_upgrade} message equip_upgrade message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_upgrade.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
- return writer;
- };
- /**
- * Encodes the specified equip_upgrade message, length delimited. Does not implicitly {@link game.equip_upgrade.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.equip_upgrade
- * @static
- * @param {game.Iequip_upgrade} message equip_upgrade message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an equip_upgrade message from the specified reader or buffer.
- * @function decode
- * @memberof game.equip_upgrade
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.equip_upgrade} equip_upgrade
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_upgrade.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_upgrade();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sid = reader.string();
- break;
- case 2:
- message.num = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an equip_upgrade message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.equip_upgrade
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.equip_upgrade} equip_upgrade
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_upgrade.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an equip_upgrade message.
- * @function verify
- * @memberof game.equip_upgrade
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- equip_upgrade.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- return null;
- };
- /**
- * Creates an equip_upgrade message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.equip_upgrade
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.equip_upgrade} equip_upgrade
- */
- equip_upgrade.fromObject = function fromObject(object) {
- if (object instanceof $root.game.equip_upgrade)
- return object;
- let message = new $root.game.equip_upgrade();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an equip_upgrade message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.equip_upgrade
- * @static
- * @param {game.equip_upgrade} message equip_upgrade
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- equip_upgrade.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.sid = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- }
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- return object;
- };
- /**
- * Converts this equip_upgrade to JSON.
- * @function toJSON
- * @memberof game.equip_upgrade
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- equip_upgrade.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return equip_upgrade;
- })();
- game.equip_upgrade_rsp = (function() {
- /**
- * Properties of an equip_upgrade_rsp.
- * @memberof game
- * @interface Iequip_upgrade_rsp
- * @property {number|Long|null} [errno] equip_upgrade_rsp errno
- * @property {game.Iequip|null} [data] equip_upgrade_rsp data
- */
- /**
- * Constructs a new equip_upgrade_rsp.
- * @memberof game
- * @classdesc Represents an equip_upgrade_rsp.
- * @implements Iequip_upgrade_rsp
- * @constructor
- * @param {game.Iequip_upgrade_rsp=} [properties] Properties to set
- */
- function equip_upgrade_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * equip_upgrade_rsp errno.
- * @member {number|Long} errno
- * @memberof game.equip_upgrade_rsp
- * @instance
- */
- equip_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * equip_upgrade_rsp data.
- * @member {game.Iequip|null|undefined} data
- * @memberof game.equip_upgrade_rsp
- * @instance
- */
- equip_upgrade_rsp.prototype.data = null;
- /**
- * Creates a new equip_upgrade_rsp instance using the specified properties.
- * @function create
- * @memberof game.equip_upgrade_rsp
- * @static
- * @param {game.Iequip_upgrade_rsp=} [properties] Properties to set
- * @returns {game.equip_upgrade_rsp} equip_upgrade_rsp instance
- */
- equip_upgrade_rsp.create = function create(properties) {
- return new equip_upgrade_rsp(properties);
- };
- /**
- * Encodes the specified equip_upgrade_rsp message. Does not implicitly {@link game.equip_upgrade_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.equip_upgrade_rsp
- * @static
- * @param {game.Iequip_upgrade_rsp} message equip_upgrade_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_upgrade_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.equip.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified equip_upgrade_rsp message, length delimited. Does not implicitly {@link game.equip_upgrade_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.equip_upgrade_rsp
- * @static
- * @param {game.Iequip_upgrade_rsp} message equip_upgrade_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an equip_upgrade_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.equip_upgrade_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.equip_upgrade_rsp} equip_upgrade_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_upgrade_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_upgrade_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.equip.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an equip_upgrade_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.equip_upgrade_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.equip_upgrade_rsp} equip_upgrade_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an equip_upgrade_rsp message.
- * @function verify
- * @memberof game.equip_upgrade_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- equip_upgrade_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.equip.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates an equip_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.equip_upgrade_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.equip_upgrade_rsp} equip_upgrade_rsp
- */
- equip_upgrade_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.equip_upgrade_rsp)
- return object;
- let message = new $root.game.equip_upgrade_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.equip_upgrade_rsp.data: object expected");
- message.data = $root.game.equip.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from an equip_upgrade_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.equip_upgrade_rsp
- * @static
- * @param {game.equip_upgrade_rsp} message equip_upgrade_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- equip_upgrade_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.equip.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this equip_upgrade_rsp to JSON.
- * @function toJSON
- * @memberof game.equip_upgrade_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- equip_upgrade_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return equip_upgrade_rsp;
- })();
- game.equip_upgrade_star = (function() {
- /**
- * Properties of an equip_upgrade_star.
- * @memberof game
- * @interface Iequip_upgrade_star
- * @property {string|null} [sid] equip_upgrade_star sid
- * @property {Array.<string>|null} [same] equip_upgrade_star same
- * @property {Array.<string>|null} [other] equip_upgrade_star other
- * @property {game.Iid_num|null} [currency] equip_upgrade_star currency
- */
- /**
- * Constructs a new equip_upgrade_star.
- * @memberof game
- * @classdesc Represents an equip_upgrade_star.
- * @implements Iequip_upgrade_star
- * @constructor
- * @param {game.Iequip_upgrade_star=} [properties] Properties to set
- */
- function equip_upgrade_star(properties) {
- this.same = [];
- this.other = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * equip_upgrade_star sid.
- * @member {string} sid
- * @memberof game.equip_upgrade_star
- * @instance
- */
- equip_upgrade_star.prototype.sid = "";
- /**
- * equip_upgrade_star same.
- * @member {Array.<string>} same
- * @memberof game.equip_upgrade_star
- * @instance
- */
- equip_upgrade_star.prototype.same = $util.emptyArray;
- /**
- * equip_upgrade_star other.
- * @member {Array.<string>} other
- * @memberof game.equip_upgrade_star
- * @instance
- */
- equip_upgrade_star.prototype.other = $util.emptyArray;
- /**
- * equip_upgrade_star currency.
- * @member {game.Iid_num|null|undefined} currency
- * @memberof game.equip_upgrade_star
- * @instance
- */
- equip_upgrade_star.prototype.currency = null;
- /**
- * Creates a new equip_upgrade_star instance using the specified properties.
- * @function create
- * @memberof game.equip_upgrade_star
- * @static
- * @param {game.Iequip_upgrade_star=} [properties] Properties to set
- * @returns {game.equip_upgrade_star} equip_upgrade_star instance
- */
- equip_upgrade_star.create = function create(properties) {
- return new equip_upgrade_star(properties);
- };
- /**
- * Encodes the specified equip_upgrade_star message. Does not implicitly {@link game.equip_upgrade_star.verify|verify} messages.
- * @function encode
- * @memberof game.equip_upgrade_star
- * @static
- * @param {game.Iequip_upgrade_star} message equip_upgrade_star message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_upgrade_star.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
- if (message.same != null && message.same.length)
- for (let i = 0; i < message.same.length; ++i)
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.same[i]);
- if (message.other != null && message.other.length)
- for (let i = 0; i < message.other.length; ++i)
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.other[i]);
- if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
- $root.game.id_num.encode(message.currency, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified equip_upgrade_star message, length delimited. Does not implicitly {@link game.equip_upgrade_star.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.equip_upgrade_star
- * @static
- * @param {game.Iequip_upgrade_star} message equip_upgrade_star message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an equip_upgrade_star message from the specified reader or buffer.
- * @function decode
- * @memberof game.equip_upgrade_star
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.equip_upgrade_star} equip_upgrade_star
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_upgrade_star.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_upgrade_star();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sid = reader.string();
- break;
- case 2:
- if (!(message.same && message.same.length))
- message.same = [];
- message.same.push(reader.string());
- break;
- case 3:
- if (!(message.other && message.other.length))
- message.other = [];
- message.other.push(reader.string());
- break;
- case 4:
- message.currency = $root.game.id_num.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an equip_upgrade_star message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.equip_upgrade_star
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.equip_upgrade_star} equip_upgrade_star
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an equip_upgrade_star message.
- * @function verify
- * @memberof game.equip_upgrade_star
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- equip_upgrade_star.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.same != null && message.hasOwnProperty("same")) {
- if (!Array.isArray(message.same))
- return "same: array expected";
- for (let i = 0; i < message.same.length; ++i)
- if (!$util.isString(message.same[i]))
- return "same: string[] expected";
- }
- if (message.other != null && message.hasOwnProperty("other")) {
- if (!Array.isArray(message.other))
- return "other: array expected";
- for (let i = 0; i < message.other.length; ++i)
- if (!$util.isString(message.other[i]))
- return "other: string[] expected";
- }
- if (message.currency != null && message.hasOwnProperty("currency")) {
- let error = $root.game.id_num.verify(message.currency);
- if (error)
- return "currency." + error;
- }
- return null;
- };
- /**
- * Creates an equip_upgrade_star message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.equip_upgrade_star
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.equip_upgrade_star} equip_upgrade_star
- */
- equip_upgrade_star.fromObject = function fromObject(object) {
- if (object instanceof $root.game.equip_upgrade_star)
- return object;
- let message = new $root.game.equip_upgrade_star();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.same) {
- if (!Array.isArray(object.same))
- throw TypeError(".game.equip_upgrade_star.same: array expected");
- message.same = [];
- for (let i = 0; i < object.same.length; ++i)
- message.same[i] = String(object.same[i]);
- }
- if (object.other) {
- if (!Array.isArray(object.other))
- throw TypeError(".game.equip_upgrade_star.other: array expected");
- message.other = [];
- for (let i = 0; i < object.other.length; ++i)
- message.other[i] = String(object.other[i]);
- }
- if (object.currency != null) {
- if (typeof object.currency !== "object")
- throw TypeError(".game.equip_upgrade_star.currency: object expected");
- message.currency = $root.game.id_num.fromObject(object.currency);
- }
- return message;
- };
- /**
- * Creates a plain object from an equip_upgrade_star message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.equip_upgrade_star
- * @static
- * @param {game.equip_upgrade_star} message equip_upgrade_star
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- equip_upgrade_star.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.same = [];
- object.other = [];
- }
- if (options.defaults) {
- object.sid = "";
- object.currency = null;
- }
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.same && message.same.length) {
- object.same = [];
- for (let j = 0; j < message.same.length; ++j)
- object.same[j] = message.same[j];
- }
- if (message.other && message.other.length) {
- object.other = [];
- for (let j = 0; j < message.other.length; ++j)
- object.other[j] = message.other[j];
- }
- if (message.currency != null && message.hasOwnProperty("currency"))
- object.currency = $root.game.id_num.toObject(message.currency, options);
- return object;
- };
- /**
- * Converts this equip_upgrade_star to JSON.
- * @function toJSON
- * @memberof game.equip_upgrade_star
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- equip_upgrade_star.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return equip_upgrade_star;
- })();
- game.equip_upgrade_star_rsp = (function() {
- /**
- * Properties of an equip_upgrade_star_rsp.
- * @memberof game
- * @interface Iequip_upgrade_star_rsp
- * @property {number|Long|null} [errno] equip_upgrade_star_rsp errno
- * @property {game.Iequip|null} [data] equip_upgrade_star_rsp data
- * @property {Array.<string>|null} [same] equip_upgrade_star_rsp same
- * @property {Array.<string>|null} [other] equip_upgrade_star_rsp other
- * @property {game.Iid_num|null} [currency] equip_upgrade_star_rsp currency
- */
- /**
- * Constructs a new equip_upgrade_star_rsp.
- * @memberof game
- * @classdesc Represents an equip_upgrade_star_rsp.
- * @implements Iequip_upgrade_star_rsp
- * @constructor
- * @param {game.Iequip_upgrade_star_rsp=} [properties] Properties to set
- */
- function equip_upgrade_star_rsp(properties) {
- this.same = [];
- this.other = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * equip_upgrade_star_rsp errno.
- * @member {number|Long} errno
- * @memberof game.equip_upgrade_star_rsp
- * @instance
- */
- equip_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * equip_upgrade_star_rsp data.
- * @member {game.Iequip|null|undefined} data
- * @memberof game.equip_upgrade_star_rsp
- * @instance
- */
- equip_upgrade_star_rsp.prototype.data = null;
- /**
- * equip_upgrade_star_rsp same.
- * @member {Array.<string>} same
- * @memberof game.equip_upgrade_star_rsp
- * @instance
- */
- equip_upgrade_star_rsp.prototype.same = $util.emptyArray;
- /**
- * equip_upgrade_star_rsp other.
- * @member {Array.<string>} other
- * @memberof game.equip_upgrade_star_rsp
- * @instance
- */
- equip_upgrade_star_rsp.prototype.other = $util.emptyArray;
- /**
- * equip_upgrade_star_rsp currency.
- * @member {game.Iid_num|null|undefined} currency
- * @memberof game.equip_upgrade_star_rsp
- * @instance
- */
- equip_upgrade_star_rsp.prototype.currency = null;
- /**
- * Creates a new equip_upgrade_star_rsp instance using the specified properties.
- * @function create
- * @memberof game.equip_upgrade_star_rsp
- * @static
- * @param {game.Iequip_upgrade_star_rsp=} [properties] Properties to set
- * @returns {game.equip_upgrade_star_rsp} equip_upgrade_star_rsp instance
- */
- equip_upgrade_star_rsp.create = function create(properties) {
- return new equip_upgrade_star_rsp(properties);
- };
- /**
- * Encodes the specified equip_upgrade_star_rsp message. Does not implicitly {@link game.equip_upgrade_star_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.equip_upgrade_star_rsp
- * @static
- * @param {game.Iequip_upgrade_star_rsp} message equip_upgrade_star_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_upgrade_star_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.equip.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- if (message.same != null && message.same.length)
- for (let i = 0; i < message.same.length; ++i)
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.same[i]);
- if (message.other != null && message.other.length)
- for (let i = 0; i < message.other.length; ++i)
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.other[i]);
- if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
- $root.game.id_num.encode(message.currency, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified equip_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.equip_upgrade_star_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.equip_upgrade_star_rsp
- * @static
- * @param {game.Iequip_upgrade_star_rsp} message equip_upgrade_star_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an equip_upgrade_star_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.equip_upgrade_star_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.equip_upgrade_star_rsp} equip_upgrade_star_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_upgrade_star_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_upgrade_star_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.equip.decode(reader, reader.uint32());
- break;
- case 3:
- if (!(message.same && message.same.length))
- message.same = [];
- message.same.push(reader.string());
- break;
- case 4:
- if (!(message.other && message.other.length))
- message.other = [];
- message.other.push(reader.string());
- break;
- case 5:
- message.currency = $root.game.id_num.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an equip_upgrade_star_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.equip_upgrade_star_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.equip_upgrade_star_rsp} equip_upgrade_star_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an equip_upgrade_star_rsp message.
- * @function verify
- * @memberof game.equip_upgrade_star_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- equip_upgrade_star_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.equip.verify(message.data);
- if (error)
- return "data." + error;
- }
- if (message.same != null && message.hasOwnProperty("same")) {
- if (!Array.isArray(message.same))
- return "same: array expected";
- for (let i = 0; i < message.same.length; ++i)
- if (!$util.isString(message.same[i]))
- return "same: string[] expected";
- }
- if (message.other != null && message.hasOwnProperty("other")) {
- if (!Array.isArray(message.other))
- return "other: array expected";
- for (let i = 0; i < message.other.length; ++i)
- if (!$util.isString(message.other[i]))
- return "other: string[] expected";
- }
- if (message.currency != null && message.hasOwnProperty("currency")) {
- let error = $root.game.id_num.verify(message.currency);
- if (error)
- return "currency." + error;
- }
- return null;
- };
- /**
- * Creates an equip_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.equip_upgrade_star_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.equip_upgrade_star_rsp} equip_upgrade_star_rsp
- */
- equip_upgrade_star_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.equip_upgrade_star_rsp)
- return object;
- let message = new $root.game.equip_upgrade_star_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.equip_upgrade_star_rsp.data: object expected");
- message.data = $root.game.equip.fromObject(object.data);
- }
- if (object.same) {
- if (!Array.isArray(object.same))
- throw TypeError(".game.equip_upgrade_star_rsp.same: array expected");
- message.same = [];
- for (let i = 0; i < object.same.length; ++i)
- message.same[i] = String(object.same[i]);
- }
- if (object.other) {
- if (!Array.isArray(object.other))
- throw TypeError(".game.equip_upgrade_star_rsp.other: array expected");
- message.other = [];
- for (let i = 0; i < object.other.length; ++i)
- message.other[i] = String(object.other[i]);
- }
- if (object.currency != null) {
- if (typeof object.currency !== "object")
- throw TypeError(".game.equip_upgrade_star_rsp.currency: object expected");
- message.currency = $root.game.id_num.fromObject(object.currency);
- }
- return message;
- };
- /**
- * Creates a plain object from an equip_upgrade_star_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.equip_upgrade_star_rsp
- * @static
- * @param {game.equip_upgrade_star_rsp} message equip_upgrade_star_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- equip_upgrade_star_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.same = [];
- object.other = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- object.currency = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.equip.toObject(message.data, options);
- if (message.same && message.same.length) {
- object.same = [];
- for (let j = 0; j < message.same.length; ++j)
- object.same[j] = message.same[j];
- }
- if (message.other && message.other.length) {
- object.other = [];
- for (let j = 0; j < message.other.length; ++j)
- object.other[j] = message.other[j];
- }
- if (message.currency != null && message.hasOwnProperty("currency"))
- object.currency = $root.game.id_num.toObject(message.currency, options);
- return object;
- };
- /**
- * Converts this equip_upgrade_star_rsp to JSON.
- * @function toJSON
- * @memberof game.equip_upgrade_star_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- equip_upgrade_star_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return equip_upgrade_star_rsp;
- })();
- game.equip_onekey_upgrade_star = (function() {
- /**
- * Properties of an equip_onekey_upgrade_star.
- * @memberof game
- * @interface Iequip_onekey_upgrade_star
- */
- /**
- * Constructs a new equip_onekey_upgrade_star.
- * @memberof game
- * @classdesc Represents an equip_onekey_upgrade_star.
- * @implements Iequip_onekey_upgrade_star
- * @constructor
- * @param {game.Iequip_onekey_upgrade_star=} [properties] Properties to set
- */
- function equip_onekey_upgrade_star(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new equip_onekey_upgrade_star instance using the specified properties.
- * @function create
- * @memberof game.equip_onekey_upgrade_star
- * @static
- * @param {game.Iequip_onekey_upgrade_star=} [properties] Properties to set
- * @returns {game.equip_onekey_upgrade_star} equip_onekey_upgrade_star instance
- */
- equip_onekey_upgrade_star.create = function create(properties) {
- return new equip_onekey_upgrade_star(properties);
- };
- /**
- * Encodes the specified equip_onekey_upgrade_star message. Does not implicitly {@link game.equip_onekey_upgrade_star.verify|verify} messages.
- * @function encode
- * @memberof game.equip_onekey_upgrade_star
- * @static
- * @param {game.Iequip_onekey_upgrade_star} message equip_onekey_upgrade_star message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_onekey_upgrade_star.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified equip_onekey_upgrade_star message, length delimited. Does not implicitly {@link game.equip_onekey_upgrade_star.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.equip_onekey_upgrade_star
- * @static
- * @param {game.Iequip_onekey_upgrade_star} message equip_onekey_upgrade_star message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_onekey_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an equip_onekey_upgrade_star message from the specified reader or buffer.
- * @function decode
- * @memberof game.equip_onekey_upgrade_star
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.equip_onekey_upgrade_star} equip_onekey_upgrade_star
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_onekey_upgrade_star.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_onekey_upgrade_star();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an equip_onekey_upgrade_star message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.equip_onekey_upgrade_star
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.equip_onekey_upgrade_star} equip_onekey_upgrade_star
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_onekey_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an equip_onekey_upgrade_star message.
- * @function verify
- * @memberof game.equip_onekey_upgrade_star
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- equip_onekey_upgrade_star.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates an equip_onekey_upgrade_star message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.equip_onekey_upgrade_star
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.equip_onekey_upgrade_star} equip_onekey_upgrade_star
- */
- equip_onekey_upgrade_star.fromObject = function fromObject(object) {
- if (object instanceof $root.game.equip_onekey_upgrade_star)
- return object;
- return new $root.game.equip_onekey_upgrade_star();
- };
- /**
- * Creates a plain object from an equip_onekey_upgrade_star message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.equip_onekey_upgrade_star
- * @static
- * @param {game.equip_onekey_upgrade_star} message equip_onekey_upgrade_star
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- equip_onekey_upgrade_star.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this equip_onekey_upgrade_star to JSON.
- * @function toJSON
- * @memberof game.equip_onekey_upgrade_star
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- equip_onekey_upgrade_star.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return equip_onekey_upgrade_star;
- })();
- game.equip_onekey_upgrade_star_rsp = (function() {
- /**
- * Properties of an equip_onekey_upgrade_star_rsp.
- * @memberof game
- * @interface Iequip_onekey_upgrade_star_rsp
- * @property {number|Long|null} [errno] equip_onekey_upgrade_star_rsp errno
- * @property {Array.<string>|null} [delList] equip_onekey_upgrade_star_rsp delList
- * @property {Array.<game.Iequip>|null} [changeList] equip_onekey_upgrade_star_rsp changeList
- */
- /**
- * Constructs a new equip_onekey_upgrade_star_rsp.
- * @memberof game
- * @classdesc Represents an equip_onekey_upgrade_star_rsp.
- * @implements Iequip_onekey_upgrade_star_rsp
- * @constructor
- * @param {game.Iequip_onekey_upgrade_star_rsp=} [properties] Properties to set
- */
- function equip_onekey_upgrade_star_rsp(properties) {
- this.delList = [];
- this.changeList = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * equip_onekey_upgrade_star_rsp errno.
- * @member {number|Long} errno
- * @memberof game.equip_onekey_upgrade_star_rsp
- * @instance
- */
- equip_onekey_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * equip_onekey_upgrade_star_rsp delList.
- * @member {Array.<string>} delList
- * @memberof game.equip_onekey_upgrade_star_rsp
- * @instance
- */
- equip_onekey_upgrade_star_rsp.prototype.delList = $util.emptyArray;
- /**
- * equip_onekey_upgrade_star_rsp changeList.
- * @member {Array.<game.Iequip>} changeList
- * @memberof game.equip_onekey_upgrade_star_rsp
- * @instance
- */
- equip_onekey_upgrade_star_rsp.prototype.changeList = $util.emptyArray;
- /**
- * Creates a new equip_onekey_upgrade_star_rsp instance using the specified properties.
- * @function create
- * @memberof game.equip_onekey_upgrade_star_rsp
- * @static
- * @param {game.Iequip_onekey_upgrade_star_rsp=} [properties] Properties to set
- * @returns {game.equip_onekey_upgrade_star_rsp} equip_onekey_upgrade_star_rsp instance
- */
- equip_onekey_upgrade_star_rsp.create = function create(properties) {
- return new equip_onekey_upgrade_star_rsp(properties);
- };
- /**
- * Encodes the specified equip_onekey_upgrade_star_rsp message. Does not implicitly {@link game.equip_onekey_upgrade_star_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.equip_onekey_upgrade_star_rsp
- * @static
- * @param {game.Iequip_onekey_upgrade_star_rsp} message equip_onekey_upgrade_star_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_onekey_upgrade_star_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.delList != null && message.delList.length)
- for (let i = 0; i < message.delList.length; ++i)
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.delList[i]);
- if (message.changeList != null && message.changeList.length)
- for (let i = 0; i < message.changeList.length; ++i)
- $root.game.equip.encode(message.changeList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified equip_onekey_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.equip_onekey_upgrade_star_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.equip_onekey_upgrade_star_rsp
- * @static
- * @param {game.Iequip_onekey_upgrade_star_rsp} message equip_onekey_upgrade_star_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_onekey_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an equip_onekey_upgrade_star_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.equip_onekey_upgrade_star_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.equip_onekey_upgrade_star_rsp} equip_onekey_upgrade_star_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_onekey_upgrade_star_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_onekey_upgrade_star_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.delList && message.delList.length))
- message.delList = [];
- message.delList.push(reader.string());
- break;
- case 3:
- if (!(message.changeList && message.changeList.length))
- message.changeList = [];
- message.changeList.push($root.game.equip.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an equip_onekey_upgrade_star_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.equip_onekey_upgrade_star_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.equip_onekey_upgrade_star_rsp} equip_onekey_upgrade_star_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_onekey_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an equip_onekey_upgrade_star_rsp message.
- * @function verify
- * @memberof game.equip_onekey_upgrade_star_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- equip_onekey_upgrade_star_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.delList != null && message.hasOwnProperty("delList")) {
- if (!Array.isArray(message.delList))
- return "delList: array expected";
- for (let i = 0; i < message.delList.length; ++i)
- if (!$util.isString(message.delList[i]))
- return "delList: string[] expected";
- }
- if (message.changeList != null && message.hasOwnProperty("changeList")) {
- if (!Array.isArray(message.changeList))
- return "changeList: array expected";
- for (let i = 0; i < message.changeList.length; ++i) {
- let error = $root.game.equip.verify(message.changeList[i]);
- if (error)
- return "changeList." + error;
- }
- }
- return null;
- };
- /**
- * Creates an equip_onekey_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.equip_onekey_upgrade_star_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.equip_onekey_upgrade_star_rsp} equip_onekey_upgrade_star_rsp
- */
- equip_onekey_upgrade_star_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.equip_onekey_upgrade_star_rsp)
- return object;
- let message = new $root.game.equip_onekey_upgrade_star_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.delList) {
- if (!Array.isArray(object.delList))
- throw TypeError(".game.equip_onekey_upgrade_star_rsp.delList: array expected");
- message.delList = [];
- for (let i = 0; i < object.delList.length; ++i)
- message.delList[i] = String(object.delList[i]);
- }
- if (object.changeList) {
- if (!Array.isArray(object.changeList))
- throw TypeError(".game.equip_onekey_upgrade_star_rsp.changeList: array expected");
- message.changeList = [];
- for (let i = 0; i < object.changeList.length; ++i) {
- if (typeof object.changeList[i] !== "object")
- throw TypeError(".game.equip_onekey_upgrade_star_rsp.changeList: object expected");
- message.changeList[i] = $root.game.equip.fromObject(object.changeList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from an equip_onekey_upgrade_star_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.equip_onekey_upgrade_star_rsp
- * @static
- * @param {game.equip_onekey_upgrade_star_rsp} message equip_onekey_upgrade_star_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- equip_onekey_upgrade_star_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.delList = [];
- object.changeList = [];
- }
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.delList && message.delList.length) {
- object.delList = [];
- for (let j = 0; j < message.delList.length; ++j)
- object.delList[j] = message.delList[j];
- }
- if (message.changeList && message.changeList.length) {
- object.changeList = [];
- for (let j = 0; j < message.changeList.length; ++j)
- object.changeList[j] = $root.game.equip.toObject(message.changeList[j], options);
- }
- return object;
- };
- /**
- * Converts this equip_onekey_upgrade_star_rsp to JSON.
- * @function toJSON
- * @memberof game.equip_onekey_upgrade_star_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- equip_onekey_upgrade_star_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return equip_onekey_upgrade_star_rsp;
- })();
- game.equip_reset = (function() {
- /**
- * Properties of an equip_reset.
- * @memberof game
- * @interface Iequip_reset
- * @property {boolean|null} [level] equip_reset level
- * @property {string|null} [sid] equip_reset sid
- */
- /**
- * Constructs a new equip_reset.
- * @memberof game
- * @classdesc Represents an equip_reset.
- * @implements Iequip_reset
- * @constructor
- * @param {game.Iequip_reset=} [properties] Properties to set
- */
- function equip_reset(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * equip_reset level.
- * @member {boolean} level
- * @memberof game.equip_reset
- * @instance
- */
- equip_reset.prototype.level = false;
- /**
- * equip_reset sid.
- * @member {string} sid
- * @memberof game.equip_reset
- * @instance
- */
- equip_reset.prototype.sid = "";
- /**
- * Creates a new equip_reset instance using the specified properties.
- * @function create
- * @memberof game.equip_reset
- * @static
- * @param {game.Iequip_reset=} [properties] Properties to set
- * @returns {game.equip_reset} equip_reset instance
- */
- equip_reset.create = function create(properties) {
- return new equip_reset(properties);
- };
- /**
- * Encodes the specified equip_reset message. Does not implicitly {@link game.equip_reset.verify|verify} messages.
- * @function encode
- * @memberof game.equip_reset
- * @static
- * @param {game.Iequip_reset} message equip_reset message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_reset.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.level != null && Object.hasOwnProperty.call(message, "level"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.level);
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
- return writer;
- };
- /**
- * Encodes the specified equip_reset message, length delimited. Does not implicitly {@link game.equip_reset.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.equip_reset
- * @static
- * @param {game.Iequip_reset} message equip_reset message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_reset.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an equip_reset message from the specified reader or buffer.
- * @function decode
- * @memberof game.equip_reset
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.equip_reset} equip_reset
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_reset.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_reset();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.level = reader.bool();
- break;
- case 2:
- message.sid = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an equip_reset message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.equip_reset
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.equip_reset} equip_reset
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_reset.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an equip_reset message.
- * @function verify
- * @memberof game.equip_reset
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- equip_reset.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.level != null && message.hasOwnProperty("level"))
- if (typeof message.level !== "boolean")
- return "level: boolean expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- return null;
- };
- /**
- * Creates an equip_reset message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.equip_reset
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.equip_reset} equip_reset
- */
- equip_reset.fromObject = function fromObject(object) {
- if (object instanceof $root.game.equip_reset)
- return object;
- let message = new $root.game.equip_reset();
- if (object.level != null)
- message.level = Boolean(object.level);
- if (object.sid != null)
- message.sid = String(object.sid);
- return message;
- };
- /**
- * Creates a plain object from an equip_reset message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.equip_reset
- * @static
- * @param {game.equip_reset} message equip_reset
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- equip_reset.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.level = false;
- object.sid = "";
- }
- if (message.level != null && message.hasOwnProperty("level"))
- object.level = message.level;
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- return object;
- };
- /**
- * Converts this equip_reset to JSON.
- * @function toJSON
- * @memberof game.equip_reset
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- equip_reset.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return equip_reset;
- })();
- game.equip_reset_rsp = (function() {
- /**
- * Properties of an equip_reset_rsp.
- * @memberof game
- * @interface Iequip_reset_rsp
- * @property {number|Long|null} [errno] equip_reset_rsp errno
- * @property {game.Iequip|null} [data] equip_reset_rsp data
- */
- /**
- * Constructs a new equip_reset_rsp.
- * @memberof game
- * @classdesc Represents an equip_reset_rsp.
- * @implements Iequip_reset_rsp
- * @constructor
- * @param {game.Iequip_reset_rsp=} [properties] Properties to set
- */
- function equip_reset_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * equip_reset_rsp errno.
- * @member {number|Long} errno
- * @memberof game.equip_reset_rsp
- * @instance
- */
- equip_reset_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * equip_reset_rsp data.
- * @member {game.Iequip|null|undefined} data
- * @memberof game.equip_reset_rsp
- * @instance
- */
- equip_reset_rsp.prototype.data = null;
- /**
- * Creates a new equip_reset_rsp instance using the specified properties.
- * @function create
- * @memberof game.equip_reset_rsp
- * @static
- * @param {game.Iequip_reset_rsp=} [properties] Properties to set
- * @returns {game.equip_reset_rsp} equip_reset_rsp instance
- */
- equip_reset_rsp.create = function create(properties) {
- return new equip_reset_rsp(properties);
- };
- /**
- * Encodes the specified equip_reset_rsp message. Does not implicitly {@link game.equip_reset_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.equip_reset_rsp
- * @static
- * @param {game.Iequip_reset_rsp} message equip_reset_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_reset_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.equip.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified equip_reset_rsp message, length delimited. Does not implicitly {@link game.equip_reset_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.equip_reset_rsp
- * @static
- * @param {game.Iequip_reset_rsp} message equip_reset_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_reset_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an equip_reset_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.equip_reset_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.equip_reset_rsp} equip_reset_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_reset_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_reset_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.equip.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an equip_reset_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.equip_reset_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.equip_reset_rsp} equip_reset_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_reset_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an equip_reset_rsp message.
- * @function verify
- * @memberof game.equip_reset_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- equip_reset_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.equip.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates an equip_reset_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.equip_reset_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.equip_reset_rsp} equip_reset_rsp
- */
- equip_reset_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.equip_reset_rsp)
- return object;
- let message = new $root.game.equip_reset_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.equip_reset_rsp.data: object expected");
- message.data = $root.game.equip.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from an equip_reset_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.equip_reset_rsp
- * @static
- * @param {game.equip_reset_rsp} message equip_reset_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- equip_reset_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.equip.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this equip_reset_rsp to JSON.
- * @function toJSON
- * @memberof game.equip_reset_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- equip_reset_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return equip_reset_rsp;
- })();
- game.equip_change_nty = (function() {
- /**
- * Properties of an equip_change_nty.
- * @memberof game
- * @interface Iequip_change_nty
- * @property {Array.<game.Iequip>|null} [list] equip_change_nty list
- */
- /**
- * Constructs a new equip_change_nty.
- * @memberof game
- * @classdesc Represents an equip_change_nty.
- * @implements Iequip_change_nty
- * @constructor
- * @param {game.Iequip_change_nty=} [properties] Properties to set
- */
- function equip_change_nty(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * equip_change_nty list.
- * @member {Array.<game.Iequip>} list
- * @memberof game.equip_change_nty
- * @instance
- */
- equip_change_nty.prototype.list = $util.emptyArray;
- /**
- * Creates a new equip_change_nty instance using the specified properties.
- * @function create
- * @memberof game.equip_change_nty
- * @static
- * @param {game.Iequip_change_nty=} [properties] Properties to set
- * @returns {game.equip_change_nty} equip_change_nty instance
- */
- equip_change_nty.create = function create(properties) {
- return new equip_change_nty(properties);
- };
- /**
- * Encodes the specified equip_change_nty message. Does not implicitly {@link game.equip_change_nty.verify|verify} messages.
- * @function encode
- * @memberof game.equip_change_nty
- * @static
- * @param {game.Iequip_change_nty} message equip_change_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_change_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.equip.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified equip_change_nty message, length delimited. Does not implicitly {@link game.equip_change_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.equip_change_nty
- * @static
- * @param {game.Iequip_change_nty} message equip_change_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip_change_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an equip_change_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.equip_change_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.equip_change_nty} equip_change_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_change_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_change_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.equip.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an equip_change_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.equip_change_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.equip_change_nty} equip_change_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip_change_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an equip_change_nty message.
- * @function verify
- * @memberof game.equip_change_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- equip_change_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.equip.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates an equip_change_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.equip_change_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.equip_change_nty} equip_change_nty
- */
- equip_change_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.equip_change_nty)
- return object;
- let message = new $root.game.equip_change_nty();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.equip_change_nty.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.equip_change_nty.list: object expected");
- message.list[i] = $root.game.equip.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from an equip_change_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.equip_change_nty
- * @static
- * @param {game.equip_change_nty} message equip_change_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- equip_change_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.equip.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this equip_change_nty to JSON.
- * @function toJSON
- * @memberof game.equip_change_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- equip_change_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return equip_change_nty;
- })();
- game.talent_get_data = (function() {
- /**
- * Properties of a talent_get_data.
- * @memberof game
- * @interface Italent_get_data
- */
- /**
- * Constructs a new talent_get_data.
- * @memberof game
- * @classdesc Represents a talent_get_data.
- * @implements Italent_get_data
- * @constructor
- * @param {game.Italent_get_data=} [properties] Properties to set
- */
- function talent_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new talent_get_data instance using the specified properties.
- * @function create
- * @memberof game.talent_get_data
- * @static
- * @param {game.Italent_get_data=} [properties] Properties to set
- * @returns {game.talent_get_data} talent_get_data instance
- */
- talent_get_data.create = function create(properties) {
- return new talent_get_data(properties);
- };
- /**
- * Encodes the specified talent_get_data message. Does not implicitly {@link game.talent_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.talent_get_data
- * @static
- * @param {game.Italent_get_data} message talent_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- talent_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified talent_get_data message, length delimited. Does not implicitly {@link game.talent_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.talent_get_data
- * @static
- * @param {game.Italent_get_data} message talent_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- talent_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a talent_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.talent_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.talent_get_data} talent_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- talent_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a talent_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.talent_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.talent_get_data} talent_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- talent_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a talent_get_data message.
- * @function verify
- * @memberof game.talent_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- talent_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a talent_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.talent_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.talent_get_data} talent_get_data
- */
- talent_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.talent_get_data)
- return object;
- return new $root.game.talent_get_data();
- };
- /**
- * Creates a plain object from a talent_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.talent_get_data
- * @static
- * @param {game.talent_get_data} message talent_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- talent_get_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this talent_get_data to JSON.
- * @function toJSON
- * @memberof game.talent_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- talent_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return talent_get_data;
- })();
- game.talent_get_data_rsp = (function() {
- /**
- * Properties of a talent_get_data_rsp.
- * @memberof game
- * @interface Italent_get_data_rsp
- * @property {number|Long|null} [errno] talent_get_data_rsp errno
- * @property {number|Long|null} [id1] talent_get_data_rsp id1
- * @property {number|Long|null} [id2] talent_get_data_rsp id2
- */
- /**
- * Constructs a new talent_get_data_rsp.
- * @memberof game
- * @classdesc Represents a talent_get_data_rsp.
- * @implements Italent_get_data_rsp
- * @constructor
- * @param {game.Italent_get_data_rsp=} [properties] Properties to set
- */
- function talent_get_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * talent_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.talent_get_data_rsp
- * @instance
- */
- talent_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * talent_get_data_rsp id1.
- * @member {number|Long} id1
- * @memberof game.talent_get_data_rsp
- * @instance
- */
- talent_get_data_rsp.prototype.id1 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * talent_get_data_rsp id2.
- * @member {number|Long} id2
- * @memberof game.talent_get_data_rsp
- * @instance
- */
- talent_get_data_rsp.prototype.id2 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new talent_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.talent_get_data_rsp
- * @static
- * @param {game.Italent_get_data_rsp=} [properties] Properties to set
- * @returns {game.talent_get_data_rsp} talent_get_data_rsp instance
- */
- talent_get_data_rsp.create = function create(properties) {
- return new talent_get_data_rsp(properties);
- };
- /**
- * Encodes the specified talent_get_data_rsp message. Does not implicitly {@link game.talent_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.talent_get_data_rsp
- * @static
- * @param {game.Italent_get_data_rsp} message talent_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- talent_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.id1 != null && Object.hasOwnProperty.call(message, "id1"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id1);
- if (message.id2 != null && Object.hasOwnProperty.call(message, "id2"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.id2);
- return writer;
- };
- /**
- * Encodes the specified talent_get_data_rsp message, length delimited. Does not implicitly {@link game.talent_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.talent_get_data_rsp
- * @static
- * @param {game.Italent_get_data_rsp} message talent_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- talent_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a talent_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.talent_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.talent_get_data_rsp} talent_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- talent_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.id1 = reader.int64();
- break;
- case 3:
- message.id2 = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a talent_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.talent_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.talent_get_data_rsp} talent_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- talent_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a talent_get_data_rsp message.
- * @function verify
- * @memberof game.talent_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- talent_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.id1 != null && message.hasOwnProperty("id1"))
- if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high)))
- return "id1: integer|Long expected";
- if (message.id2 != null && message.hasOwnProperty("id2"))
- if (!$util.isInteger(message.id2) && !(message.id2 && $util.isInteger(message.id2.low) && $util.isInteger(message.id2.high)))
- return "id2: integer|Long expected";
- return null;
- };
- /**
- * Creates a talent_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.talent_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.talent_get_data_rsp} talent_get_data_rsp
- */
- talent_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.talent_get_data_rsp)
- return object;
- let message = new $root.game.talent_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.id1 != null)
- if ($util.Long)
- (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false;
- else if (typeof object.id1 === "string")
- message.id1 = parseInt(object.id1, 10);
- else if (typeof object.id1 === "number")
- message.id1 = object.id1;
- else if (typeof object.id1 === "object")
- message.id1 = new $util.LongBits(object.id1.low >>> 0, object.id1.high >>> 0).toNumber();
- if (object.id2 != null)
- if ($util.Long)
- (message.id2 = $util.Long.fromValue(object.id2)).unsigned = false;
- else if (typeof object.id2 === "string")
- message.id2 = parseInt(object.id2, 10);
- else if (typeof object.id2 === "number")
- message.id2 = object.id2;
- else if (typeof object.id2 === "object")
- message.id2 = new $util.LongBits(object.id2.low >>> 0, object.id2.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a talent_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.talent_get_data_rsp
- * @static
- * @param {game.talent_get_data_rsp} message talent_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- talent_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id1 = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id2 = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.id1 != null && message.hasOwnProperty("id1"))
- if (typeof message.id1 === "number")
- object.id1 = options.longs === String ? String(message.id1) : message.id1;
- else
- object.id1 = options.longs === String ? $util.Long.prototype.toString.call(message.id1) : options.longs === Number ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() : message.id1;
- if (message.id2 != null && message.hasOwnProperty("id2"))
- if (typeof message.id2 === "number")
- object.id2 = options.longs === String ? String(message.id2) : message.id2;
- else
- object.id2 = options.longs === String ? $util.Long.prototype.toString.call(message.id2) : options.longs === Number ? new $util.LongBits(message.id2.low >>> 0, message.id2.high >>> 0).toNumber() : message.id2;
- return object;
- };
- /**
- * Converts this talent_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.talent_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- talent_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return talent_get_data_rsp;
- })();
- game.talent_activate = (function() {
- /**
- * Properties of a talent_activate.
- * @memberof game
- * @interface Italent_activate
- * @property {number|Long|null} [id] talent_activate id
- */
- /**
- * Constructs a new talent_activate.
- * @memberof game
- * @classdesc Represents a talent_activate.
- * @implements Italent_activate
- * @constructor
- * @param {game.Italent_activate=} [properties] Properties to set
- */
- function talent_activate(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * talent_activate id.
- * @member {number|Long} id
- * @memberof game.talent_activate
- * @instance
- */
- talent_activate.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new talent_activate instance using the specified properties.
- * @function create
- * @memberof game.talent_activate
- * @static
- * @param {game.Italent_activate=} [properties] Properties to set
- * @returns {game.talent_activate} talent_activate instance
- */
- talent_activate.create = function create(properties) {
- return new talent_activate(properties);
- };
- /**
- * Encodes the specified talent_activate message. Does not implicitly {@link game.talent_activate.verify|verify} messages.
- * @function encode
- * @memberof game.talent_activate
- * @static
- * @param {game.Italent_activate} message talent_activate message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- talent_activate.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified talent_activate message, length delimited. Does not implicitly {@link game.talent_activate.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.talent_activate
- * @static
- * @param {game.Italent_activate} message talent_activate message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- talent_activate.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a talent_activate message from the specified reader or buffer.
- * @function decode
- * @memberof game.talent_activate
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.talent_activate} talent_activate
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- talent_activate.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_activate();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a talent_activate message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.talent_activate
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.talent_activate} talent_activate
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- talent_activate.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a talent_activate message.
- * @function verify
- * @memberof game.talent_activate
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- talent_activate.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a talent_activate message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.talent_activate
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.talent_activate} talent_activate
- */
- talent_activate.fromObject = function fromObject(object) {
- if (object instanceof $root.game.talent_activate)
- return object;
- let message = new $root.game.talent_activate();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a talent_activate message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.talent_activate
- * @static
- * @param {game.talent_activate} message talent_activate
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- talent_activate.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this talent_activate to JSON.
- * @function toJSON
- * @memberof game.talent_activate
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- talent_activate.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return talent_activate;
- })();
- game.talent_activate_rsp = (function() {
- /**
- * Properties of a talent_activate_rsp.
- * @memberof game
- * @interface Italent_activate_rsp
- * @property {number|Long|null} [errno] talent_activate_rsp errno
- * @property {number|Long|null} [id] talent_activate_rsp id
- */
- /**
- * Constructs a new talent_activate_rsp.
- * @memberof game
- * @classdesc Represents a talent_activate_rsp.
- * @implements Italent_activate_rsp
- * @constructor
- * @param {game.Italent_activate_rsp=} [properties] Properties to set
- */
- function talent_activate_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * talent_activate_rsp errno.
- * @member {number|Long} errno
- * @memberof game.talent_activate_rsp
- * @instance
- */
- talent_activate_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * talent_activate_rsp id.
- * @member {number|Long} id
- * @memberof game.talent_activate_rsp
- * @instance
- */
- talent_activate_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new talent_activate_rsp instance using the specified properties.
- * @function create
- * @memberof game.talent_activate_rsp
- * @static
- * @param {game.Italent_activate_rsp=} [properties] Properties to set
- * @returns {game.talent_activate_rsp} talent_activate_rsp instance
- */
- talent_activate_rsp.create = function create(properties) {
- return new talent_activate_rsp(properties);
- };
- /**
- * Encodes the specified talent_activate_rsp message. Does not implicitly {@link game.talent_activate_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.talent_activate_rsp
- * @static
- * @param {game.Italent_activate_rsp} message talent_activate_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- talent_activate_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified talent_activate_rsp message, length delimited. Does not implicitly {@link game.talent_activate_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.talent_activate_rsp
- * @static
- * @param {game.Italent_activate_rsp} message talent_activate_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- talent_activate_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a talent_activate_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.talent_activate_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.talent_activate_rsp} talent_activate_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- talent_activate_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_activate_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a talent_activate_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.talent_activate_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.talent_activate_rsp} talent_activate_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- talent_activate_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a talent_activate_rsp message.
- * @function verify
- * @memberof game.talent_activate_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- talent_activate_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a talent_activate_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.talent_activate_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.talent_activate_rsp} talent_activate_rsp
- */
- talent_activate_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.talent_activate_rsp)
- return object;
- let message = new $root.game.talent_activate_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a talent_activate_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.talent_activate_rsp
- * @static
- * @param {game.talent_activate_rsp} message talent_activate_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- talent_activate_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this talent_activate_rsp to JSON.
- * @function toJSON
- * @memberof game.talent_activate_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- talent_activate_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return talent_activate_rsp;
- })();
- game.sign_in_get_data = (function() {
- /**
- * Properties of a sign_in_get_data.
- * @memberof game
- * @interface Isign_in_get_data
- */
- /**
- * Constructs a new sign_in_get_data.
- * @memberof game
- * @classdesc Represents a sign_in_get_data.
- * @implements Isign_in_get_data
- * @constructor
- * @param {game.Isign_in_get_data=} [properties] Properties to set
- */
- function sign_in_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new sign_in_get_data instance using the specified properties.
- * @function create
- * @memberof game.sign_in_get_data
- * @static
- * @param {game.Isign_in_get_data=} [properties] Properties to set
- * @returns {game.sign_in_get_data} sign_in_get_data instance
- */
- sign_in_get_data.create = function create(properties) {
- return new sign_in_get_data(properties);
- };
- /**
- * Encodes the specified sign_in_get_data message. Does not implicitly {@link game.sign_in_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.sign_in_get_data
- * @static
- * @param {game.Isign_in_get_data} message sign_in_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- sign_in_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified sign_in_get_data message, length delimited. Does not implicitly {@link game.sign_in_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.sign_in_get_data
- * @static
- * @param {game.Isign_in_get_data} message sign_in_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- sign_in_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a sign_in_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.sign_in_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.sign_in_get_data} sign_in_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- sign_in_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a sign_in_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.sign_in_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.sign_in_get_data} sign_in_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- sign_in_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a sign_in_get_data message.
- * @function verify
- * @memberof game.sign_in_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- sign_in_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a sign_in_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.sign_in_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.sign_in_get_data} sign_in_get_data
- */
- sign_in_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.sign_in_get_data)
- return object;
- return new $root.game.sign_in_get_data();
- };
- /**
- * Creates a plain object from a sign_in_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.sign_in_get_data
- * @static
- * @param {game.sign_in_get_data} message sign_in_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- sign_in_get_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this sign_in_get_data to JSON.
- * @function toJSON
- * @memberof game.sign_in_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- sign_in_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return sign_in_get_data;
- })();
- game.sign_in_get_data_rsp = (function() {
- /**
- * Properties of a sign_in_get_data_rsp.
- * @memberof game
- * @interface Isign_in_get_data_rsp
- * @property {number|Long|null} [errno] sign_in_get_data_rsp errno
- */
- /**
- * Constructs a new sign_in_get_data_rsp.
- * @memberof game
- * @classdesc Represents a sign_in_get_data_rsp.
- * @implements Isign_in_get_data_rsp
- * @constructor
- * @param {game.Isign_in_get_data_rsp=} [properties] Properties to set
- */
- function sign_in_get_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * sign_in_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.sign_in_get_data_rsp
- * @instance
- */
- sign_in_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new sign_in_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.sign_in_get_data_rsp
- * @static
- * @param {game.Isign_in_get_data_rsp=} [properties] Properties to set
- * @returns {game.sign_in_get_data_rsp} sign_in_get_data_rsp instance
- */
- sign_in_get_data_rsp.create = function create(properties) {
- return new sign_in_get_data_rsp(properties);
- };
- /**
- * Encodes the specified sign_in_get_data_rsp message. Does not implicitly {@link game.sign_in_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.sign_in_get_data_rsp
- * @static
- * @param {game.Isign_in_get_data_rsp} message sign_in_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- sign_in_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified sign_in_get_data_rsp message, length delimited. Does not implicitly {@link game.sign_in_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.sign_in_get_data_rsp
- * @static
- * @param {game.Isign_in_get_data_rsp} message sign_in_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- sign_in_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a sign_in_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.sign_in_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.sign_in_get_data_rsp} sign_in_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- sign_in_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a sign_in_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.sign_in_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.sign_in_get_data_rsp} sign_in_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- sign_in_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a sign_in_get_data_rsp message.
- * @function verify
- * @memberof game.sign_in_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- sign_in_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a sign_in_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.sign_in_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.sign_in_get_data_rsp} sign_in_get_data_rsp
- */
- sign_in_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.sign_in_get_data_rsp)
- return object;
- let message = new $root.game.sign_in_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a sign_in_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.sign_in_get_data_rsp
- * @static
- * @param {game.sign_in_get_data_rsp} message sign_in_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- sign_in_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this sign_in_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.sign_in_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- sign_in_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return sign_in_get_data_rsp;
- })();
- game.sign_in_award = (function() {
- /**
- * Properties of a sign_in_award.
- * @memberof game
- * @interface Isign_in_award
- * @property {number|Long|null} [day] sign_in_award day
- */
- /**
- * Constructs a new sign_in_award.
- * @memberof game
- * @classdesc Represents a sign_in_award.
- * @implements Isign_in_award
- * @constructor
- * @param {game.Isign_in_award=} [properties] Properties to set
- */
- function sign_in_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * sign_in_award day.
- * @member {number|Long} day
- * @memberof game.sign_in_award
- * @instance
- */
- sign_in_award.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new sign_in_award instance using the specified properties.
- * @function create
- * @memberof game.sign_in_award
- * @static
- * @param {game.Isign_in_award=} [properties] Properties to set
- * @returns {game.sign_in_award} sign_in_award instance
- */
- sign_in_award.create = function create(properties) {
- return new sign_in_award(properties);
- };
- /**
- * Encodes the specified sign_in_award message. Does not implicitly {@link game.sign_in_award.verify|verify} messages.
- * @function encode
- * @memberof game.sign_in_award
- * @static
- * @param {game.Isign_in_award} message sign_in_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- sign_in_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.day != null && Object.hasOwnProperty.call(message, "day"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.day);
- return writer;
- };
- /**
- * Encodes the specified sign_in_award message, length delimited. Does not implicitly {@link game.sign_in_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.sign_in_award
- * @static
- * @param {game.Isign_in_award} message sign_in_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- sign_in_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a sign_in_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.sign_in_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.sign_in_award} sign_in_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- sign_in_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.day = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a sign_in_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.sign_in_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.sign_in_award} sign_in_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- sign_in_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a sign_in_award message.
- * @function verify
- * @memberof game.sign_in_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- sign_in_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.day != null && message.hasOwnProperty("day"))
- if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
- return "day: integer|Long expected";
- return null;
- };
- /**
- * Creates a sign_in_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.sign_in_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.sign_in_award} sign_in_award
- */
- sign_in_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.sign_in_award)
- return object;
- let message = new $root.game.sign_in_award();
- if (object.day != null)
- if ($util.Long)
- (message.day = $util.Long.fromValue(object.day)).unsigned = false;
- else if (typeof object.day === "string")
- message.day = parseInt(object.day, 10);
- else if (typeof object.day === "number")
- message.day = object.day;
- else if (typeof object.day === "object")
- message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a sign_in_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.sign_in_award
- * @static
- * @param {game.sign_in_award} message sign_in_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- sign_in_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.day = options.longs === String ? "0" : 0;
- if (message.day != null && message.hasOwnProperty("day"))
- if (typeof message.day === "number")
- object.day = options.longs === String ? String(message.day) : message.day;
- else
- object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
- return object;
- };
- /**
- * Converts this sign_in_award to JSON.
- * @function toJSON
- * @memberof game.sign_in_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- sign_in_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return sign_in_award;
- })();
- game.sign_in_award_rsp = (function() {
- /**
- * Properties of a sign_in_award_rsp.
- * @memberof game
- * @interface Isign_in_award_rsp
- * @property {number|Long|null} [errno] sign_in_award_rsp errno
- * @property {number|Long|null} [day] sign_in_award_rsp day
- * @property {number|Long|null} [award] sign_in_award_rsp award
- */
- /**
- * Constructs a new sign_in_award_rsp.
- * @memberof game
- * @classdesc Represents a sign_in_award_rsp.
- * @implements Isign_in_award_rsp
- * @constructor
- * @param {game.Isign_in_award_rsp=} [properties] Properties to set
- */
- function sign_in_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * sign_in_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.sign_in_award_rsp
- * @instance
- */
- sign_in_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * sign_in_award_rsp day.
- * @member {number|Long} day
- * @memberof game.sign_in_award_rsp
- * @instance
- */
- sign_in_award_rsp.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * sign_in_award_rsp award.
- * @member {number|Long} award
- * @memberof game.sign_in_award_rsp
- * @instance
- */
- sign_in_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new sign_in_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.sign_in_award_rsp
- * @static
- * @param {game.Isign_in_award_rsp=} [properties] Properties to set
- * @returns {game.sign_in_award_rsp} sign_in_award_rsp instance
- */
- sign_in_award_rsp.create = function create(properties) {
- return new sign_in_award_rsp(properties);
- };
- /**
- * Encodes the specified sign_in_award_rsp message. Does not implicitly {@link game.sign_in_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.sign_in_award_rsp
- * @static
- * @param {game.Isign_in_award_rsp} message sign_in_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- sign_in_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.day != null && Object.hasOwnProperty.call(message, "day"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.day);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
- return writer;
- };
- /**
- * Encodes the specified sign_in_award_rsp message, length delimited. Does not implicitly {@link game.sign_in_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.sign_in_award_rsp
- * @static
- * @param {game.Isign_in_award_rsp} message sign_in_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- sign_in_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a sign_in_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.sign_in_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.sign_in_award_rsp} sign_in_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- sign_in_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.day = reader.int64();
- break;
- case 3:
- message.award = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a sign_in_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.sign_in_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.sign_in_award_rsp} sign_in_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- sign_in_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a sign_in_award_rsp message.
- * @function verify
- * @memberof game.sign_in_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- sign_in_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.day != null && message.hasOwnProperty("day"))
- if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
- return "day: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- return null;
- };
- /**
- * Creates a sign_in_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.sign_in_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.sign_in_award_rsp} sign_in_award_rsp
- */
- sign_in_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.sign_in_award_rsp)
- return object;
- let message = new $root.game.sign_in_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.day != null)
- if ($util.Long)
- (message.day = $util.Long.fromValue(object.day)).unsigned = false;
- else if (typeof object.day === "string")
- message.day = parseInt(object.day, 10);
- else if (typeof object.day === "number")
- message.day = object.day;
- else if (typeof object.day === "object")
- message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a sign_in_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.sign_in_award_rsp
- * @static
- * @param {game.sign_in_award_rsp} message sign_in_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- sign_in_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.day = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.day != null && message.hasOwnProperty("day"))
- if (typeof message.day === "number")
- object.day = options.longs === String ? String(message.day) : message.day;
- else
- object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- return object;
- };
- /**
- * Converts this sign_in_award_rsp to JSON.
- * @function toJSON
- * @memberof game.sign_in_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- sign_in_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return sign_in_award_rsp;
- })();
- game.sign_in_nty = (function() {
- /**
- * Properties of a sign_in_nty.
- * @memberof game
- * @interface Isign_in_nty
- * @property {boolean|null} [open] sign_in_nty open
- * @property {number|Long|null} [day] sign_in_nty day
- * @property {number|Long|null} [award] sign_in_nty award
- * @property {number|Long|null} [round] sign_in_nty round
- */
- /**
- * Constructs a new sign_in_nty.
- * @memberof game
- * @classdesc Represents a sign_in_nty.
- * @implements Isign_in_nty
- * @constructor
- * @param {game.Isign_in_nty=} [properties] Properties to set
- */
- function sign_in_nty(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * sign_in_nty open.
- * @member {boolean} open
- * @memberof game.sign_in_nty
- * @instance
- */
- sign_in_nty.prototype.open = false;
- /**
- * sign_in_nty day.
- * @member {number|Long} day
- * @memberof game.sign_in_nty
- * @instance
- */
- sign_in_nty.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * sign_in_nty award.
- * @member {number|Long} award
- * @memberof game.sign_in_nty
- * @instance
- */
- sign_in_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * sign_in_nty round.
- * @member {number|Long} round
- * @memberof game.sign_in_nty
- * @instance
- */
- sign_in_nty.prototype.round = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new sign_in_nty instance using the specified properties.
- * @function create
- * @memberof game.sign_in_nty
- * @static
- * @param {game.Isign_in_nty=} [properties] Properties to set
- * @returns {game.sign_in_nty} sign_in_nty instance
- */
- sign_in_nty.create = function create(properties) {
- return new sign_in_nty(properties);
- };
- /**
- * Encodes the specified sign_in_nty message. Does not implicitly {@link game.sign_in_nty.verify|verify} messages.
- * @function encode
- * @memberof game.sign_in_nty
- * @static
- * @param {game.Isign_in_nty} message sign_in_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- sign_in_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.open != null && Object.hasOwnProperty.call(message, "open"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.open);
- if (message.day != null && Object.hasOwnProperty.call(message, "day"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.day);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
- if (message.round != null && Object.hasOwnProperty.call(message, "round"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.round);
- return writer;
- };
- /**
- * Encodes the specified sign_in_nty message, length delimited. Does not implicitly {@link game.sign_in_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.sign_in_nty
- * @static
- * @param {game.Isign_in_nty} message sign_in_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- sign_in_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a sign_in_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.sign_in_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.sign_in_nty} sign_in_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- sign_in_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.open = reader.bool();
- break;
- case 2:
- message.day = reader.int64();
- break;
- case 3:
- message.award = reader.int64();
- break;
- case 4:
- message.round = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a sign_in_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.sign_in_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.sign_in_nty} sign_in_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- sign_in_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a sign_in_nty message.
- * @function verify
- * @memberof game.sign_in_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- sign_in_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.open != null && message.hasOwnProperty("open"))
- if (typeof message.open !== "boolean")
- return "open: boolean expected";
- if (message.day != null && message.hasOwnProperty("day"))
- if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
- return "day: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- if (message.round != null && message.hasOwnProperty("round"))
- if (!$util.isInteger(message.round) && !(message.round && $util.isInteger(message.round.low) && $util.isInteger(message.round.high)))
- return "round: integer|Long expected";
- return null;
- };
- /**
- * Creates a sign_in_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.sign_in_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.sign_in_nty} sign_in_nty
- */
- sign_in_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.sign_in_nty)
- return object;
- let message = new $root.game.sign_in_nty();
- if (object.open != null)
- message.open = Boolean(object.open);
- if (object.day != null)
- if ($util.Long)
- (message.day = $util.Long.fromValue(object.day)).unsigned = false;
- else if (typeof object.day === "string")
- message.day = parseInt(object.day, 10);
- else if (typeof object.day === "number")
- message.day = object.day;
- else if (typeof object.day === "object")
- message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- if (object.round != null)
- if ($util.Long)
- (message.round = $util.Long.fromValue(object.round)).unsigned = false;
- else if (typeof object.round === "string")
- message.round = parseInt(object.round, 10);
- else if (typeof object.round === "number")
- message.round = object.round;
- else if (typeof object.round === "object")
- message.round = new $util.LongBits(object.round.low >>> 0, object.round.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a sign_in_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.sign_in_nty
- * @static
- * @param {game.sign_in_nty} message sign_in_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- sign_in_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.open = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.day = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.round = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.round = options.longs === String ? "0" : 0;
- }
- if (message.open != null && message.hasOwnProperty("open"))
- object.open = message.open;
- if (message.day != null && message.hasOwnProperty("day"))
- if (typeof message.day === "number")
- object.day = options.longs === String ? String(message.day) : message.day;
- else
- object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- if (message.round != null && message.hasOwnProperty("round"))
- if (typeof message.round === "number")
- object.round = options.longs === String ? String(message.round) : message.round;
- else
- object.round = options.longs === String ? $util.Long.prototype.toString.call(message.round) : options.longs === Number ? new $util.LongBits(message.round.low >>> 0, message.round.high >>> 0).toNumber() : message.round;
- return object;
- };
- /**
- * Converts this sign_in_nty to JSON.
- * @function toJSON
- * @memberof game.sign_in_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- sign_in_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return sign_in_nty;
- })();
- game.quest_get_data = (function() {
- /**
- * Properties of a quest_get_data.
- * @memberof game
- * @interface Iquest_get_data
- */
- /**
- * Constructs a new quest_get_data.
- * @memberof game
- * @classdesc Represents a quest_get_data.
- * @implements Iquest_get_data
- * @constructor
- * @param {game.Iquest_get_data=} [properties] Properties to set
- */
- function quest_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new quest_get_data instance using the specified properties.
- * @function create
- * @memberof game.quest_get_data
- * @static
- * @param {game.Iquest_get_data=} [properties] Properties to set
- * @returns {game.quest_get_data} quest_get_data instance
- */
- quest_get_data.create = function create(properties) {
- return new quest_get_data(properties);
- };
- /**
- * Encodes the specified quest_get_data message. Does not implicitly {@link game.quest_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.quest_get_data
- * @static
- * @param {game.Iquest_get_data} message quest_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified quest_get_data message, length delimited. Does not implicitly {@link game.quest_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.quest_get_data
- * @static
- * @param {game.Iquest_get_data} message quest_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a quest_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.quest_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.quest_get_data} quest_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a quest_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.quest_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.quest_get_data} quest_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a quest_get_data message.
- * @function verify
- * @memberof game.quest_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- quest_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a quest_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.quest_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.quest_get_data} quest_get_data
- */
- quest_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.quest_get_data)
- return object;
- return new $root.game.quest_get_data();
- };
- /**
- * Creates a plain object from a quest_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.quest_get_data
- * @static
- * @param {game.quest_get_data} message quest_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- quest_get_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this quest_get_data to JSON.
- * @function toJSON
- * @memberof game.quest_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- quest_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return quest_get_data;
- })();
- game.quest_get_data_rsp = (function() {
- /**
- * Properties of a quest_get_data_rsp.
- * @memberof game
- * @interface Iquest_get_data_rsp
- * @property {number|Long|null} [errno] quest_get_data_rsp errno
- * @property {number|Long|null} [dlv] quest_get_data_rsp dlv
- * @property {number|Long|null} [wlv] quest_get_data_rsp wlv
- * @property {number|Long|null} [daward] quest_get_data_rsp daward
- * @property {number|Long|null} [waward] quest_get_data_rsp waward
- * @property {Array.<game.Iquest>|null} [daily] quest_get_data_rsp daily
- * @property {Array.<game.Iquest>|null} [weekly] quest_get_data_rsp weekly
- * @property {Array.<game.Iquest>|null} [achievement] quest_get_data_rsp achievement
- * @property {game.Iquest|null} [mainQuest] quest_get_data_rsp mainQuest
- */
- /**
- * Constructs a new quest_get_data_rsp.
- * @memberof game
- * @classdesc Represents a quest_get_data_rsp.
- * @implements Iquest_get_data_rsp
- * @constructor
- * @param {game.Iquest_get_data_rsp=} [properties] Properties to set
- */
- function quest_get_data_rsp(properties) {
- this.daily = [];
- this.weekly = [];
- this.achievement = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * quest_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.quest_get_data_rsp
- * @instance
- */
- quest_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * quest_get_data_rsp dlv.
- * @member {number|Long} dlv
- * @memberof game.quest_get_data_rsp
- * @instance
- */
- quest_get_data_rsp.prototype.dlv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * quest_get_data_rsp wlv.
- * @member {number|Long} wlv
- * @memberof game.quest_get_data_rsp
- * @instance
- */
- quest_get_data_rsp.prototype.wlv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * quest_get_data_rsp daward.
- * @member {number|Long} daward
- * @memberof game.quest_get_data_rsp
- * @instance
- */
- quest_get_data_rsp.prototype.daward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * quest_get_data_rsp waward.
- * @member {number|Long} waward
- * @memberof game.quest_get_data_rsp
- * @instance
- */
- quest_get_data_rsp.prototype.waward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * quest_get_data_rsp daily.
- * @member {Array.<game.Iquest>} daily
- * @memberof game.quest_get_data_rsp
- * @instance
- */
- quest_get_data_rsp.prototype.daily = $util.emptyArray;
- /**
- * quest_get_data_rsp weekly.
- * @member {Array.<game.Iquest>} weekly
- * @memberof game.quest_get_data_rsp
- * @instance
- */
- quest_get_data_rsp.prototype.weekly = $util.emptyArray;
- /**
- * quest_get_data_rsp achievement.
- * @member {Array.<game.Iquest>} achievement
- * @memberof game.quest_get_data_rsp
- * @instance
- */
- quest_get_data_rsp.prototype.achievement = $util.emptyArray;
- /**
- * quest_get_data_rsp mainQuest.
- * @member {game.Iquest|null|undefined} mainQuest
- * @memberof game.quest_get_data_rsp
- * @instance
- */
- quest_get_data_rsp.prototype.mainQuest = null;
- /**
- * Creates a new quest_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.quest_get_data_rsp
- * @static
- * @param {game.Iquest_get_data_rsp=} [properties] Properties to set
- * @returns {game.quest_get_data_rsp} quest_get_data_rsp instance
- */
- quest_get_data_rsp.create = function create(properties) {
- return new quest_get_data_rsp(properties);
- };
- /**
- * Encodes the specified quest_get_data_rsp message. Does not implicitly {@link game.quest_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.quest_get_data_rsp
- * @static
- * @param {game.Iquest_get_data_rsp} message quest_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.dlv != null && Object.hasOwnProperty.call(message, "dlv"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.dlv);
- if (message.wlv != null && Object.hasOwnProperty.call(message, "wlv"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.wlv);
- if (message.daward != null && Object.hasOwnProperty.call(message, "daward"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.daward);
- if (message.waward != null && Object.hasOwnProperty.call(message, "waward"))
- writer.uint32(/* id 6, wireType 0 =*/48).int64(message.waward);
- if (message.daily != null && message.daily.length)
- for (let i = 0; i < message.daily.length; ++i)
- $root.game.quest.encode(message.daily[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
- if (message.weekly != null && message.weekly.length)
- for (let i = 0; i < message.weekly.length; ++i)
- $root.game.quest.encode(message.weekly[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
- if (message.achievement != null && message.achievement.length)
- for (let i = 0; i < message.achievement.length; ++i)
- $root.game.quest.encode(message.achievement[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
- if (message.mainQuest != null && Object.hasOwnProperty.call(message, "mainQuest"))
- $root.game.quest.encode(message.mainQuest, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified quest_get_data_rsp message, length delimited. Does not implicitly {@link game.quest_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.quest_get_data_rsp
- * @static
- * @param {game.Iquest_get_data_rsp} message quest_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a quest_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.quest_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.quest_get_data_rsp} quest_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.dlv = reader.int64();
- break;
- case 3:
- message.wlv = reader.int64();
- break;
- case 4:
- message.daward = reader.int64();
- break;
- case 6:
- message.waward = reader.int64();
- break;
- case 7:
- if (!(message.daily && message.daily.length))
- message.daily = [];
- message.daily.push($root.game.quest.decode(reader, reader.uint32()));
- break;
- case 8:
- if (!(message.weekly && message.weekly.length))
- message.weekly = [];
- message.weekly.push($root.game.quest.decode(reader, reader.uint32()));
- break;
- case 9:
- if (!(message.achievement && message.achievement.length))
- message.achievement = [];
- message.achievement.push($root.game.quest.decode(reader, reader.uint32()));
- break;
- case 10:
- message.mainQuest = $root.game.quest.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a quest_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.quest_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.quest_get_data_rsp} quest_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a quest_get_data_rsp message.
- * @function verify
- * @memberof game.quest_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- quest_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.dlv != null && message.hasOwnProperty("dlv"))
- if (!$util.isInteger(message.dlv) && !(message.dlv && $util.isInteger(message.dlv.low) && $util.isInteger(message.dlv.high)))
- return "dlv: integer|Long expected";
- if (message.wlv != null && message.hasOwnProperty("wlv"))
- if (!$util.isInteger(message.wlv) && !(message.wlv && $util.isInteger(message.wlv.low) && $util.isInteger(message.wlv.high)))
- return "wlv: integer|Long expected";
- if (message.daward != null && message.hasOwnProperty("daward"))
- if (!$util.isInteger(message.daward) && !(message.daward && $util.isInteger(message.daward.low) && $util.isInteger(message.daward.high)))
- return "daward: integer|Long expected";
- if (message.waward != null && message.hasOwnProperty("waward"))
- if (!$util.isInteger(message.waward) && !(message.waward && $util.isInteger(message.waward.low) && $util.isInteger(message.waward.high)))
- return "waward: integer|Long expected";
- if (message.daily != null && message.hasOwnProperty("daily")) {
- if (!Array.isArray(message.daily))
- return "daily: array expected";
- for (let i = 0; i < message.daily.length; ++i) {
- let error = $root.game.quest.verify(message.daily[i]);
- if (error)
- return "daily." + error;
- }
- }
- if (message.weekly != null && message.hasOwnProperty("weekly")) {
- if (!Array.isArray(message.weekly))
- return "weekly: array expected";
- for (let i = 0; i < message.weekly.length; ++i) {
- let error = $root.game.quest.verify(message.weekly[i]);
- if (error)
- return "weekly." + error;
- }
- }
- if (message.achievement != null && message.hasOwnProperty("achievement")) {
- if (!Array.isArray(message.achievement))
- return "achievement: array expected";
- for (let i = 0; i < message.achievement.length; ++i) {
- let error = $root.game.quest.verify(message.achievement[i]);
- if (error)
- return "achievement." + error;
- }
- }
- if (message.mainQuest != null && message.hasOwnProperty("mainQuest")) {
- let error = $root.game.quest.verify(message.mainQuest);
- if (error)
- return "mainQuest." + error;
- }
- return null;
- };
- /**
- * Creates a quest_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.quest_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.quest_get_data_rsp} quest_get_data_rsp
- */
- quest_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.quest_get_data_rsp)
- return object;
- let message = new $root.game.quest_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.dlv != null)
- if ($util.Long)
- (message.dlv = $util.Long.fromValue(object.dlv)).unsigned = false;
- else if (typeof object.dlv === "string")
- message.dlv = parseInt(object.dlv, 10);
- else if (typeof object.dlv === "number")
- message.dlv = object.dlv;
- else if (typeof object.dlv === "object")
- message.dlv = new $util.LongBits(object.dlv.low >>> 0, object.dlv.high >>> 0).toNumber();
- if (object.wlv != null)
- if ($util.Long)
- (message.wlv = $util.Long.fromValue(object.wlv)).unsigned = false;
- else if (typeof object.wlv === "string")
- message.wlv = parseInt(object.wlv, 10);
- else if (typeof object.wlv === "number")
- message.wlv = object.wlv;
- else if (typeof object.wlv === "object")
- message.wlv = new $util.LongBits(object.wlv.low >>> 0, object.wlv.high >>> 0).toNumber();
- if (object.daward != null)
- if ($util.Long)
- (message.daward = $util.Long.fromValue(object.daward)).unsigned = false;
- else if (typeof object.daward === "string")
- message.daward = parseInt(object.daward, 10);
- else if (typeof object.daward === "number")
- message.daward = object.daward;
- else if (typeof object.daward === "object")
- message.daward = new $util.LongBits(object.daward.low >>> 0, object.daward.high >>> 0).toNumber();
- if (object.waward != null)
- if ($util.Long)
- (message.waward = $util.Long.fromValue(object.waward)).unsigned = false;
- else if (typeof object.waward === "string")
- message.waward = parseInt(object.waward, 10);
- else if (typeof object.waward === "number")
- message.waward = object.waward;
- else if (typeof object.waward === "object")
- message.waward = new $util.LongBits(object.waward.low >>> 0, object.waward.high >>> 0).toNumber();
- if (object.daily) {
- if (!Array.isArray(object.daily))
- throw TypeError(".game.quest_get_data_rsp.daily: array expected");
- message.daily = [];
- for (let i = 0; i < object.daily.length; ++i) {
- if (typeof object.daily[i] !== "object")
- throw TypeError(".game.quest_get_data_rsp.daily: object expected");
- message.daily[i] = $root.game.quest.fromObject(object.daily[i]);
- }
- }
- if (object.weekly) {
- if (!Array.isArray(object.weekly))
- throw TypeError(".game.quest_get_data_rsp.weekly: array expected");
- message.weekly = [];
- for (let i = 0; i < object.weekly.length; ++i) {
- if (typeof object.weekly[i] !== "object")
- throw TypeError(".game.quest_get_data_rsp.weekly: object expected");
- message.weekly[i] = $root.game.quest.fromObject(object.weekly[i]);
- }
- }
- if (object.achievement) {
- if (!Array.isArray(object.achievement))
- throw TypeError(".game.quest_get_data_rsp.achievement: array expected");
- message.achievement = [];
- for (let i = 0; i < object.achievement.length; ++i) {
- if (typeof object.achievement[i] !== "object")
- throw TypeError(".game.quest_get_data_rsp.achievement: object expected");
- message.achievement[i] = $root.game.quest.fromObject(object.achievement[i]);
- }
- }
- if (object.mainQuest != null) {
- if (typeof object.mainQuest !== "object")
- throw TypeError(".game.quest_get_data_rsp.mainQuest: object expected");
- message.mainQuest = $root.game.quest.fromObject(object.mainQuest);
- }
- return message;
- };
- /**
- * Creates a plain object from a quest_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.quest_get_data_rsp
- * @static
- * @param {game.quest_get_data_rsp} message quest_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- quest_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.daily = [];
- object.weekly = [];
- object.achievement = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.dlv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.dlv = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.wlv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.wlv = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.daward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.daward = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.waward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.waward = options.longs === String ? "0" : 0;
- object.mainQuest = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.dlv != null && message.hasOwnProperty("dlv"))
- if (typeof message.dlv === "number")
- object.dlv = options.longs === String ? String(message.dlv) : message.dlv;
- else
- object.dlv = options.longs === String ? $util.Long.prototype.toString.call(message.dlv) : options.longs === Number ? new $util.LongBits(message.dlv.low >>> 0, message.dlv.high >>> 0).toNumber() : message.dlv;
- if (message.wlv != null && message.hasOwnProperty("wlv"))
- if (typeof message.wlv === "number")
- object.wlv = options.longs === String ? String(message.wlv) : message.wlv;
- else
- object.wlv = options.longs === String ? $util.Long.prototype.toString.call(message.wlv) : options.longs === Number ? new $util.LongBits(message.wlv.low >>> 0, message.wlv.high >>> 0).toNumber() : message.wlv;
- if (message.daward != null && message.hasOwnProperty("daward"))
- if (typeof message.daward === "number")
- object.daward = options.longs === String ? String(message.daward) : message.daward;
- else
- object.daward = options.longs === String ? $util.Long.prototype.toString.call(message.daward) : options.longs === Number ? new $util.LongBits(message.daward.low >>> 0, message.daward.high >>> 0).toNumber() : message.daward;
- if (message.waward != null && message.hasOwnProperty("waward"))
- if (typeof message.waward === "number")
- object.waward = options.longs === String ? String(message.waward) : message.waward;
- else
- object.waward = options.longs === String ? $util.Long.prototype.toString.call(message.waward) : options.longs === Number ? new $util.LongBits(message.waward.low >>> 0, message.waward.high >>> 0).toNumber() : message.waward;
- if (message.daily && message.daily.length) {
- object.daily = [];
- for (let j = 0; j < message.daily.length; ++j)
- object.daily[j] = $root.game.quest.toObject(message.daily[j], options);
- }
- if (message.weekly && message.weekly.length) {
- object.weekly = [];
- for (let j = 0; j < message.weekly.length; ++j)
- object.weekly[j] = $root.game.quest.toObject(message.weekly[j], options);
- }
- if (message.achievement && message.achievement.length) {
- object.achievement = [];
- for (let j = 0; j < message.achievement.length; ++j)
- object.achievement[j] = $root.game.quest.toObject(message.achievement[j], options);
- }
- if (message.mainQuest != null && message.hasOwnProperty("mainQuest"))
- object.mainQuest = $root.game.quest.toObject(message.mainQuest, options);
- return object;
- };
- /**
- * Converts this quest_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.quest_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- quest_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return quest_get_data_rsp;
- })();
- game.quest_get_award = (function() {
- /**
- * Properties of a quest_get_award.
- * @memberof game
- * @interface Iquest_get_award
- * @property {number|Long|null} [id] quest_get_award id
- */
- /**
- * Constructs a new quest_get_award.
- * @memberof game
- * @classdesc Represents a quest_get_award.
- * @implements Iquest_get_award
- * @constructor
- * @param {game.Iquest_get_award=} [properties] Properties to set
- */
- function quest_get_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * quest_get_award id.
- * @member {number|Long} id
- * @memberof game.quest_get_award
- * @instance
- */
- quest_get_award.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new quest_get_award instance using the specified properties.
- * @function create
- * @memberof game.quest_get_award
- * @static
- * @param {game.Iquest_get_award=} [properties] Properties to set
- * @returns {game.quest_get_award} quest_get_award instance
- */
- quest_get_award.create = function create(properties) {
- return new quest_get_award(properties);
- };
- /**
- * Encodes the specified quest_get_award message. Does not implicitly {@link game.quest_get_award.verify|verify} messages.
- * @function encode
- * @memberof game.quest_get_award
- * @static
- * @param {game.Iquest_get_award} message quest_get_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_get_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified quest_get_award message, length delimited. Does not implicitly {@link game.quest_get_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.quest_get_award
- * @static
- * @param {game.Iquest_get_award} message quest_get_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_get_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a quest_get_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.quest_get_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.quest_get_award} quest_get_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_get_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_get_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a quest_get_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.quest_get_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.quest_get_award} quest_get_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_get_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a quest_get_award message.
- * @function verify
- * @memberof game.quest_get_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- quest_get_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a quest_get_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.quest_get_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.quest_get_award} quest_get_award
- */
- quest_get_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.quest_get_award)
- return object;
- let message = new $root.game.quest_get_award();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a quest_get_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.quest_get_award
- * @static
- * @param {game.quest_get_award} message quest_get_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- quest_get_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this quest_get_award to JSON.
- * @function toJSON
- * @memberof game.quest_get_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- quest_get_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return quest_get_award;
- })();
- game.quest_get_award_rsp = (function() {
- /**
- * Properties of a quest_get_award_rsp.
- * @memberof game
- * @interface Iquest_get_award_rsp
- * @property {number|Long|null} [errno] quest_get_award_rsp errno
- * @property {number|Long|null} [id] quest_get_award_rsp id
- * @property {game.Iquest|null} [data] quest_get_award_rsp data
- */
- /**
- * Constructs a new quest_get_award_rsp.
- * @memberof game
- * @classdesc Represents a quest_get_award_rsp.
- * @implements Iquest_get_award_rsp
- * @constructor
- * @param {game.Iquest_get_award_rsp=} [properties] Properties to set
- */
- function quest_get_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * quest_get_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.quest_get_award_rsp
- * @instance
- */
- quest_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * quest_get_award_rsp id.
- * @member {number|Long} id
- * @memberof game.quest_get_award_rsp
- * @instance
- */
- quest_get_award_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * quest_get_award_rsp data.
- * @member {game.Iquest|null|undefined} data
- * @memberof game.quest_get_award_rsp
- * @instance
- */
- quest_get_award_rsp.prototype.data = null;
- /**
- * Creates a new quest_get_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.quest_get_award_rsp
- * @static
- * @param {game.Iquest_get_award_rsp=} [properties] Properties to set
- * @returns {game.quest_get_award_rsp} quest_get_award_rsp instance
- */
- quest_get_award_rsp.create = function create(properties) {
- return new quest_get_award_rsp(properties);
- };
- /**
- * Encodes the specified quest_get_award_rsp message. Does not implicitly {@link game.quest_get_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.quest_get_award_rsp
- * @static
- * @param {game.Iquest_get_award_rsp} message quest_get_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_get_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.quest.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified quest_get_award_rsp message, length delimited. Does not implicitly {@link game.quest_get_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.quest_get_award_rsp
- * @static
- * @param {game.Iquest_get_award_rsp} message quest_get_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a quest_get_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.quest_get_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.quest_get_award_rsp} quest_get_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_get_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_get_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.id = reader.int64();
- break;
- case 3:
- message.data = $root.game.quest.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a quest_get_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.quest_get_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.quest_get_award_rsp} quest_get_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a quest_get_award_rsp message.
- * @function verify
- * @memberof game.quest_get_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- quest_get_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.quest.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a quest_get_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.quest_get_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.quest_get_award_rsp} quest_get_award_rsp
- */
- quest_get_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.quest_get_award_rsp)
- return object;
- let message = new $root.game.quest_get_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.quest_get_award_rsp.data: object expected");
- message.data = $root.game.quest.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a quest_get_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.quest_get_award_rsp
- * @static
- * @param {game.quest_get_award_rsp} message quest_get_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- quest_get_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.quest.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this quest_get_award_rsp to JSON.
- * @function toJSON
- * @memberof game.quest_get_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- quest_get_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return quest_get_award_rsp;
- })();
- game.quest_active_award = (function() {
- /**
- * Properties of a quest_active_award.
- * @memberof game
- * @interface Iquest_active_award
- * @property {number|Long|null} [type] quest_active_award type
- */
- /**
- * Constructs a new quest_active_award.
- * @memberof game
- * @classdesc Represents a quest_active_award.
- * @implements Iquest_active_award
- * @constructor
- * @param {game.Iquest_active_award=} [properties] Properties to set
- */
- function quest_active_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * quest_active_award type.
- * @member {number|Long} type
- * @memberof game.quest_active_award
- * @instance
- */
- quest_active_award.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new quest_active_award instance using the specified properties.
- * @function create
- * @memberof game.quest_active_award
- * @static
- * @param {game.Iquest_active_award=} [properties] Properties to set
- * @returns {game.quest_active_award} quest_active_award instance
- */
- quest_active_award.create = function create(properties) {
- return new quest_active_award(properties);
- };
- /**
- * Encodes the specified quest_active_award message. Does not implicitly {@link game.quest_active_award.verify|verify} messages.
- * @function encode
- * @memberof game.quest_active_award
- * @static
- * @param {game.Iquest_active_award} message quest_active_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_active_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- return writer;
- };
- /**
- * Encodes the specified quest_active_award message, length delimited. Does not implicitly {@link game.quest_active_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.quest_active_award
- * @static
- * @param {game.Iquest_active_award} message quest_active_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_active_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a quest_active_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.quest_active_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.quest_active_award} quest_active_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_active_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_active_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a quest_active_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.quest_active_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.quest_active_award} quest_active_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_active_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a quest_active_award message.
- * @function verify
- * @memberof game.quest_active_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- quest_active_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- return null;
- };
- /**
- * Creates a quest_active_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.quest_active_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.quest_active_award} quest_active_award
- */
- quest_active_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.quest_active_award)
- return object;
- let message = new $root.game.quest_active_award();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a quest_active_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.quest_active_award
- * @static
- * @param {game.quest_active_award} message quest_active_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- quest_active_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- return object;
- };
- /**
- * Converts this quest_active_award to JSON.
- * @function toJSON
- * @memberof game.quest_active_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- quest_active_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return quest_active_award;
- })();
- game.quest_active_award_rsp = (function() {
- /**
- * Properties of a quest_active_award_rsp.
- * @memberof game
- * @interface Iquest_active_award_rsp
- * @property {number|Long|null} [errno] quest_active_award_rsp errno
- * @property {number|Long|null} [type] quest_active_award_rsp type
- * @property {number|Long|null} [award] quest_active_award_rsp award
- */
- /**
- * Constructs a new quest_active_award_rsp.
- * @memberof game
- * @classdesc Represents a quest_active_award_rsp.
- * @implements Iquest_active_award_rsp
- * @constructor
- * @param {game.Iquest_active_award_rsp=} [properties] Properties to set
- */
- function quest_active_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * quest_active_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.quest_active_award_rsp
- * @instance
- */
- quest_active_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * quest_active_award_rsp type.
- * @member {number|Long} type
- * @memberof game.quest_active_award_rsp
- * @instance
- */
- quest_active_award_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * quest_active_award_rsp award.
- * @member {number|Long} award
- * @memberof game.quest_active_award_rsp
- * @instance
- */
- quest_active_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new quest_active_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.quest_active_award_rsp
- * @static
- * @param {game.Iquest_active_award_rsp=} [properties] Properties to set
- * @returns {game.quest_active_award_rsp} quest_active_award_rsp instance
- */
- quest_active_award_rsp.create = function create(properties) {
- return new quest_active_award_rsp(properties);
- };
- /**
- * Encodes the specified quest_active_award_rsp message. Does not implicitly {@link game.quest_active_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.quest_active_award_rsp
- * @static
- * @param {game.Iquest_active_award_rsp} message quest_active_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_active_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
- return writer;
- };
- /**
- * Encodes the specified quest_active_award_rsp message, length delimited. Does not implicitly {@link game.quest_active_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.quest_active_award_rsp
- * @static
- * @param {game.Iquest_active_award_rsp} message quest_active_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_active_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a quest_active_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.quest_active_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.quest_active_award_rsp} quest_active_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_active_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_active_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.type = reader.int64();
- break;
- case 3:
- message.award = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a quest_active_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.quest_active_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.quest_active_award_rsp} quest_active_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_active_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a quest_active_award_rsp message.
- * @function verify
- * @memberof game.quest_active_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- quest_active_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- return null;
- };
- /**
- * Creates a quest_active_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.quest_active_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.quest_active_award_rsp} quest_active_award_rsp
- */
- quest_active_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.quest_active_award_rsp)
- return object;
- let message = new $root.game.quest_active_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a quest_active_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.quest_active_award_rsp
- * @static
- * @param {game.quest_active_award_rsp} message quest_active_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- quest_active_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- return object;
- };
- /**
- * Converts this quest_active_award_rsp to JSON.
- * @function toJSON
- * @memberof game.quest_active_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- quest_active_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return quest_active_award_rsp;
- })();
- game.quest_cmplate_notify = (function() {
- /**
- * Properties of a quest_cmplate_notify.
- * @memberof game
- * @interface Iquest_cmplate_notify
- * @property {game.Iquest|null} [data] quest_cmplate_notify data
- */
- /**
- * Constructs a new quest_cmplate_notify.
- * @memberof game
- * @classdesc Represents a quest_cmplate_notify.
- * @implements Iquest_cmplate_notify
- * @constructor
- * @param {game.Iquest_cmplate_notify=} [properties] Properties to set
- */
- function quest_cmplate_notify(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * quest_cmplate_notify data.
- * @member {game.Iquest|null|undefined} data
- * @memberof game.quest_cmplate_notify
- * @instance
- */
- quest_cmplate_notify.prototype.data = null;
- /**
- * Creates a new quest_cmplate_notify instance using the specified properties.
- * @function create
- * @memberof game.quest_cmplate_notify
- * @static
- * @param {game.Iquest_cmplate_notify=} [properties] Properties to set
- * @returns {game.quest_cmplate_notify} quest_cmplate_notify instance
- */
- quest_cmplate_notify.create = function create(properties) {
- return new quest_cmplate_notify(properties);
- };
- /**
- * Encodes the specified quest_cmplate_notify message. Does not implicitly {@link game.quest_cmplate_notify.verify|verify} messages.
- * @function encode
- * @memberof game.quest_cmplate_notify
- * @static
- * @param {game.Iquest_cmplate_notify} message quest_cmplate_notify message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_cmplate_notify.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.quest.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified quest_cmplate_notify message, length delimited. Does not implicitly {@link game.quest_cmplate_notify.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.quest_cmplate_notify
- * @static
- * @param {game.Iquest_cmplate_notify} message quest_cmplate_notify message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest_cmplate_notify.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a quest_cmplate_notify message from the specified reader or buffer.
- * @function decode
- * @memberof game.quest_cmplate_notify
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.quest_cmplate_notify} quest_cmplate_notify
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_cmplate_notify.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_cmplate_notify();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.data = $root.game.quest.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a quest_cmplate_notify message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.quest_cmplate_notify
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.quest_cmplate_notify} quest_cmplate_notify
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest_cmplate_notify.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a quest_cmplate_notify message.
- * @function verify
- * @memberof game.quest_cmplate_notify
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- quest_cmplate_notify.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.quest.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a quest_cmplate_notify message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.quest_cmplate_notify
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.quest_cmplate_notify} quest_cmplate_notify
- */
- quest_cmplate_notify.fromObject = function fromObject(object) {
- if (object instanceof $root.game.quest_cmplate_notify)
- return object;
- let message = new $root.game.quest_cmplate_notify();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.quest_cmplate_notify.data: object expected");
- message.data = $root.game.quest.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a quest_cmplate_notify message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.quest_cmplate_notify
- * @static
- * @param {game.quest_cmplate_notify} message quest_cmplate_notify
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- quest_cmplate_notify.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- object.data = null;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.quest.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this quest_cmplate_notify to JSON.
- * @function toJSON
- * @memberof game.quest_cmplate_notify
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- quest_cmplate_notify.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return quest_cmplate_notify;
- })();
- game.manual_get_data = (function() {
- /**
- * Properties of a manual_get_data.
- * @memberof game
- * @interface Imanual_get_data
- * @property {number|Long|null} [moduleid] manual_get_data moduleid
- */
- /**
- * Constructs a new manual_get_data.
- * @memberof game
- * @classdesc Represents a manual_get_data.
- * @implements Imanual_get_data
- * @constructor
- * @param {game.Imanual_get_data=} [properties] Properties to set
- */
- function manual_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * manual_get_data moduleid.
- * @member {number|Long} moduleid
- * @memberof game.manual_get_data
- * @instance
- */
- manual_get_data.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new manual_get_data instance using the specified properties.
- * @function create
- * @memberof game.manual_get_data
- * @static
- * @param {game.Imanual_get_data=} [properties] Properties to set
- * @returns {game.manual_get_data} manual_get_data instance
- */
- manual_get_data.create = function create(properties) {
- return new manual_get_data(properties);
- };
- /**
- * Encodes the specified manual_get_data message. Does not implicitly {@link game.manual_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.manual_get_data
- * @static
- * @param {game.Imanual_get_data} message manual_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified manual_get_data message, length delimited. Does not implicitly {@link game.manual_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.manual_get_data
- * @static
- * @param {game.Imanual_get_data} message manual_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a manual_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.manual_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.manual_get_data} manual_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a manual_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.manual_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.manual_get_data} manual_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a manual_get_data message.
- * @function verify
- * @memberof game.manual_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- manual_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a manual_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.manual_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.manual_get_data} manual_get_data
- */
- manual_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.manual_get_data)
- return object;
- let message = new $root.game.manual_get_data();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a manual_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.manual_get_data
- * @static
- * @param {game.manual_get_data} message manual_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- manual_get_data.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this manual_get_data to JSON.
- * @function toJSON
- * @memberof game.manual_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- manual_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return manual_get_data;
- })();
- game.manual_get_data_rsp = (function() {
- /**
- * Properties of a manual_get_data_rsp.
- * @memberof game
- * @interface Imanual_get_data_rsp
- * @property {number|Long|null} [errno] manual_get_data_rsp errno
- * @property {boolean|null} [open] manual_get_data_rsp open
- * @property {number|Long|null} [openTime] manual_get_data_rsp openTime
- * @property {number|Long|null} [level] manual_get_data_rsp level
- * @property {number|Long|null} [exp] manual_get_data_rsp exp
- * @property {number|Long|null} [round] manual_get_data_rsp round
- * @property {Array.<game.Imanual>|null} [list] manual_get_data_rsp list
- * @property {number|Long|null} [moduleid] manual_get_data_rsp moduleid
- */
- /**
- * Constructs a new manual_get_data_rsp.
- * @memberof game
- * @classdesc Represents a manual_get_data_rsp.
- * @implements Imanual_get_data_rsp
- * @constructor
- * @param {game.Imanual_get_data_rsp=} [properties] Properties to set
- */
- function manual_get_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * manual_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.manual_get_data_rsp
- * @instance
- */
- manual_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_get_data_rsp open.
- * @member {boolean} open
- * @memberof game.manual_get_data_rsp
- * @instance
- */
- manual_get_data_rsp.prototype.open = false;
- /**
- * manual_get_data_rsp openTime.
- * @member {number|Long} openTime
- * @memberof game.manual_get_data_rsp
- * @instance
- */
- manual_get_data_rsp.prototype.openTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_get_data_rsp level.
- * @member {number|Long} level
- * @memberof game.manual_get_data_rsp
- * @instance
- */
- manual_get_data_rsp.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_get_data_rsp exp.
- * @member {number|Long} exp
- * @memberof game.manual_get_data_rsp
- * @instance
- */
- manual_get_data_rsp.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_get_data_rsp round.
- * @member {number|Long} round
- * @memberof game.manual_get_data_rsp
- * @instance
- */
- manual_get_data_rsp.prototype.round = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_get_data_rsp list.
- * @member {Array.<game.Imanual>} list
- * @memberof game.manual_get_data_rsp
- * @instance
- */
- manual_get_data_rsp.prototype.list = $util.emptyArray;
- /**
- * manual_get_data_rsp moduleid.
- * @member {number|Long} moduleid
- * @memberof game.manual_get_data_rsp
- * @instance
- */
- manual_get_data_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new manual_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.manual_get_data_rsp
- * @static
- * @param {game.Imanual_get_data_rsp=} [properties] Properties to set
- * @returns {game.manual_get_data_rsp} manual_get_data_rsp instance
- */
- manual_get_data_rsp.create = function create(properties) {
- return new manual_get_data_rsp(properties);
- };
- /**
- * Encodes the specified manual_get_data_rsp message. Does not implicitly {@link game.manual_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.manual_get_data_rsp
- * @static
- * @param {game.Imanual_get_data_rsp} message manual_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.open != null && Object.hasOwnProperty.call(message, "open"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.open);
- if (message.openTime != null && Object.hasOwnProperty.call(message, "openTime"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.openTime);
- if (message.level != null && Object.hasOwnProperty.call(message, "level"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.level);
- if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.exp);
- if (message.round != null && Object.hasOwnProperty.call(message, "round"))
- writer.uint32(/* id 6, wireType 0 =*/48).int64(message.round);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.manual.encode(message.list[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 8, wireType 0 =*/64).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified manual_get_data_rsp message, length delimited. Does not implicitly {@link game.manual_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.manual_get_data_rsp
- * @static
- * @param {game.Imanual_get_data_rsp} message manual_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a manual_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.manual_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.manual_get_data_rsp} manual_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.open = reader.bool();
- break;
- case 3:
- message.openTime = reader.int64();
- break;
- case 4:
- message.level = reader.int64();
- break;
- case 5:
- message.exp = reader.int64();
- break;
- case 6:
- message.round = reader.int64();
- break;
- case 7:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.manual.decode(reader, reader.uint32()));
- break;
- case 8:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a manual_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.manual_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.manual_get_data_rsp} manual_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a manual_get_data_rsp message.
- * @function verify
- * @memberof game.manual_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- manual_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.open != null && message.hasOwnProperty("open"))
- if (typeof message.open !== "boolean")
- return "open: boolean expected";
- if (message.openTime != null && message.hasOwnProperty("openTime"))
- if (!$util.isInteger(message.openTime) && !(message.openTime && $util.isInteger(message.openTime.low) && $util.isInteger(message.openTime.high)))
- return "openTime: integer|Long expected";
- if (message.level != null && message.hasOwnProperty("level"))
- if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
- return "level: integer|Long expected";
- if (message.exp != null && message.hasOwnProperty("exp"))
- if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
- return "exp: integer|Long expected";
- if (message.round != null && message.hasOwnProperty("round"))
- if (!$util.isInteger(message.round) && !(message.round && $util.isInteger(message.round.low) && $util.isInteger(message.round.high)))
- return "round: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.manual.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a manual_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.manual_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.manual_get_data_rsp} manual_get_data_rsp
- */
- manual_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.manual_get_data_rsp)
- return object;
- let message = new $root.game.manual_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.open != null)
- message.open = Boolean(object.open);
- if (object.openTime != null)
- if ($util.Long)
- (message.openTime = $util.Long.fromValue(object.openTime)).unsigned = false;
- else if (typeof object.openTime === "string")
- message.openTime = parseInt(object.openTime, 10);
- else if (typeof object.openTime === "number")
- message.openTime = object.openTime;
- else if (typeof object.openTime === "object")
- message.openTime = new $util.LongBits(object.openTime.low >>> 0, object.openTime.high >>> 0).toNumber();
- if (object.level != null)
- if ($util.Long)
- (message.level = $util.Long.fromValue(object.level)).unsigned = false;
- else if (typeof object.level === "string")
- message.level = parseInt(object.level, 10);
- else if (typeof object.level === "number")
- message.level = object.level;
- else if (typeof object.level === "object")
- message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
- if (object.exp != null)
- if ($util.Long)
- (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
- else if (typeof object.exp === "string")
- message.exp = parseInt(object.exp, 10);
- else if (typeof object.exp === "number")
- message.exp = object.exp;
- else if (typeof object.exp === "object")
- message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
- if (object.round != null)
- if ($util.Long)
- (message.round = $util.Long.fromValue(object.round)).unsigned = false;
- else if (typeof object.round === "string")
- message.round = parseInt(object.round, 10);
- else if (typeof object.round === "number")
- message.round = object.round;
- else if (typeof object.round === "object")
- message.round = new $util.LongBits(object.round.low >>> 0, object.round.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.manual_get_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.manual_get_data_rsp.list: object expected");
- message.list[i] = $root.game.manual.fromObject(object.list[i]);
- }
- }
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a manual_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.manual_get_data_rsp
- * @static
- * @param {game.manual_get_data_rsp} message manual_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- manual_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.open = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.openTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.openTime = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.level = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.exp = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.round = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.round = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.open != null && message.hasOwnProperty("open"))
- object.open = message.open;
- if (message.openTime != null && message.hasOwnProperty("openTime"))
- if (typeof message.openTime === "number")
- object.openTime = options.longs === String ? String(message.openTime) : message.openTime;
- else
- object.openTime = options.longs === String ? $util.Long.prototype.toString.call(message.openTime) : options.longs === Number ? new $util.LongBits(message.openTime.low >>> 0, message.openTime.high >>> 0).toNumber() : message.openTime;
- if (message.level != null && message.hasOwnProperty("level"))
- if (typeof message.level === "number")
- object.level = options.longs === String ? String(message.level) : message.level;
- else
- object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
- if (message.exp != null && message.hasOwnProperty("exp"))
- if (typeof message.exp === "number")
- object.exp = options.longs === String ? String(message.exp) : message.exp;
- else
- object.exp = options.longs === String ? $util.Long.prototype.toString.call(message.exp) : options.longs === Number ? new $util.LongBits(message.exp.low >>> 0, message.exp.high >>> 0).toNumber() : message.exp;
- if (message.round != null && message.hasOwnProperty("round"))
- if (typeof message.round === "number")
- object.round = options.longs === String ? String(message.round) : message.round;
- else
- object.round = options.longs === String ? $util.Long.prototype.toString.call(message.round) : options.longs === Number ? new $util.LongBits(message.round.low >>> 0, message.round.high >>> 0).toNumber() : message.round;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.manual.toObject(message.list[j], options);
- }
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this manual_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.manual_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- manual_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return manual_get_data_rsp;
- })();
- game.manual_buy_exp = (function() {
- /**
- * Properties of a manual_buy_exp.
- * @memberof game
- * @interface Imanual_buy_exp
- * @property {number|Long|null} [moduleid] manual_buy_exp moduleid
- */
- /**
- * Constructs a new manual_buy_exp.
- * @memberof game
- * @classdesc Represents a manual_buy_exp.
- * @implements Imanual_buy_exp
- * @constructor
- * @param {game.Imanual_buy_exp=} [properties] Properties to set
- */
- function manual_buy_exp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * manual_buy_exp moduleid.
- * @member {number|Long} moduleid
- * @memberof game.manual_buy_exp
- * @instance
- */
- manual_buy_exp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new manual_buy_exp instance using the specified properties.
- * @function create
- * @memberof game.manual_buy_exp
- * @static
- * @param {game.Imanual_buy_exp=} [properties] Properties to set
- * @returns {game.manual_buy_exp} manual_buy_exp instance
- */
- manual_buy_exp.create = function create(properties) {
- return new manual_buy_exp(properties);
- };
- /**
- * Encodes the specified manual_buy_exp message. Does not implicitly {@link game.manual_buy_exp.verify|verify} messages.
- * @function encode
- * @memberof game.manual_buy_exp
- * @static
- * @param {game.Imanual_buy_exp} message manual_buy_exp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_buy_exp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified manual_buy_exp message, length delimited. Does not implicitly {@link game.manual_buy_exp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.manual_buy_exp
- * @static
- * @param {game.Imanual_buy_exp} message manual_buy_exp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_buy_exp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a manual_buy_exp message from the specified reader or buffer.
- * @function decode
- * @memberof game.manual_buy_exp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.manual_buy_exp} manual_buy_exp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_buy_exp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_buy_exp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a manual_buy_exp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.manual_buy_exp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.manual_buy_exp} manual_buy_exp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_buy_exp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a manual_buy_exp message.
- * @function verify
- * @memberof game.manual_buy_exp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- manual_buy_exp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a manual_buy_exp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.manual_buy_exp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.manual_buy_exp} manual_buy_exp
- */
- manual_buy_exp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.manual_buy_exp)
- return object;
- let message = new $root.game.manual_buy_exp();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a manual_buy_exp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.manual_buy_exp
- * @static
- * @param {game.manual_buy_exp} message manual_buy_exp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- manual_buy_exp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this manual_buy_exp to JSON.
- * @function toJSON
- * @memberof game.manual_buy_exp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- manual_buy_exp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return manual_buy_exp;
- })();
- game.manual_buy_exp_rsp = (function() {
- /**
- * Properties of a manual_buy_exp_rsp.
- * @memberof game
- * @interface Imanual_buy_exp_rsp
- * @property {number|Long|null} [errno] manual_buy_exp_rsp errno
- * @property {number|Long|null} [level] manual_buy_exp_rsp level
- * @property {number|Long|null} [exp] manual_buy_exp_rsp exp
- * @property {number|Long|null} [moduleid] manual_buy_exp_rsp moduleid
- */
- /**
- * Constructs a new manual_buy_exp_rsp.
- * @memberof game
- * @classdesc Represents a manual_buy_exp_rsp.
- * @implements Imanual_buy_exp_rsp
- * @constructor
- * @param {game.Imanual_buy_exp_rsp=} [properties] Properties to set
- */
- function manual_buy_exp_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * manual_buy_exp_rsp errno.
- * @member {number|Long} errno
- * @memberof game.manual_buy_exp_rsp
- * @instance
- */
- manual_buy_exp_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_buy_exp_rsp level.
- * @member {number|Long} level
- * @memberof game.manual_buy_exp_rsp
- * @instance
- */
- manual_buy_exp_rsp.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_buy_exp_rsp exp.
- * @member {number|Long} exp
- * @memberof game.manual_buy_exp_rsp
- * @instance
- */
- manual_buy_exp_rsp.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_buy_exp_rsp moduleid.
- * @member {number|Long} moduleid
- * @memberof game.manual_buy_exp_rsp
- * @instance
- */
- manual_buy_exp_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new manual_buy_exp_rsp instance using the specified properties.
- * @function create
- * @memberof game.manual_buy_exp_rsp
- * @static
- * @param {game.Imanual_buy_exp_rsp=} [properties] Properties to set
- * @returns {game.manual_buy_exp_rsp} manual_buy_exp_rsp instance
- */
- manual_buy_exp_rsp.create = function create(properties) {
- return new manual_buy_exp_rsp(properties);
- };
- /**
- * Encodes the specified manual_buy_exp_rsp message. Does not implicitly {@link game.manual_buy_exp_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.manual_buy_exp_rsp
- * @static
- * @param {game.Imanual_buy_exp_rsp} message manual_buy_exp_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_buy_exp_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.level != null && Object.hasOwnProperty.call(message, "level"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.level);
- if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.exp);
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified manual_buy_exp_rsp message, length delimited. Does not implicitly {@link game.manual_buy_exp_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.manual_buy_exp_rsp
- * @static
- * @param {game.Imanual_buy_exp_rsp} message manual_buy_exp_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_buy_exp_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a manual_buy_exp_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.manual_buy_exp_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.manual_buy_exp_rsp} manual_buy_exp_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_buy_exp_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_buy_exp_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.level = reader.int64();
- break;
- case 3:
- message.exp = reader.int64();
- break;
- case 4:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a manual_buy_exp_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.manual_buy_exp_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.manual_buy_exp_rsp} manual_buy_exp_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_buy_exp_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a manual_buy_exp_rsp message.
- * @function verify
- * @memberof game.manual_buy_exp_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- manual_buy_exp_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.level != null && message.hasOwnProperty("level"))
- if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
- return "level: integer|Long expected";
- if (message.exp != null && message.hasOwnProperty("exp"))
- if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
- return "exp: integer|Long expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a manual_buy_exp_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.manual_buy_exp_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.manual_buy_exp_rsp} manual_buy_exp_rsp
- */
- manual_buy_exp_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.manual_buy_exp_rsp)
- return object;
- let message = new $root.game.manual_buy_exp_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.level != null)
- if ($util.Long)
- (message.level = $util.Long.fromValue(object.level)).unsigned = false;
- else if (typeof object.level === "string")
- message.level = parseInt(object.level, 10);
- else if (typeof object.level === "number")
- message.level = object.level;
- else if (typeof object.level === "object")
- message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
- if (object.exp != null)
- if ($util.Long)
- (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
- else if (typeof object.exp === "string")
- message.exp = parseInt(object.exp, 10);
- else if (typeof object.exp === "number")
- message.exp = object.exp;
- else if (typeof object.exp === "object")
- message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a manual_buy_exp_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.manual_buy_exp_rsp
- * @static
- * @param {game.manual_buy_exp_rsp} message manual_buy_exp_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- manual_buy_exp_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.level = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.exp = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.level != null && message.hasOwnProperty("level"))
- if (typeof message.level === "number")
- object.level = options.longs === String ? String(message.level) : message.level;
- else
- object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
- if (message.exp != null && message.hasOwnProperty("exp"))
- if (typeof message.exp === "number")
- object.exp = options.longs === String ? String(message.exp) : message.exp;
- else
- object.exp = options.longs === String ? $util.Long.prototype.toString.call(message.exp) : options.longs === Number ? new $util.LongBits(message.exp.low >>> 0, message.exp.high >>> 0).toNumber() : message.exp;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this manual_buy_exp_rsp to JSON.
- * @function toJSON
- * @memberof game.manual_buy_exp_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- manual_buy_exp_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return manual_buy_exp_rsp;
- })();
- game.manual_get_award = (function() {
- /**
- * Properties of a manual_get_award.
- * @memberof game
- * @interface Imanual_get_award
- * @property {number|Long|null} [moduleid] manual_get_award moduleid
- */
- /**
- * Constructs a new manual_get_award.
- * @memberof game
- * @classdesc Represents a manual_get_award.
- * @implements Imanual_get_award
- * @constructor
- * @param {game.Imanual_get_award=} [properties] Properties to set
- */
- function manual_get_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * manual_get_award moduleid.
- * @member {number|Long} moduleid
- * @memberof game.manual_get_award
- * @instance
- */
- manual_get_award.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new manual_get_award instance using the specified properties.
- * @function create
- * @memberof game.manual_get_award
- * @static
- * @param {game.Imanual_get_award=} [properties] Properties to set
- * @returns {game.manual_get_award} manual_get_award instance
- */
- manual_get_award.create = function create(properties) {
- return new manual_get_award(properties);
- };
- /**
- * Encodes the specified manual_get_award message. Does not implicitly {@link game.manual_get_award.verify|verify} messages.
- * @function encode
- * @memberof game.manual_get_award
- * @static
- * @param {game.Imanual_get_award} message manual_get_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_get_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified manual_get_award message, length delimited. Does not implicitly {@link game.manual_get_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.manual_get_award
- * @static
- * @param {game.Imanual_get_award} message manual_get_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_get_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a manual_get_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.manual_get_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.manual_get_award} manual_get_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_get_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_get_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a manual_get_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.manual_get_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.manual_get_award} manual_get_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_get_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a manual_get_award message.
- * @function verify
- * @memberof game.manual_get_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- manual_get_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a manual_get_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.manual_get_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.manual_get_award} manual_get_award
- */
- manual_get_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.manual_get_award)
- return object;
- let message = new $root.game.manual_get_award();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a manual_get_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.manual_get_award
- * @static
- * @param {game.manual_get_award} message manual_get_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- manual_get_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this manual_get_award to JSON.
- * @function toJSON
- * @memberof game.manual_get_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- manual_get_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return manual_get_award;
- })();
- game.manual_get_award_rsp = (function() {
- /**
- * Properties of a manual_get_award_rsp.
- * @memberof game
- * @interface Imanual_get_award_rsp
- * @property {number|Long|null} [errno] manual_get_award_rsp errno
- * @property {number|Long|null} [award] manual_get_award_rsp award
- * @property {number|Long|null} [moduleid] manual_get_award_rsp moduleid
- */
- /**
- * Constructs a new manual_get_award_rsp.
- * @memberof game
- * @classdesc Represents a manual_get_award_rsp.
- * @implements Imanual_get_award_rsp
- * @constructor
- * @param {game.Imanual_get_award_rsp=} [properties] Properties to set
- */
- function manual_get_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * manual_get_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.manual_get_award_rsp
- * @instance
- */
- manual_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_get_award_rsp award.
- * @member {number|Long} award
- * @memberof game.manual_get_award_rsp
- * @instance
- */
- manual_get_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_get_award_rsp moduleid.
- * @member {number|Long} moduleid
- * @memberof game.manual_get_award_rsp
- * @instance
- */
- manual_get_award_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new manual_get_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.manual_get_award_rsp
- * @static
- * @param {game.Imanual_get_award_rsp=} [properties] Properties to set
- * @returns {game.manual_get_award_rsp} manual_get_award_rsp instance
- */
- manual_get_award_rsp.create = function create(properties) {
- return new manual_get_award_rsp(properties);
- };
- /**
- * Encodes the specified manual_get_award_rsp message. Does not implicitly {@link game.manual_get_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.manual_get_award_rsp
- * @static
- * @param {game.Imanual_get_award_rsp} message manual_get_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_get_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.award);
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified manual_get_award_rsp message, length delimited. Does not implicitly {@link game.manual_get_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.manual_get_award_rsp
- * @static
- * @param {game.Imanual_get_award_rsp} message manual_get_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a manual_get_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.manual_get_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.manual_get_award_rsp} manual_get_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_get_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_get_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.award = reader.int64();
- break;
- case 3:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a manual_get_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.manual_get_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.manual_get_award_rsp} manual_get_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a manual_get_award_rsp message.
- * @function verify
- * @memberof game.manual_get_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- manual_get_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a manual_get_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.manual_get_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.manual_get_award_rsp} manual_get_award_rsp
- */
- manual_get_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.manual_get_award_rsp)
- return object;
- let message = new $root.game.manual_get_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a manual_get_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.manual_get_award_rsp
- * @static
- * @param {game.manual_get_award_rsp} message manual_get_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- manual_get_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this manual_get_award_rsp to JSON.
- * @function toJSON
- * @memberof game.manual_get_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- manual_get_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return manual_get_award_rsp;
- })();
- game.manual_notify = (function() {
- /**
- * Properties of a manual_notify.
- * @memberof game
- * @interface Imanual_notify
- * @property {boolean|null} [open] manual_notify open
- * @property {number|Long|null} [openTime] manual_notify openTime
- * @property {number|Long|null} [level] manual_notify level
- * @property {number|Long|null} [exp] manual_notify exp
- * @property {number|Long|null} [round] manual_notify round
- * @property {Array.<game.Imanual>|null} [list] manual_notify list
- * @property {number|Long|null} [moduleid] manual_notify moduleid
- */
- /**
- * Constructs a new manual_notify.
- * @memberof game
- * @classdesc Represents a manual_notify.
- * @implements Imanual_notify
- * @constructor
- * @param {game.Imanual_notify=} [properties] Properties to set
- */
- function manual_notify(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * manual_notify open.
- * @member {boolean} open
- * @memberof game.manual_notify
- * @instance
- */
- manual_notify.prototype.open = false;
- /**
- * manual_notify openTime.
- * @member {number|Long} openTime
- * @memberof game.manual_notify
- * @instance
- */
- manual_notify.prototype.openTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_notify level.
- * @member {number|Long} level
- * @memberof game.manual_notify
- * @instance
- */
- manual_notify.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_notify exp.
- * @member {number|Long} exp
- * @memberof game.manual_notify
- * @instance
- */
- manual_notify.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_notify round.
- * @member {number|Long} round
- * @memberof game.manual_notify
- * @instance
- */
- manual_notify.prototype.round = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_notify list.
- * @member {Array.<game.Imanual>} list
- * @memberof game.manual_notify
- * @instance
- */
- manual_notify.prototype.list = $util.emptyArray;
- /**
- * manual_notify moduleid.
- * @member {number|Long} moduleid
- * @memberof game.manual_notify
- * @instance
- */
- manual_notify.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new manual_notify instance using the specified properties.
- * @function create
- * @memberof game.manual_notify
- * @static
- * @param {game.Imanual_notify=} [properties] Properties to set
- * @returns {game.manual_notify} manual_notify instance
- */
- manual_notify.create = function create(properties) {
- return new manual_notify(properties);
- };
- /**
- * Encodes the specified manual_notify message. Does not implicitly {@link game.manual_notify.verify|verify} messages.
- * @function encode
- * @memberof game.manual_notify
- * @static
- * @param {game.Imanual_notify} message manual_notify message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_notify.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.open != null && Object.hasOwnProperty.call(message, "open"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.open);
- if (message.openTime != null && Object.hasOwnProperty.call(message, "openTime"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.openTime);
- if (message.level != null && Object.hasOwnProperty.call(message, "level"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.level);
- if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.exp);
- if (message.round != null && Object.hasOwnProperty.call(message, "round"))
- writer.uint32(/* id 6, wireType 0 =*/48).int64(message.round);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.manual.encode(message.list[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 8, wireType 0 =*/64).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified manual_notify message, length delimited. Does not implicitly {@link game.manual_notify.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.manual_notify
- * @static
- * @param {game.Imanual_notify} message manual_notify message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_notify.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a manual_notify message from the specified reader or buffer.
- * @function decode
- * @memberof game.manual_notify
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.manual_notify} manual_notify
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_notify.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_notify();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.open = reader.bool();
- break;
- case 3:
- message.openTime = reader.int64();
- break;
- case 4:
- message.level = reader.int64();
- break;
- case 5:
- message.exp = reader.int64();
- break;
- case 6:
- message.round = reader.int64();
- break;
- case 7:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.manual.decode(reader, reader.uint32()));
- break;
- case 8:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a manual_notify message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.manual_notify
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.manual_notify} manual_notify
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_notify.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a manual_notify message.
- * @function verify
- * @memberof game.manual_notify
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- manual_notify.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.open != null && message.hasOwnProperty("open"))
- if (typeof message.open !== "boolean")
- return "open: boolean expected";
- if (message.openTime != null && message.hasOwnProperty("openTime"))
- if (!$util.isInteger(message.openTime) && !(message.openTime && $util.isInteger(message.openTime.low) && $util.isInteger(message.openTime.high)))
- return "openTime: integer|Long expected";
- if (message.level != null && message.hasOwnProperty("level"))
- if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
- return "level: integer|Long expected";
- if (message.exp != null && message.hasOwnProperty("exp"))
- if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
- return "exp: integer|Long expected";
- if (message.round != null && message.hasOwnProperty("round"))
- if (!$util.isInteger(message.round) && !(message.round && $util.isInteger(message.round.low) && $util.isInteger(message.round.high)))
- return "round: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.manual.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a manual_notify message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.manual_notify
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.manual_notify} manual_notify
- */
- manual_notify.fromObject = function fromObject(object) {
- if (object instanceof $root.game.manual_notify)
- return object;
- let message = new $root.game.manual_notify();
- if (object.open != null)
- message.open = Boolean(object.open);
- if (object.openTime != null)
- if ($util.Long)
- (message.openTime = $util.Long.fromValue(object.openTime)).unsigned = false;
- else if (typeof object.openTime === "string")
- message.openTime = parseInt(object.openTime, 10);
- else if (typeof object.openTime === "number")
- message.openTime = object.openTime;
- else if (typeof object.openTime === "object")
- message.openTime = new $util.LongBits(object.openTime.low >>> 0, object.openTime.high >>> 0).toNumber();
- if (object.level != null)
- if ($util.Long)
- (message.level = $util.Long.fromValue(object.level)).unsigned = false;
- else if (typeof object.level === "string")
- message.level = parseInt(object.level, 10);
- else if (typeof object.level === "number")
- message.level = object.level;
- else if (typeof object.level === "object")
- message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
- if (object.exp != null)
- if ($util.Long)
- (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
- else if (typeof object.exp === "string")
- message.exp = parseInt(object.exp, 10);
- else if (typeof object.exp === "number")
- message.exp = object.exp;
- else if (typeof object.exp === "object")
- message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
- if (object.round != null)
- if ($util.Long)
- (message.round = $util.Long.fromValue(object.round)).unsigned = false;
- else if (typeof object.round === "string")
- message.round = parseInt(object.round, 10);
- else if (typeof object.round === "number")
- message.round = object.round;
- else if (typeof object.round === "object")
- message.round = new $util.LongBits(object.round.low >>> 0, object.round.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.manual_notify.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.manual_notify.list: object expected");
- message.list[i] = $root.game.manual.fromObject(object.list[i]);
- }
- }
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a manual_notify message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.manual_notify
- * @static
- * @param {game.manual_notify} message manual_notify
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- manual_notify.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults) {
- object.open = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.openTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.openTime = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.level = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.exp = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.round = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.round = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- }
- if (message.open != null && message.hasOwnProperty("open"))
- object.open = message.open;
- if (message.openTime != null && message.hasOwnProperty("openTime"))
- if (typeof message.openTime === "number")
- object.openTime = options.longs === String ? String(message.openTime) : message.openTime;
- else
- object.openTime = options.longs === String ? $util.Long.prototype.toString.call(message.openTime) : options.longs === Number ? new $util.LongBits(message.openTime.low >>> 0, message.openTime.high >>> 0).toNumber() : message.openTime;
- if (message.level != null && message.hasOwnProperty("level"))
- if (typeof message.level === "number")
- object.level = options.longs === String ? String(message.level) : message.level;
- else
- object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
- if (message.exp != null && message.hasOwnProperty("exp"))
- if (typeof message.exp === "number")
- object.exp = options.longs === String ? String(message.exp) : message.exp;
- else
- object.exp = options.longs === String ? $util.Long.prototype.toString.call(message.exp) : options.longs === Number ? new $util.LongBits(message.exp.low >>> 0, message.exp.high >>> 0).toNumber() : message.exp;
- if (message.round != null && message.hasOwnProperty("round"))
- if (typeof message.round === "number")
- object.round = options.longs === String ? String(message.round) : message.round;
- else
- object.round = options.longs === String ? $util.Long.prototype.toString.call(message.round) : options.longs === Number ? new $util.LongBits(message.round.low >>> 0, message.round.high >>> 0).toNumber() : message.round;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.manual.toObject(message.list[j], options);
- }
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this manual_notify to JSON.
- * @function toJSON
- * @memberof game.manual_notify
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- manual_notify.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return manual_notify;
- })();
- game.manual_buy = (function() {
- /**
- * Properties of a manual_buy.
- * @memberof game
- * @interface Imanual_buy
- * @property {number|Long|null} [giftid] manual_buy giftid
- * @property {number|Long|null} [moduleid] manual_buy moduleid
- */
- /**
- * Constructs a new manual_buy.
- * @memberof game
- * @classdesc Represents a manual_buy.
- * @implements Imanual_buy
- * @constructor
- * @param {game.Imanual_buy=} [properties] Properties to set
- */
- function manual_buy(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * manual_buy giftid.
- * @member {number|Long} giftid
- * @memberof game.manual_buy
- * @instance
- */
- manual_buy.prototype.giftid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_buy moduleid.
- * @member {number|Long} moduleid
- * @memberof game.manual_buy
- * @instance
- */
- manual_buy.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new manual_buy instance using the specified properties.
- * @function create
- * @memberof game.manual_buy
- * @static
- * @param {game.Imanual_buy=} [properties] Properties to set
- * @returns {game.manual_buy} manual_buy instance
- */
- manual_buy.create = function create(properties) {
- return new manual_buy(properties);
- };
- /**
- * Encodes the specified manual_buy message. Does not implicitly {@link game.manual_buy.verify|verify} messages.
- * @function encode
- * @memberof game.manual_buy
- * @static
- * @param {game.Imanual_buy} message manual_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_buy.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.giftid != null && Object.hasOwnProperty.call(message, "giftid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.giftid);
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified manual_buy message, length delimited. Does not implicitly {@link game.manual_buy.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.manual_buy
- * @static
- * @param {game.Imanual_buy} message manual_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_buy.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a manual_buy message from the specified reader or buffer.
- * @function decode
- * @memberof game.manual_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.manual_buy} manual_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_buy.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_buy();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.giftid = reader.int64();
- break;
- case 2:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a manual_buy message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.manual_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.manual_buy} manual_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_buy.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a manual_buy message.
- * @function verify
- * @memberof game.manual_buy
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- manual_buy.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.giftid != null && message.hasOwnProperty("giftid"))
- if (!$util.isInteger(message.giftid) && !(message.giftid && $util.isInteger(message.giftid.low) && $util.isInteger(message.giftid.high)))
- return "giftid: integer|Long expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a manual_buy message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.manual_buy
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.manual_buy} manual_buy
- */
- manual_buy.fromObject = function fromObject(object) {
- if (object instanceof $root.game.manual_buy)
- return object;
- let message = new $root.game.manual_buy();
- if (object.giftid != null)
- if ($util.Long)
- (message.giftid = $util.Long.fromValue(object.giftid)).unsigned = false;
- else if (typeof object.giftid === "string")
- message.giftid = parseInt(object.giftid, 10);
- else if (typeof object.giftid === "number")
- message.giftid = object.giftid;
- else if (typeof object.giftid === "object")
- message.giftid = new $util.LongBits(object.giftid.low >>> 0, object.giftid.high >>> 0).toNumber();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a manual_buy message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.manual_buy
- * @static
- * @param {game.manual_buy} message manual_buy
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- manual_buy.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.giftid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.giftid = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- }
- if (message.giftid != null && message.hasOwnProperty("giftid"))
- if (typeof message.giftid === "number")
- object.giftid = options.longs === String ? String(message.giftid) : message.giftid;
- else
- object.giftid = options.longs === String ? $util.Long.prototype.toString.call(message.giftid) : options.longs === Number ? new $util.LongBits(message.giftid.low >>> 0, message.giftid.high >>> 0).toNumber() : message.giftid;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this manual_buy to JSON.
- * @function toJSON
- * @memberof game.manual_buy
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- manual_buy.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return manual_buy;
- })();
- game.manual_buy_rsp = (function() {
- /**
- * Properties of a manual_buy_rsp.
- * @memberof game
- * @interface Imanual_buy_rsp
- * @property {number|Long|null} [errno] manual_buy_rsp errno
- * @property {number|Long|null} [moduleid] manual_buy_rsp moduleid
- */
- /**
- * Constructs a new manual_buy_rsp.
- * @memberof game
- * @classdesc Represents a manual_buy_rsp.
- * @implements Imanual_buy_rsp
- * @constructor
- * @param {game.Imanual_buy_rsp=} [properties] Properties to set
- */
- function manual_buy_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * manual_buy_rsp errno.
- * @member {number|Long} errno
- * @memberof game.manual_buy_rsp
- * @instance
- */
- manual_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * manual_buy_rsp moduleid.
- * @member {number|Long} moduleid
- * @memberof game.manual_buy_rsp
- * @instance
- */
- manual_buy_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new manual_buy_rsp instance using the specified properties.
- * @function create
- * @memberof game.manual_buy_rsp
- * @static
- * @param {game.Imanual_buy_rsp=} [properties] Properties to set
- * @returns {game.manual_buy_rsp} manual_buy_rsp instance
- */
- manual_buy_rsp.create = function create(properties) {
- return new manual_buy_rsp(properties);
- };
- /**
- * Encodes the specified manual_buy_rsp message. Does not implicitly {@link game.manual_buy_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.manual_buy_rsp
- * @static
- * @param {game.Imanual_buy_rsp} message manual_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_buy_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified manual_buy_rsp message, length delimited. Does not implicitly {@link game.manual_buy_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.manual_buy_rsp
- * @static
- * @param {game.Imanual_buy_rsp} message manual_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a manual_buy_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.manual_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.manual_buy_rsp} manual_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_buy_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_buy_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a manual_buy_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.manual_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.manual_buy_rsp} manual_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a manual_buy_rsp message.
- * @function verify
- * @memberof game.manual_buy_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- manual_buy_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a manual_buy_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.manual_buy_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.manual_buy_rsp} manual_buy_rsp
- */
- manual_buy_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.manual_buy_rsp)
- return object;
- let message = new $root.game.manual_buy_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a manual_buy_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.manual_buy_rsp
- * @static
- * @param {game.manual_buy_rsp} message manual_buy_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- manual_buy_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this manual_buy_rsp to JSON.
- * @function toJSON
- * @memberof game.manual_buy_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- manual_buy_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return manual_buy_rsp;
- })();
- game.draw = (function() {
- /**
- * Properties of a draw.
- * @memberof game
- * @interface Idraw
- * @property {number|Long|null} [drawType] draw drawType
- * @property {number|Long|null} [payType] draw payType
- * @property {number|Long|null} [num] draw num
- */
- /**
- * Constructs a new draw.
- * @memberof game
- * @classdesc Represents a draw.
- * @implements Idraw
- * @constructor
- * @param {game.Idraw=} [properties] Properties to set
- */
- function draw(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * draw drawType.
- * @member {number|Long} drawType
- * @memberof game.draw
- * @instance
- */
- draw.prototype.drawType = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * draw payType.
- * @member {number|Long} payType
- * @memberof game.draw
- * @instance
- */
- draw.prototype.payType = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * draw num.
- * @member {number|Long} num
- * @memberof game.draw
- * @instance
- */
- draw.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new draw instance using the specified properties.
- * @function create
- * @memberof game.draw
- * @static
- * @param {game.Idraw=} [properties] Properties to set
- * @returns {game.draw} draw instance
- */
- draw.create = function create(properties) {
- return new draw(properties);
- };
- /**
- * Encodes the specified draw message. Does not implicitly {@link game.draw.verify|verify} messages.
- * @function encode
- * @memberof game.draw
- * @static
- * @param {game.Idraw} message draw message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- draw.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.drawType != null && Object.hasOwnProperty.call(message, "drawType"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.drawType);
- if (message.payType != null && Object.hasOwnProperty.call(message, "payType"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.payType);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
- return writer;
- };
- /**
- * Encodes the specified draw message, length delimited. Does not implicitly {@link game.draw.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.draw
- * @static
- * @param {game.Idraw} message draw message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- draw.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a draw message from the specified reader or buffer.
- * @function decode
- * @memberof game.draw
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.draw} draw
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- draw.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.drawType = reader.int64();
- break;
- case 2:
- message.payType = reader.int64();
- break;
- case 3:
- message.num = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a draw message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.draw
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.draw} draw
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- draw.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a draw message.
- * @function verify
- * @memberof game.draw
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- draw.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.drawType != null && message.hasOwnProperty("drawType"))
- if (!$util.isInteger(message.drawType) && !(message.drawType && $util.isInteger(message.drawType.low) && $util.isInteger(message.drawType.high)))
- return "drawType: integer|Long expected";
- if (message.payType != null && message.hasOwnProperty("payType"))
- if (!$util.isInteger(message.payType) && !(message.payType && $util.isInteger(message.payType.low) && $util.isInteger(message.payType.high)))
- return "payType: integer|Long expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- return null;
- };
- /**
- * Creates a draw message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.draw
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.draw} draw
- */
- draw.fromObject = function fromObject(object) {
- if (object instanceof $root.game.draw)
- return object;
- let message = new $root.game.draw();
- if (object.drawType != null)
- if ($util.Long)
- (message.drawType = $util.Long.fromValue(object.drawType)).unsigned = false;
- else if (typeof object.drawType === "string")
- message.drawType = parseInt(object.drawType, 10);
- else if (typeof object.drawType === "number")
- message.drawType = object.drawType;
- else if (typeof object.drawType === "object")
- message.drawType = new $util.LongBits(object.drawType.low >>> 0, object.drawType.high >>> 0).toNumber();
- if (object.payType != null)
- if ($util.Long)
- (message.payType = $util.Long.fromValue(object.payType)).unsigned = false;
- else if (typeof object.payType === "string")
- message.payType = parseInt(object.payType, 10);
- else if (typeof object.payType === "number")
- message.payType = object.payType;
- else if (typeof object.payType === "object")
- message.payType = new $util.LongBits(object.payType.low >>> 0, object.payType.high >>> 0).toNumber();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a draw message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.draw
- * @static
- * @param {game.draw} message draw
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- draw.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.drawType = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.drawType = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.payType = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.payType = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- }
- if (message.drawType != null && message.hasOwnProperty("drawType"))
- if (typeof message.drawType === "number")
- object.drawType = options.longs === String ? String(message.drawType) : message.drawType;
- else
- object.drawType = options.longs === String ? $util.Long.prototype.toString.call(message.drawType) : options.longs === Number ? new $util.LongBits(message.drawType.low >>> 0, message.drawType.high >>> 0).toNumber() : message.drawType;
- if (message.payType != null && message.hasOwnProperty("payType"))
- if (typeof message.payType === "number")
- object.payType = options.longs === String ? String(message.payType) : message.payType;
- else
- object.payType = options.longs === String ? $util.Long.prototype.toString.call(message.payType) : options.longs === Number ? new $util.LongBits(message.payType.low >>> 0, message.payType.high >>> 0).toNumber() : message.payType;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- return object;
- };
- /**
- * Converts this draw to JSON.
- * @function toJSON
- * @memberof game.draw
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- draw.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return draw;
- })();
- game.draw_rsp = (function() {
- /**
- * Properties of a draw_rsp.
- * @memberof game
- * @interface Idraw_rsp
- * @property {number|Long|null} [errno] draw_rsp errno
- * @property {number|Long|null} [drawType] draw_rsp drawType
- * @property {number|Long|null} [daily] draw_rsp daily
- * @property {number|Long|null} [free] draw_rsp free
- * @property {Array.<number|Long>|null} [list] draw_rsp list
- * @property {Array.<game.Idraw_award_info>|null} [awardList] draw_rsp awardList
- */
- /**
- * Constructs a new draw_rsp.
- * @memberof game
- * @classdesc Represents a draw_rsp.
- * @implements Idraw_rsp
- * @constructor
- * @param {game.Idraw_rsp=} [properties] Properties to set
- */
- function draw_rsp(properties) {
- this.list = [];
- this.awardList = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * draw_rsp errno.
- * @member {number|Long} errno
- * @memberof game.draw_rsp
- * @instance
- */
- draw_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * draw_rsp drawType.
- * @member {number|Long} drawType
- * @memberof game.draw_rsp
- * @instance
- */
- draw_rsp.prototype.drawType = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * draw_rsp daily.
- * @member {number|Long} daily
- * @memberof game.draw_rsp
- * @instance
- */
- draw_rsp.prototype.daily = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * draw_rsp free.
- * @member {number|Long} free
- * @memberof game.draw_rsp
- * @instance
- */
- draw_rsp.prototype.free = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * draw_rsp list.
- * @member {Array.<number|Long>} list
- * @memberof game.draw_rsp
- * @instance
- */
- draw_rsp.prototype.list = $util.emptyArray;
- /**
- * draw_rsp awardList.
- * @member {Array.<game.Idraw_award_info>} awardList
- * @memberof game.draw_rsp
- * @instance
- */
- draw_rsp.prototype.awardList = $util.emptyArray;
- /**
- * Creates a new draw_rsp instance using the specified properties.
- * @function create
- * @memberof game.draw_rsp
- * @static
- * @param {game.Idraw_rsp=} [properties] Properties to set
- * @returns {game.draw_rsp} draw_rsp instance
- */
- draw_rsp.create = function create(properties) {
- return new draw_rsp(properties);
- };
- /**
- * Encodes the specified draw_rsp message. Does not implicitly {@link game.draw_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.draw_rsp
- * @static
- * @param {game.Idraw_rsp} message draw_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- draw_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.drawType != null && Object.hasOwnProperty.call(message, "drawType"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.drawType);
- if (message.daily != null && Object.hasOwnProperty.call(message, "daily"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.daily);
- if (message.free != null && Object.hasOwnProperty.call(message, "free"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.free);
- if (message.list != null && message.list.length) {
- writer.uint32(/* id 5, wireType 2 =*/42).fork();
- for (let i = 0; i < message.list.length; ++i)
- writer.int64(message.list[i]);
- writer.ldelim();
- }
- if (message.awardList != null && message.awardList.length)
- for (let i = 0; i < message.awardList.length; ++i)
- $root.game.draw_award_info.encode(message.awardList[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified draw_rsp message, length delimited. Does not implicitly {@link game.draw_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.draw_rsp
- * @static
- * @param {game.Idraw_rsp} message draw_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- draw_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a draw_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.draw_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.draw_rsp} draw_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- draw_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.drawType = reader.int64();
- break;
- case 3:
- message.daily = reader.int64();
- break;
- case 4:
- message.free = reader.int64();
- break;
- case 5:
- if (!(message.list && message.list.length))
- message.list = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.list.push(reader.int64());
- } else
- message.list.push(reader.int64());
- break;
- case 6:
- if (!(message.awardList && message.awardList.length))
- message.awardList = [];
- message.awardList.push($root.game.draw_award_info.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a draw_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.draw_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.draw_rsp} draw_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- draw_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a draw_rsp message.
- * @function verify
- * @memberof game.draw_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- draw_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.drawType != null && message.hasOwnProperty("drawType"))
- if (!$util.isInteger(message.drawType) && !(message.drawType && $util.isInteger(message.drawType.low) && $util.isInteger(message.drawType.high)))
- return "drawType: integer|Long expected";
- if (message.daily != null && message.hasOwnProperty("daily"))
- if (!$util.isInteger(message.daily) && !(message.daily && $util.isInteger(message.daily.low) && $util.isInteger(message.daily.high)))
- return "daily: integer|Long expected";
- if (message.free != null && message.hasOwnProperty("free"))
- if (!$util.isInteger(message.free) && !(message.free && $util.isInteger(message.free.low) && $util.isInteger(message.free.high)))
- return "free: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isInteger(message.list[i]) && !(message.list[i] && $util.isInteger(message.list[i].low) && $util.isInteger(message.list[i].high)))
- return "list: integer|Long[] expected";
- }
- if (message.awardList != null && message.hasOwnProperty("awardList")) {
- if (!Array.isArray(message.awardList))
- return "awardList: array expected";
- for (let i = 0; i < message.awardList.length; ++i) {
- let error = $root.game.draw_award_info.verify(message.awardList[i]);
- if (error)
- return "awardList." + error;
- }
- }
- return null;
- };
- /**
- * Creates a draw_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.draw_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.draw_rsp} draw_rsp
- */
- draw_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.draw_rsp)
- return object;
- let message = new $root.game.draw_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.drawType != null)
- if ($util.Long)
- (message.drawType = $util.Long.fromValue(object.drawType)).unsigned = false;
- else if (typeof object.drawType === "string")
- message.drawType = parseInt(object.drawType, 10);
- else if (typeof object.drawType === "number")
- message.drawType = object.drawType;
- else if (typeof object.drawType === "object")
- message.drawType = new $util.LongBits(object.drawType.low >>> 0, object.drawType.high >>> 0).toNumber();
- if (object.daily != null)
- if ($util.Long)
- (message.daily = $util.Long.fromValue(object.daily)).unsigned = false;
- else if (typeof object.daily === "string")
- message.daily = parseInt(object.daily, 10);
- else if (typeof object.daily === "number")
- message.daily = object.daily;
- else if (typeof object.daily === "object")
- message.daily = new $util.LongBits(object.daily.low >>> 0, object.daily.high >>> 0).toNumber();
- if (object.free != null)
- if ($util.Long)
- (message.free = $util.Long.fromValue(object.free)).unsigned = false;
- else if (typeof object.free === "string")
- message.free = parseInt(object.free, 10);
- else if (typeof object.free === "number")
- message.free = object.free;
- else if (typeof object.free === "object")
- message.free = new $util.LongBits(object.free.low >>> 0, object.free.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.draw_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- if ($util.Long)
- (message.list[i] = $util.Long.fromValue(object.list[i])).unsigned = false;
- else if (typeof object.list[i] === "string")
- message.list[i] = parseInt(object.list[i], 10);
- else if (typeof object.list[i] === "number")
- message.list[i] = object.list[i];
- else if (typeof object.list[i] === "object")
- message.list[i] = new $util.LongBits(object.list[i].low >>> 0, object.list[i].high >>> 0).toNumber();
- }
- if (object.awardList) {
- if (!Array.isArray(object.awardList))
- throw TypeError(".game.draw_rsp.awardList: array expected");
- message.awardList = [];
- for (let i = 0; i < object.awardList.length; ++i) {
- if (typeof object.awardList[i] !== "object")
- throw TypeError(".game.draw_rsp.awardList: object expected");
- message.awardList[i] = $root.game.draw_award_info.fromObject(object.awardList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a draw_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.draw_rsp
- * @static
- * @param {game.draw_rsp} message draw_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- draw_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.list = [];
- object.awardList = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.drawType = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.drawType = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.daily = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.daily = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.free = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.free = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.drawType != null && message.hasOwnProperty("drawType"))
- if (typeof message.drawType === "number")
- object.drawType = options.longs === String ? String(message.drawType) : message.drawType;
- else
- object.drawType = options.longs === String ? $util.Long.prototype.toString.call(message.drawType) : options.longs === Number ? new $util.LongBits(message.drawType.low >>> 0, message.drawType.high >>> 0).toNumber() : message.drawType;
- if (message.daily != null && message.hasOwnProperty("daily"))
- if (typeof message.daily === "number")
- object.daily = options.longs === String ? String(message.daily) : message.daily;
- else
- object.daily = options.longs === String ? $util.Long.prototype.toString.call(message.daily) : options.longs === Number ? new $util.LongBits(message.daily.low >>> 0, message.daily.high >>> 0).toNumber() : message.daily;
- if (message.free != null && message.hasOwnProperty("free"))
- if (typeof message.free === "number")
- object.free = options.longs === String ? String(message.free) : message.free;
- else
- object.free = options.longs === String ? $util.Long.prototype.toString.call(message.free) : options.longs === Number ? new $util.LongBits(message.free.low >>> 0, message.free.high >>> 0).toNumber() : message.free;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- if (typeof message.list[j] === "number")
- object.list[j] = options.longs === String ? String(message.list[j]) : message.list[j];
- else
- object.list[j] = options.longs === String ? $util.Long.prototype.toString.call(message.list[j]) : options.longs === Number ? new $util.LongBits(message.list[j].low >>> 0, message.list[j].high >>> 0).toNumber() : message.list[j];
- }
- if (message.awardList && message.awardList.length) {
- object.awardList = [];
- for (let j = 0; j < message.awardList.length; ++j)
- object.awardList[j] = $root.game.draw_award_info.toObject(message.awardList[j], options);
- }
- return object;
- };
- /**
- * Converts this draw_rsp to JSON.
- * @function toJSON
- * @memberof game.draw_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- draw_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return draw_rsp;
- })();
- game.draw_get_data = (function() {
- /**
- * Properties of a draw_get_data.
- * @memberof game
- * @interface Idraw_get_data
- */
- /**
- * Constructs a new draw_get_data.
- * @memberof game
- * @classdesc Represents a draw_get_data.
- * @implements Idraw_get_data
- * @constructor
- * @param {game.Idraw_get_data=} [properties] Properties to set
- */
- function draw_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new draw_get_data instance using the specified properties.
- * @function create
- * @memberof game.draw_get_data
- * @static
- * @param {game.Idraw_get_data=} [properties] Properties to set
- * @returns {game.draw_get_data} draw_get_data instance
- */
- draw_get_data.create = function create(properties) {
- return new draw_get_data(properties);
- };
- /**
- * Encodes the specified draw_get_data message. Does not implicitly {@link game.draw_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.draw_get_data
- * @static
- * @param {game.Idraw_get_data} message draw_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- draw_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified draw_get_data message, length delimited. Does not implicitly {@link game.draw_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.draw_get_data
- * @static
- * @param {game.Idraw_get_data} message draw_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- draw_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a draw_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.draw_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.draw_get_data} draw_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- draw_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a draw_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.draw_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.draw_get_data} draw_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- draw_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a draw_get_data message.
- * @function verify
- * @memberof game.draw_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- draw_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a draw_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.draw_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.draw_get_data} draw_get_data
- */
- draw_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.draw_get_data)
- return object;
- return new $root.game.draw_get_data();
- };
- /**
- * Creates a plain object from a draw_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.draw_get_data
- * @static
- * @param {game.draw_get_data} message draw_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- draw_get_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this draw_get_data to JSON.
- * @function toJSON
- * @memberof game.draw_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- draw_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return draw_get_data;
- })();
- game.draw_get_data_rsp = (function() {
- /**
- * Properties of a draw_get_data_rsp.
- * @memberof game
- * @interface Idraw_get_data_rsp
- * @property {number|Long|null} [errno] draw_get_data_rsp errno
- * @property {game.Idraw_info|null} [hero] draw_get_data_rsp hero
- * @property {game.Idraw_info|null} [hero2] draw_get_data_rsp hero2
- * @property {game.Idraw_info|null} [equip] draw_get_data_rsp equip
- */
- /**
- * Constructs a new draw_get_data_rsp.
- * @memberof game
- * @classdesc Represents a draw_get_data_rsp.
- * @implements Idraw_get_data_rsp
- * @constructor
- * @param {game.Idraw_get_data_rsp=} [properties] Properties to set
- */
- function draw_get_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * draw_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.draw_get_data_rsp
- * @instance
- */
- draw_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * draw_get_data_rsp hero.
- * @member {game.Idraw_info|null|undefined} hero
- * @memberof game.draw_get_data_rsp
- * @instance
- */
- draw_get_data_rsp.prototype.hero = null;
- /**
- * draw_get_data_rsp hero2.
- * @member {game.Idraw_info|null|undefined} hero2
- * @memberof game.draw_get_data_rsp
- * @instance
- */
- draw_get_data_rsp.prototype.hero2 = null;
- /**
- * draw_get_data_rsp equip.
- * @member {game.Idraw_info|null|undefined} equip
- * @memberof game.draw_get_data_rsp
- * @instance
- */
- draw_get_data_rsp.prototype.equip = null;
- /**
- * Creates a new draw_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.draw_get_data_rsp
- * @static
- * @param {game.Idraw_get_data_rsp=} [properties] Properties to set
- * @returns {game.draw_get_data_rsp} draw_get_data_rsp instance
- */
- draw_get_data_rsp.create = function create(properties) {
- return new draw_get_data_rsp(properties);
- };
- /**
- * Encodes the specified draw_get_data_rsp message. Does not implicitly {@link game.draw_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.draw_get_data_rsp
- * @static
- * @param {game.Idraw_get_data_rsp} message draw_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- draw_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.hero != null && Object.hasOwnProperty.call(message, "hero"))
- $root.game.draw_info.encode(message.hero, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- if (message.hero2 != null && Object.hasOwnProperty.call(message, "hero2"))
- $root.game.draw_info.encode(message.hero2, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- if (message.equip != null && Object.hasOwnProperty.call(message, "equip"))
- $root.game.draw_info.encode(message.equip, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified draw_get_data_rsp message, length delimited. Does not implicitly {@link game.draw_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.draw_get_data_rsp
- * @static
- * @param {game.Idraw_get_data_rsp} message draw_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- draw_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a draw_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.draw_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.draw_get_data_rsp} draw_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- draw_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.hero = $root.game.draw_info.decode(reader, reader.uint32());
- break;
- case 3:
- message.hero2 = $root.game.draw_info.decode(reader, reader.uint32());
- break;
- case 4:
- message.equip = $root.game.draw_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a draw_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.draw_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.draw_get_data_rsp} draw_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- draw_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a draw_get_data_rsp message.
- * @function verify
- * @memberof game.draw_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- draw_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.hero != null && message.hasOwnProperty("hero")) {
- let error = $root.game.draw_info.verify(message.hero);
- if (error)
- return "hero." + error;
- }
- if (message.hero2 != null && message.hasOwnProperty("hero2")) {
- let error = $root.game.draw_info.verify(message.hero2);
- if (error)
- return "hero2." + error;
- }
- if (message.equip != null && message.hasOwnProperty("equip")) {
- let error = $root.game.draw_info.verify(message.equip);
- if (error)
- return "equip." + error;
- }
- return null;
- };
- /**
- * Creates a draw_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.draw_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.draw_get_data_rsp} draw_get_data_rsp
- */
- draw_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.draw_get_data_rsp)
- return object;
- let message = new $root.game.draw_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.hero != null) {
- if (typeof object.hero !== "object")
- throw TypeError(".game.draw_get_data_rsp.hero: object expected");
- message.hero = $root.game.draw_info.fromObject(object.hero);
- }
- if (object.hero2 != null) {
- if (typeof object.hero2 !== "object")
- throw TypeError(".game.draw_get_data_rsp.hero2: object expected");
- message.hero2 = $root.game.draw_info.fromObject(object.hero2);
- }
- if (object.equip != null) {
- if (typeof object.equip !== "object")
- throw TypeError(".game.draw_get_data_rsp.equip: object expected");
- message.equip = $root.game.draw_info.fromObject(object.equip);
- }
- return message;
- };
- /**
- * Creates a plain object from a draw_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.draw_get_data_rsp
- * @static
- * @param {game.draw_get_data_rsp} message draw_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- draw_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.hero = null;
- object.hero2 = null;
- object.equip = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.hero != null && message.hasOwnProperty("hero"))
- object.hero = $root.game.draw_info.toObject(message.hero, options);
- if (message.hero2 != null && message.hasOwnProperty("hero2"))
- object.hero2 = $root.game.draw_info.toObject(message.hero2, options);
- if (message.equip != null && message.hasOwnProperty("equip"))
- object.equip = $root.game.draw_info.toObject(message.equip, options);
- return object;
- };
- /**
- * Converts this draw_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.draw_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- draw_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return draw_get_data_rsp;
- })();
- game.shop_data = (function() {
- /**
- * Properties of a shop_data.
- * @memberof game
- * @interface Ishop_data
- */
- /**
- * Constructs a new shop_data.
- * @memberof game
- * @classdesc Represents a shop_data.
- * @implements Ishop_data
- * @constructor
- * @param {game.Ishop_data=} [properties] Properties to set
- */
- function shop_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new shop_data instance using the specified properties.
- * @function create
- * @memberof game.shop_data
- * @static
- * @param {game.Ishop_data=} [properties] Properties to set
- * @returns {game.shop_data} shop_data instance
- */
- shop_data.create = function create(properties) {
- return new shop_data(properties);
- };
- /**
- * Encodes the specified shop_data message. Does not implicitly {@link game.shop_data.verify|verify} messages.
- * @function encode
- * @memberof game.shop_data
- * @static
- * @param {game.Ishop_data} message shop_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- shop_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified shop_data message, length delimited. Does not implicitly {@link game.shop_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.shop_data
- * @static
- * @param {game.Ishop_data} message shop_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- shop_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a shop_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.shop_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.shop_data} shop_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- shop_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a shop_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.shop_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.shop_data} shop_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- shop_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a shop_data message.
- * @function verify
- * @memberof game.shop_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- shop_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a shop_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.shop_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.shop_data} shop_data
- */
- shop_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.shop_data)
- return object;
- return new $root.game.shop_data();
- };
- /**
- * Creates a plain object from a shop_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.shop_data
- * @static
- * @param {game.shop_data} message shop_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- shop_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this shop_data to JSON.
- * @function toJSON
- * @memberof game.shop_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- shop_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return shop_data;
- })();
- game.shop_data_rsp = (function() {
- /**
- * Properties of a shop_data_rsp.
- * @memberof game
- * @interface Ishop_data_rsp
- * @property {number|Long|null} [errno] shop_data_rsp errno
- * @property {Array.<game.Ishop_info>|null} [list] shop_data_rsp list
- */
- /**
- * Constructs a new shop_data_rsp.
- * @memberof game
- * @classdesc Represents a shop_data_rsp.
- * @implements Ishop_data_rsp
- * @constructor
- * @param {game.Ishop_data_rsp=} [properties] Properties to set
- */
- function shop_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * shop_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.shop_data_rsp
- * @instance
- */
- shop_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * shop_data_rsp list.
- * @member {Array.<game.Ishop_info>} list
- * @memberof game.shop_data_rsp
- * @instance
- */
- shop_data_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new shop_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.shop_data_rsp
- * @static
- * @param {game.Ishop_data_rsp=} [properties] Properties to set
- * @returns {game.shop_data_rsp} shop_data_rsp instance
- */
- shop_data_rsp.create = function create(properties) {
- return new shop_data_rsp(properties);
- };
- /**
- * Encodes the specified shop_data_rsp message. Does not implicitly {@link game.shop_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.shop_data_rsp
- * @static
- * @param {game.Ishop_data_rsp} message shop_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- shop_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.shop_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified shop_data_rsp message, length delimited. Does not implicitly {@link game.shop_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.shop_data_rsp
- * @static
- * @param {game.Ishop_data_rsp} message shop_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- shop_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a shop_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.shop_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.shop_data_rsp} shop_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- shop_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.shop_info.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a shop_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.shop_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.shop_data_rsp} shop_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- shop_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a shop_data_rsp message.
- * @function verify
- * @memberof game.shop_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- shop_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.shop_info.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a shop_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.shop_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.shop_data_rsp} shop_data_rsp
- */
- shop_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.shop_data_rsp)
- return object;
- let message = new $root.game.shop_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.shop_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.shop_data_rsp.list: object expected");
- message.list[i] = $root.game.shop_info.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a shop_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.shop_data_rsp
- * @static
- * @param {game.shop_data_rsp} message shop_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- shop_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.shop_info.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this shop_data_rsp to JSON.
- * @function toJSON
- * @memberof game.shop_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- shop_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return shop_data_rsp;
- })();
- game.shop_buy = (function() {
- /**
- * Properties of a shop_buy.
- * @memberof game
- * @interface Ishop_buy
- * @property {number|Long|null} [type] shop_buy type
- * @property {number|Long|null} [id] shop_buy id
- * @property {number|Long|null} [num] shop_buy num
- */
- /**
- * Constructs a new shop_buy.
- * @memberof game
- * @classdesc Represents a shop_buy.
- * @implements Ishop_buy
- * @constructor
- * @param {game.Ishop_buy=} [properties] Properties to set
- */
- function shop_buy(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * shop_buy type.
- * @member {number|Long} type
- * @memberof game.shop_buy
- * @instance
- */
- shop_buy.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * shop_buy id.
- * @member {number|Long} id
- * @memberof game.shop_buy
- * @instance
- */
- shop_buy.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * shop_buy num.
- * @member {number|Long} num
- * @memberof game.shop_buy
- * @instance
- */
- shop_buy.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new shop_buy instance using the specified properties.
- * @function create
- * @memberof game.shop_buy
- * @static
- * @param {game.Ishop_buy=} [properties] Properties to set
- * @returns {game.shop_buy} shop_buy instance
- */
- shop_buy.create = function create(properties) {
- return new shop_buy(properties);
- };
- /**
- * Encodes the specified shop_buy message. Does not implicitly {@link game.shop_buy.verify|verify} messages.
- * @function encode
- * @memberof game.shop_buy
- * @static
- * @param {game.Ishop_buy} message shop_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- shop_buy.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
- return writer;
- };
- /**
- * Encodes the specified shop_buy message, length delimited. Does not implicitly {@link game.shop_buy.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.shop_buy
- * @static
- * @param {game.Ishop_buy} message shop_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- shop_buy.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a shop_buy message from the specified reader or buffer.
- * @function decode
- * @memberof game.shop_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.shop_buy} shop_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- shop_buy.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_buy();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 2:
- message.id = reader.int64();
- break;
- case 3:
- message.num = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a shop_buy message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.shop_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.shop_buy} shop_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- shop_buy.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a shop_buy message.
- * @function verify
- * @memberof game.shop_buy
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- shop_buy.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- return null;
- };
- /**
- * Creates a shop_buy message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.shop_buy
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.shop_buy} shop_buy
- */
- shop_buy.fromObject = function fromObject(object) {
- if (object instanceof $root.game.shop_buy)
- return object;
- let message = new $root.game.shop_buy();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a shop_buy message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.shop_buy
- * @static
- * @param {game.shop_buy} message shop_buy
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- shop_buy.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- return object;
- };
- /**
- * Converts this shop_buy to JSON.
- * @function toJSON
- * @memberof game.shop_buy
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- shop_buy.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return shop_buy;
- })();
- game.shop_buy_rsp = (function() {
- /**
- * Properties of a shop_buy_rsp.
- * @memberof game
- * @interface Ishop_buy_rsp
- * @property {number|Long|null} [errno] shop_buy_rsp errno
- */
- /**
- * Constructs a new shop_buy_rsp.
- * @memberof game
- * @classdesc Represents a shop_buy_rsp.
- * @implements Ishop_buy_rsp
- * @constructor
- * @param {game.Ishop_buy_rsp=} [properties] Properties to set
- */
- function shop_buy_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * shop_buy_rsp errno.
- * @member {number|Long} errno
- * @memberof game.shop_buy_rsp
- * @instance
- */
- shop_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new shop_buy_rsp instance using the specified properties.
- * @function create
- * @memberof game.shop_buy_rsp
- * @static
- * @param {game.Ishop_buy_rsp=} [properties] Properties to set
- * @returns {game.shop_buy_rsp} shop_buy_rsp instance
- */
- shop_buy_rsp.create = function create(properties) {
- return new shop_buy_rsp(properties);
- };
- /**
- * Encodes the specified shop_buy_rsp message. Does not implicitly {@link game.shop_buy_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.shop_buy_rsp
- * @static
- * @param {game.Ishop_buy_rsp} message shop_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- shop_buy_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified shop_buy_rsp message, length delimited. Does not implicitly {@link game.shop_buy_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.shop_buy_rsp
- * @static
- * @param {game.Ishop_buy_rsp} message shop_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- shop_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a shop_buy_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.shop_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.shop_buy_rsp} shop_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- shop_buy_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_buy_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a shop_buy_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.shop_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.shop_buy_rsp} shop_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- shop_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a shop_buy_rsp message.
- * @function verify
- * @memberof game.shop_buy_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- shop_buy_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a shop_buy_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.shop_buy_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.shop_buy_rsp} shop_buy_rsp
- */
- shop_buy_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.shop_buy_rsp)
- return object;
- let message = new $root.game.shop_buy_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a shop_buy_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.shop_buy_rsp
- * @static
- * @param {game.shop_buy_rsp} message shop_buy_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- shop_buy_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this shop_buy_rsp to JSON.
- * @function toJSON
- * @memberof game.shop_buy_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- shop_buy_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return shop_buy_rsp;
- })();
- game.shop_notify = (function() {
- /**
- * Properties of a shop_notify.
- * @memberof game
- * @interface Ishop_notify
- * @property {number|Long|null} [type] shop_notify type
- * @property {number|Long|null} [id] shop_notify id
- * @property {number|Long|null} [num] shop_notify num
- */
- /**
- * Constructs a new shop_notify.
- * @memberof game
- * @classdesc Represents a shop_notify.
- * @implements Ishop_notify
- * @constructor
- * @param {game.Ishop_notify=} [properties] Properties to set
- */
- function shop_notify(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * shop_notify type.
- * @member {number|Long} type
- * @memberof game.shop_notify
- * @instance
- */
- shop_notify.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * shop_notify id.
- * @member {number|Long} id
- * @memberof game.shop_notify
- * @instance
- */
- shop_notify.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * shop_notify num.
- * @member {number|Long} num
- * @memberof game.shop_notify
- * @instance
- */
- shop_notify.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new shop_notify instance using the specified properties.
- * @function create
- * @memberof game.shop_notify
- * @static
- * @param {game.Ishop_notify=} [properties] Properties to set
- * @returns {game.shop_notify} shop_notify instance
- */
- shop_notify.create = function create(properties) {
- return new shop_notify(properties);
- };
- /**
- * Encodes the specified shop_notify message. Does not implicitly {@link game.shop_notify.verify|verify} messages.
- * @function encode
- * @memberof game.shop_notify
- * @static
- * @param {game.Ishop_notify} message shop_notify message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- shop_notify.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.id);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.num);
- return writer;
- };
- /**
- * Encodes the specified shop_notify message, length delimited. Does not implicitly {@link game.shop_notify.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.shop_notify
- * @static
- * @param {game.Ishop_notify} message shop_notify message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- shop_notify.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a shop_notify message from the specified reader or buffer.
- * @function decode
- * @memberof game.shop_notify
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.shop_notify} shop_notify
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- shop_notify.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_notify();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.type = reader.int64();
- break;
- case 3:
- message.id = reader.int64();
- break;
- case 4:
- message.num = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a shop_notify message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.shop_notify
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.shop_notify} shop_notify
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- shop_notify.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a shop_notify message.
- * @function verify
- * @memberof game.shop_notify
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- shop_notify.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- return null;
- };
- /**
- * Creates a shop_notify message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.shop_notify
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.shop_notify} shop_notify
- */
- shop_notify.fromObject = function fromObject(object) {
- if (object instanceof $root.game.shop_notify)
- return object;
- let message = new $root.game.shop_notify();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a shop_notify message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.shop_notify
- * @static
- * @param {game.shop_notify} message shop_notify
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- shop_notify.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- return object;
- };
- /**
- * Converts this shop_notify to JSON.
- * @function toJSON
- * @memberof game.shop_notify
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- shop_notify.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return shop_notify;
- })();
- game.ranking_data = (function() {
- /**
- * Properties of a ranking_data.
- * @memberof game
- * @interface Iranking_data
- * @property {number|Long|null} [type] ranking_data type
- */
- /**
- * Constructs a new ranking_data.
- * @memberof game
- * @classdesc Represents a ranking_data.
- * @implements Iranking_data
- * @constructor
- * @param {game.Iranking_data=} [properties] Properties to set
- */
- function ranking_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * ranking_data type.
- * @member {number|Long} type
- * @memberof game.ranking_data
- * @instance
- */
- ranking_data.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new ranking_data instance using the specified properties.
- * @function create
- * @memberof game.ranking_data
- * @static
- * @param {game.Iranking_data=} [properties] Properties to set
- * @returns {game.ranking_data} ranking_data instance
- */
- ranking_data.create = function create(properties) {
- return new ranking_data(properties);
- };
- /**
- * Encodes the specified ranking_data message. Does not implicitly {@link game.ranking_data.verify|verify} messages.
- * @function encode
- * @memberof game.ranking_data
- * @static
- * @param {game.Iranking_data} message ranking_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- ranking_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- return writer;
- };
- /**
- * Encodes the specified ranking_data message, length delimited. Does not implicitly {@link game.ranking_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.ranking_data
- * @static
- * @param {game.Iranking_data} message ranking_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- ranking_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a ranking_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.ranking_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.ranking_data} ranking_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- ranking_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ranking_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a ranking_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.ranking_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.ranking_data} ranking_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- ranking_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a ranking_data message.
- * @function verify
- * @memberof game.ranking_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- ranking_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- return null;
- };
- /**
- * Creates a ranking_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.ranking_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.ranking_data} ranking_data
- */
- ranking_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.ranking_data)
- return object;
- let message = new $root.game.ranking_data();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a ranking_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.ranking_data
- * @static
- * @param {game.ranking_data} message ranking_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- ranking_data.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- return object;
- };
- /**
- * Converts this ranking_data to JSON.
- * @function toJSON
- * @memberof game.ranking_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- ranking_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return ranking_data;
- })();
- game.ranking_data_rsp = (function() {
- /**
- * Properties of a ranking_data_rsp.
- * @memberof game
- * @interface Iranking_data_rsp
- * @property {number|Long|null} [errno] ranking_data_rsp errno
- * @property {number|Long|null} [type] ranking_data_rsp type
- * @property {Array.<game.Iranking_info>|null} [list] ranking_data_rsp list
- * @property {game.Iranking_info|null} [myslef] ranking_data_rsp myslef
- */
- /**
- * Constructs a new ranking_data_rsp.
- * @memberof game
- * @classdesc Represents a ranking_data_rsp.
- * @implements Iranking_data_rsp
- * @constructor
- * @param {game.Iranking_data_rsp=} [properties] Properties to set
- */
- function ranking_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * ranking_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.ranking_data_rsp
- * @instance
- */
- ranking_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * ranking_data_rsp type.
- * @member {number|Long} type
- * @memberof game.ranking_data_rsp
- * @instance
- */
- ranking_data_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * ranking_data_rsp list.
- * @member {Array.<game.Iranking_info>} list
- * @memberof game.ranking_data_rsp
- * @instance
- */
- ranking_data_rsp.prototype.list = $util.emptyArray;
- /**
- * ranking_data_rsp myslef.
- * @member {game.Iranking_info|null|undefined} myslef
- * @memberof game.ranking_data_rsp
- * @instance
- */
- ranking_data_rsp.prototype.myslef = null;
- /**
- * Creates a new ranking_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.ranking_data_rsp
- * @static
- * @param {game.Iranking_data_rsp=} [properties] Properties to set
- * @returns {game.ranking_data_rsp} ranking_data_rsp instance
- */
- ranking_data_rsp.create = function create(properties) {
- return new ranking_data_rsp(properties);
- };
- /**
- * Encodes the specified ranking_data_rsp message. Does not implicitly {@link game.ranking_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.ranking_data_rsp
- * @static
- * @param {game.Iranking_data_rsp} message ranking_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- ranking_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.ranking_info.encode(message.list[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- if (message.myslef != null && Object.hasOwnProperty.call(message, "myslef"))
- $root.game.ranking_info.encode(message.myslef, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified ranking_data_rsp message, length delimited. Does not implicitly {@link game.ranking_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.ranking_data_rsp
- * @static
- * @param {game.Iranking_data_rsp} message ranking_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- ranking_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a ranking_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.ranking_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.ranking_data_rsp} ranking_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- ranking_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ranking_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.type = reader.int64();
- break;
- case 3:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.ranking_info.decode(reader, reader.uint32()));
- break;
- case 4:
- message.myslef = $root.game.ranking_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a ranking_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.ranking_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.ranking_data_rsp} ranking_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- ranking_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a ranking_data_rsp message.
- * @function verify
- * @memberof game.ranking_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- ranking_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.ranking_info.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- if (message.myslef != null && message.hasOwnProperty("myslef")) {
- let error = $root.game.ranking_info.verify(message.myslef);
- if (error)
- return "myslef." + error;
- }
- return null;
- };
- /**
- * Creates a ranking_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.ranking_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.ranking_data_rsp} ranking_data_rsp
- */
- ranking_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.ranking_data_rsp)
- return object;
- let message = new $root.game.ranking_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.ranking_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.ranking_data_rsp.list: object expected");
- message.list[i] = $root.game.ranking_info.fromObject(object.list[i]);
- }
- }
- if (object.myslef != null) {
- if (typeof object.myslef !== "object")
- throw TypeError(".game.ranking_data_rsp.myslef: object expected");
- message.myslef = $root.game.ranking_info.fromObject(object.myslef);
- }
- return message;
- };
- /**
- * Creates a plain object from a ranking_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.ranking_data_rsp
- * @static
- * @param {game.ranking_data_rsp} message ranking_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- ranking_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- object.myslef = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.ranking_info.toObject(message.list[j], options);
- }
- if (message.myslef != null && message.hasOwnProperty("myslef"))
- object.myslef = $root.game.ranking_info.toObject(message.myslef, options);
- return object;
- };
- /**
- * Converts this ranking_data_rsp to JSON.
- * @function toJSON
- * @memberof game.ranking_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- ranking_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return ranking_data_rsp;
- })();
- game.grocery_data = (function() {
- /**
- * Properties of a grocery_data.
- * @memberof game
- * @interface Igrocery_data
- * @property {number|Long|null} [type] grocery_data type
- */
- /**
- * Constructs a new grocery_data.
- * @memberof game
- * @classdesc Represents a grocery_data.
- * @implements Igrocery_data
- * @constructor
- * @param {game.Igrocery_data=} [properties] Properties to set
- */
- function grocery_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * grocery_data type.
- * @member {number|Long} type
- * @memberof game.grocery_data
- * @instance
- */
- grocery_data.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new grocery_data instance using the specified properties.
- * @function create
- * @memberof game.grocery_data
- * @static
- * @param {game.Igrocery_data=} [properties] Properties to set
- * @returns {game.grocery_data} grocery_data instance
- */
- grocery_data.create = function create(properties) {
- return new grocery_data(properties);
- };
- /**
- * Encodes the specified grocery_data message. Does not implicitly {@link game.grocery_data.verify|verify} messages.
- * @function encode
- * @memberof game.grocery_data
- * @static
- * @param {game.Igrocery_data} message grocery_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- grocery_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- return writer;
- };
- /**
- * Encodes the specified grocery_data message, length delimited. Does not implicitly {@link game.grocery_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.grocery_data
- * @static
- * @param {game.Igrocery_data} message grocery_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- grocery_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a grocery_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.grocery_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.grocery_data} grocery_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- grocery_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a grocery_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.grocery_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.grocery_data} grocery_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- grocery_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a grocery_data message.
- * @function verify
- * @memberof game.grocery_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- grocery_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- return null;
- };
- /**
- * Creates a grocery_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.grocery_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.grocery_data} grocery_data
- */
- grocery_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.grocery_data)
- return object;
- let message = new $root.game.grocery_data();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a grocery_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.grocery_data
- * @static
- * @param {game.grocery_data} message grocery_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- grocery_data.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- return object;
- };
- /**
- * Converts this grocery_data to JSON.
- * @function toJSON
- * @memberof game.grocery_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- grocery_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return grocery_data;
- })();
- game.grocery_data_rsp = (function() {
- /**
- * Properties of a grocery_data_rsp.
- * @memberof game
- * @interface Igrocery_data_rsp
- * @property {number|Long|null} [errno] grocery_data_rsp errno
- * @property {game.Igrocery_info|null} [data] grocery_data_rsp data
- */
- /**
- * Constructs a new grocery_data_rsp.
- * @memberof game
- * @classdesc Represents a grocery_data_rsp.
- * @implements Igrocery_data_rsp
- * @constructor
- * @param {game.Igrocery_data_rsp=} [properties] Properties to set
- */
- function grocery_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * grocery_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.grocery_data_rsp
- * @instance
- */
- grocery_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * grocery_data_rsp data.
- * @member {game.Igrocery_info|null|undefined} data
- * @memberof game.grocery_data_rsp
- * @instance
- */
- grocery_data_rsp.prototype.data = null;
- /**
- * Creates a new grocery_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.grocery_data_rsp
- * @static
- * @param {game.Igrocery_data_rsp=} [properties] Properties to set
- * @returns {game.grocery_data_rsp} grocery_data_rsp instance
- */
- grocery_data_rsp.create = function create(properties) {
- return new grocery_data_rsp(properties);
- };
- /**
- * Encodes the specified grocery_data_rsp message. Does not implicitly {@link game.grocery_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.grocery_data_rsp
- * @static
- * @param {game.Igrocery_data_rsp} message grocery_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- grocery_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.grocery_info.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified grocery_data_rsp message, length delimited. Does not implicitly {@link game.grocery_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.grocery_data_rsp
- * @static
- * @param {game.Igrocery_data_rsp} message grocery_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- grocery_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a grocery_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.grocery_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.grocery_data_rsp} grocery_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- grocery_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.grocery_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a grocery_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.grocery_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.grocery_data_rsp} grocery_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- grocery_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a grocery_data_rsp message.
- * @function verify
- * @memberof game.grocery_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- grocery_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.grocery_info.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a grocery_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.grocery_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.grocery_data_rsp} grocery_data_rsp
- */
- grocery_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.grocery_data_rsp)
- return object;
- let message = new $root.game.grocery_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.grocery_data_rsp.data: object expected");
- message.data = $root.game.grocery_info.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a grocery_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.grocery_data_rsp
- * @static
- * @param {game.grocery_data_rsp} message grocery_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- grocery_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.grocery_info.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this grocery_data_rsp to JSON.
- * @function toJSON
- * @memberof game.grocery_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- grocery_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return grocery_data_rsp;
- })();
- game.grocery_buy = (function() {
- /**
- * Properties of a grocery_buy.
- * @memberof game
- * @interface Igrocery_buy
- * @property {number|Long|null} [type] grocery_buy type
- * @property {boolean|null} [free] grocery_buy free
- */
- /**
- * Constructs a new grocery_buy.
- * @memberof game
- * @classdesc Represents a grocery_buy.
- * @implements Igrocery_buy
- * @constructor
- * @param {game.Igrocery_buy=} [properties] Properties to set
- */
- function grocery_buy(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * grocery_buy type.
- * @member {number|Long} type
- * @memberof game.grocery_buy
- * @instance
- */
- grocery_buy.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * grocery_buy free.
- * @member {boolean} free
- * @memberof game.grocery_buy
- * @instance
- */
- grocery_buy.prototype.free = false;
- /**
- * Creates a new grocery_buy instance using the specified properties.
- * @function create
- * @memberof game.grocery_buy
- * @static
- * @param {game.Igrocery_buy=} [properties] Properties to set
- * @returns {game.grocery_buy} grocery_buy instance
- */
- grocery_buy.create = function create(properties) {
- return new grocery_buy(properties);
- };
- /**
- * Encodes the specified grocery_buy message. Does not implicitly {@link game.grocery_buy.verify|verify} messages.
- * @function encode
- * @memberof game.grocery_buy
- * @static
- * @param {game.Igrocery_buy} message grocery_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- grocery_buy.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.free != null && Object.hasOwnProperty.call(message, "free"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.free);
- return writer;
- };
- /**
- * Encodes the specified grocery_buy message, length delimited. Does not implicitly {@link game.grocery_buy.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.grocery_buy
- * @static
- * @param {game.Igrocery_buy} message grocery_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- grocery_buy.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a grocery_buy message from the specified reader or buffer.
- * @function decode
- * @memberof game.grocery_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.grocery_buy} grocery_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- grocery_buy.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_buy();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 2:
- message.free = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a grocery_buy message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.grocery_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.grocery_buy} grocery_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- grocery_buy.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a grocery_buy message.
- * @function verify
- * @memberof game.grocery_buy
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- grocery_buy.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.free != null && message.hasOwnProperty("free"))
- if (typeof message.free !== "boolean")
- return "free: boolean expected";
- return null;
- };
- /**
- * Creates a grocery_buy message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.grocery_buy
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.grocery_buy} grocery_buy
- */
- grocery_buy.fromObject = function fromObject(object) {
- if (object instanceof $root.game.grocery_buy)
- return object;
- let message = new $root.game.grocery_buy();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.free != null)
- message.free = Boolean(object.free);
- return message;
- };
- /**
- * Creates a plain object from a grocery_buy message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.grocery_buy
- * @static
- * @param {game.grocery_buy} message grocery_buy
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- grocery_buy.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- object.free = false;
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.free != null && message.hasOwnProperty("free"))
- object.free = message.free;
- return object;
- };
- /**
- * Converts this grocery_buy to JSON.
- * @function toJSON
- * @memberof game.grocery_buy
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- grocery_buy.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return grocery_buy;
- })();
- game.grocery_buy_rsp = (function() {
- /**
- * Properties of a grocery_buy_rsp.
- * @memberof game
- * @interface Igrocery_buy_rsp
- * @property {number|Long|null} [errno] grocery_buy_rsp errno
- * @property {game.Igrocery_info|null} [data] grocery_buy_rsp data
- */
- /**
- * Constructs a new grocery_buy_rsp.
- * @memberof game
- * @classdesc Represents a grocery_buy_rsp.
- * @implements Igrocery_buy_rsp
- * @constructor
- * @param {game.Igrocery_buy_rsp=} [properties] Properties to set
- */
- function grocery_buy_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * grocery_buy_rsp errno.
- * @member {number|Long} errno
- * @memberof game.grocery_buy_rsp
- * @instance
- */
- grocery_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * grocery_buy_rsp data.
- * @member {game.Igrocery_info|null|undefined} data
- * @memberof game.grocery_buy_rsp
- * @instance
- */
- grocery_buy_rsp.prototype.data = null;
- /**
- * Creates a new grocery_buy_rsp instance using the specified properties.
- * @function create
- * @memberof game.grocery_buy_rsp
- * @static
- * @param {game.Igrocery_buy_rsp=} [properties] Properties to set
- * @returns {game.grocery_buy_rsp} grocery_buy_rsp instance
- */
- grocery_buy_rsp.create = function create(properties) {
- return new grocery_buy_rsp(properties);
- };
- /**
- * Encodes the specified grocery_buy_rsp message. Does not implicitly {@link game.grocery_buy_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.grocery_buy_rsp
- * @static
- * @param {game.Igrocery_buy_rsp} message grocery_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- grocery_buy_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.grocery_info.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified grocery_buy_rsp message, length delimited. Does not implicitly {@link game.grocery_buy_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.grocery_buy_rsp
- * @static
- * @param {game.Igrocery_buy_rsp} message grocery_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- grocery_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a grocery_buy_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.grocery_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.grocery_buy_rsp} grocery_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- grocery_buy_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_buy_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.grocery_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a grocery_buy_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.grocery_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.grocery_buy_rsp} grocery_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- grocery_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a grocery_buy_rsp message.
- * @function verify
- * @memberof game.grocery_buy_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- grocery_buy_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.grocery_info.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a grocery_buy_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.grocery_buy_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.grocery_buy_rsp} grocery_buy_rsp
- */
- grocery_buy_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.grocery_buy_rsp)
- return object;
- let message = new $root.game.grocery_buy_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.grocery_buy_rsp.data: object expected");
- message.data = $root.game.grocery_info.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a grocery_buy_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.grocery_buy_rsp
- * @static
- * @param {game.grocery_buy_rsp} message grocery_buy_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- grocery_buy_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.grocery_info.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this grocery_buy_rsp to JSON.
- * @function toJSON
- * @memberof game.grocery_buy_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- grocery_buy_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return grocery_buy_rsp;
- })();
- game.altar_data = (function() {
- /**
- * Properties of an altar_data.
- * @memberof game
- * @interface Ialtar_data
- */
- /**
- * Constructs a new altar_data.
- * @memberof game
- * @classdesc Represents an altar_data.
- * @implements Ialtar_data
- * @constructor
- * @param {game.Ialtar_data=} [properties] Properties to set
- */
- function altar_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new altar_data instance using the specified properties.
- * @function create
- * @memberof game.altar_data
- * @static
- * @param {game.Ialtar_data=} [properties] Properties to set
- * @returns {game.altar_data} altar_data instance
- */
- altar_data.create = function create(properties) {
- return new altar_data(properties);
- };
- /**
- * Encodes the specified altar_data message. Does not implicitly {@link game.altar_data.verify|verify} messages.
- * @function encode
- * @memberof game.altar_data
- * @static
- * @param {game.Ialtar_data} message altar_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified altar_data message, length delimited. Does not implicitly {@link game.altar_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_data
- * @static
- * @param {game.Ialtar_data} message altar_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_data} altar_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_data} altar_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_data message.
- * @function verify
- * @memberof game.altar_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates an altar_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_data} altar_data
- */
- altar_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_data)
- return object;
- return new $root.game.altar_data();
- };
- /**
- * Creates a plain object from an altar_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_data
- * @static
- * @param {game.altar_data} message altar_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this altar_data to JSON.
- * @function toJSON
- * @memberof game.altar_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_data;
- })();
- game.altar_data_rsp = (function() {
- /**
- * Properties of an altar_data_rsp.
- * @memberof game
- * @interface Ialtar_data_rsp
- * @property {number|Long|null} [errno] altar_data_rsp errno
- * @property {Array.<string>|null} [baseList] altar_data_rsp baseList
- * @property {Array.<game.Ialtar_info>|null} [list] altar_data_rsp list
- * @property {number|Long|null} [buyNum] altar_data_rsp buyNum
- * @property {number|Long|null} [equipFree] altar_data_rsp equipFree
- * @property {number|Long|null} [heroFree] altar_data_rsp heroFree
- */
- /**
- * Constructs a new altar_data_rsp.
- * @memberof game
- * @classdesc Represents an altar_data_rsp.
- * @implements Ialtar_data_rsp
- * @constructor
- * @param {game.Ialtar_data_rsp=} [properties] Properties to set
- */
- function altar_data_rsp(properties) {
- this.baseList = [];
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * altar_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.altar_data_rsp
- * @instance
- */
- altar_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_data_rsp baseList.
- * @member {Array.<string>} baseList
- * @memberof game.altar_data_rsp
- * @instance
- */
- altar_data_rsp.prototype.baseList = $util.emptyArray;
- /**
- * altar_data_rsp list.
- * @member {Array.<game.Ialtar_info>} list
- * @memberof game.altar_data_rsp
- * @instance
- */
- altar_data_rsp.prototype.list = $util.emptyArray;
- /**
- * altar_data_rsp buyNum.
- * @member {number|Long} buyNum
- * @memberof game.altar_data_rsp
- * @instance
- */
- altar_data_rsp.prototype.buyNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_data_rsp equipFree.
- * @member {number|Long} equipFree
- * @memberof game.altar_data_rsp
- * @instance
- */
- altar_data_rsp.prototype.equipFree = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_data_rsp heroFree.
- * @member {number|Long} heroFree
- * @memberof game.altar_data_rsp
- * @instance
- */
- altar_data_rsp.prototype.heroFree = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new altar_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.altar_data_rsp
- * @static
- * @param {game.Ialtar_data_rsp=} [properties] Properties to set
- * @returns {game.altar_data_rsp} altar_data_rsp instance
- */
- altar_data_rsp.create = function create(properties) {
- return new altar_data_rsp(properties);
- };
- /**
- * Encodes the specified altar_data_rsp message. Does not implicitly {@link game.altar_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.altar_data_rsp
- * @static
- * @param {game.Ialtar_data_rsp} message altar_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.baseList != null && message.baseList.length)
- for (let i = 0; i < message.baseList.length; ++i)
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.baseList[i]);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.altar_info.encode(message.list[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- if (message.buyNum != null && Object.hasOwnProperty.call(message, "buyNum"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.buyNum);
- if (message.equipFree != null && Object.hasOwnProperty.call(message, "equipFree"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.equipFree);
- if (message.heroFree != null && Object.hasOwnProperty.call(message, "heroFree"))
- writer.uint32(/* id 6, wireType 0 =*/48).int64(message.heroFree);
- return writer;
- };
- /**
- * Encodes the specified altar_data_rsp message, length delimited. Does not implicitly {@link game.altar_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_data_rsp
- * @static
- * @param {game.Ialtar_data_rsp} message altar_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_data_rsp} altar_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.baseList && message.baseList.length))
- message.baseList = [];
- message.baseList.push(reader.string());
- break;
- case 3:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.altar_info.decode(reader, reader.uint32()));
- break;
- case 4:
- message.buyNum = reader.int64();
- break;
- case 5:
- message.equipFree = reader.int64();
- break;
- case 6:
- message.heroFree = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_data_rsp} altar_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_data_rsp message.
- * @function verify
- * @memberof game.altar_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.baseList != null && message.hasOwnProperty("baseList")) {
- if (!Array.isArray(message.baseList))
- return "baseList: array expected";
- for (let i = 0; i < message.baseList.length; ++i)
- if (!$util.isString(message.baseList[i]))
- return "baseList: string[] expected";
- }
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.altar_info.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- if (message.buyNum != null && message.hasOwnProperty("buyNum"))
- if (!$util.isInteger(message.buyNum) && !(message.buyNum && $util.isInteger(message.buyNum.low) && $util.isInteger(message.buyNum.high)))
- return "buyNum: integer|Long expected";
- if (message.equipFree != null && message.hasOwnProperty("equipFree"))
- if (!$util.isInteger(message.equipFree) && !(message.equipFree && $util.isInteger(message.equipFree.low) && $util.isInteger(message.equipFree.high)))
- return "equipFree: integer|Long expected";
- if (message.heroFree != null && message.hasOwnProperty("heroFree"))
- if (!$util.isInteger(message.heroFree) && !(message.heroFree && $util.isInteger(message.heroFree.low) && $util.isInteger(message.heroFree.high)))
- return "heroFree: integer|Long expected";
- return null;
- };
- /**
- * Creates an altar_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_data_rsp} altar_data_rsp
- */
- altar_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_data_rsp)
- return object;
- let message = new $root.game.altar_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.baseList) {
- if (!Array.isArray(object.baseList))
- throw TypeError(".game.altar_data_rsp.baseList: array expected");
- message.baseList = [];
- for (let i = 0; i < object.baseList.length; ++i)
- message.baseList[i] = String(object.baseList[i]);
- }
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.altar_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.altar_data_rsp.list: object expected");
- message.list[i] = $root.game.altar_info.fromObject(object.list[i]);
- }
- }
- if (object.buyNum != null)
- if ($util.Long)
- (message.buyNum = $util.Long.fromValue(object.buyNum)).unsigned = false;
- else if (typeof object.buyNum === "string")
- message.buyNum = parseInt(object.buyNum, 10);
- else if (typeof object.buyNum === "number")
- message.buyNum = object.buyNum;
- else if (typeof object.buyNum === "object")
- message.buyNum = new $util.LongBits(object.buyNum.low >>> 0, object.buyNum.high >>> 0).toNumber();
- if (object.equipFree != null)
- if ($util.Long)
- (message.equipFree = $util.Long.fromValue(object.equipFree)).unsigned = false;
- else if (typeof object.equipFree === "string")
- message.equipFree = parseInt(object.equipFree, 10);
- else if (typeof object.equipFree === "number")
- message.equipFree = object.equipFree;
- else if (typeof object.equipFree === "object")
- message.equipFree = new $util.LongBits(object.equipFree.low >>> 0, object.equipFree.high >>> 0).toNumber();
- if (object.heroFree != null)
- if ($util.Long)
- (message.heroFree = $util.Long.fromValue(object.heroFree)).unsigned = false;
- else if (typeof object.heroFree === "string")
- message.heroFree = parseInt(object.heroFree, 10);
- else if (typeof object.heroFree === "number")
- message.heroFree = object.heroFree;
- else if (typeof object.heroFree === "object")
- message.heroFree = new $util.LongBits(object.heroFree.low >>> 0, object.heroFree.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an altar_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_data_rsp
- * @static
- * @param {game.altar_data_rsp} message altar_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.baseList = [];
- object.list = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.buyNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.buyNum = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.equipFree = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.equipFree = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.heroFree = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.heroFree = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.baseList && message.baseList.length) {
- object.baseList = [];
- for (let j = 0; j < message.baseList.length; ++j)
- object.baseList[j] = message.baseList[j];
- }
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.altar_info.toObject(message.list[j], options);
- }
- if (message.buyNum != null && message.hasOwnProperty("buyNum"))
- if (typeof message.buyNum === "number")
- object.buyNum = options.longs === String ? String(message.buyNum) : message.buyNum;
- else
- object.buyNum = options.longs === String ? $util.Long.prototype.toString.call(message.buyNum) : options.longs === Number ? new $util.LongBits(message.buyNum.low >>> 0, message.buyNum.high >>> 0).toNumber() : message.buyNum;
- if (message.equipFree != null && message.hasOwnProperty("equipFree"))
- if (typeof message.equipFree === "number")
- object.equipFree = options.longs === String ? String(message.equipFree) : message.equipFree;
- else
- object.equipFree = options.longs === String ? $util.Long.prototype.toString.call(message.equipFree) : options.longs === Number ? new $util.LongBits(message.equipFree.low >>> 0, message.equipFree.high >>> 0).toNumber() : message.equipFree;
- if (message.heroFree != null && message.hasOwnProperty("heroFree"))
- if (typeof message.heroFree === "number")
- object.heroFree = options.longs === String ? String(message.heroFree) : message.heroFree;
- else
- object.heroFree = options.longs === String ? $util.Long.prototype.toString.call(message.heroFree) : options.longs === Number ? new $util.LongBits(message.heroFree.low >>> 0, message.heroFree.high >>> 0).toNumber() : message.heroFree;
- return object;
- };
- /**
- * Converts this altar_data_rsp to JSON.
- * @function toJSON
- * @memberof game.altar_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_data_rsp;
- })();
- game.altar_battle = (function() {
- /**
- * Properties of an altar_battle.
- * @memberof game
- * @interface Ialtar_battle
- * @property {number|Long|null} [pos] altar_battle pos
- * @property {string|null} [sid] altar_battle sid
- */
- /**
- * Constructs a new altar_battle.
- * @memberof game
- * @classdesc Represents an altar_battle.
- * @implements Ialtar_battle
- * @constructor
- * @param {game.Ialtar_battle=} [properties] Properties to set
- */
- function altar_battle(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * altar_battle pos.
- * @member {number|Long} pos
- * @memberof game.altar_battle
- * @instance
- */
- altar_battle.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_battle sid.
- * @member {string} sid
- * @memberof game.altar_battle
- * @instance
- */
- altar_battle.prototype.sid = "";
- /**
- * Creates a new altar_battle instance using the specified properties.
- * @function create
- * @memberof game.altar_battle
- * @static
- * @param {game.Ialtar_battle=} [properties] Properties to set
- * @returns {game.altar_battle} altar_battle instance
- */
- altar_battle.create = function create(properties) {
- return new altar_battle(properties);
- };
- /**
- * Encodes the specified altar_battle message. Does not implicitly {@link game.altar_battle.verify|verify} messages.
- * @function encode
- * @memberof game.altar_battle
- * @static
- * @param {game.Ialtar_battle} message altar_battle message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_battle.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
- return writer;
- };
- /**
- * Encodes the specified altar_battle message, length delimited. Does not implicitly {@link game.altar_battle.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_battle
- * @static
- * @param {game.Ialtar_battle} message altar_battle message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_battle.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_battle message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_battle
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_battle} altar_battle
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_battle.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_battle();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.pos = reader.int64();
- break;
- case 2:
- message.sid = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_battle message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_battle
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_battle} altar_battle
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_battle.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_battle message.
- * @function verify
- * @memberof game.altar_battle
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_battle.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- return null;
- };
- /**
- * Creates an altar_battle message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_battle
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_battle} altar_battle
- */
- altar_battle.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_battle)
- return object;
- let message = new $root.game.altar_battle();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- if (object.sid != null)
- message.sid = String(object.sid);
- return message;
- };
- /**
- * Creates a plain object from an altar_battle message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_battle
- * @static
- * @param {game.altar_battle} message altar_battle
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_battle.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- object.sid = "";
- }
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- return object;
- };
- /**
- * Converts this altar_battle to JSON.
- * @function toJSON
- * @memberof game.altar_battle
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_battle.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_battle;
- })();
- game.altar_battle_rsp = (function() {
- /**
- * Properties of an altar_battle_rsp.
- * @memberof game
- * @interface Ialtar_battle_rsp
- * @property {number|Long|null} [errno] altar_battle_rsp errno
- * @property {number|Long|null} [pos] altar_battle_rsp pos
- * @property {game.Ialtar_info|null} [data] altar_battle_rsp data
- */
- /**
- * Constructs a new altar_battle_rsp.
- * @memberof game
- * @classdesc Represents an altar_battle_rsp.
- * @implements Ialtar_battle_rsp
- * @constructor
- * @param {game.Ialtar_battle_rsp=} [properties] Properties to set
- */
- function altar_battle_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * altar_battle_rsp errno.
- * @member {number|Long} errno
- * @memberof game.altar_battle_rsp
- * @instance
- */
- altar_battle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_battle_rsp pos.
- * @member {number|Long} pos
- * @memberof game.altar_battle_rsp
- * @instance
- */
- altar_battle_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_battle_rsp data.
- * @member {game.Ialtar_info|null|undefined} data
- * @memberof game.altar_battle_rsp
- * @instance
- */
- altar_battle_rsp.prototype.data = null;
- /**
- * Creates a new altar_battle_rsp instance using the specified properties.
- * @function create
- * @memberof game.altar_battle_rsp
- * @static
- * @param {game.Ialtar_battle_rsp=} [properties] Properties to set
- * @returns {game.altar_battle_rsp} altar_battle_rsp instance
- */
- altar_battle_rsp.create = function create(properties) {
- return new altar_battle_rsp(properties);
- };
- /**
- * Encodes the specified altar_battle_rsp message. Does not implicitly {@link game.altar_battle_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.altar_battle_rsp
- * @static
- * @param {game.Ialtar_battle_rsp} message altar_battle_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_battle_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.altar_info.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified altar_battle_rsp message, length delimited. Does not implicitly {@link game.altar_battle_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_battle_rsp
- * @static
- * @param {game.Ialtar_battle_rsp} message altar_battle_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_battle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_battle_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_battle_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_battle_rsp} altar_battle_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_battle_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_battle_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.pos = reader.int64();
- break;
- case 3:
- message.data = $root.game.altar_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_battle_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_battle_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_battle_rsp} altar_battle_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_battle_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_battle_rsp message.
- * @function verify
- * @memberof game.altar_battle_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_battle_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.altar_info.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates an altar_battle_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_battle_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_battle_rsp} altar_battle_rsp
- */
- altar_battle_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_battle_rsp)
- return object;
- let message = new $root.game.altar_battle_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.altar_battle_rsp.data: object expected");
- message.data = $root.game.altar_info.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from an altar_battle_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_battle_rsp
- * @static
- * @param {game.altar_battle_rsp} message altar_battle_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_battle_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.altar_info.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this altar_battle_rsp to JSON.
- * @function toJSON
- * @memberof game.altar_battle_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_battle_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_battle_rsp;
- })();
- game.altar_exchange = (function() {
- /**
- * Properties of an altar_exchange.
- * @memberof game
- * @interface Ialtar_exchange
- * @property {number|Long|null} [type] altar_exchange type
- * @property {string|null} [sid] altar_exchange sid
- */
- /**
- * Constructs a new altar_exchange.
- * @memberof game
- * @classdesc Represents an altar_exchange.
- * @implements Ialtar_exchange
- * @constructor
- * @param {game.Ialtar_exchange=} [properties] Properties to set
- */
- function altar_exchange(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * altar_exchange type.
- * @member {number|Long} type
- * @memberof game.altar_exchange
- * @instance
- */
- altar_exchange.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_exchange sid.
- * @member {string} sid
- * @memberof game.altar_exchange
- * @instance
- */
- altar_exchange.prototype.sid = "";
- /**
- * Creates a new altar_exchange instance using the specified properties.
- * @function create
- * @memberof game.altar_exchange
- * @static
- * @param {game.Ialtar_exchange=} [properties] Properties to set
- * @returns {game.altar_exchange} altar_exchange instance
- */
- altar_exchange.create = function create(properties) {
- return new altar_exchange(properties);
- };
- /**
- * Encodes the specified altar_exchange message. Does not implicitly {@link game.altar_exchange.verify|verify} messages.
- * @function encode
- * @memberof game.altar_exchange
- * @static
- * @param {game.Ialtar_exchange} message altar_exchange message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_exchange.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
- return writer;
- };
- /**
- * Encodes the specified altar_exchange message, length delimited. Does not implicitly {@link game.altar_exchange.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_exchange
- * @static
- * @param {game.Ialtar_exchange} message altar_exchange message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_exchange.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_exchange message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_exchange
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_exchange} altar_exchange
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_exchange.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_exchange();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 2:
- message.sid = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_exchange message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_exchange
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_exchange} altar_exchange
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_exchange.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_exchange message.
- * @function verify
- * @memberof game.altar_exchange
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_exchange.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- return null;
- };
- /**
- * Creates an altar_exchange message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_exchange
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_exchange} altar_exchange
- */
- altar_exchange.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_exchange)
- return object;
- let message = new $root.game.altar_exchange();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.sid != null)
- message.sid = String(object.sid);
- return message;
- };
- /**
- * Creates a plain object from an altar_exchange message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_exchange
- * @static
- * @param {game.altar_exchange} message altar_exchange
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_exchange.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- object.sid = "";
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- return object;
- };
- /**
- * Converts this altar_exchange to JSON.
- * @function toJSON
- * @memberof game.altar_exchange
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_exchange.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_exchange;
- })();
- game.altar_exchange_rsp = (function() {
- /**
- * Properties of an altar_exchange_rsp.
- * @memberof game
- * @interface Ialtar_exchange_rsp
- * @property {number|Long|null} [errno] altar_exchange_rsp errno
- * @property {number|Long|null} [type] altar_exchange_rsp type
- * @property {string|null} [sid] altar_exchange_rsp sid
- * @property {number|Long|null} [id] altar_exchange_rsp id
- */
- /**
- * Constructs a new altar_exchange_rsp.
- * @memberof game
- * @classdesc Represents an altar_exchange_rsp.
- * @implements Ialtar_exchange_rsp
- * @constructor
- * @param {game.Ialtar_exchange_rsp=} [properties] Properties to set
- */
- function altar_exchange_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * altar_exchange_rsp errno.
- * @member {number|Long} errno
- * @memberof game.altar_exchange_rsp
- * @instance
- */
- altar_exchange_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_exchange_rsp type.
- * @member {number|Long} type
- * @memberof game.altar_exchange_rsp
- * @instance
- */
- altar_exchange_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_exchange_rsp sid.
- * @member {string} sid
- * @memberof game.altar_exchange_rsp
- * @instance
- */
- altar_exchange_rsp.prototype.sid = "";
- /**
- * altar_exchange_rsp id.
- * @member {number|Long} id
- * @memberof game.altar_exchange_rsp
- * @instance
- */
- altar_exchange_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new altar_exchange_rsp instance using the specified properties.
- * @function create
- * @memberof game.altar_exchange_rsp
- * @static
- * @param {game.Ialtar_exchange_rsp=} [properties] Properties to set
- * @returns {game.altar_exchange_rsp} altar_exchange_rsp instance
- */
- altar_exchange_rsp.create = function create(properties) {
- return new altar_exchange_rsp(properties);
- };
- /**
- * Encodes the specified altar_exchange_rsp message. Does not implicitly {@link game.altar_exchange_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.altar_exchange_rsp
- * @static
- * @param {game.Ialtar_exchange_rsp} message altar_exchange_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_exchange_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.sid);
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified altar_exchange_rsp message, length delimited. Does not implicitly {@link game.altar_exchange_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_exchange_rsp
- * @static
- * @param {game.Ialtar_exchange_rsp} message altar_exchange_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_exchange_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_exchange_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_exchange_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_exchange_rsp} altar_exchange_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_exchange_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_exchange_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.type = reader.int64();
- break;
- case 3:
- message.sid = reader.string();
- break;
- case 4:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_exchange_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_exchange_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_exchange_rsp} altar_exchange_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_exchange_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_exchange_rsp message.
- * @function verify
- * @memberof game.altar_exchange_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_exchange_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates an altar_exchange_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_exchange_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_exchange_rsp} altar_exchange_rsp
- */
- altar_exchange_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_exchange_rsp)
- return object;
- let message = new $root.game.altar_exchange_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an altar_exchange_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_exchange_rsp
- * @static
- * @param {game.altar_exchange_rsp} message altar_exchange_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_exchange_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- object.sid = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this altar_exchange_rsp to JSON.
- * @function toJSON
- * @memberof game.altar_exchange_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_exchange_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_exchange_rsp;
- })();
- game.altar_exchange_confirm = (function() {
- /**
- * Properties of an altar_exchange_confirm.
- * @memberof game
- * @interface Ialtar_exchange_confirm
- * @property {number|Long|null} [type] altar_exchange_confirm type
- * @property {string|null} [sid] altar_exchange_confirm sid
- * @property {boolean|null} [change] altar_exchange_confirm change
- */
- /**
- * Constructs a new altar_exchange_confirm.
- * @memberof game
- * @classdesc Represents an altar_exchange_confirm.
- * @implements Ialtar_exchange_confirm
- * @constructor
- * @param {game.Ialtar_exchange_confirm=} [properties] Properties to set
- */
- function altar_exchange_confirm(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * altar_exchange_confirm type.
- * @member {number|Long} type
- * @memberof game.altar_exchange_confirm
- * @instance
- */
- altar_exchange_confirm.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_exchange_confirm sid.
- * @member {string} sid
- * @memberof game.altar_exchange_confirm
- * @instance
- */
- altar_exchange_confirm.prototype.sid = "";
- /**
- * altar_exchange_confirm change.
- * @member {boolean} change
- * @memberof game.altar_exchange_confirm
- * @instance
- */
- altar_exchange_confirm.prototype.change = false;
- /**
- * Creates a new altar_exchange_confirm instance using the specified properties.
- * @function create
- * @memberof game.altar_exchange_confirm
- * @static
- * @param {game.Ialtar_exchange_confirm=} [properties] Properties to set
- * @returns {game.altar_exchange_confirm} altar_exchange_confirm instance
- */
- altar_exchange_confirm.create = function create(properties) {
- return new altar_exchange_confirm(properties);
- };
- /**
- * Encodes the specified altar_exchange_confirm message. Does not implicitly {@link game.altar_exchange_confirm.verify|verify} messages.
- * @function encode
- * @memberof game.altar_exchange_confirm
- * @static
- * @param {game.Ialtar_exchange_confirm} message altar_exchange_confirm message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_exchange_confirm.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
- if (message.change != null && Object.hasOwnProperty.call(message, "change"))
- writer.uint32(/* id 3, wireType 0 =*/24).bool(message.change);
- return writer;
- };
- /**
- * Encodes the specified altar_exchange_confirm message, length delimited. Does not implicitly {@link game.altar_exchange_confirm.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_exchange_confirm
- * @static
- * @param {game.Ialtar_exchange_confirm} message altar_exchange_confirm message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_exchange_confirm.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_exchange_confirm message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_exchange_confirm
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_exchange_confirm} altar_exchange_confirm
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_exchange_confirm.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_exchange_confirm();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 2:
- message.sid = reader.string();
- break;
- case 3:
- message.change = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_exchange_confirm message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_exchange_confirm
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_exchange_confirm} altar_exchange_confirm
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_exchange_confirm.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_exchange_confirm message.
- * @function verify
- * @memberof game.altar_exchange_confirm
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_exchange_confirm.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.change != null && message.hasOwnProperty("change"))
- if (typeof message.change !== "boolean")
- return "change: boolean expected";
- return null;
- };
- /**
- * Creates an altar_exchange_confirm message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_exchange_confirm
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_exchange_confirm} altar_exchange_confirm
- */
- altar_exchange_confirm.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_exchange_confirm)
- return object;
- let message = new $root.game.altar_exchange_confirm();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.change != null)
- message.change = Boolean(object.change);
- return message;
- };
- /**
- * Creates a plain object from an altar_exchange_confirm message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_exchange_confirm
- * @static
- * @param {game.altar_exchange_confirm} message altar_exchange_confirm
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_exchange_confirm.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- object.sid = "";
- object.change = false;
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.change != null && message.hasOwnProperty("change"))
- object.change = message.change;
- return object;
- };
- /**
- * Converts this altar_exchange_confirm to JSON.
- * @function toJSON
- * @memberof game.altar_exchange_confirm
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_exchange_confirm.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_exchange_confirm;
- })();
- game.altar_exchange_confirm_rsp = (function() {
- /**
- * Properties of an altar_exchange_confirm_rsp.
- * @memberof game
- * @interface Ialtar_exchange_confirm_rsp
- * @property {number|Long|null} [errno] altar_exchange_confirm_rsp errno
- */
- /**
- * Constructs a new altar_exchange_confirm_rsp.
- * @memberof game
- * @classdesc Represents an altar_exchange_confirm_rsp.
- * @implements Ialtar_exchange_confirm_rsp
- * @constructor
- * @param {game.Ialtar_exchange_confirm_rsp=} [properties] Properties to set
- */
- function altar_exchange_confirm_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * altar_exchange_confirm_rsp errno.
- * @member {number|Long} errno
- * @memberof game.altar_exchange_confirm_rsp
- * @instance
- */
- altar_exchange_confirm_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new altar_exchange_confirm_rsp instance using the specified properties.
- * @function create
- * @memberof game.altar_exchange_confirm_rsp
- * @static
- * @param {game.Ialtar_exchange_confirm_rsp=} [properties] Properties to set
- * @returns {game.altar_exchange_confirm_rsp} altar_exchange_confirm_rsp instance
- */
- altar_exchange_confirm_rsp.create = function create(properties) {
- return new altar_exchange_confirm_rsp(properties);
- };
- /**
- * Encodes the specified altar_exchange_confirm_rsp message. Does not implicitly {@link game.altar_exchange_confirm_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.altar_exchange_confirm_rsp
- * @static
- * @param {game.Ialtar_exchange_confirm_rsp} message altar_exchange_confirm_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_exchange_confirm_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified altar_exchange_confirm_rsp message, length delimited. Does not implicitly {@link game.altar_exchange_confirm_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_exchange_confirm_rsp
- * @static
- * @param {game.Ialtar_exchange_confirm_rsp} message altar_exchange_confirm_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_exchange_confirm_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_exchange_confirm_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_exchange_confirm_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_exchange_confirm_rsp} altar_exchange_confirm_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_exchange_confirm_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_exchange_confirm_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_exchange_confirm_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_exchange_confirm_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_exchange_confirm_rsp} altar_exchange_confirm_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_exchange_confirm_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_exchange_confirm_rsp message.
- * @function verify
- * @memberof game.altar_exchange_confirm_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_exchange_confirm_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates an altar_exchange_confirm_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_exchange_confirm_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_exchange_confirm_rsp} altar_exchange_confirm_rsp
- */
- altar_exchange_confirm_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_exchange_confirm_rsp)
- return object;
- let message = new $root.game.altar_exchange_confirm_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an altar_exchange_confirm_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_exchange_confirm_rsp
- * @static
- * @param {game.altar_exchange_confirm_rsp} message altar_exchange_confirm_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_exchange_confirm_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this altar_exchange_confirm_rsp to JSON.
- * @function toJSON
- * @memberof game.altar_exchange_confirm_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_exchange_confirm_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_exchange_confirm_rsp;
- })();
- game.altar_buy_battle_space = (function() {
- /**
- * Properties of an altar_buy_battle_space.
- * @memberof game
- * @interface Ialtar_buy_battle_space
- */
- /**
- * Constructs a new altar_buy_battle_space.
- * @memberof game
- * @classdesc Represents an altar_buy_battle_space.
- * @implements Ialtar_buy_battle_space
- * @constructor
- * @param {game.Ialtar_buy_battle_space=} [properties] Properties to set
- */
- function altar_buy_battle_space(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new altar_buy_battle_space instance using the specified properties.
- * @function create
- * @memberof game.altar_buy_battle_space
- * @static
- * @param {game.Ialtar_buy_battle_space=} [properties] Properties to set
- * @returns {game.altar_buy_battle_space} altar_buy_battle_space instance
- */
- altar_buy_battle_space.create = function create(properties) {
- return new altar_buy_battle_space(properties);
- };
- /**
- * Encodes the specified altar_buy_battle_space message. Does not implicitly {@link game.altar_buy_battle_space.verify|verify} messages.
- * @function encode
- * @memberof game.altar_buy_battle_space
- * @static
- * @param {game.Ialtar_buy_battle_space} message altar_buy_battle_space message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_buy_battle_space.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified altar_buy_battle_space message, length delimited. Does not implicitly {@link game.altar_buy_battle_space.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_buy_battle_space
- * @static
- * @param {game.Ialtar_buy_battle_space} message altar_buy_battle_space message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_buy_battle_space.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_buy_battle_space message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_buy_battle_space
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_buy_battle_space} altar_buy_battle_space
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_buy_battle_space.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_buy_battle_space();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_buy_battle_space message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_buy_battle_space
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_buy_battle_space} altar_buy_battle_space
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_buy_battle_space.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_buy_battle_space message.
- * @function verify
- * @memberof game.altar_buy_battle_space
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_buy_battle_space.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates an altar_buy_battle_space message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_buy_battle_space
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_buy_battle_space} altar_buy_battle_space
- */
- altar_buy_battle_space.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_buy_battle_space)
- return object;
- return new $root.game.altar_buy_battle_space();
- };
- /**
- * Creates a plain object from an altar_buy_battle_space message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_buy_battle_space
- * @static
- * @param {game.altar_buy_battle_space} message altar_buy_battle_space
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_buy_battle_space.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this altar_buy_battle_space to JSON.
- * @function toJSON
- * @memberof game.altar_buy_battle_space
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_buy_battle_space.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_buy_battle_space;
- })();
- game.altar_buy_battle_space_rsp = (function() {
- /**
- * Properties of an altar_buy_battle_space_rsp.
- * @memberof game
- * @interface Ialtar_buy_battle_space_rsp
- * @property {number|Long|null} [errno] altar_buy_battle_space_rsp errno
- * @property {number|Long|null} [pos] altar_buy_battle_space_rsp pos
- * @property {game.Ialtar_info|null} [data] altar_buy_battle_space_rsp data
- */
- /**
- * Constructs a new altar_buy_battle_space_rsp.
- * @memberof game
- * @classdesc Represents an altar_buy_battle_space_rsp.
- * @implements Ialtar_buy_battle_space_rsp
- * @constructor
- * @param {game.Ialtar_buy_battle_space_rsp=} [properties] Properties to set
- */
- function altar_buy_battle_space_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * altar_buy_battle_space_rsp errno.
- * @member {number|Long} errno
- * @memberof game.altar_buy_battle_space_rsp
- * @instance
- */
- altar_buy_battle_space_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_buy_battle_space_rsp pos.
- * @member {number|Long} pos
- * @memberof game.altar_buy_battle_space_rsp
- * @instance
- */
- altar_buy_battle_space_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_buy_battle_space_rsp data.
- * @member {game.Ialtar_info|null|undefined} data
- * @memberof game.altar_buy_battle_space_rsp
- * @instance
- */
- altar_buy_battle_space_rsp.prototype.data = null;
- /**
- * Creates a new altar_buy_battle_space_rsp instance using the specified properties.
- * @function create
- * @memberof game.altar_buy_battle_space_rsp
- * @static
- * @param {game.Ialtar_buy_battle_space_rsp=} [properties] Properties to set
- * @returns {game.altar_buy_battle_space_rsp} altar_buy_battle_space_rsp instance
- */
- altar_buy_battle_space_rsp.create = function create(properties) {
- return new altar_buy_battle_space_rsp(properties);
- };
- /**
- * Encodes the specified altar_buy_battle_space_rsp message. Does not implicitly {@link game.altar_buy_battle_space_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.altar_buy_battle_space_rsp
- * @static
- * @param {game.Ialtar_buy_battle_space_rsp} message altar_buy_battle_space_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_buy_battle_space_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.altar_info.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified altar_buy_battle_space_rsp message, length delimited. Does not implicitly {@link game.altar_buy_battle_space_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_buy_battle_space_rsp
- * @static
- * @param {game.Ialtar_buy_battle_space_rsp} message altar_buy_battle_space_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_buy_battle_space_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_buy_battle_space_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_buy_battle_space_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_buy_battle_space_rsp} altar_buy_battle_space_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_buy_battle_space_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_buy_battle_space_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.pos = reader.int64();
- break;
- case 3:
- message.data = $root.game.altar_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_buy_battle_space_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_buy_battle_space_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_buy_battle_space_rsp} altar_buy_battle_space_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_buy_battle_space_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_buy_battle_space_rsp message.
- * @function verify
- * @memberof game.altar_buy_battle_space_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_buy_battle_space_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.altar_info.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates an altar_buy_battle_space_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_buy_battle_space_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_buy_battle_space_rsp} altar_buy_battle_space_rsp
- */
- altar_buy_battle_space_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_buy_battle_space_rsp)
- return object;
- let message = new $root.game.altar_buy_battle_space_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.altar_buy_battle_space_rsp.data: object expected");
- message.data = $root.game.altar_info.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from an altar_buy_battle_space_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_buy_battle_space_rsp
- * @static
- * @param {game.altar_buy_battle_space_rsp} message altar_buy_battle_space_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_buy_battle_space_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.altar_info.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this altar_buy_battle_space_rsp to JSON.
- * @function toJSON
- * @memberof game.altar_buy_battle_space_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_buy_battle_space_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_buy_battle_space_rsp;
- })();
- game.altar_reset_cd = (function() {
- /**
- * Properties of an altar_reset_cd.
- * @memberof game
- * @interface Ialtar_reset_cd
- * @property {number|Long|null} [pos] altar_reset_cd pos
- */
- /**
- * Constructs a new altar_reset_cd.
- * @memberof game
- * @classdesc Represents an altar_reset_cd.
- * @implements Ialtar_reset_cd
- * @constructor
- * @param {game.Ialtar_reset_cd=} [properties] Properties to set
- */
- function altar_reset_cd(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * altar_reset_cd pos.
- * @member {number|Long} pos
- * @memberof game.altar_reset_cd
- * @instance
- */
- altar_reset_cd.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new altar_reset_cd instance using the specified properties.
- * @function create
- * @memberof game.altar_reset_cd
- * @static
- * @param {game.Ialtar_reset_cd=} [properties] Properties to set
- * @returns {game.altar_reset_cd} altar_reset_cd instance
- */
- altar_reset_cd.create = function create(properties) {
- return new altar_reset_cd(properties);
- };
- /**
- * Encodes the specified altar_reset_cd message. Does not implicitly {@link game.altar_reset_cd.verify|verify} messages.
- * @function encode
- * @memberof game.altar_reset_cd
- * @static
- * @param {game.Ialtar_reset_cd} message altar_reset_cd message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_reset_cd.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
- return writer;
- };
- /**
- * Encodes the specified altar_reset_cd message, length delimited. Does not implicitly {@link game.altar_reset_cd.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_reset_cd
- * @static
- * @param {game.Ialtar_reset_cd} message altar_reset_cd message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_reset_cd.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_reset_cd message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_reset_cd
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_reset_cd} altar_reset_cd
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_reset_cd.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_reset_cd();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.pos = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_reset_cd message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_reset_cd
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_reset_cd} altar_reset_cd
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_reset_cd.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_reset_cd message.
- * @function verify
- * @memberof game.altar_reset_cd
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_reset_cd.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- return null;
- };
- /**
- * Creates an altar_reset_cd message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_reset_cd
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_reset_cd} altar_reset_cd
- */
- altar_reset_cd.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_reset_cd)
- return object;
- let message = new $root.game.altar_reset_cd();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an altar_reset_cd message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_reset_cd
- * @static
- * @param {game.altar_reset_cd} message altar_reset_cd
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_reset_cd.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- return object;
- };
- /**
- * Converts this altar_reset_cd to JSON.
- * @function toJSON
- * @memberof game.altar_reset_cd
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_reset_cd.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_reset_cd;
- })();
- game.altar_reset_cd_rsp = (function() {
- /**
- * Properties of an altar_reset_cd_rsp.
- * @memberof game
- * @interface Ialtar_reset_cd_rsp
- * @property {number|Long|null} [errno] altar_reset_cd_rsp errno
- * @property {number|Long|null} [pos] altar_reset_cd_rsp pos
- * @property {game.Ialtar_info|null} [data] altar_reset_cd_rsp data
- */
- /**
- * Constructs a new altar_reset_cd_rsp.
- * @memberof game
- * @classdesc Represents an altar_reset_cd_rsp.
- * @implements Ialtar_reset_cd_rsp
- * @constructor
- * @param {game.Ialtar_reset_cd_rsp=} [properties] Properties to set
- */
- function altar_reset_cd_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * altar_reset_cd_rsp errno.
- * @member {number|Long} errno
- * @memberof game.altar_reset_cd_rsp
- * @instance
- */
- altar_reset_cd_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_reset_cd_rsp pos.
- * @member {number|Long} pos
- * @memberof game.altar_reset_cd_rsp
- * @instance
- */
- altar_reset_cd_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_reset_cd_rsp data.
- * @member {game.Ialtar_info|null|undefined} data
- * @memberof game.altar_reset_cd_rsp
- * @instance
- */
- altar_reset_cd_rsp.prototype.data = null;
- /**
- * Creates a new altar_reset_cd_rsp instance using the specified properties.
- * @function create
- * @memberof game.altar_reset_cd_rsp
- * @static
- * @param {game.Ialtar_reset_cd_rsp=} [properties] Properties to set
- * @returns {game.altar_reset_cd_rsp} altar_reset_cd_rsp instance
- */
- altar_reset_cd_rsp.create = function create(properties) {
- return new altar_reset_cd_rsp(properties);
- };
- /**
- * Encodes the specified altar_reset_cd_rsp message. Does not implicitly {@link game.altar_reset_cd_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.altar_reset_cd_rsp
- * @static
- * @param {game.Ialtar_reset_cd_rsp} message altar_reset_cd_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_reset_cd_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.altar_info.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified altar_reset_cd_rsp message, length delimited. Does not implicitly {@link game.altar_reset_cd_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_reset_cd_rsp
- * @static
- * @param {game.Ialtar_reset_cd_rsp} message altar_reset_cd_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_reset_cd_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_reset_cd_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_reset_cd_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_reset_cd_rsp} altar_reset_cd_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_reset_cd_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_reset_cd_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.pos = reader.int64();
- break;
- case 3:
- message.data = $root.game.altar_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_reset_cd_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_reset_cd_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_reset_cd_rsp} altar_reset_cd_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_reset_cd_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_reset_cd_rsp message.
- * @function verify
- * @memberof game.altar_reset_cd_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_reset_cd_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.altar_info.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates an altar_reset_cd_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_reset_cd_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_reset_cd_rsp} altar_reset_cd_rsp
- */
- altar_reset_cd_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_reset_cd_rsp)
- return object;
- let message = new $root.game.altar_reset_cd_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.altar_reset_cd_rsp.data: object expected");
- message.data = $root.game.altar_info.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from an altar_reset_cd_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_reset_cd_rsp
- * @static
- * @param {game.altar_reset_cd_rsp} message altar_reset_cd_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_reset_cd_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.altar_info.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this altar_reset_cd_rsp to JSON.
- * @function toJSON
- * @memberof game.altar_reset_cd_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_reset_cd_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_reset_cd_rsp;
- })();
- game.relic_data = (function() {
- /**
- * Properties of a relic_data.
- * @memberof game
- * @interface Irelic_data
- */
- /**
- * Constructs a new relic_data.
- * @memberof game
- * @classdesc Represents a relic_data.
- * @implements Irelic_data
- * @constructor
- * @param {game.Irelic_data=} [properties] Properties to set
- */
- function relic_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new relic_data instance using the specified properties.
- * @function create
- * @memberof game.relic_data
- * @static
- * @param {game.Irelic_data=} [properties] Properties to set
- * @returns {game.relic_data} relic_data instance
- */
- relic_data.create = function create(properties) {
- return new relic_data(properties);
- };
- /**
- * Encodes the specified relic_data message. Does not implicitly {@link game.relic_data.verify|verify} messages.
- * @function encode
- * @memberof game.relic_data
- * @static
- * @param {game.Irelic_data} message relic_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified relic_data message, length delimited. Does not implicitly {@link game.relic_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_data
- * @static
- * @param {game.Irelic_data} message relic_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_data} relic_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_data} relic_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_data message.
- * @function verify
- * @memberof game.relic_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a relic_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_data} relic_data
- */
- relic_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_data)
- return object;
- return new $root.game.relic_data();
- };
- /**
- * Creates a plain object from a relic_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_data
- * @static
- * @param {game.relic_data} message relic_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this relic_data to JSON.
- * @function toJSON
- * @memberof game.relic_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_data;
- })();
- game.relic_data_rsp = (function() {
- /**
- * Properties of a relic_data_rsp.
- * @memberof game
- * @interface Irelic_data_rsp
- * @property {number|Long|null} [errno] relic_data_rsp errno
- */
- /**
- * Constructs a new relic_data_rsp.
- * @memberof game
- * @classdesc Represents a relic_data_rsp.
- * @implements Irelic_data_rsp
- * @constructor
- * @param {game.Irelic_data_rsp=} [properties] Properties to set
- */
- function relic_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * relic_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.relic_data_rsp
- * @instance
- */
- relic_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new relic_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.relic_data_rsp
- * @static
- * @param {game.Irelic_data_rsp=} [properties] Properties to set
- * @returns {game.relic_data_rsp} relic_data_rsp instance
- */
- relic_data_rsp.create = function create(properties) {
- return new relic_data_rsp(properties);
- };
- /**
- * Encodes the specified relic_data_rsp message. Does not implicitly {@link game.relic_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.relic_data_rsp
- * @static
- * @param {game.Irelic_data_rsp} message relic_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified relic_data_rsp message, length delimited. Does not implicitly {@link game.relic_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_data_rsp
- * @static
- * @param {game.Irelic_data_rsp} message relic_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_data_rsp} relic_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_data_rsp} relic_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_data_rsp message.
- * @function verify
- * @memberof game.relic_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a relic_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_data_rsp} relic_data_rsp
- */
- relic_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_data_rsp)
- return object;
- let message = new $root.game.relic_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a relic_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_data_rsp
- * @static
- * @param {game.relic_data_rsp} message relic_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this relic_data_rsp to JSON.
- * @function toJSON
- * @memberof game.relic_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_data_rsp;
- })();
- game.relic_next_pos = (function() {
- /**
- * Properties of a relic_next_pos.
- * @memberof game
- * @interface Irelic_next_pos
- * @property {number|Long|null} [pos] relic_next_pos pos
- */
- /**
- * Constructs a new relic_next_pos.
- * @memberof game
- * @classdesc Represents a relic_next_pos.
- * @implements Irelic_next_pos
- * @constructor
- * @param {game.Irelic_next_pos=} [properties] Properties to set
- */
- function relic_next_pos(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * relic_next_pos pos.
- * @member {number|Long} pos
- * @memberof game.relic_next_pos
- * @instance
- */
- relic_next_pos.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new relic_next_pos instance using the specified properties.
- * @function create
- * @memberof game.relic_next_pos
- * @static
- * @param {game.Irelic_next_pos=} [properties] Properties to set
- * @returns {game.relic_next_pos} relic_next_pos instance
- */
- relic_next_pos.create = function create(properties) {
- return new relic_next_pos(properties);
- };
- /**
- * Encodes the specified relic_next_pos message. Does not implicitly {@link game.relic_next_pos.verify|verify} messages.
- * @function encode
- * @memberof game.relic_next_pos
- * @static
- * @param {game.Irelic_next_pos} message relic_next_pos message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_next_pos.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
- return writer;
- };
- /**
- * Encodes the specified relic_next_pos message, length delimited. Does not implicitly {@link game.relic_next_pos.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_next_pos
- * @static
- * @param {game.Irelic_next_pos} message relic_next_pos message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_next_pos.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_next_pos message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_next_pos
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_next_pos} relic_next_pos
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_next_pos.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_next_pos();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.pos = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_next_pos message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_next_pos
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_next_pos} relic_next_pos
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_next_pos.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_next_pos message.
- * @function verify
- * @memberof game.relic_next_pos
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_next_pos.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- return null;
- };
- /**
- * Creates a relic_next_pos message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_next_pos
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_next_pos} relic_next_pos
- */
- relic_next_pos.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_next_pos)
- return object;
- let message = new $root.game.relic_next_pos();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a relic_next_pos message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_next_pos
- * @static
- * @param {game.relic_next_pos} message relic_next_pos
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_next_pos.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- return object;
- };
- /**
- * Converts this relic_next_pos to JSON.
- * @function toJSON
- * @memberof game.relic_next_pos
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_next_pos.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_next_pos;
- })();
- game.relic_next_pos_rsp = (function() {
- /**
- * Properties of a relic_next_pos_rsp.
- * @memberof game
- * @interface Irelic_next_pos_rsp
- * @property {number|Long|null} [errno] relic_next_pos_rsp errno
- */
- /**
- * Constructs a new relic_next_pos_rsp.
- * @memberof game
- * @classdesc Represents a relic_next_pos_rsp.
- * @implements Irelic_next_pos_rsp
- * @constructor
- * @param {game.Irelic_next_pos_rsp=} [properties] Properties to set
- */
- function relic_next_pos_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * relic_next_pos_rsp errno.
- * @member {number|Long} errno
- * @memberof game.relic_next_pos_rsp
- * @instance
- */
- relic_next_pos_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new relic_next_pos_rsp instance using the specified properties.
- * @function create
- * @memberof game.relic_next_pos_rsp
- * @static
- * @param {game.Irelic_next_pos_rsp=} [properties] Properties to set
- * @returns {game.relic_next_pos_rsp} relic_next_pos_rsp instance
- */
- relic_next_pos_rsp.create = function create(properties) {
- return new relic_next_pos_rsp(properties);
- };
- /**
- * Encodes the specified relic_next_pos_rsp message. Does not implicitly {@link game.relic_next_pos_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.relic_next_pos_rsp
- * @static
- * @param {game.Irelic_next_pos_rsp} message relic_next_pos_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_next_pos_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified relic_next_pos_rsp message, length delimited. Does not implicitly {@link game.relic_next_pos_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_next_pos_rsp
- * @static
- * @param {game.Irelic_next_pos_rsp} message relic_next_pos_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_next_pos_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_next_pos_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_next_pos_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_next_pos_rsp} relic_next_pos_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_next_pos_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_next_pos_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_next_pos_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_next_pos_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_next_pos_rsp} relic_next_pos_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_next_pos_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_next_pos_rsp message.
- * @function verify
- * @memberof game.relic_next_pos_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_next_pos_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a relic_next_pos_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_next_pos_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_next_pos_rsp} relic_next_pos_rsp
- */
- relic_next_pos_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_next_pos_rsp)
- return object;
- let message = new $root.game.relic_next_pos_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a relic_next_pos_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_next_pos_rsp
- * @static
- * @param {game.relic_next_pos_rsp} message relic_next_pos_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_next_pos_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this relic_next_pos_rsp to JSON.
- * @function toJSON
- * @memberof game.relic_next_pos_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_next_pos_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_next_pos_rsp;
- })();
- game.relic_next_layer = (function() {
- /**
- * Properties of a relic_next_layer.
- * @memberof game
- * @interface Irelic_next_layer
- */
- /**
- * Constructs a new relic_next_layer.
- * @memberof game
- * @classdesc Represents a relic_next_layer.
- * @implements Irelic_next_layer
- * @constructor
- * @param {game.Irelic_next_layer=} [properties] Properties to set
- */
- function relic_next_layer(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new relic_next_layer instance using the specified properties.
- * @function create
- * @memberof game.relic_next_layer
- * @static
- * @param {game.Irelic_next_layer=} [properties] Properties to set
- * @returns {game.relic_next_layer} relic_next_layer instance
- */
- relic_next_layer.create = function create(properties) {
- return new relic_next_layer(properties);
- };
- /**
- * Encodes the specified relic_next_layer message. Does not implicitly {@link game.relic_next_layer.verify|verify} messages.
- * @function encode
- * @memberof game.relic_next_layer
- * @static
- * @param {game.Irelic_next_layer} message relic_next_layer message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_next_layer.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified relic_next_layer message, length delimited. Does not implicitly {@link game.relic_next_layer.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_next_layer
- * @static
- * @param {game.Irelic_next_layer} message relic_next_layer message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_next_layer.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_next_layer message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_next_layer
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_next_layer} relic_next_layer
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_next_layer.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_next_layer();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_next_layer message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_next_layer
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_next_layer} relic_next_layer
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_next_layer.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_next_layer message.
- * @function verify
- * @memberof game.relic_next_layer
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_next_layer.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a relic_next_layer message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_next_layer
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_next_layer} relic_next_layer
- */
- relic_next_layer.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_next_layer)
- return object;
- return new $root.game.relic_next_layer();
- };
- /**
- * Creates a plain object from a relic_next_layer message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_next_layer
- * @static
- * @param {game.relic_next_layer} message relic_next_layer
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_next_layer.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this relic_next_layer to JSON.
- * @function toJSON
- * @memberof game.relic_next_layer
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_next_layer.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_next_layer;
- })();
- game.relic_next_layer_rsp = (function() {
- /**
- * Properties of a relic_next_layer_rsp.
- * @memberof game
- * @interface Irelic_next_layer_rsp
- * @property {number|Long|null} [errno] relic_next_layer_rsp errno
- */
- /**
- * Constructs a new relic_next_layer_rsp.
- * @memberof game
- * @classdesc Represents a relic_next_layer_rsp.
- * @implements Irelic_next_layer_rsp
- * @constructor
- * @param {game.Irelic_next_layer_rsp=} [properties] Properties to set
- */
- function relic_next_layer_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * relic_next_layer_rsp errno.
- * @member {number|Long} errno
- * @memberof game.relic_next_layer_rsp
- * @instance
- */
- relic_next_layer_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new relic_next_layer_rsp instance using the specified properties.
- * @function create
- * @memberof game.relic_next_layer_rsp
- * @static
- * @param {game.Irelic_next_layer_rsp=} [properties] Properties to set
- * @returns {game.relic_next_layer_rsp} relic_next_layer_rsp instance
- */
- relic_next_layer_rsp.create = function create(properties) {
- return new relic_next_layer_rsp(properties);
- };
- /**
- * Encodes the specified relic_next_layer_rsp message. Does not implicitly {@link game.relic_next_layer_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.relic_next_layer_rsp
- * @static
- * @param {game.Irelic_next_layer_rsp} message relic_next_layer_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_next_layer_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified relic_next_layer_rsp message, length delimited. Does not implicitly {@link game.relic_next_layer_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_next_layer_rsp
- * @static
- * @param {game.Irelic_next_layer_rsp} message relic_next_layer_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_next_layer_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_next_layer_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_next_layer_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_next_layer_rsp} relic_next_layer_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_next_layer_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_next_layer_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_next_layer_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_next_layer_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_next_layer_rsp} relic_next_layer_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_next_layer_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_next_layer_rsp message.
- * @function verify
- * @memberof game.relic_next_layer_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_next_layer_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a relic_next_layer_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_next_layer_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_next_layer_rsp} relic_next_layer_rsp
- */
- relic_next_layer_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_next_layer_rsp)
- return object;
- let message = new $root.game.relic_next_layer_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a relic_next_layer_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_next_layer_rsp
- * @static
- * @param {game.relic_next_layer_rsp} message relic_next_layer_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_next_layer_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this relic_next_layer_rsp to JSON.
- * @function toJSON
- * @memberof game.relic_next_layer_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_next_layer_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_next_layer_rsp;
- })();
- game.relic_select_buff = (function() {
- /**
- * Properties of a relic_select_buff.
- * @memberof game
- * @interface Irelic_select_buff
- */
- /**
- * Constructs a new relic_select_buff.
- * @memberof game
- * @classdesc Represents a relic_select_buff.
- * @implements Irelic_select_buff
- * @constructor
- * @param {game.Irelic_select_buff=} [properties] Properties to set
- */
- function relic_select_buff(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new relic_select_buff instance using the specified properties.
- * @function create
- * @memberof game.relic_select_buff
- * @static
- * @param {game.Irelic_select_buff=} [properties] Properties to set
- * @returns {game.relic_select_buff} relic_select_buff instance
- */
- relic_select_buff.create = function create(properties) {
- return new relic_select_buff(properties);
- };
- /**
- * Encodes the specified relic_select_buff message. Does not implicitly {@link game.relic_select_buff.verify|verify} messages.
- * @function encode
- * @memberof game.relic_select_buff
- * @static
- * @param {game.Irelic_select_buff} message relic_select_buff message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_select_buff.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified relic_select_buff message, length delimited. Does not implicitly {@link game.relic_select_buff.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_select_buff
- * @static
- * @param {game.Irelic_select_buff} message relic_select_buff message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_select_buff.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_select_buff message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_select_buff
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_select_buff} relic_select_buff
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_select_buff.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_select_buff();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_select_buff message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_select_buff
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_select_buff} relic_select_buff
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_select_buff.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_select_buff message.
- * @function verify
- * @memberof game.relic_select_buff
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_select_buff.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a relic_select_buff message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_select_buff
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_select_buff} relic_select_buff
- */
- relic_select_buff.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_select_buff)
- return object;
- return new $root.game.relic_select_buff();
- };
- /**
- * Creates a plain object from a relic_select_buff message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_select_buff
- * @static
- * @param {game.relic_select_buff} message relic_select_buff
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_select_buff.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this relic_select_buff to JSON.
- * @function toJSON
- * @memberof game.relic_select_buff
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_select_buff.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_select_buff;
- })();
- game.relic_select_buff_rsp = (function() {
- /**
- * Properties of a relic_select_buff_rsp.
- * @memberof game
- * @interface Irelic_select_buff_rsp
- * @property {number|Long|null} [errno] relic_select_buff_rsp errno
- */
- /**
- * Constructs a new relic_select_buff_rsp.
- * @memberof game
- * @classdesc Represents a relic_select_buff_rsp.
- * @implements Irelic_select_buff_rsp
- * @constructor
- * @param {game.Irelic_select_buff_rsp=} [properties] Properties to set
- */
- function relic_select_buff_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * relic_select_buff_rsp errno.
- * @member {number|Long} errno
- * @memberof game.relic_select_buff_rsp
- * @instance
- */
- relic_select_buff_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new relic_select_buff_rsp instance using the specified properties.
- * @function create
- * @memberof game.relic_select_buff_rsp
- * @static
- * @param {game.Irelic_select_buff_rsp=} [properties] Properties to set
- * @returns {game.relic_select_buff_rsp} relic_select_buff_rsp instance
- */
- relic_select_buff_rsp.create = function create(properties) {
- return new relic_select_buff_rsp(properties);
- };
- /**
- * Encodes the specified relic_select_buff_rsp message. Does not implicitly {@link game.relic_select_buff_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.relic_select_buff_rsp
- * @static
- * @param {game.Irelic_select_buff_rsp} message relic_select_buff_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_select_buff_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified relic_select_buff_rsp message, length delimited. Does not implicitly {@link game.relic_select_buff_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_select_buff_rsp
- * @static
- * @param {game.Irelic_select_buff_rsp} message relic_select_buff_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_select_buff_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_select_buff_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_select_buff_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_select_buff_rsp} relic_select_buff_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_select_buff_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_select_buff_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_select_buff_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_select_buff_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_select_buff_rsp} relic_select_buff_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_select_buff_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_select_buff_rsp message.
- * @function verify
- * @memberof game.relic_select_buff_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_select_buff_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a relic_select_buff_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_select_buff_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_select_buff_rsp} relic_select_buff_rsp
- */
- relic_select_buff_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_select_buff_rsp)
- return object;
- let message = new $root.game.relic_select_buff_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a relic_select_buff_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_select_buff_rsp
- * @static
- * @param {game.relic_select_buff_rsp} message relic_select_buff_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_select_buff_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this relic_select_buff_rsp to JSON.
- * @function toJSON
- * @memberof game.relic_select_buff_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_select_buff_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_select_buff_rsp;
- })();
- game.relic_reset = (function() {
- /**
- * Properties of a relic_reset.
- * @memberof game
- * @interface Irelic_reset
- * @property {number|Long|null} [difficulty] relic_reset difficulty
- */
- /**
- * Constructs a new relic_reset.
- * @memberof game
- * @classdesc Represents a relic_reset.
- * @implements Irelic_reset
- * @constructor
- * @param {game.Irelic_reset=} [properties] Properties to set
- */
- function relic_reset(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * relic_reset difficulty.
- * @member {number|Long} difficulty
- * @memberof game.relic_reset
- * @instance
- */
- relic_reset.prototype.difficulty = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new relic_reset instance using the specified properties.
- * @function create
- * @memberof game.relic_reset
- * @static
- * @param {game.Irelic_reset=} [properties] Properties to set
- * @returns {game.relic_reset} relic_reset instance
- */
- relic_reset.create = function create(properties) {
- return new relic_reset(properties);
- };
- /**
- * Encodes the specified relic_reset message. Does not implicitly {@link game.relic_reset.verify|verify} messages.
- * @function encode
- * @memberof game.relic_reset
- * @static
- * @param {game.Irelic_reset} message relic_reset message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_reset.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.difficulty != null && Object.hasOwnProperty.call(message, "difficulty"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.difficulty);
- return writer;
- };
- /**
- * Encodes the specified relic_reset message, length delimited. Does not implicitly {@link game.relic_reset.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_reset
- * @static
- * @param {game.Irelic_reset} message relic_reset message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_reset.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_reset message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_reset
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_reset} relic_reset
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_reset.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_reset();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.difficulty = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_reset message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_reset
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_reset} relic_reset
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_reset.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_reset message.
- * @function verify
- * @memberof game.relic_reset
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_reset.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.difficulty != null && message.hasOwnProperty("difficulty"))
- if (!$util.isInteger(message.difficulty) && !(message.difficulty && $util.isInteger(message.difficulty.low) && $util.isInteger(message.difficulty.high)))
- return "difficulty: integer|Long expected";
- return null;
- };
- /**
- * Creates a relic_reset message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_reset
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_reset} relic_reset
- */
- relic_reset.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_reset)
- return object;
- let message = new $root.game.relic_reset();
- if (object.difficulty != null)
- if ($util.Long)
- (message.difficulty = $util.Long.fromValue(object.difficulty)).unsigned = false;
- else if (typeof object.difficulty === "string")
- message.difficulty = parseInt(object.difficulty, 10);
- else if (typeof object.difficulty === "number")
- message.difficulty = object.difficulty;
- else if (typeof object.difficulty === "object")
- message.difficulty = new $util.LongBits(object.difficulty.low >>> 0, object.difficulty.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a relic_reset message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_reset
- * @static
- * @param {game.relic_reset} message relic_reset
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_reset.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.difficulty = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.difficulty = options.longs === String ? "0" : 0;
- if (message.difficulty != null && message.hasOwnProperty("difficulty"))
- if (typeof message.difficulty === "number")
- object.difficulty = options.longs === String ? String(message.difficulty) : message.difficulty;
- else
- object.difficulty = options.longs === String ? $util.Long.prototype.toString.call(message.difficulty) : options.longs === Number ? new $util.LongBits(message.difficulty.low >>> 0, message.difficulty.high >>> 0).toNumber() : message.difficulty;
- return object;
- };
- /**
- * Converts this relic_reset to JSON.
- * @function toJSON
- * @memberof game.relic_reset
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_reset.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_reset;
- })();
- game.relic_reset_rsp = (function() {
- /**
- * Properties of a relic_reset_rsp.
- * @memberof game
- * @interface Irelic_reset_rsp
- * @property {number|Long|null} [errno] relic_reset_rsp errno
- */
- /**
- * Constructs a new relic_reset_rsp.
- * @memberof game
- * @classdesc Represents a relic_reset_rsp.
- * @implements Irelic_reset_rsp
- * @constructor
- * @param {game.Irelic_reset_rsp=} [properties] Properties to set
- */
- function relic_reset_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * relic_reset_rsp errno.
- * @member {number|Long} errno
- * @memberof game.relic_reset_rsp
- * @instance
- */
- relic_reset_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new relic_reset_rsp instance using the specified properties.
- * @function create
- * @memberof game.relic_reset_rsp
- * @static
- * @param {game.Irelic_reset_rsp=} [properties] Properties to set
- * @returns {game.relic_reset_rsp} relic_reset_rsp instance
- */
- relic_reset_rsp.create = function create(properties) {
- return new relic_reset_rsp(properties);
- };
- /**
- * Encodes the specified relic_reset_rsp message. Does not implicitly {@link game.relic_reset_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.relic_reset_rsp
- * @static
- * @param {game.Irelic_reset_rsp} message relic_reset_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_reset_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified relic_reset_rsp message, length delimited. Does not implicitly {@link game.relic_reset_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_reset_rsp
- * @static
- * @param {game.Irelic_reset_rsp} message relic_reset_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_reset_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_reset_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_reset_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_reset_rsp} relic_reset_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_reset_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_reset_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_reset_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_reset_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_reset_rsp} relic_reset_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_reset_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_reset_rsp message.
- * @function verify
- * @memberof game.relic_reset_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_reset_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a relic_reset_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_reset_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_reset_rsp} relic_reset_rsp
- */
- relic_reset_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_reset_rsp)
- return object;
- let message = new $root.game.relic_reset_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a relic_reset_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_reset_rsp
- * @static
- * @param {game.relic_reset_rsp} message relic_reset_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_reset_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this relic_reset_rsp to JSON.
- * @function toJSON
- * @memberof game.relic_reset_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_reset_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_reset_rsp;
- })();
- game.relic_event_select = (function() {
- /**
- * Properties of a relic_event_select.
- * @memberof game
- * @interface Irelic_event_select
- * @property {number|Long|null} [type] relic_event_select type
- * @property {boolean|null} [win] relic_event_select win
- * @property {number|Long|null} [cost] relic_event_select cost
- * @property {number|Long|null} [select] relic_event_select select
- */
- /**
- * Constructs a new relic_event_select.
- * @memberof game
- * @classdesc Represents a relic_event_select.
- * @implements Irelic_event_select
- * @constructor
- * @param {game.Irelic_event_select=} [properties] Properties to set
- */
- function relic_event_select(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * relic_event_select type.
- * @member {number|Long} type
- * @memberof game.relic_event_select
- * @instance
- */
- relic_event_select.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * relic_event_select win.
- * @member {boolean} win
- * @memberof game.relic_event_select
- * @instance
- */
- relic_event_select.prototype.win = false;
- /**
- * relic_event_select cost.
- * @member {number|Long} cost
- * @memberof game.relic_event_select
- * @instance
- */
- relic_event_select.prototype.cost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * relic_event_select select.
- * @member {number|Long} select
- * @memberof game.relic_event_select
- * @instance
- */
- relic_event_select.prototype.select = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new relic_event_select instance using the specified properties.
- * @function create
- * @memberof game.relic_event_select
- * @static
- * @param {game.Irelic_event_select=} [properties] Properties to set
- * @returns {game.relic_event_select} relic_event_select instance
- */
- relic_event_select.create = function create(properties) {
- return new relic_event_select(properties);
- };
- /**
- * Encodes the specified relic_event_select message. Does not implicitly {@link game.relic_event_select.verify|verify} messages.
- * @function encode
- * @memberof game.relic_event_select
- * @static
- * @param {game.Irelic_event_select} message relic_event_select message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_event_select.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.win != null && Object.hasOwnProperty.call(message, "win"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.win);
- if (message.cost != null && Object.hasOwnProperty.call(message, "cost"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.cost);
- if (message.select != null && Object.hasOwnProperty.call(message, "select"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.select);
- return writer;
- };
- /**
- * Encodes the specified relic_event_select message, length delimited. Does not implicitly {@link game.relic_event_select.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_event_select
- * @static
- * @param {game.Irelic_event_select} message relic_event_select message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_event_select.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_event_select message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_event_select
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_event_select} relic_event_select
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_event_select.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_event_select();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 2:
- message.win = reader.bool();
- break;
- case 3:
- message.cost = reader.int64();
- break;
- case 4:
- message.select = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_event_select message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_event_select
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_event_select} relic_event_select
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_event_select.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_event_select message.
- * @function verify
- * @memberof game.relic_event_select
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_event_select.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.win != null && message.hasOwnProperty("win"))
- if (typeof message.win !== "boolean")
- return "win: boolean expected";
- if (message.cost != null && message.hasOwnProperty("cost"))
- if (!$util.isInteger(message.cost) && !(message.cost && $util.isInteger(message.cost.low) && $util.isInteger(message.cost.high)))
- return "cost: integer|Long expected";
- if (message.select != null && message.hasOwnProperty("select"))
- if (!$util.isInteger(message.select) && !(message.select && $util.isInteger(message.select.low) && $util.isInteger(message.select.high)))
- return "select: integer|Long expected";
- return null;
- };
- /**
- * Creates a relic_event_select message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_event_select
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_event_select} relic_event_select
- */
- relic_event_select.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_event_select)
- return object;
- let message = new $root.game.relic_event_select();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.win != null)
- message.win = Boolean(object.win);
- if (object.cost != null)
- if ($util.Long)
- (message.cost = $util.Long.fromValue(object.cost)).unsigned = false;
- else if (typeof object.cost === "string")
- message.cost = parseInt(object.cost, 10);
- else if (typeof object.cost === "number")
- message.cost = object.cost;
- else if (typeof object.cost === "object")
- message.cost = new $util.LongBits(object.cost.low >>> 0, object.cost.high >>> 0).toNumber();
- if (object.select != null)
- if ($util.Long)
- (message.select = $util.Long.fromValue(object.select)).unsigned = false;
- else if (typeof object.select === "string")
- message.select = parseInt(object.select, 10);
- else if (typeof object.select === "number")
- message.select = object.select;
- else if (typeof object.select === "object")
- message.select = new $util.LongBits(object.select.low >>> 0, object.select.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a relic_event_select message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_event_select
- * @static
- * @param {game.relic_event_select} message relic_event_select
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_event_select.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- object.win = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.cost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.cost = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.select = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.select = options.longs === String ? "0" : 0;
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.win != null && message.hasOwnProperty("win"))
- object.win = message.win;
- if (message.cost != null && message.hasOwnProperty("cost"))
- if (typeof message.cost === "number")
- object.cost = options.longs === String ? String(message.cost) : message.cost;
- else
- object.cost = options.longs === String ? $util.Long.prototype.toString.call(message.cost) : options.longs === Number ? new $util.LongBits(message.cost.low >>> 0, message.cost.high >>> 0).toNumber() : message.cost;
- if (message.select != null && message.hasOwnProperty("select"))
- if (typeof message.select === "number")
- object.select = options.longs === String ? String(message.select) : message.select;
- else
- object.select = options.longs === String ? $util.Long.prototype.toString.call(message.select) : options.longs === Number ? new $util.LongBits(message.select.low >>> 0, message.select.high >>> 0).toNumber() : message.select;
- return object;
- };
- /**
- * Converts this relic_event_select to JSON.
- * @function toJSON
- * @memberof game.relic_event_select
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_event_select.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_event_select;
- })();
- game.relic_event_select_rsp = (function() {
- /**
- * Properties of a relic_event_select_rsp.
- * @memberof game
- * @interface Irelic_event_select_rsp
- * @property {number|Long|null} [errno] relic_event_select_rsp errno
- */
- /**
- * Constructs a new relic_event_select_rsp.
- * @memberof game
- * @classdesc Represents a relic_event_select_rsp.
- * @implements Irelic_event_select_rsp
- * @constructor
- * @param {game.Irelic_event_select_rsp=} [properties] Properties to set
- */
- function relic_event_select_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * relic_event_select_rsp errno.
- * @member {number|Long} errno
- * @memberof game.relic_event_select_rsp
- * @instance
- */
- relic_event_select_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new relic_event_select_rsp instance using the specified properties.
- * @function create
- * @memberof game.relic_event_select_rsp
- * @static
- * @param {game.Irelic_event_select_rsp=} [properties] Properties to set
- * @returns {game.relic_event_select_rsp} relic_event_select_rsp instance
- */
- relic_event_select_rsp.create = function create(properties) {
- return new relic_event_select_rsp(properties);
- };
- /**
- * Encodes the specified relic_event_select_rsp message. Does not implicitly {@link game.relic_event_select_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.relic_event_select_rsp
- * @static
- * @param {game.Irelic_event_select_rsp} message relic_event_select_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_event_select_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified relic_event_select_rsp message, length delimited. Does not implicitly {@link game.relic_event_select_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_event_select_rsp
- * @static
- * @param {game.Irelic_event_select_rsp} message relic_event_select_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_event_select_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_event_select_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_event_select_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_event_select_rsp} relic_event_select_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_event_select_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_event_select_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_event_select_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_event_select_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_event_select_rsp} relic_event_select_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_event_select_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_event_select_rsp message.
- * @function verify
- * @memberof game.relic_event_select_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_event_select_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a relic_event_select_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_event_select_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_event_select_rsp} relic_event_select_rsp
- */
- relic_event_select_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_event_select_rsp)
- return object;
- let message = new $root.game.relic_event_select_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a relic_event_select_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_event_select_rsp
- * @static
- * @param {game.relic_event_select_rsp} message relic_event_select_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_event_select_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this relic_event_select_rsp to JSON.
- * @function toJSON
- * @memberof game.relic_event_select_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_event_select_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_event_select_rsp;
- })();
- game.relic_data_nty = (function() {
- /**
- * Properties of a relic_data_nty.
- * @memberof game
- * @interface Irelic_data_nty
- * @property {number|Long|null} [maxDiff] relic_data_nty maxDiff
- * @property {number|Long|null} [curDiff] relic_data_nty curDiff
- * @property {Array.<number|Long>|null} [buffList] relic_data_nty buffList
- * @property {number|Long|null} [layer] relic_data_nty layer
- * @property {number|Long|null} [pos] relic_data_nty pos
- * @property {number|Long|null} [cost] relic_data_nty cost
- * @property {number|Long|null} [state] relic_data_nty state
- * @property {number|Long|null} [resetTime] relic_data_nty resetTime
- * @property {Array.<number|Long>|null} [posList] relic_data_nty posList
- * @property {Array.<number|Long>|null} [battleInfo] relic_data_nty battleInfo
- * @property {number|Long|null} [addCost] relic_data_nty addCost
- */
- /**
- * Constructs a new relic_data_nty.
- * @memberof game
- * @classdesc Represents a relic_data_nty.
- * @implements Irelic_data_nty
- * @constructor
- * @param {game.Irelic_data_nty=} [properties] Properties to set
- */
- function relic_data_nty(properties) {
- this.buffList = [];
- this.posList = [];
- this.battleInfo = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * relic_data_nty maxDiff.
- * @member {number|Long} maxDiff
- * @memberof game.relic_data_nty
- * @instance
- */
- relic_data_nty.prototype.maxDiff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * relic_data_nty curDiff.
- * @member {number|Long} curDiff
- * @memberof game.relic_data_nty
- * @instance
- */
- relic_data_nty.prototype.curDiff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * relic_data_nty buffList.
- * @member {Array.<number|Long>} buffList
- * @memberof game.relic_data_nty
- * @instance
- */
- relic_data_nty.prototype.buffList = $util.emptyArray;
- /**
- * relic_data_nty layer.
- * @member {number|Long} layer
- * @memberof game.relic_data_nty
- * @instance
- */
- relic_data_nty.prototype.layer = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * relic_data_nty pos.
- * @member {number|Long} pos
- * @memberof game.relic_data_nty
- * @instance
- */
- relic_data_nty.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * relic_data_nty cost.
- * @member {number|Long} cost
- * @memberof game.relic_data_nty
- * @instance
- */
- relic_data_nty.prototype.cost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * relic_data_nty state.
- * @member {number|Long} state
- * @memberof game.relic_data_nty
- * @instance
- */
- relic_data_nty.prototype.state = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * relic_data_nty resetTime.
- * @member {number|Long} resetTime
- * @memberof game.relic_data_nty
- * @instance
- */
- relic_data_nty.prototype.resetTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * relic_data_nty posList.
- * @member {Array.<number|Long>} posList
- * @memberof game.relic_data_nty
- * @instance
- */
- relic_data_nty.prototype.posList = $util.emptyArray;
- /**
- * relic_data_nty battleInfo.
- * @member {Array.<number|Long>} battleInfo
- * @memberof game.relic_data_nty
- * @instance
- */
- relic_data_nty.prototype.battleInfo = $util.emptyArray;
- /**
- * relic_data_nty addCost.
- * @member {number|Long} addCost
- * @memberof game.relic_data_nty
- * @instance
- */
- relic_data_nty.prototype.addCost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new relic_data_nty instance using the specified properties.
- * @function create
- * @memberof game.relic_data_nty
- * @static
- * @param {game.Irelic_data_nty=} [properties] Properties to set
- * @returns {game.relic_data_nty} relic_data_nty instance
- */
- relic_data_nty.create = function create(properties) {
- return new relic_data_nty(properties);
- };
- /**
- * Encodes the specified relic_data_nty message. Does not implicitly {@link game.relic_data_nty.verify|verify} messages.
- * @function encode
- * @memberof game.relic_data_nty
- * @static
- * @param {game.Irelic_data_nty} message relic_data_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_data_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.maxDiff != null && Object.hasOwnProperty.call(message, "maxDiff"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.maxDiff);
- if (message.curDiff != null && Object.hasOwnProperty.call(message, "curDiff"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.curDiff);
- if (message.buffList != null && message.buffList.length) {
- writer.uint32(/* id 4, wireType 2 =*/34).fork();
- for (let i = 0; i < message.buffList.length; ++i)
- writer.int64(message.buffList[i]);
- writer.ldelim();
- }
- if (message.layer != null && Object.hasOwnProperty.call(message, "layer"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.layer);
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 6, wireType 0 =*/48).int64(message.pos);
- if (message.cost != null && Object.hasOwnProperty.call(message, "cost"))
- writer.uint32(/* id 7, wireType 0 =*/56).int64(message.cost);
- if (message.state != null && Object.hasOwnProperty.call(message, "state"))
- writer.uint32(/* id 8, wireType 0 =*/64).int64(message.state);
- if (message.resetTime != null && Object.hasOwnProperty.call(message, "resetTime"))
- writer.uint32(/* id 9, wireType 0 =*/72).int64(message.resetTime);
- if (message.posList != null && message.posList.length) {
- writer.uint32(/* id 10, wireType 2 =*/82).fork();
- for (let i = 0; i < message.posList.length; ++i)
- writer.int64(message.posList[i]);
- writer.ldelim();
- }
- if (message.battleInfo != null && message.battleInfo.length) {
- writer.uint32(/* id 11, wireType 2 =*/90).fork();
- for (let i = 0; i < message.battleInfo.length; ++i)
- writer.int64(message.battleInfo[i]);
- writer.ldelim();
- }
- if (message.addCost != null && Object.hasOwnProperty.call(message, "addCost"))
- writer.uint32(/* id 12, wireType 0 =*/96).int64(message.addCost);
- return writer;
- };
- /**
- * Encodes the specified relic_data_nty message, length delimited. Does not implicitly {@link game.relic_data_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_data_nty
- * @static
- * @param {game.Irelic_data_nty} message relic_data_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_data_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_data_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_data_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_data_nty} relic_data_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_data_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_data_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.maxDiff = reader.int64();
- break;
- case 3:
- message.curDiff = reader.int64();
- break;
- case 4:
- if (!(message.buffList && message.buffList.length))
- message.buffList = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.buffList.push(reader.int64());
- } else
- message.buffList.push(reader.int64());
- break;
- case 5:
- message.layer = reader.int64();
- break;
- case 6:
- message.pos = reader.int64();
- break;
- case 7:
- message.cost = reader.int64();
- break;
- case 8:
- message.state = reader.int64();
- break;
- case 9:
- message.resetTime = reader.int64();
- break;
- case 10:
- if (!(message.posList && message.posList.length))
- message.posList = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.posList.push(reader.int64());
- } else
- message.posList.push(reader.int64());
- break;
- case 11:
- if (!(message.battleInfo && message.battleInfo.length))
- message.battleInfo = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.battleInfo.push(reader.int64());
- } else
- message.battleInfo.push(reader.int64());
- break;
- case 12:
- message.addCost = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_data_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_data_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_data_nty} relic_data_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_data_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_data_nty message.
- * @function verify
- * @memberof game.relic_data_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_data_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.maxDiff != null && message.hasOwnProperty("maxDiff"))
- if (!$util.isInteger(message.maxDiff) && !(message.maxDiff && $util.isInteger(message.maxDiff.low) && $util.isInteger(message.maxDiff.high)))
- return "maxDiff: integer|Long expected";
- if (message.curDiff != null && message.hasOwnProperty("curDiff"))
- if (!$util.isInteger(message.curDiff) && !(message.curDiff && $util.isInteger(message.curDiff.low) && $util.isInteger(message.curDiff.high)))
- return "curDiff: integer|Long expected";
- if (message.buffList != null && message.hasOwnProperty("buffList")) {
- if (!Array.isArray(message.buffList))
- return "buffList: array expected";
- for (let i = 0; i < message.buffList.length; ++i)
- if (!$util.isInteger(message.buffList[i]) && !(message.buffList[i] && $util.isInteger(message.buffList[i].low) && $util.isInteger(message.buffList[i].high)))
- return "buffList: integer|Long[] expected";
- }
- if (message.layer != null && message.hasOwnProperty("layer"))
- if (!$util.isInteger(message.layer) && !(message.layer && $util.isInteger(message.layer.low) && $util.isInteger(message.layer.high)))
- return "layer: integer|Long expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- if (message.cost != null && message.hasOwnProperty("cost"))
- if (!$util.isInteger(message.cost) && !(message.cost && $util.isInteger(message.cost.low) && $util.isInteger(message.cost.high)))
- return "cost: integer|Long expected";
- if (message.state != null && message.hasOwnProperty("state"))
- if (!$util.isInteger(message.state) && !(message.state && $util.isInteger(message.state.low) && $util.isInteger(message.state.high)))
- return "state: integer|Long expected";
- if (message.resetTime != null && message.hasOwnProperty("resetTime"))
- if (!$util.isInteger(message.resetTime) && !(message.resetTime && $util.isInteger(message.resetTime.low) && $util.isInteger(message.resetTime.high)))
- return "resetTime: integer|Long expected";
- if (message.posList != null && message.hasOwnProperty("posList")) {
- if (!Array.isArray(message.posList))
- return "posList: array expected";
- for (let i = 0; i < message.posList.length; ++i)
- if (!$util.isInteger(message.posList[i]) && !(message.posList[i] && $util.isInteger(message.posList[i].low) && $util.isInteger(message.posList[i].high)))
- return "posList: integer|Long[] expected";
- }
- if (message.battleInfo != null && message.hasOwnProperty("battleInfo")) {
- if (!Array.isArray(message.battleInfo))
- return "battleInfo: array expected";
- for (let i = 0; i < message.battleInfo.length; ++i)
- if (!$util.isInteger(message.battleInfo[i]) && !(message.battleInfo[i] && $util.isInteger(message.battleInfo[i].low) && $util.isInteger(message.battleInfo[i].high)))
- return "battleInfo: integer|Long[] expected";
- }
- if (message.addCost != null && message.hasOwnProperty("addCost"))
- if (!$util.isInteger(message.addCost) && !(message.addCost && $util.isInteger(message.addCost.low) && $util.isInteger(message.addCost.high)))
- return "addCost: integer|Long expected";
- return null;
- };
- /**
- * Creates a relic_data_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_data_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_data_nty} relic_data_nty
- */
- relic_data_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_data_nty)
- return object;
- let message = new $root.game.relic_data_nty();
- if (object.maxDiff != null)
- if ($util.Long)
- (message.maxDiff = $util.Long.fromValue(object.maxDiff)).unsigned = false;
- else if (typeof object.maxDiff === "string")
- message.maxDiff = parseInt(object.maxDiff, 10);
- else if (typeof object.maxDiff === "number")
- message.maxDiff = object.maxDiff;
- else if (typeof object.maxDiff === "object")
- message.maxDiff = new $util.LongBits(object.maxDiff.low >>> 0, object.maxDiff.high >>> 0).toNumber();
- if (object.curDiff != null)
- if ($util.Long)
- (message.curDiff = $util.Long.fromValue(object.curDiff)).unsigned = false;
- else if (typeof object.curDiff === "string")
- message.curDiff = parseInt(object.curDiff, 10);
- else if (typeof object.curDiff === "number")
- message.curDiff = object.curDiff;
- else if (typeof object.curDiff === "object")
- message.curDiff = new $util.LongBits(object.curDiff.low >>> 0, object.curDiff.high >>> 0).toNumber();
- if (object.buffList) {
- if (!Array.isArray(object.buffList))
- throw TypeError(".game.relic_data_nty.buffList: array expected");
- message.buffList = [];
- for (let i = 0; i < object.buffList.length; ++i)
- if ($util.Long)
- (message.buffList[i] = $util.Long.fromValue(object.buffList[i])).unsigned = false;
- else if (typeof object.buffList[i] === "string")
- message.buffList[i] = parseInt(object.buffList[i], 10);
- else if (typeof object.buffList[i] === "number")
- message.buffList[i] = object.buffList[i];
- else if (typeof object.buffList[i] === "object")
- message.buffList[i] = new $util.LongBits(object.buffList[i].low >>> 0, object.buffList[i].high >>> 0).toNumber();
- }
- if (object.layer != null)
- if ($util.Long)
- (message.layer = $util.Long.fromValue(object.layer)).unsigned = false;
- else if (typeof object.layer === "string")
- message.layer = parseInt(object.layer, 10);
- else if (typeof object.layer === "number")
- message.layer = object.layer;
- else if (typeof object.layer === "object")
- message.layer = new $util.LongBits(object.layer.low >>> 0, object.layer.high >>> 0).toNumber();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- if (object.cost != null)
- if ($util.Long)
- (message.cost = $util.Long.fromValue(object.cost)).unsigned = false;
- else if (typeof object.cost === "string")
- message.cost = parseInt(object.cost, 10);
- else if (typeof object.cost === "number")
- message.cost = object.cost;
- else if (typeof object.cost === "object")
- message.cost = new $util.LongBits(object.cost.low >>> 0, object.cost.high >>> 0).toNumber();
- if (object.state != null)
- if ($util.Long)
- (message.state = $util.Long.fromValue(object.state)).unsigned = false;
- else if (typeof object.state === "string")
- message.state = parseInt(object.state, 10);
- else if (typeof object.state === "number")
- message.state = object.state;
- else if (typeof object.state === "object")
- message.state = new $util.LongBits(object.state.low >>> 0, object.state.high >>> 0).toNumber();
- if (object.resetTime != null)
- if ($util.Long)
- (message.resetTime = $util.Long.fromValue(object.resetTime)).unsigned = false;
- else if (typeof object.resetTime === "string")
- message.resetTime = parseInt(object.resetTime, 10);
- else if (typeof object.resetTime === "number")
- message.resetTime = object.resetTime;
- else if (typeof object.resetTime === "object")
- message.resetTime = new $util.LongBits(object.resetTime.low >>> 0, object.resetTime.high >>> 0).toNumber();
- if (object.posList) {
- if (!Array.isArray(object.posList))
- throw TypeError(".game.relic_data_nty.posList: array expected");
- message.posList = [];
- for (let i = 0; i < object.posList.length; ++i)
- if ($util.Long)
- (message.posList[i] = $util.Long.fromValue(object.posList[i])).unsigned = false;
- else if (typeof object.posList[i] === "string")
- message.posList[i] = parseInt(object.posList[i], 10);
- else if (typeof object.posList[i] === "number")
- message.posList[i] = object.posList[i];
- else if (typeof object.posList[i] === "object")
- message.posList[i] = new $util.LongBits(object.posList[i].low >>> 0, object.posList[i].high >>> 0).toNumber();
- }
- if (object.battleInfo) {
- if (!Array.isArray(object.battleInfo))
- throw TypeError(".game.relic_data_nty.battleInfo: array expected");
- message.battleInfo = [];
- for (let i = 0; i < object.battleInfo.length; ++i)
- if ($util.Long)
- (message.battleInfo[i] = $util.Long.fromValue(object.battleInfo[i])).unsigned = false;
- else if (typeof object.battleInfo[i] === "string")
- message.battleInfo[i] = parseInt(object.battleInfo[i], 10);
- else if (typeof object.battleInfo[i] === "number")
- message.battleInfo[i] = object.battleInfo[i];
- else if (typeof object.battleInfo[i] === "object")
- message.battleInfo[i] = new $util.LongBits(object.battleInfo[i].low >>> 0, object.battleInfo[i].high >>> 0).toNumber();
- }
- if (object.addCost != null)
- if ($util.Long)
- (message.addCost = $util.Long.fromValue(object.addCost)).unsigned = false;
- else if (typeof object.addCost === "string")
- message.addCost = parseInt(object.addCost, 10);
- else if (typeof object.addCost === "number")
- message.addCost = object.addCost;
- else if (typeof object.addCost === "object")
- message.addCost = new $util.LongBits(object.addCost.low >>> 0, object.addCost.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a relic_data_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_data_nty
- * @static
- * @param {game.relic_data_nty} message relic_data_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_data_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.buffList = [];
- object.posList = [];
- object.battleInfo = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.maxDiff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.maxDiff = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.curDiff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.curDiff = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.layer = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.layer = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.cost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.cost = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.state = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.state = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.resetTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.resetTime = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.addCost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.addCost = options.longs === String ? "0" : 0;
- }
- if (message.maxDiff != null && message.hasOwnProperty("maxDiff"))
- if (typeof message.maxDiff === "number")
- object.maxDiff = options.longs === String ? String(message.maxDiff) : message.maxDiff;
- else
- object.maxDiff = options.longs === String ? $util.Long.prototype.toString.call(message.maxDiff) : options.longs === Number ? new $util.LongBits(message.maxDiff.low >>> 0, message.maxDiff.high >>> 0).toNumber() : message.maxDiff;
- if (message.curDiff != null && message.hasOwnProperty("curDiff"))
- if (typeof message.curDiff === "number")
- object.curDiff = options.longs === String ? String(message.curDiff) : message.curDiff;
- else
- object.curDiff = options.longs === String ? $util.Long.prototype.toString.call(message.curDiff) : options.longs === Number ? new $util.LongBits(message.curDiff.low >>> 0, message.curDiff.high >>> 0).toNumber() : message.curDiff;
- if (message.buffList && message.buffList.length) {
- object.buffList = [];
- for (let j = 0; j < message.buffList.length; ++j)
- if (typeof message.buffList[j] === "number")
- object.buffList[j] = options.longs === String ? String(message.buffList[j]) : message.buffList[j];
- else
- object.buffList[j] = options.longs === String ? $util.Long.prototype.toString.call(message.buffList[j]) : options.longs === Number ? new $util.LongBits(message.buffList[j].low >>> 0, message.buffList[j].high >>> 0).toNumber() : message.buffList[j];
- }
- if (message.layer != null && message.hasOwnProperty("layer"))
- if (typeof message.layer === "number")
- object.layer = options.longs === String ? String(message.layer) : message.layer;
- else
- object.layer = options.longs === String ? $util.Long.prototype.toString.call(message.layer) : options.longs === Number ? new $util.LongBits(message.layer.low >>> 0, message.layer.high >>> 0).toNumber() : message.layer;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- if (message.cost != null && message.hasOwnProperty("cost"))
- if (typeof message.cost === "number")
- object.cost = options.longs === String ? String(message.cost) : message.cost;
- else
- object.cost = options.longs === String ? $util.Long.prototype.toString.call(message.cost) : options.longs === Number ? new $util.LongBits(message.cost.low >>> 0, message.cost.high >>> 0).toNumber() : message.cost;
- if (message.state != null && message.hasOwnProperty("state"))
- if (typeof message.state === "number")
- object.state = options.longs === String ? String(message.state) : message.state;
- else
- object.state = options.longs === String ? $util.Long.prototype.toString.call(message.state) : options.longs === Number ? new $util.LongBits(message.state.low >>> 0, message.state.high >>> 0).toNumber() : message.state;
- if (message.resetTime != null && message.hasOwnProperty("resetTime"))
- if (typeof message.resetTime === "number")
- object.resetTime = options.longs === String ? String(message.resetTime) : message.resetTime;
- else
- object.resetTime = options.longs === String ? $util.Long.prototype.toString.call(message.resetTime) : options.longs === Number ? new $util.LongBits(message.resetTime.low >>> 0, message.resetTime.high >>> 0).toNumber() : message.resetTime;
- if (message.posList && message.posList.length) {
- object.posList = [];
- for (let j = 0; j < message.posList.length; ++j)
- if (typeof message.posList[j] === "number")
- object.posList[j] = options.longs === String ? String(message.posList[j]) : message.posList[j];
- else
- object.posList[j] = options.longs === String ? $util.Long.prototype.toString.call(message.posList[j]) : options.longs === Number ? new $util.LongBits(message.posList[j].low >>> 0, message.posList[j].high >>> 0).toNumber() : message.posList[j];
- }
- if (message.battleInfo && message.battleInfo.length) {
- object.battleInfo = [];
- for (let j = 0; j < message.battleInfo.length; ++j)
- if (typeof message.battleInfo[j] === "number")
- object.battleInfo[j] = options.longs === String ? String(message.battleInfo[j]) : message.battleInfo[j];
- else
- object.battleInfo[j] = options.longs === String ? $util.Long.prototype.toString.call(message.battleInfo[j]) : options.longs === Number ? new $util.LongBits(message.battleInfo[j].low >>> 0, message.battleInfo[j].high >>> 0).toNumber() : message.battleInfo[j];
- }
- if (message.addCost != null && message.hasOwnProperty("addCost"))
- if (typeof message.addCost === "number")
- object.addCost = options.longs === String ? String(message.addCost) : message.addCost;
- else
- object.addCost = options.longs === String ? $util.Long.prototype.toString.call(message.addCost) : options.longs === Number ? new $util.LongBits(message.addCost.low >>> 0, message.addCost.high >>> 0).toNumber() : message.addCost;
- return object;
- };
- /**
- * Converts this relic_data_nty to JSON.
- * @function toJSON
- * @memberof game.relic_data_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_data_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_data_nty;
- })();
- game.relic_event_nty = (function() {
- /**
- * Properties of a relic_event_nty.
- * @memberof game
- * @interface Irelic_event_nty
- * @property {number|Long|null} [type] relic_event_nty type
- * @property {number|Long|null} [battleId] relic_event_nty battleId
- * @property {number|Long|null} [battleType] relic_event_nty battleType
- * @property {Array.<number|Long>|null} [selectBuff] relic_event_nty selectBuff
- */
- /**
- * Constructs a new relic_event_nty.
- * @memberof game
- * @classdesc Represents a relic_event_nty.
- * @implements Irelic_event_nty
- * @constructor
- * @param {game.Irelic_event_nty=} [properties] Properties to set
- */
- function relic_event_nty(properties) {
- this.selectBuff = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * relic_event_nty type.
- * @member {number|Long} type
- * @memberof game.relic_event_nty
- * @instance
- */
- relic_event_nty.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * relic_event_nty battleId.
- * @member {number|Long} battleId
- * @memberof game.relic_event_nty
- * @instance
- */
- relic_event_nty.prototype.battleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * relic_event_nty battleType.
- * @member {number|Long} battleType
- * @memberof game.relic_event_nty
- * @instance
- */
- relic_event_nty.prototype.battleType = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * relic_event_nty selectBuff.
- * @member {Array.<number|Long>} selectBuff
- * @memberof game.relic_event_nty
- * @instance
- */
- relic_event_nty.prototype.selectBuff = $util.emptyArray;
- /**
- * Creates a new relic_event_nty instance using the specified properties.
- * @function create
- * @memberof game.relic_event_nty
- * @static
- * @param {game.Irelic_event_nty=} [properties] Properties to set
- * @returns {game.relic_event_nty} relic_event_nty instance
- */
- relic_event_nty.create = function create(properties) {
- return new relic_event_nty(properties);
- };
- /**
- * Encodes the specified relic_event_nty message. Does not implicitly {@link game.relic_event_nty.verify|verify} messages.
- * @function encode
- * @memberof game.relic_event_nty
- * @static
- * @param {game.Irelic_event_nty} message relic_event_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_event_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.battleId != null && Object.hasOwnProperty.call(message, "battleId"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.battleId);
- if (message.battleType != null && Object.hasOwnProperty.call(message, "battleType"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.battleType);
- if (message.selectBuff != null && message.selectBuff.length) {
- writer.uint32(/* id 6, wireType 2 =*/50).fork();
- for (let i = 0; i < message.selectBuff.length; ++i)
- writer.int64(message.selectBuff[i]);
- writer.ldelim();
- }
- return writer;
- };
- /**
- * Encodes the specified relic_event_nty message, length delimited. Does not implicitly {@link game.relic_event_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.relic_event_nty
- * @static
- * @param {game.Irelic_event_nty} message relic_event_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- relic_event_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a relic_event_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.relic_event_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.relic_event_nty} relic_event_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_event_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_event_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 4:
- message.battleId = reader.int64();
- break;
- case 5:
- message.battleType = reader.int64();
- break;
- case 6:
- if (!(message.selectBuff && message.selectBuff.length))
- message.selectBuff = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.selectBuff.push(reader.int64());
- } else
- message.selectBuff.push(reader.int64());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a relic_event_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.relic_event_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.relic_event_nty} relic_event_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- relic_event_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a relic_event_nty message.
- * @function verify
- * @memberof game.relic_event_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- relic_event_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.battleId != null && message.hasOwnProperty("battleId"))
- if (!$util.isInteger(message.battleId) && !(message.battleId && $util.isInteger(message.battleId.low) && $util.isInteger(message.battleId.high)))
- return "battleId: integer|Long expected";
- if (message.battleType != null && message.hasOwnProperty("battleType"))
- if (!$util.isInteger(message.battleType) && !(message.battleType && $util.isInteger(message.battleType.low) && $util.isInteger(message.battleType.high)))
- return "battleType: integer|Long expected";
- if (message.selectBuff != null && message.hasOwnProperty("selectBuff")) {
- if (!Array.isArray(message.selectBuff))
- return "selectBuff: array expected";
- for (let i = 0; i < message.selectBuff.length; ++i)
- if (!$util.isInteger(message.selectBuff[i]) && !(message.selectBuff[i] && $util.isInteger(message.selectBuff[i].low) && $util.isInteger(message.selectBuff[i].high)))
- return "selectBuff: integer|Long[] expected";
- }
- return null;
- };
- /**
- * Creates a relic_event_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.relic_event_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.relic_event_nty} relic_event_nty
- */
- relic_event_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.relic_event_nty)
- return object;
- let message = new $root.game.relic_event_nty();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.battleId != null)
- if ($util.Long)
- (message.battleId = $util.Long.fromValue(object.battleId)).unsigned = false;
- else if (typeof object.battleId === "string")
- message.battleId = parseInt(object.battleId, 10);
- else if (typeof object.battleId === "number")
- message.battleId = object.battleId;
- else if (typeof object.battleId === "object")
- message.battleId = new $util.LongBits(object.battleId.low >>> 0, object.battleId.high >>> 0).toNumber();
- if (object.battleType != null)
- if ($util.Long)
- (message.battleType = $util.Long.fromValue(object.battleType)).unsigned = false;
- else if (typeof object.battleType === "string")
- message.battleType = parseInt(object.battleType, 10);
- else if (typeof object.battleType === "number")
- message.battleType = object.battleType;
- else if (typeof object.battleType === "object")
- message.battleType = new $util.LongBits(object.battleType.low >>> 0, object.battleType.high >>> 0).toNumber();
- if (object.selectBuff) {
- if (!Array.isArray(object.selectBuff))
- throw TypeError(".game.relic_event_nty.selectBuff: array expected");
- message.selectBuff = [];
- for (let i = 0; i < object.selectBuff.length; ++i)
- if ($util.Long)
- (message.selectBuff[i] = $util.Long.fromValue(object.selectBuff[i])).unsigned = false;
- else if (typeof object.selectBuff[i] === "string")
- message.selectBuff[i] = parseInt(object.selectBuff[i], 10);
- else if (typeof object.selectBuff[i] === "number")
- message.selectBuff[i] = object.selectBuff[i];
- else if (typeof object.selectBuff[i] === "object")
- message.selectBuff[i] = new $util.LongBits(object.selectBuff[i].low >>> 0, object.selectBuff[i].high >>> 0).toNumber();
- }
- return message;
- };
- /**
- * Creates a plain object from a relic_event_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.relic_event_nty
- * @static
- * @param {game.relic_event_nty} message relic_event_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- relic_event_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.selectBuff = [];
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.battleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.battleId = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.battleType = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.battleType = options.longs === String ? "0" : 0;
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.battleId != null && message.hasOwnProperty("battleId"))
- if (typeof message.battleId === "number")
- object.battleId = options.longs === String ? String(message.battleId) : message.battleId;
- else
- object.battleId = options.longs === String ? $util.Long.prototype.toString.call(message.battleId) : options.longs === Number ? new $util.LongBits(message.battleId.low >>> 0, message.battleId.high >>> 0).toNumber() : message.battleId;
- if (message.battleType != null && message.hasOwnProperty("battleType"))
- if (typeof message.battleType === "number")
- object.battleType = options.longs === String ? String(message.battleType) : message.battleType;
- else
- object.battleType = options.longs === String ? $util.Long.prototype.toString.call(message.battleType) : options.longs === Number ? new $util.LongBits(message.battleType.low >>> 0, message.battleType.high >>> 0).toNumber() : message.battleType;
- if (message.selectBuff && message.selectBuff.length) {
- object.selectBuff = [];
- for (let j = 0; j < message.selectBuff.length; ++j)
- if (typeof message.selectBuff[j] === "number")
- object.selectBuff[j] = options.longs === String ? String(message.selectBuff[j]) : message.selectBuff[j];
- else
- object.selectBuff[j] = options.longs === String ? $util.Long.prototype.toString.call(message.selectBuff[j]) : options.longs === Number ? new $util.LongBits(message.selectBuff[j].low >>> 0, message.selectBuff[j].high >>> 0).toNumber() : message.selectBuff[j];
- }
- return object;
- };
- /**
- * Converts this relic_event_nty to JSON.
- * @function toJSON
- * @memberof game.relic_event_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- relic_event_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return relic_event_nty;
- })();
- game.activity_time_list_nty = (function() {
- /**
- * Properties of an activity_time_list_nty.
- * @memberof game
- * @interface Iactivity_time_list_nty
- * @property {Array.<game.Iactivity_time_info>|null} [list] activity_time_list_nty list
- */
- /**
- * Constructs a new activity_time_list_nty.
- * @memberof game
- * @classdesc Represents an activity_time_list_nty.
- * @implements Iactivity_time_list_nty
- * @constructor
- * @param {game.Iactivity_time_list_nty=} [properties] Properties to set
- */
- function activity_time_list_nty(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * activity_time_list_nty list.
- * @member {Array.<game.Iactivity_time_info>} list
- * @memberof game.activity_time_list_nty
- * @instance
- */
- activity_time_list_nty.prototype.list = $util.emptyArray;
- /**
- * Creates a new activity_time_list_nty instance using the specified properties.
- * @function create
- * @memberof game.activity_time_list_nty
- * @static
- * @param {game.Iactivity_time_list_nty=} [properties] Properties to set
- * @returns {game.activity_time_list_nty} activity_time_list_nty instance
- */
- activity_time_list_nty.create = function create(properties) {
- return new activity_time_list_nty(properties);
- };
- /**
- * Encodes the specified activity_time_list_nty message. Does not implicitly {@link game.activity_time_list_nty.verify|verify} messages.
- * @function encode
- * @memberof game.activity_time_list_nty
- * @static
- * @param {game.Iactivity_time_list_nty} message activity_time_list_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- activity_time_list_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.activity_time_info.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified activity_time_list_nty message, length delimited. Does not implicitly {@link game.activity_time_list_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.activity_time_list_nty
- * @static
- * @param {game.Iactivity_time_list_nty} message activity_time_list_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- activity_time_list_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an activity_time_list_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.activity_time_list_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.activity_time_list_nty} activity_time_list_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- activity_time_list_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_time_list_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.activity_time_info.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an activity_time_list_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.activity_time_list_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.activity_time_list_nty} activity_time_list_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- activity_time_list_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an activity_time_list_nty message.
- * @function verify
- * @memberof game.activity_time_list_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- activity_time_list_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.activity_time_info.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates an activity_time_list_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.activity_time_list_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.activity_time_list_nty} activity_time_list_nty
- */
- activity_time_list_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.activity_time_list_nty)
- return object;
- let message = new $root.game.activity_time_list_nty();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.activity_time_list_nty.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.activity_time_list_nty.list: object expected");
- message.list[i] = $root.game.activity_time_info.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from an activity_time_list_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.activity_time_list_nty
- * @static
- * @param {game.activity_time_list_nty} message activity_time_list_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- activity_time_list_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.activity_time_info.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this activity_time_list_nty to JSON.
- * @function toJSON
- * @memberof game.activity_time_list_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- activity_time_list_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return activity_time_list_nty;
- })();
- game.activity_get_conf_list = (function() {
- /**
- * Properties of an activity_get_conf_list.
- * @memberof game
- * @interface Iactivity_get_conf_list
- * @property {Array.<string>|null} [list] activity_get_conf_list list
- */
- /**
- * Constructs a new activity_get_conf_list.
- * @memberof game
- * @classdesc Represents an activity_get_conf_list.
- * @implements Iactivity_get_conf_list
- * @constructor
- * @param {game.Iactivity_get_conf_list=} [properties] Properties to set
- */
- function activity_get_conf_list(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * activity_get_conf_list list.
- * @member {Array.<string>} list
- * @memberof game.activity_get_conf_list
- * @instance
- */
- activity_get_conf_list.prototype.list = $util.emptyArray;
- /**
- * Creates a new activity_get_conf_list instance using the specified properties.
- * @function create
- * @memberof game.activity_get_conf_list
- * @static
- * @param {game.Iactivity_get_conf_list=} [properties] Properties to set
- * @returns {game.activity_get_conf_list} activity_get_conf_list instance
- */
- activity_get_conf_list.create = function create(properties) {
- return new activity_get_conf_list(properties);
- };
- /**
- * Encodes the specified activity_get_conf_list message. Does not implicitly {@link game.activity_get_conf_list.verify|verify} messages.
- * @function encode
- * @memberof game.activity_get_conf_list
- * @static
- * @param {game.Iactivity_get_conf_list} message activity_get_conf_list message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- activity_get_conf_list.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.list[i]);
- return writer;
- };
- /**
- * Encodes the specified activity_get_conf_list message, length delimited. Does not implicitly {@link game.activity_get_conf_list.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.activity_get_conf_list
- * @static
- * @param {game.Iactivity_get_conf_list} message activity_get_conf_list message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- activity_get_conf_list.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an activity_get_conf_list message from the specified reader or buffer.
- * @function decode
- * @memberof game.activity_get_conf_list
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.activity_get_conf_list} activity_get_conf_list
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- activity_get_conf_list.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_get_conf_list();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push(reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an activity_get_conf_list message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.activity_get_conf_list
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.activity_get_conf_list} activity_get_conf_list
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- activity_get_conf_list.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an activity_get_conf_list message.
- * @function verify
- * @memberof game.activity_get_conf_list
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- activity_get_conf_list.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isString(message.list[i]))
- return "list: string[] expected";
- }
- return null;
- };
- /**
- * Creates an activity_get_conf_list message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.activity_get_conf_list
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.activity_get_conf_list} activity_get_conf_list
- */
- activity_get_conf_list.fromObject = function fromObject(object) {
- if (object instanceof $root.game.activity_get_conf_list)
- return object;
- let message = new $root.game.activity_get_conf_list();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.activity_get_conf_list.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- message.list[i] = String(object.list[i]);
- }
- return message;
- };
- /**
- * Creates a plain object from an activity_get_conf_list message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.activity_get_conf_list
- * @static
- * @param {game.activity_get_conf_list} message activity_get_conf_list
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- activity_get_conf_list.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = message.list[j];
- }
- return object;
- };
- /**
- * Converts this activity_get_conf_list to JSON.
- * @function toJSON
- * @memberof game.activity_get_conf_list
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- activity_get_conf_list.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return activity_get_conf_list;
- })();
- game.activity_get_conf_list_rsp = (function() {
- /**
- * Properties of an activity_get_conf_list_rsp.
- * @memberof game
- * @interface Iactivity_get_conf_list_rsp
- * @property {number|Long|null} [errno] activity_get_conf_list_rsp errno
- * @property {Array.<game.Iactivity_conf_info>|null} [list] activity_get_conf_list_rsp list
- */
- /**
- * Constructs a new activity_get_conf_list_rsp.
- * @memberof game
- * @classdesc Represents an activity_get_conf_list_rsp.
- * @implements Iactivity_get_conf_list_rsp
- * @constructor
- * @param {game.Iactivity_get_conf_list_rsp=} [properties] Properties to set
- */
- function activity_get_conf_list_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * activity_get_conf_list_rsp errno.
- * @member {number|Long} errno
- * @memberof game.activity_get_conf_list_rsp
- * @instance
- */
- activity_get_conf_list_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * activity_get_conf_list_rsp list.
- * @member {Array.<game.Iactivity_conf_info>} list
- * @memberof game.activity_get_conf_list_rsp
- * @instance
- */
- activity_get_conf_list_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new activity_get_conf_list_rsp instance using the specified properties.
- * @function create
- * @memberof game.activity_get_conf_list_rsp
- * @static
- * @param {game.Iactivity_get_conf_list_rsp=} [properties] Properties to set
- * @returns {game.activity_get_conf_list_rsp} activity_get_conf_list_rsp instance
- */
- activity_get_conf_list_rsp.create = function create(properties) {
- return new activity_get_conf_list_rsp(properties);
- };
- /**
- * Encodes the specified activity_get_conf_list_rsp message. Does not implicitly {@link game.activity_get_conf_list_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.activity_get_conf_list_rsp
- * @static
- * @param {game.Iactivity_get_conf_list_rsp} message activity_get_conf_list_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- activity_get_conf_list_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.activity_conf_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified activity_get_conf_list_rsp message, length delimited. Does not implicitly {@link game.activity_get_conf_list_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.activity_get_conf_list_rsp
- * @static
- * @param {game.Iactivity_get_conf_list_rsp} message activity_get_conf_list_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- activity_get_conf_list_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an activity_get_conf_list_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.activity_get_conf_list_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.activity_get_conf_list_rsp} activity_get_conf_list_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- activity_get_conf_list_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_get_conf_list_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.activity_conf_info.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an activity_get_conf_list_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.activity_get_conf_list_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.activity_get_conf_list_rsp} activity_get_conf_list_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- activity_get_conf_list_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an activity_get_conf_list_rsp message.
- * @function verify
- * @memberof game.activity_get_conf_list_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- activity_get_conf_list_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.activity_conf_info.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates an activity_get_conf_list_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.activity_get_conf_list_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.activity_get_conf_list_rsp} activity_get_conf_list_rsp
- */
- activity_get_conf_list_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.activity_get_conf_list_rsp)
- return object;
- let message = new $root.game.activity_get_conf_list_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.activity_get_conf_list_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.activity_get_conf_list_rsp.list: object expected");
- message.list[i] = $root.game.activity_conf_info.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from an activity_get_conf_list_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.activity_get_conf_list_rsp
- * @static
- * @param {game.activity_get_conf_list_rsp} message activity_get_conf_list_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- activity_get_conf_list_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.activity_conf_info.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this activity_get_conf_list_rsp to JSON.
- * @function toJSON
- * @memberof game.activity_get_conf_list_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- activity_get_conf_list_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return activity_get_conf_list_rsp;
- })();
- game.activity_get_conf_nty = (function() {
- /**
- * Properties of an activity_get_conf_nty.
- * @memberof game
- * @interface Iactivity_get_conf_nty
- * @property {Array.<number|Long>|null} [list] activity_get_conf_nty list
- */
- /**
- * Constructs a new activity_get_conf_nty.
- * @memberof game
- * @classdesc Represents an activity_get_conf_nty.
- * @implements Iactivity_get_conf_nty
- * @constructor
- * @param {game.Iactivity_get_conf_nty=} [properties] Properties to set
- */
- function activity_get_conf_nty(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * activity_get_conf_nty list.
- * @member {Array.<number|Long>} list
- * @memberof game.activity_get_conf_nty
- * @instance
- */
- activity_get_conf_nty.prototype.list = $util.emptyArray;
- /**
- * Creates a new activity_get_conf_nty instance using the specified properties.
- * @function create
- * @memberof game.activity_get_conf_nty
- * @static
- * @param {game.Iactivity_get_conf_nty=} [properties] Properties to set
- * @returns {game.activity_get_conf_nty} activity_get_conf_nty instance
- */
- activity_get_conf_nty.create = function create(properties) {
- return new activity_get_conf_nty(properties);
- };
- /**
- * Encodes the specified activity_get_conf_nty message. Does not implicitly {@link game.activity_get_conf_nty.verify|verify} messages.
- * @function encode
- * @memberof game.activity_get_conf_nty
- * @static
- * @param {game.Iactivity_get_conf_nty} message activity_get_conf_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- activity_get_conf_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.list != null && message.list.length) {
- writer.uint32(/* id 1, wireType 2 =*/10).fork();
- for (let i = 0; i < message.list.length; ++i)
- writer.int64(message.list[i]);
- writer.ldelim();
- }
- return writer;
- };
- /**
- * Encodes the specified activity_get_conf_nty message, length delimited. Does not implicitly {@link game.activity_get_conf_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.activity_get_conf_nty
- * @static
- * @param {game.Iactivity_get_conf_nty} message activity_get_conf_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- activity_get_conf_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an activity_get_conf_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.activity_get_conf_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.activity_get_conf_nty} activity_get_conf_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- activity_get_conf_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_get_conf_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.list && message.list.length))
- message.list = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.list.push(reader.int64());
- } else
- message.list.push(reader.int64());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an activity_get_conf_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.activity_get_conf_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.activity_get_conf_nty} activity_get_conf_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- activity_get_conf_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an activity_get_conf_nty message.
- * @function verify
- * @memberof game.activity_get_conf_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- activity_get_conf_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isInteger(message.list[i]) && !(message.list[i] && $util.isInteger(message.list[i].low) && $util.isInteger(message.list[i].high)))
- return "list: integer|Long[] expected";
- }
- return null;
- };
- /**
- * Creates an activity_get_conf_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.activity_get_conf_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.activity_get_conf_nty} activity_get_conf_nty
- */
- activity_get_conf_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.activity_get_conf_nty)
- return object;
- let message = new $root.game.activity_get_conf_nty();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.activity_get_conf_nty.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- if ($util.Long)
- (message.list[i] = $util.Long.fromValue(object.list[i])).unsigned = false;
- else if (typeof object.list[i] === "string")
- message.list[i] = parseInt(object.list[i], 10);
- else if (typeof object.list[i] === "number")
- message.list[i] = object.list[i];
- else if (typeof object.list[i] === "object")
- message.list[i] = new $util.LongBits(object.list[i].low >>> 0, object.list[i].high >>> 0).toNumber();
- }
- return message;
- };
- /**
- * Creates a plain object from an activity_get_conf_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.activity_get_conf_nty
- * @static
- * @param {game.activity_get_conf_nty} message activity_get_conf_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- activity_get_conf_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- if (typeof message.list[j] === "number")
- object.list[j] = options.longs === String ? String(message.list[j]) : message.list[j];
- else
- object.list[j] = options.longs === String ? $util.Long.prototype.toString.call(message.list[j]) : options.longs === Number ? new $util.LongBits(message.list[j].low >>> 0, message.list[j].high >>> 0).toNumber() : message.list[j];
- }
- return object;
- };
- /**
- * Converts this activity_get_conf_nty to JSON.
- * @function toJSON
- * @memberof game.activity_get_conf_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- activity_get_conf_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return activity_get_conf_nty;
- })();
- game.privilege_card_data = (function() {
- /**
- * Properties of a privilege_card_data.
- * @memberof game
- * @interface Iprivilege_card_data
- */
- /**
- * Constructs a new privilege_card_data.
- * @memberof game
- * @classdesc Represents a privilege_card_data.
- * @implements Iprivilege_card_data
- * @constructor
- * @param {game.Iprivilege_card_data=} [properties] Properties to set
- */
- function privilege_card_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new privilege_card_data instance using the specified properties.
- * @function create
- * @memberof game.privilege_card_data
- * @static
- * @param {game.Iprivilege_card_data=} [properties] Properties to set
- * @returns {game.privilege_card_data} privilege_card_data instance
- */
- privilege_card_data.create = function create(properties) {
- return new privilege_card_data(properties);
- };
- /**
- * Encodes the specified privilege_card_data message. Does not implicitly {@link game.privilege_card_data.verify|verify} messages.
- * @function encode
- * @memberof game.privilege_card_data
- * @static
- * @param {game.Iprivilege_card_data} message privilege_card_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified privilege_card_data message, length delimited. Does not implicitly {@link game.privilege_card_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.privilege_card_data
- * @static
- * @param {game.Iprivilege_card_data} message privilege_card_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a privilege_card_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.privilege_card_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.privilege_card_data} privilege_card_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a privilege_card_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.privilege_card_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.privilege_card_data} privilege_card_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a privilege_card_data message.
- * @function verify
- * @memberof game.privilege_card_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- privilege_card_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a privilege_card_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.privilege_card_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.privilege_card_data} privilege_card_data
- */
- privilege_card_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.privilege_card_data)
- return object;
- return new $root.game.privilege_card_data();
- };
- /**
- * Creates a plain object from a privilege_card_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.privilege_card_data
- * @static
- * @param {game.privilege_card_data} message privilege_card_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- privilege_card_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this privilege_card_data to JSON.
- * @function toJSON
- * @memberof game.privilege_card_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- privilege_card_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return privilege_card_data;
- })();
- game.privilege_card_data_rsp = (function() {
- /**
- * Properties of a privilege_card_data_rsp.
- * @memberof game
- * @interface Iprivilege_card_data_rsp
- * @property {number|Long|null} [errno] privilege_card_data_rsp errno
- * @property {Array.<game.Iprivilege_card_info>|null} [list] privilege_card_data_rsp list
- */
- /**
- * Constructs a new privilege_card_data_rsp.
- * @memberof game
- * @classdesc Represents a privilege_card_data_rsp.
- * @implements Iprivilege_card_data_rsp
- * @constructor
- * @param {game.Iprivilege_card_data_rsp=} [properties] Properties to set
- */
- function privilege_card_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * privilege_card_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.privilege_card_data_rsp
- * @instance
- */
- privilege_card_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * privilege_card_data_rsp list.
- * @member {Array.<game.Iprivilege_card_info>} list
- * @memberof game.privilege_card_data_rsp
- * @instance
- */
- privilege_card_data_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new privilege_card_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.privilege_card_data_rsp
- * @static
- * @param {game.Iprivilege_card_data_rsp=} [properties] Properties to set
- * @returns {game.privilege_card_data_rsp} privilege_card_data_rsp instance
- */
- privilege_card_data_rsp.create = function create(properties) {
- return new privilege_card_data_rsp(properties);
- };
- /**
- * Encodes the specified privilege_card_data_rsp message. Does not implicitly {@link game.privilege_card_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.privilege_card_data_rsp
- * @static
- * @param {game.Iprivilege_card_data_rsp} message privilege_card_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.privilege_card_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified privilege_card_data_rsp message, length delimited. Does not implicitly {@link game.privilege_card_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.privilege_card_data_rsp
- * @static
- * @param {game.Iprivilege_card_data_rsp} message privilege_card_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a privilege_card_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.privilege_card_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.privilege_card_data_rsp} privilege_card_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.privilege_card_info.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a privilege_card_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.privilege_card_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.privilege_card_data_rsp} privilege_card_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a privilege_card_data_rsp message.
- * @function verify
- * @memberof game.privilege_card_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- privilege_card_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.privilege_card_info.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a privilege_card_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.privilege_card_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.privilege_card_data_rsp} privilege_card_data_rsp
- */
- privilege_card_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.privilege_card_data_rsp)
- return object;
- let message = new $root.game.privilege_card_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.privilege_card_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.privilege_card_data_rsp.list: object expected");
- message.list[i] = $root.game.privilege_card_info.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a privilege_card_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.privilege_card_data_rsp
- * @static
- * @param {game.privilege_card_data_rsp} message privilege_card_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- privilege_card_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.privilege_card_info.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this privilege_card_data_rsp to JSON.
- * @function toJSON
- * @memberof game.privilege_card_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- privilege_card_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return privilege_card_data_rsp;
- })();
- game.privilege_card_buy = (function() {
- /**
- * Properties of a privilege_card_buy.
- * @memberof game
- * @interface Iprivilege_card_buy
- * @property {number|Long|null} [moduleid] privilege_card_buy moduleid
- */
- /**
- * Constructs a new privilege_card_buy.
- * @memberof game
- * @classdesc Represents a privilege_card_buy.
- * @implements Iprivilege_card_buy
- * @constructor
- * @param {game.Iprivilege_card_buy=} [properties] Properties to set
- */
- function privilege_card_buy(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * privilege_card_buy moduleid.
- * @member {number|Long} moduleid
- * @memberof game.privilege_card_buy
- * @instance
- */
- privilege_card_buy.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new privilege_card_buy instance using the specified properties.
- * @function create
- * @memberof game.privilege_card_buy
- * @static
- * @param {game.Iprivilege_card_buy=} [properties] Properties to set
- * @returns {game.privilege_card_buy} privilege_card_buy instance
- */
- privilege_card_buy.create = function create(properties) {
- return new privilege_card_buy(properties);
- };
- /**
- * Encodes the specified privilege_card_buy message. Does not implicitly {@link game.privilege_card_buy.verify|verify} messages.
- * @function encode
- * @memberof game.privilege_card_buy
- * @static
- * @param {game.Iprivilege_card_buy} message privilege_card_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_buy.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified privilege_card_buy message, length delimited. Does not implicitly {@link game.privilege_card_buy.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.privilege_card_buy
- * @static
- * @param {game.Iprivilege_card_buy} message privilege_card_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_buy.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a privilege_card_buy message from the specified reader or buffer.
- * @function decode
- * @memberof game.privilege_card_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.privilege_card_buy} privilege_card_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_buy.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_buy();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a privilege_card_buy message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.privilege_card_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.privilege_card_buy} privilege_card_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_buy.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a privilege_card_buy message.
- * @function verify
- * @memberof game.privilege_card_buy
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- privilege_card_buy.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a privilege_card_buy message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.privilege_card_buy
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.privilege_card_buy} privilege_card_buy
- */
- privilege_card_buy.fromObject = function fromObject(object) {
- if (object instanceof $root.game.privilege_card_buy)
- return object;
- let message = new $root.game.privilege_card_buy();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a privilege_card_buy message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.privilege_card_buy
- * @static
- * @param {game.privilege_card_buy} message privilege_card_buy
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- privilege_card_buy.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this privilege_card_buy to JSON.
- * @function toJSON
- * @memberof game.privilege_card_buy
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- privilege_card_buy.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return privilege_card_buy;
- })();
- game.privilege_card_buy_rsp = (function() {
- /**
- * Properties of a privilege_card_buy_rsp.
- * @memberof game
- * @interface Iprivilege_card_buy_rsp
- * @property {number|Long|null} [errno] privilege_card_buy_rsp errno
- */
- /**
- * Constructs a new privilege_card_buy_rsp.
- * @memberof game
- * @classdesc Represents a privilege_card_buy_rsp.
- * @implements Iprivilege_card_buy_rsp
- * @constructor
- * @param {game.Iprivilege_card_buy_rsp=} [properties] Properties to set
- */
- function privilege_card_buy_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * privilege_card_buy_rsp errno.
- * @member {number|Long} errno
- * @memberof game.privilege_card_buy_rsp
- * @instance
- */
- privilege_card_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new privilege_card_buy_rsp instance using the specified properties.
- * @function create
- * @memberof game.privilege_card_buy_rsp
- * @static
- * @param {game.Iprivilege_card_buy_rsp=} [properties] Properties to set
- * @returns {game.privilege_card_buy_rsp} privilege_card_buy_rsp instance
- */
- privilege_card_buy_rsp.create = function create(properties) {
- return new privilege_card_buy_rsp(properties);
- };
- /**
- * Encodes the specified privilege_card_buy_rsp message. Does not implicitly {@link game.privilege_card_buy_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.privilege_card_buy_rsp
- * @static
- * @param {game.Iprivilege_card_buy_rsp} message privilege_card_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_buy_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified privilege_card_buy_rsp message, length delimited. Does not implicitly {@link game.privilege_card_buy_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.privilege_card_buy_rsp
- * @static
- * @param {game.Iprivilege_card_buy_rsp} message privilege_card_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a privilege_card_buy_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.privilege_card_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.privilege_card_buy_rsp} privilege_card_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_buy_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_buy_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a privilege_card_buy_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.privilege_card_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.privilege_card_buy_rsp} privilege_card_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a privilege_card_buy_rsp message.
- * @function verify
- * @memberof game.privilege_card_buy_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- privilege_card_buy_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a privilege_card_buy_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.privilege_card_buy_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.privilege_card_buy_rsp} privilege_card_buy_rsp
- */
- privilege_card_buy_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.privilege_card_buy_rsp)
- return object;
- let message = new $root.game.privilege_card_buy_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a privilege_card_buy_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.privilege_card_buy_rsp
- * @static
- * @param {game.privilege_card_buy_rsp} message privilege_card_buy_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- privilege_card_buy_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this privilege_card_buy_rsp to JSON.
- * @function toJSON
- * @memberof game.privilege_card_buy_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- privilege_card_buy_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return privilege_card_buy_rsp;
- })();
- game.privilege_card_unlock_nty = (function() {
- /**
- * Properties of a privilege_card_unlock_nty.
- * @memberof game
- * @interface Iprivilege_card_unlock_nty
- * @property {game.Iprivilege_card_info|null} [data] privilege_card_unlock_nty data
- */
- /**
- * Constructs a new privilege_card_unlock_nty.
- * @memberof game
- * @classdesc Represents a privilege_card_unlock_nty.
- * @implements Iprivilege_card_unlock_nty
- * @constructor
- * @param {game.Iprivilege_card_unlock_nty=} [properties] Properties to set
- */
- function privilege_card_unlock_nty(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * privilege_card_unlock_nty data.
- * @member {game.Iprivilege_card_info|null|undefined} data
- * @memberof game.privilege_card_unlock_nty
- * @instance
- */
- privilege_card_unlock_nty.prototype.data = null;
- /**
- * Creates a new privilege_card_unlock_nty instance using the specified properties.
- * @function create
- * @memberof game.privilege_card_unlock_nty
- * @static
- * @param {game.Iprivilege_card_unlock_nty=} [properties] Properties to set
- * @returns {game.privilege_card_unlock_nty} privilege_card_unlock_nty instance
- */
- privilege_card_unlock_nty.create = function create(properties) {
- return new privilege_card_unlock_nty(properties);
- };
- /**
- * Encodes the specified privilege_card_unlock_nty message. Does not implicitly {@link game.privilege_card_unlock_nty.verify|verify} messages.
- * @function encode
- * @memberof game.privilege_card_unlock_nty
- * @static
- * @param {game.Iprivilege_card_unlock_nty} message privilege_card_unlock_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_unlock_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.privilege_card_info.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified privilege_card_unlock_nty message, length delimited. Does not implicitly {@link game.privilege_card_unlock_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.privilege_card_unlock_nty
- * @static
- * @param {game.Iprivilege_card_unlock_nty} message privilege_card_unlock_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_unlock_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a privilege_card_unlock_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.privilege_card_unlock_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.privilege_card_unlock_nty} privilege_card_unlock_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_unlock_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_unlock_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.data = $root.game.privilege_card_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a privilege_card_unlock_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.privilege_card_unlock_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.privilege_card_unlock_nty} privilege_card_unlock_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_unlock_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a privilege_card_unlock_nty message.
- * @function verify
- * @memberof game.privilege_card_unlock_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- privilege_card_unlock_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.privilege_card_info.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a privilege_card_unlock_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.privilege_card_unlock_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.privilege_card_unlock_nty} privilege_card_unlock_nty
- */
- privilege_card_unlock_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.privilege_card_unlock_nty)
- return object;
- let message = new $root.game.privilege_card_unlock_nty();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.privilege_card_unlock_nty.data: object expected");
- message.data = $root.game.privilege_card_info.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a privilege_card_unlock_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.privilege_card_unlock_nty
- * @static
- * @param {game.privilege_card_unlock_nty} message privilege_card_unlock_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- privilege_card_unlock_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- object.data = null;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.privilege_card_info.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this privilege_card_unlock_nty to JSON.
- * @function toJSON
- * @memberof game.privilege_card_unlock_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- privilege_card_unlock_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return privilege_card_unlock_nty;
- })();
- game.privilege_card_award = (function() {
- /**
- * Properties of a privilege_card_award.
- * @memberof game
- * @interface Iprivilege_card_award
- * @property {number|Long|null} [moduleid] privilege_card_award moduleid
- */
- /**
- * Constructs a new privilege_card_award.
- * @memberof game
- * @classdesc Represents a privilege_card_award.
- * @implements Iprivilege_card_award
- * @constructor
- * @param {game.Iprivilege_card_award=} [properties] Properties to set
- */
- function privilege_card_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * privilege_card_award moduleid.
- * @member {number|Long} moduleid
- * @memberof game.privilege_card_award
- * @instance
- */
- privilege_card_award.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new privilege_card_award instance using the specified properties.
- * @function create
- * @memberof game.privilege_card_award
- * @static
- * @param {game.Iprivilege_card_award=} [properties] Properties to set
- * @returns {game.privilege_card_award} privilege_card_award instance
- */
- privilege_card_award.create = function create(properties) {
- return new privilege_card_award(properties);
- };
- /**
- * Encodes the specified privilege_card_award message. Does not implicitly {@link game.privilege_card_award.verify|verify} messages.
- * @function encode
- * @memberof game.privilege_card_award
- * @static
- * @param {game.Iprivilege_card_award} message privilege_card_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified privilege_card_award message, length delimited. Does not implicitly {@link game.privilege_card_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.privilege_card_award
- * @static
- * @param {game.Iprivilege_card_award} message privilege_card_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a privilege_card_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.privilege_card_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.privilege_card_award} privilege_card_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a privilege_card_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.privilege_card_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.privilege_card_award} privilege_card_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a privilege_card_award message.
- * @function verify
- * @memberof game.privilege_card_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- privilege_card_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a privilege_card_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.privilege_card_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.privilege_card_award} privilege_card_award
- */
- privilege_card_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.privilege_card_award)
- return object;
- let message = new $root.game.privilege_card_award();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a privilege_card_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.privilege_card_award
- * @static
- * @param {game.privilege_card_award} message privilege_card_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- privilege_card_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this privilege_card_award to JSON.
- * @function toJSON
- * @memberof game.privilege_card_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- privilege_card_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return privilege_card_award;
- })();
- game.privilege_card_award_rsp = (function() {
- /**
- * Properties of a privilege_card_award_rsp.
- * @memberof game
- * @interface Iprivilege_card_award_rsp
- * @property {number|Long|null} [errno] privilege_card_award_rsp errno
- * @property {number|Long|null} [moduleid] privilege_card_award_rsp moduleid
- * @property {boolean|null} [award] privilege_card_award_rsp award
- */
- /**
- * Constructs a new privilege_card_award_rsp.
- * @memberof game
- * @classdesc Represents a privilege_card_award_rsp.
- * @implements Iprivilege_card_award_rsp
- * @constructor
- * @param {game.Iprivilege_card_award_rsp=} [properties] Properties to set
- */
- function privilege_card_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * privilege_card_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.privilege_card_award_rsp
- * @instance
- */
- privilege_card_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * privilege_card_award_rsp moduleid.
- * @member {number|Long} moduleid
- * @memberof game.privilege_card_award_rsp
- * @instance
- */
- privilege_card_award_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * privilege_card_award_rsp award.
- * @member {boolean} award
- * @memberof game.privilege_card_award_rsp
- * @instance
- */
- privilege_card_award_rsp.prototype.award = false;
- /**
- * Creates a new privilege_card_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.privilege_card_award_rsp
- * @static
- * @param {game.Iprivilege_card_award_rsp=} [properties] Properties to set
- * @returns {game.privilege_card_award_rsp} privilege_card_award_rsp instance
- */
- privilege_card_award_rsp.create = function create(properties) {
- return new privilege_card_award_rsp(properties);
- };
- /**
- * Encodes the specified privilege_card_award_rsp message. Does not implicitly {@link game.privilege_card_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.privilege_card_award_rsp
- * @static
- * @param {game.Iprivilege_card_award_rsp} message privilege_card_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 3, wireType 0 =*/24).bool(message.award);
- return writer;
- };
- /**
- * Encodes the specified privilege_card_award_rsp message, length delimited. Does not implicitly {@link game.privilege_card_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.privilege_card_award_rsp
- * @static
- * @param {game.Iprivilege_card_award_rsp} message privilege_card_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a privilege_card_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.privilege_card_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.privilege_card_award_rsp} privilege_card_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.moduleid = reader.int64();
- break;
- case 3:
- message.award = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a privilege_card_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.privilege_card_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.privilege_card_award_rsp} privilege_card_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a privilege_card_award_rsp message.
- * @function verify
- * @memberof game.privilege_card_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- privilege_card_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award !== "boolean")
- return "award: boolean expected";
- return null;
- };
- /**
- * Creates a privilege_card_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.privilege_card_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.privilege_card_award_rsp} privilege_card_award_rsp
- */
- privilege_card_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.privilege_card_award_rsp)
- return object;
- let message = new $root.game.privilege_card_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- if (object.award != null)
- message.award = Boolean(object.award);
- return message;
- };
- /**
- * Creates a plain object from a privilege_card_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.privilege_card_award_rsp
- * @static
- * @param {game.privilege_card_award_rsp} message privilege_card_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- privilege_card_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- object.award = false;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- if (message.award != null && message.hasOwnProperty("award"))
- object.award = message.award;
- return object;
- };
- /**
- * Converts this privilege_card_award_rsp to JSON.
- * @function toJSON
- * @memberof game.privilege_card_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- privilege_card_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return privilege_card_award_rsp;
- })();
- game.box_get_award = (function() {
- /**
- * Properties of a box_get_award.
- * @memberof game
- * @interface Ibox_get_award
- * @property {number|Long|null} [id] box_get_award id
- * @property {number|Long|null} [select] box_get_award select
- * @property {number|Long|null} [type] box_get_award type
- * @property {number|Long|null} [num] box_get_award num
- */
- /**
- * Constructs a new box_get_award.
- * @memberof game
- * @classdesc Represents a box_get_award.
- * @implements Ibox_get_award
- * @constructor
- * @param {game.Ibox_get_award=} [properties] Properties to set
- */
- function box_get_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * box_get_award id.
- * @member {number|Long} id
- * @memberof game.box_get_award
- * @instance
- */
- box_get_award.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * box_get_award select.
- * @member {number|Long} select
- * @memberof game.box_get_award
- * @instance
- */
- box_get_award.prototype.select = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * box_get_award type.
- * @member {number|Long} type
- * @memberof game.box_get_award
- * @instance
- */
- box_get_award.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * box_get_award num.
- * @member {number|Long} num
- * @memberof game.box_get_award
- * @instance
- */
- box_get_award.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new box_get_award instance using the specified properties.
- * @function create
- * @memberof game.box_get_award
- * @static
- * @param {game.Ibox_get_award=} [properties] Properties to set
- * @returns {game.box_get_award} box_get_award instance
- */
- box_get_award.create = function create(properties) {
- return new box_get_award(properties);
- };
- /**
- * Encodes the specified box_get_award message. Does not implicitly {@link game.box_get_award.verify|verify} messages.
- * @function encode
- * @memberof game.box_get_award
- * @static
- * @param {game.Ibox_get_award} message box_get_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- box_get_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.select != null && Object.hasOwnProperty.call(message, "select"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.select);
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.type);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.num);
- return writer;
- };
- /**
- * Encodes the specified box_get_award message, length delimited. Does not implicitly {@link game.box_get_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.box_get_award
- * @static
- * @param {game.Ibox_get_award} message box_get_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- box_get_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a box_get_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.box_get_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.box_get_award} box_get_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- box_get_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.box_get_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- message.select = reader.int64();
- break;
- case 3:
- message.type = reader.int64();
- break;
- case 4:
- message.num = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a box_get_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.box_get_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.box_get_award} box_get_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- box_get_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a box_get_award message.
- * @function verify
- * @memberof game.box_get_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- box_get_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.select != null && message.hasOwnProperty("select"))
- if (!$util.isInteger(message.select) && !(message.select && $util.isInteger(message.select.low) && $util.isInteger(message.select.high)))
- return "select: integer|Long expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- return null;
- };
- /**
- * Creates a box_get_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.box_get_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.box_get_award} box_get_award
- */
- box_get_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.box_get_award)
- return object;
- let message = new $root.game.box_get_award();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.select != null)
- if ($util.Long)
- (message.select = $util.Long.fromValue(object.select)).unsigned = false;
- else if (typeof object.select === "string")
- message.select = parseInt(object.select, 10);
- else if (typeof object.select === "number")
- message.select = object.select;
- else if (typeof object.select === "object")
- message.select = new $util.LongBits(object.select.low >>> 0, object.select.high >>> 0).toNumber();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a box_get_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.box_get_award
- * @static
- * @param {game.box_get_award} message box_get_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- box_get_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.select = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.select = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.select != null && message.hasOwnProperty("select"))
- if (typeof message.select === "number")
- object.select = options.longs === String ? String(message.select) : message.select;
- else
- object.select = options.longs === String ? $util.Long.prototype.toString.call(message.select) : options.longs === Number ? new $util.LongBits(message.select.low >>> 0, message.select.high >>> 0).toNumber() : message.select;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- return object;
- };
- /**
- * Converts this box_get_award to JSON.
- * @function toJSON
- * @memberof game.box_get_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- box_get_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return box_get_award;
- })();
- game.box_get_award_rsp = (function() {
- /**
- * Properties of a box_get_award_rsp.
- * @memberof game
- * @interface Ibox_get_award_rsp
- * @property {number|Long|null} [errno] box_get_award_rsp errno
- * @property {number|Long|null} [type] box_get_award_rsp type
- */
- /**
- * Constructs a new box_get_award_rsp.
- * @memberof game
- * @classdesc Represents a box_get_award_rsp.
- * @implements Ibox_get_award_rsp
- * @constructor
- * @param {game.Ibox_get_award_rsp=} [properties] Properties to set
- */
- function box_get_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * box_get_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.box_get_award_rsp
- * @instance
- */
- box_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * box_get_award_rsp type.
- * @member {number|Long} type
- * @memberof game.box_get_award_rsp
- * @instance
- */
- box_get_award_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new box_get_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.box_get_award_rsp
- * @static
- * @param {game.Ibox_get_award_rsp=} [properties] Properties to set
- * @returns {game.box_get_award_rsp} box_get_award_rsp instance
- */
- box_get_award_rsp.create = function create(properties) {
- return new box_get_award_rsp(properties);
- };
- /**
- * Encodes the specified box_get_award_rsp message. Does not implicitly {@link game.box_get_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.box_get_award_rsp
- * @static
- * @param {game.Ibox_get_award_rsp} message box_get_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- box_get_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
- return writer;
- };
- /**
- * Encodes the specified box_get_award_rsp message, length delimited. Does not implicitly {@link game.box_get_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.box_get_award_rsp
- * @static
- * @param {game.Ibox_get_award_rsp} message box_get_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- box_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a box_get_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.box_get_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.box_get_award_rsp} box_get_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- box_get_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.box_get_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.type = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a box_get_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.box_get_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.box_get_award_rsp} box_get_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- box_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a box_get_award_rsp message.
- * @function verify
- * @memberof game.box_get_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- box_get_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- return null;
- };
- /**
- * Creates a box_get_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.box_get_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.box_get_award_rsp} box_get_award_rsp
- */
- box_get_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.box_get_award_rsp)
- return object;
- let message = new $root.game.box_get_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a box_get_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.box_get_award_rsp
- * @static
- * @param {game.box_get_award_rsp} message box_get_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- box_get_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- return object;
- };
- /**
- * Converts this box_get_award_rsp to JSON.
- * @function toJSON
- * @memberof game.box_get_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- box_get_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return box_get_award_rsp;
- })();
- game.first_recharge_data = (function() {
- /**
- * Properties of a first_recharge_data.
- * @memberof game
- * @interface Ifirst_recharge_data
- * @property {number|Long|null} [moduleid] first_recharge_data moduleid
- */
- /**
- * Constructs a new first_recharge_data.
- * @memberof game
- * @classdesc Represents a first_recharge_data.
- * @implements Ifirst_recharge_data
- * @constructor
- * @param {game.Ifirst_recharge_data=} [properties] Properties to set
- */
- function first_recharge_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * first_recharge_data moduleid.
- * @member {number|Long} moduleid
- * @memberof game.first_recharge_data
- * @instance
- */
- first_recharge_data.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new first_recharge_data instance using the specified properties.
- * @function create
- * @memberof game.first_recharge_data
- * @static
- * @param {game.Ifirst_recharge_data=} [properties] Properties to set
- * @returns {game.first_recharge_data} first_recharge_data instance
- */
- first_recharge_data.create = function create(properties) {
- return new first_recharge_data(properties);
- };
- /**
- * Encodes the specified first_recharge_data message. Does not implicitly {@link game.first_recharge_data.verify|verify} messages.
- * @function encode
- * @memberof game.first_recharge_data
- * @static
- * @param {game.Ifirst_recharge_data} message first_recharge_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified first_recharge_data message, length delimited. Does not implicitly {@link game.first_recharge_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.first_recharge_data
- * @static
- * @param {game.Ifirst_recharge_data} message first_recharge_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a first_recharge_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.first_recharge_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.first_recharge_data} first_recharge_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a first_recharge_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.first_recharge_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.first_recharge_data} first_recharge_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a first_recharge_data message.
- * @function verify
- * @memberof game.first_recharge_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- first_recharge_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a first_recharge_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.first_recharge_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.first_recharge_data} first_recharge_data
- */
- first_recharge_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.first_recharge_data)
- return object;
- let message = new $root.game.first_recharge_data();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a first_recharge_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.first_recharge_data
- * @static
- * @param {game.first_recharge_data} message first_recharge_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- first_recharge_data.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this first_recharge_data to JSON.
- * @function toJSON
- * @memberof game.first_recharge_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- first_recharge_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return first_recharge_data;
- })();
- game.first_recharge_data_rsp = (function() {
- /**
- * Properties of a first_recharge_data_rsp.
- * @memberof game
- * @interface Ifirst_recharge_data_rsp
- * @property {number|Long|null} [errno] first_recharge_data_rsp errno
- * @property {number|Long|null} [moduleid] first_recharge_data_rsp moduleid
- * @property {boolean|null} [state] first_recharge_data_rsp state
- * @property {number|Long|null} [day] first_recharge_data_rsp day
- * @property {number|Long|null} [award] first_recharge_data_rsp award
- */
- /**
- * Constructs a new first_recharge_data_rsp.
- * @memberof game
- * @classdesc Represents a first_recharge_data_rsp.
- * @implements Ifirst_recharge_data_rsp
- * @constructor
- * @param {game.Ifirst_recharge_data_rsp=} [properties] Properties to set
- */
- function first_recharge_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * first_recharge_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.first_recharge_data_rsp
- * @instance
- */
- first_recharge_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * first_recharge_data_rsp moduleid.
- * @member {number|Long} moduleid
- * @memberof game.first_recharge_data_rsp
- * @instance
- */
- first_recharge_data_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * first_recharge_data_rsp state.
- * @member {boolean} state
- * @memberof game.first_recharge_data_rsp
- * @instance
- */
- first_recharge_data_rsp.prototype.state = false;
- /**
- * first_recharge_data_rsp day.
- * @member {number|Long} day
- * @memberof game.first_recharge_data_rsp
- * @instance
- */
- first_recharge_data_rsp.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * first_recharge_data_rsp award.
- * @member {number|Long} award
- * @memberof game.first_recharge_data_rsp
- * @instance
- */
- first_recharge_data_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new first_recharge_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.first_recharge_data_rsp
- * @static
- * @param {game.Ifirst_recharge_data_rsp=} [properties] Properties to set
- * @returns {game.first_recharge_data_rsp} first_recharge_data_rsp instance
- */
- first_recharge_data_rsp.create = function create(properties) {
- return new first_recharge_data_rsp(properties);
- };
- /**
- * Encodes the specified first_recharge_data_rsp message. Does not implicitly {@link game.first_recharge_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.first_recharge_data_rsp
- * @static
- * @param {game.Ifirst_recharge_data_rsp} message first_recharge_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
- if (message.state != null && Object.hasOwnProperty.call(message, "state"))
- writer.uint32(/* id 3, wireType 0 =*/24).bool(message.state);
- if (message.day != null && Object.hasOwnProperty.call(message, "day"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.day);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.award);
- return writer;
- };
- /**
- * Encodes the specified first_recharge_data_rsp message, length delimited. Does not implicitly {@link game.first_recharge_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.first_recharge_data_rsp
- * @static
- * @param {game.Ifirst_recharge_data_rsp} message first_recharge_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a first_recharge_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.first_recharge_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.first_recharge_data_rsp} first_recharge_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.moduleid = reader.int64();
- break;
- case 3:
- message.state = reader.bool();
- break;
- case 4:
- message.day = reader.int64();
- break;
- case 5:
- message.award = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a first_recharge_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.first_recharge_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.first_recharge_data_rsp} first_recharge_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a first_recharge_data_rsp message.
- * @function verify
- * @memberof game.first_recharge_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- first_recharge_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- if (message.state != null && message.hasOwnProperty("state"))
- if (typeof message.state !== "boolean")
- return "state: boolean expected";
- if (message.day != null && message.hasOwnProperty("day"))
- if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
- return "day: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- return null;
- };
- /**
- * Creates a first_recharge_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.first_recharge_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.first_recharge_data_rsp} first_recharge_data_rsp
- */
- first_recharge_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.first_recharge_data_rsp)
- return object;
- let message = new $root.game.first_recharge_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- if (object.state != null)
- message.state = Boolean(object.state);
- if (object.day != null)
- if ($util.Long)
- (message.day = $util.Long.fromValue(object.day)).unsigned = false;
- else if (typeof object.day === "string")
- message.day = parseInt(object.day, 10);
- else if (typeof object.day === "number")
- message.day = object.day;
- else if (typeof object.day === "object")
- message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a first_recharge_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.first_recharge_data_rsp
- * @static
- * @param {game.first_recharge_data_rsp} message first_recharge_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- first_recharge_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- object.state = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.day = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- if (message.state != null && message.hasOwnProperty("state"))
- object.state = message.state;
- if (message.day != null && message.hasOwnProperty("day"))
- if (typeof message.day === "number")
- object.day = options.longs === String ? String(message.day) : message.day;
- else
- object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- return object;
- };
- /**
- * Converts this first_recharge_data_rsp to JSON.
- * @function toJSON
- * @memberof game.first_recharge_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- first_recharge_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return first_recharge_data_rsp;
- })();
- game.first_recharge_buy = (function() {
- /**
- * Properties of a first_recharge_buy.
- * @memberof game
- * @interface Ifirst_recharge_buy
- * @property {number|Long|null} [moduleid] first_recharge_buy moduleid
- */
- /**
- * Constructs a new first_recharge_buy.
- * @memberof game
- * @classdesc Represents a first_recharge_buy.
- * @implements Ifirst_recharge_buy
- * @constructor
- * @param {game.Ifirst_recharge_buy=} [properties] Properties to set
- */
- function first_recharge_buy(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * first_recharge_buy moduleid.
- * @member {number|Long} moduleid
- * @memberof game.first_recharge_buy
- * @instance
- */
- first_recharge_buy.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new first_recharge_buy instance using the specified properties.
- * @function create
- * @memberof game.first_recharge_buy
- * @static
- * @param {game.Ifirst_recharge_buy=} [properties] Properties to set
- * @returns {game.first_recharge_buy} first_recharge_buy instance
- */
- first_recharge_buy.create = function create(properties) {
- return new first_recharge_buy(properties);
- };
- /**
- * Encodes the specified first_recharge_buy message. Does not implicitly {@link game.first_recharge_buy.verify|verify} messages.
- * @function encode
- * @memberof game.first_recharge_buy
- * @static
- * @param {game.Ifirst_recharge_buy} message first_recharge_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_buy.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified first_recharge_buy message, length delimited. Does not implicitly {@link game.first_recharge_buy.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.first_recharge_buy
- * @static
- * @param {game.Ifirst_recharge_buy} message first_recharge_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_buy.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a first_recharge_buy message from the specified reader or buffer.
- * @function decode
- * @memberof game.first_recharge_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.first_recharge_buy} first_recharge_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_buy.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_buy();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a first_recharge_buy message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.first_recharge_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.first_recharge_buy} first_recharge_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_buy.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a first_recharge_buy message.
- * @function verify
- * @memberof game.first_recharge_buy
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- first_recharge_buy.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a first_recharge_buy message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.first_recharge_buy
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.first_recharge_buy} first_recharge_buy
- */
- first_recharge_buy.fromObject = function fromObject(object) {
- if (object instanceof $root.game.first_recharge_buy)
- return object;
- let message = new $root.game.first_recharge_buy();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a first_recharge_buy message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.first_recharge_buy
- * @static
- * @param {game.first_recharge_buy} message first_recharge_buy
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- first_recharge_buy.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this first_recharge_buy to JSON.
- * @function toJSON
- * @memberof game.first_recharge_buy
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- first_recharge_buy.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return first_recharge_buy;
- })();
- game.first_recharge_buy_rsp = (function() {
- /**
- * Properties of a first_recharge_buy_rsp.
- * @memberof game
- * @interface Ifirst_recharge_buy_rsp
- * @property {number|Long|null} [errno] first_recharge_buy_rsp errno
- * @property {number|Long|null} [moduleid] first_recharge_buy_rsp moduleid
- */
- /**
- * Constructs a new first_recharge_buy_rsp.
- * @memberof game
- * @classdesc Represents a first_recharge_buy_rsp.
- * @implements Ifirst_recharge_buy_rsp
- * @constructor
- * @param {game.Ifirst_recharge_buy_rsp=} [properties] Properties to set
- */
- function first_recharge_buy_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * first_recharge_buy_rsp errno.
- * @member {number|Long} errno
- * @memberof game.first_recharge_buy_rsp
- * @instance
- */
- first_recharge_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * first_recharge_buy_rsp moduleid.
- * @member {number|Long} moduleid
- * @memberof game.first_recharge_buy_rsp
- * @instance
- */
- first_recharge_buy_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new first_recharge_buy_rsp instance using the specified properties.
- * @function create
- * @memberof game.first_recharge_buy_rsp
- * @static
- * @param {game.Ifirst_recharge_buy_rsp=} [properties] Properties to set
- * @returns {game.first_recharge_buy_rsp} first_recharge_buy_rsp instance
- */
- first_recharge_buy_rsp.create = function create(properties) {
- return new first_recharge_buy_rsp(properties);
- };
- /**
- * Encodes the specified first_recharge_buy_rsp message. Does not implicitly {@link game.first_recharge_buy_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.first_recharge_buy_rsp
- * @static
- * @param {game.Ifirst_recharge_buy_rsp} message first_recharge_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_buy_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified first_recharge_buy_rsp message, length delimited. Does not implicitly {@link game.first_recharge_buy_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.first_recharge_buy_rsp
- * @static
- * @param {game.Ifirst_recharge_buy_rsp} message first_recharge_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a first_recharge_buy_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.first_recharge_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.first_recharge_buy_rsp} first_recharge_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_buy_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_buy_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a first_recharge_buy_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.first_recharge_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.first_recharge_buy_rsp} first_recharge_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a first_recharge_buy_rsp message.
- * @function verify
- * @memberof game.first_recharge_buy_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- first_recharge_buy_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a first_recharge_buy_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.first_recharge_buy_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.first_recharge_buy_rsp} first_recharge_buy_rsp
- */
- first_recharge_buy_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.first_recharge_buy_rsp)
- return object;
- let message = new $root.game.first_recharge_buy_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a first_recharge_buy_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.first_recharge_buy_rsp
- * @static
- * @param {game.first_recharge_buy_rsp} message first_recharge_buy_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- first_recharge_buy_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this first_recharge_buy_rsp to JSON.
- * @function toJSON
- * @memberof game.first_recharge_buy_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- first_recharge_buy_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return first_recharge_buy_rsp;
- })();
- game.first_recharge_award = (function() {
- /**
- * Properties of a first_recharge_award.
- * @memberof game
- * @interface Ifirst_recharge_award
- * @property {number|Long|null} [moduleid] first_recharge_award moduleid
- * @property {number|Long|null} [day] first_recharge_award day
- */
- /**
- * Constructs a new first_recharge_award.
- * @memberof game
- * @classdesc Represents a first_recharge_award.
- * @implements Ifirst_recharge_award
- * @constructor
- * @param {game.Ifirst_recharge_award=} [properties] Properties to set
- */
- function first_recharge_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * first_recharge_award moduleid.
- * @member {number|Long} moduleid
- * @memberof game.first_recharge_award
- * @instance
- */
- first_recharge_award.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * first_recharge_award day.
- * @member {number|Long} day
- * @memberof game.first_recharge_award
- * @instance
- */
- first_recharge_award.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new first_recharge_award instance using the specified properties.
- * @function create
- * @memberof game.first_recharge_award
- * @static
- * @param {game.Ifirst_recharge_award=} [properties] Properties to set
- * @returns {game.first_recharge_award} first_recharge_award instance
- */
- first_recharge_award.create = function create(properties) {
- return new first_recharge_award(properties);
- };
- /**
- * Encodes the specified first_recharge_award message. Does not implicitly {@link game.first_recharge_award.verify|verify} messages.
- * @function encode
- * @memberof game.first_recharge_award
- * @static
- * @param {game.Ifirst_recharge_award} message first_recharge_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
- if (message.day != null && Object.hasOwnProperty.call(message, "day"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.day);
- return writer;
- };
- /**
- * Encodes the specified first_recharge_award message, length delimited. Does not implicitly {@link game.first_recharge_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.first_recharge_award
- * @static
- * @param {game.Ifirst_recharge_award} message first_recharge_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a first_recharge_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.first_recharge_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.first_recharge_award} first_recharge_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.moduleid = reader.int64();
- break;
- case 2:
- message.day = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a first_recharge_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.first_recharge_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.first_recharge_award} first_recharge_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a first_recharge_award message.
- * @function verify
- * @memberof game.first_recharge_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- first_recharge_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- if (message.day != null && message.hasOwnProperty("day"))
- if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
- return "day: integer|Long expected";
- return null;
- };
- /**
- * Creates a first_recharge_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.first_recharge_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.first_recharge_award} first_recharge_award
- */
- first_recharge_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.first_recharge_award)
- return object;
- let message = new $root.game.first_recharge_award();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- if (object.day != null)
- if ($util.Long)
- (message.day = $util.Long.fromValue(object.day)).unsigned = false;
- else if (typeof object.day === "string")
- message.day = parseInt(object.day, 10);
- else if (typeof object.day === "number")
- message.day = object.day;
- else if (typeof object.day === "object")
- message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a first_recharge_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.first_recharge_award
- * @static
- * @param {game.first_recharge_award} message first_recharge_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- first_recharge_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.day = options.longs === String ? "0" : 0;
- }
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- if (message.day != null && message.hasOwnProperty("day"))
- if (typeof message.day === "number")
- object.day = options.longs === String ? String(message.day) : message.day;
- else
- object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
- return object;
- };
- /**
- * Converts this first_recharge_award to JSON.
- * @function toJSON
- * @memberof game.first_recharge_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- first_recharge_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return first_recharge_award;
- })();
- game.first_recharge_award_rsp = (function() {
- /**
- * Properties of a first_recharge_award_rsp.
- * @memberof game
- * @interface Ifirst_recharge_award_rsp
- * @property {number|Long|null} [errno] first_recharge_award_rsp errno
- * @property {number|Long|null} [moduleid] first_recharge_award_rsp moduleid
- * @property {number|Long|null} [award] first_recharge_award_rsp award
- */
- /**
- * Constructs a new first_recharge_award_rsp.
- * @memberof game
- * @classdesc Represents a first_recharge_award_rsp.
- * @implements Ifirst_recharge_award_rsp
- * @constructor
- * @param {game.Ifirst_recharge_award_rsp=} [properties] Properties to set
- */
- function first_recharge_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * first_recharge_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.first_recharge_award_rsp
- * @instance
- */
- first_recharge_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * first_recharge_award_rsp moduleid.
- * @member {number|Long} moduleid
- * @memberof game.first_recharge_award_rsp
- * @instance
- */
- first_recharge_award_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * first_recharge_award_rsp award.
- * @member {number|Long} award
- * @memberof game.first_recharge_award_rsp
- * @instance
- */
- first_recharge_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new first_recharge_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.first_recharge_award_rsp
- * @static
- * @param {game.Ifirst_recharge_award_rsp=} [properties] Properties to set
- * @returns {game.first_recharge_award_rsp} first_recharge_award_rsp instance
- */
- first_recharge_award_rsp.create = function create(properties) {
- return new first_recharge_award_rsp(properties);
- };
- /**
- * Encodes the specified first_recharge_award_rsp message. Does not implicitly {@link game.first_recharge_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.first_recharge_award_rsp
- * @static
- * @param {game.Ifirst_recharge_award_rsp} message first_recharge_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
- return writer;
- };
- /**
- * Encodes the specified first_recharge_award_rsp message, length delimited. Does not implicitly {@link game.first_recharge_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.first_recharge_award_rsp
- * @static
- * @param {game.Ifirst_recharge_award_rsp} message first_recharge_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a first_recharge_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.first_recharge_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.first_recharge_award_rsp} first_recharge_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.moduleid = reader.int64();
- break;
- case 3:
- message.award = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a first_recharge_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.first_recharge_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.first_recharge_award_rsp} first_recharge_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a first_recharge_award_rsp message.
- * @function verify
- * @memberof game.first_recharge_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- first_recharge_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- return null;
- };
- /**
- * Creates a first_recharge_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.first_recharge_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.first_recharge_award_rsp} first_recharge_award_rsp
- */
- first_recharge_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.first_recharge_award_rsp)
- return object;
- let message = new $root.game.first_recharge_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a first_recharge_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.first_recharge_award_rsp
- * @static
- * @param {game.first_recharge_award_rsp} message first_recharge_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- first_recharge_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- return object;
- };
- /**
- * Converts this first_recharge_award_rsp to JSON.
- * @function toJSON
- * @memberof game.first_recharge_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- first_recharge_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return first_recharge_award_rsp;
- })();
- game.first_recharge_nty = (function() {
- /**
- * Properties of a first_recharge_nty.
- * @memberof game
- * @interface Ifirst_recharge_nty
- * @property {number|Long|null} [moduleid] first_recharge_nty moduleid
- * @property {boolean|null} [state] first_recharge_nty state
- * @property {number|Long|null} [day] first_recharge_nty day
- * @property {number|Long|null} [award] first_recharge_nty award
- */
- /**
- * Constructs a new first_recharge_nty.
- * @memberof game
- * @classdesc Represents a first_recharge_nty.
- * @implements Ifirst_recharge_nty
- * @constructor
- * @param {game.Ifirst_recharge_nty=} [properties] Properties to set
- */
- function first_recharge_nty(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * first_recharge_nty moduleid.
- * @member {number|Long} moduleid
- * @memberof game.first_recharge_nty
- * @instance
- */
- first_recharge_nty.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * first_recharge_nty state.
- * @member {boolean} state
- * @memberof game.first_recharge_nty
- * @instance
- */
- first_recharge_nty.prototype.state = false;
- /**
- * first_recharge_nty day.
- * @member {number|Long} day
- * @memberof game.first_recharge_nty
- * @instance
- */
- first_recharge_nty.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * first_recharge_nty award.
- * @member {number|Long} award
- * @memberof game.first_recharge_nty
- * @instance
- */
- first_recharge_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new first_recharge_nty instance using the specified properties.
- * @function create
- * @memberof game.first_recharge_nty
- * @static
- * @param {game.Ifirst_recharge_nty=} [properties] Properties to set
- * @returns {game.first_recharge_nty} first_recharge_nty instance
- */
- first_recharge_nty.create = function create(properties) {
- return new first_recharge_nty(properties);
- };
- /**
- * Encodes the specified first_recharge_nty message. Does not implicitly {@link game.first_recharge_nty.verify|verify} messages.
- * @function encode
- * @memberof game.first_recharge_nty
- * @static
- * @param {game.Ifirst_recharge_nty} message first_recharge_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
- if (message.state != null && Object.hasOwnProperty.call(message, "state"))
- writer.uint32(/* id 3, wireType 0 =*/24).bool(message.state);
- if (message.day != null && Object.hasOwnProperty.call(message, "day"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.day);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.award);
- return writer;
- };
- /**
- * Encodes the specified first_recharge_nty message, length delimited. Does not implicitly {@link game.first_recharge_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.first_recharge_nty
- * @static
- * @param {game.Ifirst_recharge_nty} message first_recharge_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- first_recharge_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a first_recharge_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.first_recharge_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.first_recharge_nty} first_recharge_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.moduleid = reader.int64();
- break;
- case 3:
- message.state = reader.bool();
- break;
- case 4:
- message.day = reader.int64();
- break;
- case 5:
- message.award = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a first_recharge_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.first_recharge_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.first_recharge_nty} first_recharge_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- first_recharge_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a first_recharge_nty message.
- * @function verify
- * @memberof game.first_recharge_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- first_recharge_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- if (message.state != null && message.hasOwnProperty("state"))
- if (typeof message.state !== "boolean")
- return "state: boolean expected";
- if (message.day != null && message.hasOwnProperty("day"))
- if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
- return "day: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- return null;
- };
- /**
- * Creates a first_recharge_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.first_recharge_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.first_recharge_nty} first_recharge_nty
- */
- first_recharge_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.first_recharge_nty)
- return object;
- let message = new $root.game.first_recharge_nty();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- if (object.state != null)
- message.state = Boolean(object.state);
- if (object.day != null)
- if ($util.Long)
- (message.day = $util.Long.fromValue(object.day)).unsigned = false;
- else if (typeof object.day === "string")
- message.day = parseInt(object.day, 10);
- else if (typeof object.day === "number")
- message.day = object.day;
- else if (typeof object.day === "object")
- message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a first_recharge_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.first_recharge_nty
- * @static
- * @param {game.first_recharge_nty} message first_recharge_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- first_recharge_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- object.state = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.day = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- }
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- if (message.state != null && message.hasOwnProperty("state"))
- object.state = message.state;
- if (message.day != null && message.hasOwnProperty("day"))
- if (typeof message.day === "number")
- object.day = options.longs === String ? String(message.day) : message.day;
- else
- object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- return object;
- };
- /**
- * Converts this first_recharge_nty to JSON.
- * @function toJSON
- * @memberof game.first_recharge_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- first_recharge_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return first_recharge_nty;
- })();
- game.daily_dungeons_data = (function() {
- /**
- * Properties of a daily_dungeons_data.
- * @memberof game
- * @interface Idaily_dungeons_data
- */
- /**
- * Constructs a new daily_dungeons_data.
- * @memberof game
- * @classdesc Represents a daily_dungeons_data.
- * @implements Idaily_dungeons_data
- * @constructor
- * @param {game.Idaily_dungeons_data=} [properties] Properties to set
- */
- function daily_dungeons_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new daily_dungeons_data instance using the specified properties.
- * @function create
- * @memberof game.daily_dungeons_data
- * @static
- * @param {game.Idaily_dungeons_data=} [properties] Properties to set
- * @returns {game.daily_dungeons_data} daily_dungeons_data instance
- */
- daily_dungeons_data.create = function create(properties) {
- return new daily_dungeons_data(properties);
- };
- /**
- * Encodes the specified daily_dungeons_data message. Does not implicitly {@link game.daily_dungeons_data.verify|verify} messages.
- * @function encode
- * @memberof game.daily_dungeons_data
- * @static
- * @param {game.Idaily_dungeons_data} message daily_dungeons_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified daily_dungeons_data message, length delimited. Does not implicitly {@link game.daily_dungeons_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.daily_dungeons_data
- * @static
- * @param {game.Idaily_dungeons_data} message daily_dungeons_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a daily_dungeons_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.daily_dungeons_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.daily_dungeons_data} daily_dungeons_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a daily_dungeons_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.daily_dungeons_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.daily_dungeons_data} daily_dungeons_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a daily_dungeons_data message.
- * @function verify
- * @memberof game.daily_dungeons_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- daily_dungeons_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a daily_dungeons_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.daily_dungeons_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.daily_dungeons_data} daily_dungeons_data
- */
- daily_dungeons_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.daily_dungeons_data)
- return object;
- return new $root.game.daily_dungeons_data();
- };
- /**
- * Creates a plain object from a daily_dungeons_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.daily_dungeons_data
- * @static
- * @param {game.daily_dungeons_data} message daily_dungeons_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- daily_dungeons_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this daily_dungeons_data to JSON.
- * @function toJSON
- * @memberof game.daily_dungeons_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- daily_dungeons_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return daily_dungeons_data;
- })();
- game.daily_dungeons_data_rsp = (function() {
- /**
- * Properties of a daily_dungeons_data_rsp.
- * @memberof game
- * @interface Idaily_dungeons_data_rsp
- * @property {number|Long|null} [errno] daily_dungeons_data_rsp errno
- * @property {Array.<game.Idaily_dungeons_info>|null} [list] daily_dungeons_data_rsp list
- */
- /**
- * Constructs a new daily_dungeons_data_rsp.
- * @memberof game
- * @classdesc Represents a daily_dungeons_data_rsp.
- * @implements Idaily_dungeons_data_rsp
- * @constructor
- * @param {game.Idaily_dungeons_data_rsp=} [properties] Properties to set
- */
- function daily_dungeons_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * daily_dungeons_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.daily_dungeons_data_rsp
- * @instance
- */
- daily_dungeons_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * daily_dungeons_data_rsp list.
- * @member {Array.<game.Idaily_dungeons_info>} list
- * @memberof game.daily_dungeons_data_rsp
- * @instance
- */
- daily_dungeons_data_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new daily_dungeons_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.daily_dungeons_data_rsp
- * @static
- * @param {game.Idaily_dungeons_data_rsp=} [properties] Properties to set
- * @returns {game.daily_dungeons_data_rsp} daily_dungeons_data_rsp instance
- */
- daily_dungeons_data_rsp.create = function create(properties) {
- return new daily_dungeons_data_rsp(properties);
- };
- /**
- * Encodes the specified daily_dungeons_data_rsp message. Does not implicitly {@link game.daily_dungeons_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.daily_dungeons_data_rsp
- * @static
- * @param {game.Idaily_dungeons_data_rsp} message daily_dungeons_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.daily_dungeons_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified daily_dungeons_data_rsp message, length delimited. Does not implicitly {@link game.daily_dungeons_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.daily_dungeons_data_rsp
- * @static
- * @param {game.Idaily_dungeons_data_rsp} message daily_dungeons_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a daily_dungeons_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.daily_dungeons_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.daily_dungeons_data_rsp} daily_dungeons_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.daily_dungeons_info.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a daily_dungeons_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.daily_dungeons_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.daily_dungeons_data_rsp} daily_dungeons_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a daily_dungeons_data_rsp message.
- * @function verify
- * @memberof game.daily_dungeons_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- daily_dungeons_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.daily_dungeons_info.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a daily_dungeons_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.daily_dungeons_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.daily_dungeons_data_rsp} daily_dungeons_data_rsp
- */
- daily_dungeons_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.daily_dungeons_data_rsp)
- return object;
- let message = new $root.game.daily_dungeons_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.daily_dungeons_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.daily_dungeons_data_rsp.list: object expected");
- message.list[i] = $root.game.daily_dungeons_info.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a daily_dungeons_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.daily_dungeons_data_rsp
- * @static
- * @param {game.daily_dungeons_data_rsp} message daily_dungeons_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- daily_dungeons_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.daily_dungeons_info.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this daily_dungeons_data_rsp to JSON.
- * @function toJSON
- * @memberof game.daily_dungeons_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- daily_dungeons_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return daily_dungeons_data_rsp;
- })();
- game.daily_dungeons_start = (function() {
- /**
- * Properties of a daily_dungeons_start.
- * @memberof game
- * @interface Idaily_dungeons_start
- * @property {number|Long|null} [type] daily_dungeons_start type
- * @property {number|Long|null} [diff] daily_dungeons_start diff
- */
- /**
- * Constructs a new daily_dungeons_start.
- * @memberof game
- * @classdesc Represents a daily_dungeons_start.
- * @implements Idaily_dungeons_start
- * @constructor
- * @param {game.Idaily_dungeons_start=} [properties] Properties to set
- */
- function daily_dungeons_start(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * daily_dungeons_start type.
- * @member {number|Long} type
- * @memberof game.daily_dungeons_start
- * @instance
- */
- daily_dungeons_start.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * daily_dungeons_start diff.
- * @member {number|Long} diff
- * @memberof game.daily_dungeons_start
- * @instance
- */
- daily_dungeons_start.prototype.diff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new daily_dungeons_start instance using the specified properties.
- * @function create
- * @memberof game.daily_dungeons_start
- * @static
- * @param {game.Idaily_dungeons_start=} [properties] Properties to set
- * @returns {game.daily_dungeons_start} daily_dungeons_start instance
- */
- daily_dungeons_start.create = function create(properties) {
- return new daily_dungeons_start(properties);
- };
- /**
- * Encodes the specified daily_dungeons_start message. Does not implicitly {@link game.daily_dungeons_start.verify|verify} messages.
- * @function encode
- * @memberof game.daily_dungeons_start
- * @static
- * @param {game.Idaily_dungeons_start} message daily_dungeons_start message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_start.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.diff != null && Object.hasOwnProperty.call(message, "diff"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.diff);
- return writer;
- };
- /**
- * Encodes the specified daily_dungeons_start message, length delimited. Does not implicitly {@link game.daily_dungeons_start.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.daily_dungeons_start
- * @static
- * @param {game.Idaily_dungeons_start} message daily_dungeons_start message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_start.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a daily_dungeons_start message from the specified reader or buffer.
- * @function decode
- * @memberof game.daily_dungeons_start
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.daily_dungeons_start} daily_dungeons_start
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_start.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_start();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 2:
- message.diff = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a daily_dungeons_start message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.daily_dungeons_start
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.daily_dungeons_start} daily_dungeons_start
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_start.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a daily_dungeons_start message.
- * @function verify
- * @memberof game.daily_dungeons_start
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- daily_dungeons_start.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.diff != null && message.hasOwnProperty("diff"))
- if (!$util.isInteger(message.diff) && !(message.diff && $util.isInteger(message.diff.low) && $util.isInteger(message.diff.high)))
- return "diff: integer|Long expected";
- return null;
- };
- /**
- * Creates a daily_dungeons_start message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.daily_dungeons_start
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.daily_dungeons_start} daily_dungeons_start
- */
- daily_dungeons_start.fromObject = function fromObject(object) {
- if (object instanceof $root.game.daily_dungeons_start)
- return object;
- let message = new $root.game.daily_dungeons_start();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.diff != null)
- if ($util.Long)
- (message.diff = $util.Long.fromValue(object.diff)).unsigned = false;
- else if (typeof object.diff === "string")
- message.diff = parseInt(object.diff, 10);
- else if (typeof object.diff === "number")
- message.diff = object.diff;
- else if (typeof object.diff === "object")
- message.diff = new $util.LongBits(object.diff.low >>> 0, object.diff.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a daily_dungeons_start message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.daily_dungeons_start
- * @static
- * @param {game.daily_dungeons_start} message daily_dungeons_start
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- daily_dungeons_start.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.diff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.diff = options.longs === String ? "0" : 0;
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.diff != null && message.hasOwnProperty("diff"))
- if (typeof message.diff === "number")
- object.diff = options.longs === String ? String(message.diff) : message.diff;
- else
- object.diff = options.longs === String ? $util.Long.prototype.toString.call(message.diff) : options.longs === Number ? new $util.LongBits(message.diff.low >>> 0, message.diff.high >>> 0).toNumber() : message.diff;
- return object;
- };
- /**
- * Converts this daily_dungeons_start to JSON.
- * @function toJSON
- * @memberof game.daily_dungeons_start
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- daily_dungeons_start.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return daily_dungeons_start;
- })();
- game.daily_dungeons_start_rsp = (function() {
- /**
- * Properties of a daily_dungeons_start_rsp.
- * @memberof game
- * @interface Idaily_dungeons_start_rsp
- * @property {number|Long|null} [errno] daily_dungeons_start_rsp errno
- * @property {Array.<game.Iid_num>|null} [awardList] daily_dungeons_start_rsp awardList
- */
- /**
- * Constructs a new daily_dungeons_start_rsp.
- * @memberof game
- * @classdesc Represents a daily_dungeons_start_rsp.
- * @implements Idaily_dungeons_start_rsp
- * @constructor
- * @param {game.Idaily_dungeons_start_rsp=} [properties] Properties to set
- */
- function daily_dungeons_start_rsp(properties) {
- this.awardList = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * daily_dungeons_start_rsp errno.
- * @member {number|Long} errno
- * @memberof game.daily_dungeons_start_rsp
- * @instance
- */
- daily_dungeons_start_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * daily_dungeons_start_rsp awardList.
- * @member {Array.<game.Iid_num>} awardList
- * @memberof game.daily_dungeons_start_rsp
- * @instance
- */
- daily_dungeons_start_rsp.prototype.awardList = $util.emptyArray;
- /**
- * Creates a new daily_dungeons_start_rsp instance using the specified properties.
- * @function create
- * @memberof game.daily_dungeons_start_rsp
- * @static
- * @param {game.Idaily_dungeons_start_rsp=} [properties] Properties to set
- * @returns {game.daily_dungeons_start_rsp} daily_dungeons_start_rsp instance
- */
- daily_dungeons_start_rsp.create = function create(properties) {
- return new daily_dungeons_start_rsp(properties);
- };
- /**
- * Encodes the specified daily_dungeons_start_rsp message. Does not implicitly {@link game.daily_dungeons_start_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.daily_dungeons_start_rsp
- * @static
- * @param {game.Idaily_dungeons_start_rsp} message daily_dungeons_start_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_start_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.awardList != null && message.awardList.length)
- for (let i = 0; i < message.awardList.length; ++i)
- $root.game.id_num.encode(message.awardList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified daily_dungeons_start_rsp message, length delimited. Does not implicitly {@link game.daily_dungeons_start_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.daily_dungeons_start_rsp
- * @static
- * @param {game.Idaily_dungeons_start_rsp} message daily_dungeons_start_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_start_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a daily_dungeons_start_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.daily_dungeons_start_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.daily_dungeons_start_rsp} daily_dungeons_start_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_start_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_start_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.awardList && message.awardList.length))
- message.awardList = [];
- message.awardList.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a daily_dungeons_start_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.daily_dungeons_start_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.daily_dungeons_start_rsp} daily_dungeons_start_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_start_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a daily_dungeons_start_rsp message.
- * @function verify
- * @memberof game.daily_dungeons_start_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- daily_dungeons_start_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.awardList != null && message.hasOwnProperty("awardList")) {
- if (!Array.isArray(message.awardList))
- return "awardList: array expected";
- for (let i = 0; i < message.awardList.length; ++i) {
- let error = $root.game.id_num.verify(message.awardList[i]);
- if (error)
- return "awardList." + error;
- }
- }
- return null;
- };
- /**
- * Creates a daily_dungeons_start_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.daily_dungeons_start_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.daily_dungeons_start_rsp} daily_dungeons_start_rsp
- */
- daily_dungeons_start_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.daily_dungeons_start_rsp)
- return object;
- let message = new $root.game.daily_dungeons_start_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.awardList) {
- if (!Array.isArray(object.awardList))
- throw TypeError(".game.daily_dungeons_start_rsp.awardList: array expected");
- message.awardList = [];
- for (let i = 0; i < object.awardList.length; ++i) {
- if (typeof object.awardList[i] !== "object")
- throw TypeError(".game.daily_dungeons_start_rsp.awardList: object expected");
- message.awardList[i] = $root.game.id_num.fromObject(object.awardList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a daily_dungeons_start_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.daily_dungeons_start_rsp
- * @static
- * @param {game.daily_dungeons_start_rsp} message daily_dungeons_start_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- daily_dungeons_start_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.awardList = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.awardList && message.awardList.length) {
- object.awardList = [];
- for (let j = 0; j < message.awardList.length; ++j)
- object.awardList[j] = $root.game.id_num.toObject(message.awardList[j], options);
- }
- return object;
- };
- /**
- * Converts this daily_dungeons_start_rsp to JSON.
- * @function toJSON
- * @memberof game.daily_dungeons_start_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- daily_dungeons_start_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return daily_dungeons_start_rsp;
- })();
- game.daily_dungeons_end = (function() {
- /**
- * Properties of a daily_dungeons_end.
- * @memberof game
- * @interface Idaily_dungeons_end
- * @property {boolean|null} [win] daily_dungeons_end win
- * @property {number|Long|null} [monsterNum] daily_dungeons_end monsterNum
- * @property {number|Long|null} [bossNum] daily_dungeons_end bossNum
- * @property {number|Long|null} [eliteNum] daily_dungeons_end eliteNum
- */
- /**
- * Constructs a new daily_dungeons_end.
- * @memberof game
- * @classdesc Represents a daily_dungeons_end.
- * @implements Idaily_dungeons_end
- * @constructor
- * @param {game.Idaily_dungeons_end=} [properties] Properties to set
- */
- function daily_dungeons_end(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * daily_dungeons_end win.
- * @member {boolean} win
- * @memberof game.daily_dungeons_end
- * @instance
- */
- daily_dungeons_end.prototype.win = false;
- /**
- * daily_dungeons_end monsterNum.
- * @member {number|Long} monsterNum
- * @memberof game.daily_dungeons_end
- * @instance
- */
- daily_dungeons_end.prototype.monsterNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * daily_dungeons_end bossNum.
- * @member {number|Long} bossNum
- * @memberof game.daily_dungeons_end
- * @instance
- */
- daily_dungeons_end.prototype.bossNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * daily_dungeons_end eliteNum.
- * @member {number|Long} eliteNum
- * @memberof game.daily_dungeons_end
- * @instance
- */
- daily_dungeons_end.prototype.eliteNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new daily_dungeons_end instance using the specified properties.
- * @function create
- * @memberof game.daily_dungeons_end
- * @static
- * @param {game.Idaily_dungeons_end=} [properties] Properties to set
- * @returns {game.daily_dungeons_end} daily_dungeons_end instance
- */
- daily_dungeons_end.create = function create(properties) {
- return new daily_dungeons_end(properties);
- };
- /**
- * Encodes the specified daily_dungeons_end message. Does not implicitly {@link game.daily_dungeons_end.verify|verify} messages.
- * @function encode
- * @memberof game.daily_dungeons_end
- * @static
- * @param {game.Idaily_dungeons_end} message daily_dungeons_end message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_end.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.win != null && Object.hasOwnProperty.call(message, "win"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.win);
- if (message.monsterNum != null && Object.hasOwnProperty.call(message, "monsterNum"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.monsterNum);
- if (message.bossNum != null && Object.hasOwnProperty.call(message, "bossNum"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.bossNum);
- if (message.eliteNum != null && Object.hasOwnProperty.call(message, "eliteNum"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.eliteNum);
- return writer;
- };
- /**
- * Encodes the specified daily_dungeons_end message, length delimited. Does not implicitly {@link game.daily_dungeons_end.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.daily_dungeons_end
- * @static
- * @param {game.Idaily_dungeons_end} message daily_dungeons_end message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_end.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a daily_dungeons_end message from the specified reader or buffer.
- * @function decode
- * @memberof game.daily_dungeons_end
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.daily_dungeons_end} daily_dungeons_end
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_end.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_end();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.win = reader.bool();
- break;
- case 2:
- message.monsterNum = reader.int64();
- break;
- case 3:
- message.bossNum = reader.int64();
- break;
- case 4:
- message.eliteNum = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a daily_dungeons_end message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.daily_dungeons_end
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.daily_dungeons_end} daily_dungeons_end
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_end.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a daily_dungeons_end message.
- * @function verify
- * @memberof game.daily_dungeons_end
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- daily_dungeons_end.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.win != null && message.hasOwnProperty("win"))
- if (typeof message.win !== "boolean")
- return "win: boolean expected";
- if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
- if (!$util.isInteger(message.monsterNum) && !(message.monsterNum && $util.isInteger(message.monsterNum.low) && $util.isInteger(message.monsterNum.high)))
- return "monsterNum: integer|Long expected";
- if (message.bossNum != null && message.hasOwnProperty("bossNum"))
- if (!$util.isInteger(message.bossNum) && !(message.bossNum && $util.isInteger(message.bossNum.low) && $util.isInteger(message.bossNum.high)))
- return "bossNum: integer|Long expected";
- if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
- if (!$util.isInteger(message.eliteNum) && !(message.eliteNum && $util.isInteger(message.eliteNum.low) && $util.isInteger(message.eliteNum.high)))
- return "eliteNum: integer|Long expected";
- return null;
- };
- /**
- * Creates a daily_dungeons_end message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.daily_dungeons_end
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.daily_dungeons_end} daily_dungeons_end
- */
- daily_dungeons_end.fromObject = function fromObject(object) {
- if (object instanceof $root.game.daily_dungeons_end)
- return object;
- let message = new $root.game.daily_dungeons_end();
- if (object.win != null)
- message.win = Boolean(object.win);
- if (object.monsterNum != null)
- if ($util.Long)
- (message.monsterNum = $util.Long.fromValue(object.monsterNum)).unsigned = false;
- else if (typeof object.monsterNum === "string")
- message.monsterNum = parseInt(object.monsterNum, 10);
- else if (typeof object.monsterNum === "number")
- message.monsterNum = object.monsterNum;
- else if (typeof object.monsterNum === "object")
- message.monsterNum = new $util.LongBits(object.monsterNum.low >>> 0, object.monsterNum.high >>> 0).toNumber();
- if (object.bossNum != null)
- if ($util.Long)
- (message.bossNum = $util.Long.fromValue(object.bossNum)).unsigned = false;
- else if (typeof object.bossNum === "string")
- message.bossNum = parseInt(object.bossNum, 10);
- else if (typeof object.bossNum === "number")
- message.bossNum = object.bossNum;
- else if (typeof object.bossNum === "object")
- message.bossNum = new $util.LongBits(object.bossNum.low >>> 0, object.bossNum.high >>> 0).toNumber();
- if (object.eliteNum != null)
- if ($util.Long)
- (message.eliteNum = $util.Long.fromValue(object.eliteNum)).unsigned = false;
- else if (typeof object.eliteNum === "string")
- message.eliteNum = parseInt(object.eliteNum, 10);
- else if (typeof object.eliteNum === "number")
- message.eliteNum = object.eliteNum;
- else if (typeof object.eliteNum === "object")
- message.eliteNum = new $util.LongBits(object.eliteNum.low >>> 0, object.eliteNum.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a daily_dungeons_end message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.daily_dungeons_end
- * @static
- * @param {game.daily_dungeons_end} message daily_dungeons_end
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- daily_dungeons_end.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.win = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.monsterNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.monsterNum = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.bossNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.bossNum = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.eliteNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.eliteNum = options.longs === String ? "0" : 0;
- }
- if (message.win != null && message.hasOwnProperty("win"))
- object.win = message.win;
- if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
- if (typeof message.monsterNum === "number")
- object.monsterNum = options.longs === String ? String(message.monsterNum) : message.monsterNum;
- else
- object.monsterNum = options.longs === String ? $util.Long.prototype.toString.call(message.monsterNum) : options.longs === Number ? new $util.LongBits(message.monsterNum.low >>> 0, message.monsterNum.high >>> 0).toNumber() : message.monsterNum;
- if (message.bossNum != null && message.hasOwnProperty("bossNum"))
- if (typeof message.bossNum === "number")
- object.bossNum = options.longs === String ? String(message.bossNum) : message.bossNum;
- else
- object.bossNum = options.longs === String ? $util.Long.prototype.toString.call(message.bossNum) : options.longs === Number ? new $util.LongBits(message.bossNum.low >>> 0, message.bossNum.high >>> 0).toNumber() : message.bossNum;
- if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
- if (typeof message.eliteNum === "number")
- object.eliteNum = options.longs === String ? String(message.eliteNum) : message.eliteNum;
- else
- object.eliteNum = options.longs === String ? $util.Long.prototype.toString.call(message.eliteNum) : options.longs === Number ? new $util.LongBits(message.eliteNum.low >>> 0, message.eliteNum.high >>> 0).toNumber() : message.eliteNum;
- return object;
- };
- /**
- * Converts this daily_dungeons_end to JSON.
- * @function toJSON
- * @memberof game.daily_dungeons_end
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- daily_dungeons_end.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return daily_dungeons_end;
- })();
- game.daily_dungeons_end_rsp = (function() {
- /**
- * Properties of a daily_dungeons_end_rsp.
- * @memberof game
- * @interface Idaily_dungeons_end_rsp
- * @property {number|Long|null} [errno] daily_dungeons_end_rsp errno
- * @property {game.Idaily_dungeons_info|null} [data] daily_dungeons_end_rsp data
- */
- /**
- * Constructs a new daily_dungeons_end_rsp.
- * @memberof game
- * @classdesc Represents a daily_dungeons_end_rsp.
- * @implements Idaily_dungeons_end_rsp
- * @constructor
- * @param {game.Idaily_dungeons_end_rsp=} [properties] Properties to set
- */
- function daily_dungeons_end_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * daily_dungeons_end_rsp errno.
- * @member {number|Long} errno
- * @memberof game.daily_dungeons_end_rsp
- * @instance
- */
- daily_dungeons_end_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * daily_dungeons_end_rsp data.
- * @member {game.Idaily_dungeons_info|null|undefined} data
- * @memberof game.daily_dungeons_end_rsp
- * @instance
- */
- daily_dungeons_end_rsp.prototype.data = null;
- /**
- * Creates a new daily_dungeons_end_rsp instance using the specified properties.
- * @function create
- * @memberof game.daily_dungeons_end_rsp
- * @static
- * @param {game.Idaily_dungeons_end_rsp=} [properties] Properties to set
- * @returns {game.daily_dungeons_end_rsp} daily_dungeons_end_rsp instance
- */
- daily_dungeons_end_rsp.create = function create(properties) {
- return new daily_dungeons_end_rsp(properties);
- };
- /**
- * Encodes the specified daily_dungeons_end_rsp message. Does not implicitly {@link game.daily_dungeons_end_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.daily_dungeons_end_rsp
- * @static
- * @param {game.Idaily_dungeons_end_rsp} message daily_dungeons_end_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_end_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.daily_dungeons_info.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified daily_dungeons_end_rsp message, length delimited. Does not implicitly {@link game.daily_dungeons_end_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.daily_dungeons_end_rsp
- * @static
- * @param {game.Idaily_dungeons_end_rsp} message daily_dungeons_end_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_end_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a daily_dungeons_end_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.daily_dungeons_end_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.daily_dungeons_end_rsp} daily_dungeons_end_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_end_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_end_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.daily_dungeons_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a daily_dungeons_end_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.daily_dungeons_end_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.daily_dungeons_end_rsp} daily_dungeons_end_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_end_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a daily_dungeons_end_rsp message.
- * @function verify
- * @memberof game.daily_dungeons_end_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- daily_dungeons_end_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.daily_dungeons_info.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a daily_dungeons_end_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.daily_dungeons_end_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.daily_dungeons_end_rsp} daily_dungeons_end_rsp
- */
- daily_dungeons_end_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.daily_dungeons_end_rsp)
- return object;
- let message = new $root.game.daily_dungeons_end_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.daily_dungeons_end_rsp.data: object expected");
- message.data = $root.game.daily_dungeons_info.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a daily_dungeons_end_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.daily_dungeons_end_rsp
- * @static
- * @param {game.daily_dungeons_end_rsp} message daily_dungeons_end_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- daily_dungeons_end_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.daily_dungeons_info.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this daily_dungeons_end_rsp to JSON.
- * @function toJSON
- * @memberof game.daily_dungeons_end_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- daily_dungeons_end_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return daily_dungeons_end_rsp;
- })();
- game.daily_dungeons_sweep = (function() {
- /**
- * Properties of a daily_dungeons_sweep.
- * @memberof game
- * @interface Idaily_dungeons_sweep
- * @property {number|Long|null} [type] daily_dungeons_sweep type
- * @property {number|Long|null} [diff] daily_dungeons_sweep diff
- */
- /**
- * Constructs a new daily_dungeons_sweep.
- * @memberof game
- * @classdesc Represents a daily_dungeons_sweep.
- * @implements Idaily_dungeons_sweep
- * @constructor
- * @param {game.Idaily_dungeons_sweep=} [properties] Properties to set
- */
- function daily_dungeons_sweep(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * daily_dungeons_sweep type.
- * @member {number|Long} type
- * @memberof game.daily_dungeons_sweep
- * @instance
- */
- daily_dungeons_sweep.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * daily_dungeons_sweep diff.
- * @member {number|Long} diff
- * @memberof game.daily_dungeons_sweep
- * @instance
- */
- daily_dungeons_sweep.prototype.diff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new daily_dungeons_sweep instance using the specified properties.
- * @function create
- * @memberof game.daily_dungeons_sweep
- * @static
- * @param {game.Idaily_dungeons_sweep=} [properties] Properties to set
- * @returns {game.daily_dungeons_sweep} daily_dungeons_sweep instance
- */
- daily_dungeons_sweep.create = function create(properties) {
- return new daily_dungeons_sweep(properties);
- };
- /**
- * Encodes the specified daily_dungeons_sweep message. Does not implicitly {@link game.daily_dungeons_sweep.verify|verify} messages.
- * @function encode
- * @memberof game.daily_dungeons_sweep
- * @static
- * @param {game.Idaily_dungeons_sweep} message daily_dungeons_sweep message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_sweep.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.diff != null && Object.hasOwnProperty.call(message, "diff"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.diff);
- return writer;
- };
- /**
- * Encodes the specified daily_dungeons_sweep message, length delimited. Does not implicitly {@link game.daily_dungeons_sweep.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.daily_dungeons_sweep
- * @static
- * @param {game.Idaily_dungeons_sweep} message daily_dungeons_sweep message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_sweep.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a daily_dungeons_sweep message from the specified reader or buffer.
- * @function decode
- * @memberof game.daily_dungeons_sweep
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.daily_dungeons_sweep} daily_dungeons_sweep
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_sweep.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_sweep();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 2:
- message.diff = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a daily_dungeons_sweep message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.daily_dungeons_sweep
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.daily_dungeons_sweep} daily_dungeons_sweep
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_sweep.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a daily_dungeons_sweep message.
- * @function verify
- * @memberof game.daily_dungeons_sweep
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- daily_dungeons_sweep.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.diff != null && message.hasOwnProperty("diff"))
- if (!$util.isInteger(message.diff) && !(message.diff && $util.isInteger(message.diff.low) && $util.isInteger(message.diff.high)))
- return "diff: integer|Long expected";
- return null;
- };
- /**
- * Creates a daily_dungeons_sweep message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.daily_dungeons_sweep
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.daily_dungeons_sweep} daily_dungeons_sweep
- */
- daily_dungeons_sweep.fromObject = function fromObject(object) {
- if (object instanceof $root.game.daily_dungeons_sweep)
- return object;
- let message = new $root.game.daily_dungeons_sweep();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.diff != null)
- if ($util.Long)
- (message.diff = $util.Long.fromValue(object.diff)).unsigned = false;
- else if (typeof object.diff === "string")
- message.diff = parseInt(object.diff, 10);
- else if (typeof object.diff === "number")
- message.diff = object.diff;
- else if (typeof object.diff === "object")
- message.diff = new $util.LongBits(object.diff.low >>> 0, object.diff.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a daily_dungeons_sweep message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.daily_dungeons_sweep
- * @static
- * @param {game.daily_dungeons_sweep} message daily_dungeons_sweep
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- daily_dungeons_sweep.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.diff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.diff = options.longs === String ? "0" : 0;
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.diff != null && message.hasOwnProperty("diff"))
- if (typeof message.diff === "number")
- object.diff = options.longs === String ? String(message.diff) : message.diff;
- else
- object.diff = options.longs === String ? $util.Long.prototype.toString.call(message.diff) : options.longs === Number ? new $util.LongBits(message.diff.low >>> 0, message.diff.high >>> 0).toNumber() : message.diff;
- return object;
- };
- /**
- * Converts this daily_dungeons_sweep to JSON.
- * @function toJSON
- * @memberof game.daily_dungeons_sweep
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- daily_dungeons_sweep.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return daily_dungeons_sweep;
- })();
- game.daily_dungeons_sweep_rsp = (function() {
- /**
- * Properties of a daily_dungeons_sweep_rsp.
- * @memberof game
- * @interface Idaily_dungeons_sweep_rsp
- * @property {number|Long|null} [errno] daily_dungeons_sweep_rsp errno
- * @property {game.Idaily_dungeons_info|null} [data] daily_dungeons_sweep_rsp data
- */
- /**
- * Constructs a new daily_dungeons_sweep_rsp.
- * @memberof game
- * @classdesc Represents a daily_dungeons_sweep_rsp.
- * @implements Idaily_dungeons_sweep_rsp
- * @constructor
- * @param {game.Idaily_dungeons_sweep_rsp=} [properties] Properties to set
- */
- function daily_dungeons_sweep_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * daily_dungeons_sweep_rsp errno.
- * @member {number|Long} errno
- * @memberof game.daily_dungeons_sweep_rsp
- * @instance
- */
- daily_dungeons_sweep_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * daily_dungeons_sweep_rsp data.
- * @member {game.Idaily_dungeons_info|null|undefined} data
- * @memberof game.daily_dungeons_sweep_rsp
- * @instance
- */
- daily_dungeons_sweep_rsp.prototype.data = null;
- /**
- * Creates a new daily_dungeons_sweep_rsp instance using the specified properties.
- * @function create
- * @memberof game.daily_dungeons_sweep_rsp
- * @static
- * @param {game.Idaily_dungeons_sweep_rsp=} [properties] Properties to set
- * @returns {game.daily_dungeons_sweep_rsp} daily_dungeons_sweep_rsp instance
- */
- daily_dungeons_sweep_rsp.create = function create(properties) {
- return new daily_dungeons_sweep_rsp(properties);
- };
- /**
- * Encodes the specified daily_dungeons_sweep_rsp message. Does not implicitly {@link game.daily_dungeons_sweep_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.daily_dungeons_sweep_rsp
- * @static
- * @param {game.Idaily_dungeons_sweep_rsp} message daily_dungeons_sweep_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_sweep_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.daily_dungeons_info.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified daily_dungeons_sweep_rsp message, length delimited. Does not implicitly {@link game.daily_dungeons_sweep_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.daily_dungeons_sweep_rsp
- * @static
- * @param {game.Idaily_dungeons_sweep_rsp} message daily_dungeons_sweep_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_sweep_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a daily_dungeons_sweep_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.daily_dungeons_sweep_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.daily_dungeons_sweep_rsp} daily_dungeons_sweep_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_sweep_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_sweep_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.daily_dungeons_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a daily_dungeons_sweep_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.daily_dungeons_sweep_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.daily_dungeons_sweep_rsp} daily_dungeons_sweep_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_sweep_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a daily_dungeons_sweep_rsp message.
- * @function verify
- * @memberof game.daily_dungeons_sweep_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- daily_dungeons_sweep_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.daily_dungeons_info.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a daily_dungeons_sweep_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.daily_dungeons_sweep_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.daily_dungeons_sweep_rsp} daily_dungeons_sweep_rsp
- */
- daily_dungeons_sweep_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.daily_dungeons_sweep_rsp)
- return object;
- let message = new $root.game.daily_dungeons_sweep_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.daily_dungeons_sweep_rsp.data: object expected");
- message.data = $root.game.daily_dungeons_info.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a daily_dungeons_sweep_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.daily_dungeons_sweep_rsp
- * @static
- * @param {game.daily_dungeons_sweep_rsp} message daily_dungeons_sweep_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- daily_dungeons_sweep_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.daily_dungeons_info.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this daily_dungeons_sweep_rsp to JSON.
- * @function toJSON
- * @memberof game.daily_dungeons_sweep_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- daily_dungeons_sweep_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return daily_dungeons_sweep_rsp;
- })();
- game.adv_gift_data = (function() {
- /**
- * Properties of an adv_gift_data.
- * @memberof game
- * @interface Iadv_gift_data
- */
- /**
- * Constructs a new adv_gift_data.
- * @memberof game
- * @classdesc Represents an adv_gift_data.
- * @implements Iadv_gift_data
- * @constructor
- * @param {game.Iadv_gift_data=} [properties] Properties to set
- */
- function adv_gift_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new adv_gift_data instance using the specified properties.
- * @function create
- * @memberof game.adv_gift_data
- * @static
- * @param {game.Iadv_gift_data=} [properties] Properties to set
- * @returns {game.adv_gift_data} adv_gift_data instance
- */
- adv_gift_data.create = function create(properties) {
- return new adv_gift_data(properties);
- };
- /**
- * Encodes the specified adv_gift_data message. Does not implicitly {@link game.adv_gift_data.verify|verify} messages.
- * @function encode
- * @memberof game.adv_gift_data
- * @static
- * @param {game.Iadv_gift_data} message adv_gift_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adv_gift_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified adv_gift_data message, length delimited. Does not implicitly {@link game.adv_gift_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adv_gift_data
- * @static
- * @param {game.Iadv_gift_data} message adv_gift_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adv_gift_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adv_gift_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.adv_gift_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adv_gift_data} adv_gift_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adv_gift_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adv_gift_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adv_gift_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adv_gift_data} adv_gift_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adv_gift_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adv_gift_data message.
- * @function verify
- * @memberof game.adv_gift_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adv_gift_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates an adv_gift_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adv_gift_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adv_gift_data} adv_gift_data
- */
- adv_gift_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adv_gift_data)
- return object;
- return new $root.game.adv_gift_data();
- };
- /**
- * Creates a plain object from an adv_gift_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adv_gift_data
- * @static
- * @param {game.adv_gift_data} message adv_gift_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adv_gift_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this adv_gift_data to JSON.
- * @function toJSON
- * @memberof game.adv_gift_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adv_gift_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adv_gift_data;
- })();
- game.adv_gift_data_rsp = (function() {
- /**
- * Properties of an adv_gift_data_rsp.
- * @memberof game
- * @interface Iadv_gift_data_rsp
- * @property {number|Long|null} [errno] adv_gift_data_rsp errno
- */
- /**
- * Constructs a new adv_gift_data_rsp.
- * @memberof game
- * @classdesc Represents an adv_gift_data_rsp.
- * @implements Iadv_gift_data_rsp
- * @constructor
- * @param {game.Iadv_gift_data_rsp=} [properties] Properties to set
- */
- function adv_gift_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adv_gift_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.adv_gift_data_rsp
- * @instance
- */
- adv_gift_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adv_gift_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.adv_gift_data_rsp
- * @static
- * @param {game.Iadv_gift_data_rsp=} [properties] Properties to set
- * @returns {game.adv_gift_data_rsp} adv_gift_data_rsp instance
- */
- adv_gift_data_rsp.create = function create(properties) {
- return new adv_gift_data_rsp(properties);
- };
- /**
- * Encodes the specified adv_gift_data_rsp message. Does not implicitly {@link game.adv_gift_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.adv_gift_data_rsp
- * @static
- * @param {game.Iadv_gift_data_rsp} message adv_gift_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adv_gift_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified adv_gift_data_rsp message, length delimited. Does not implicitly {@link game.adv_gift_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adv_gift_data_rsp
- * @static
- * @param {game.Iadv_gift_data_rsp} message adv_gift_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adv_gift_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adv_gift_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.adv_gift_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adv_gift_data_rsp} adv_gift_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adv_gift_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adv_gift_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adv_gift_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adv_gift_data_rsp} adv_gift_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adv_gift_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adv_gift_data_rsp message.
- * @function verify
- * @memberof game.adv_gift_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adv_gift_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates an adv_gift_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adv_gift_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adv_gift_data_rsp} adv_gift_data_rsp
- */
- adv_gift_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adv_gift_data_rsp)
- return object;
- let message = new $root.game.adv_gift_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adv_gift_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adv_gift_data_rsp
- * @static
- * @param {game.adv_gift_data_rsp} message adv_gift_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adv_gift_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this adv_gift_data_rsp to JSON.
- * @function toJSON
- * @memberof game.adv_gift_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adv_gift_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adv_gift_data_rsp;
- })();
- game.adv_gift_buy = (function() {
- /**
- * Properties of an adv_gift_buy.
- * @memberof game
- * @interface Iadv_gift_buy
- * @property {number|Long|null} [id] adv_gift_buy id
- */
- /**
- * Constructs a new adv_gift_buy.
- * @memberof game
- * @classdesc Represents an adv_gift_buy.
- * @implements Iadv_gift_buy
- * @constructor
- * @param {game.Iadv_gift_buy=} [properties] Properties to set
- */
- function adv_gift_buy(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adv_gift_buy id.
- * @member {number|Long} id
- * @memberof game.adv_gift_buy
- * @instance
- */
- adv_gift_buy.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adv_gift_buy instance using the specified properties.
- * @function create
- * @memberof game.adv_gift_buy
- * @static
- * @param {game.Iadv_gift_buy=} [properties] Properties to set
- * @returns {game.adv_gift_buy} adv_gift_buy instance
- */
- adv_gift_buy.create = function create(properties) {
- return new adv_gift_buy(properties);
- };
- /**
- * Encodes the specified adv_gift_buy message. Does not implicitly {@link game.adv_gift_buy.verify|verify} messages.
- * @function encode
- * @memberof game.adv_gift_buy
- * @static
- * @param {game.Iadv_gift_buy} message adv_gift_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adv_gift_buy.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified adv_gift_buy message, length delimited. Does not implicitly {@link game.adv_gift_buy.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adv_gift_buy
- * @static
- * @param {game.Iadv_gift_buy} message adv_gift_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adv_gift_buy.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adv_gift_buy message from the specified reader or buffer.
- * @function decode
- * @memberof game.adv_gift_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adv_gift_buy} adv_gift_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adv_gift_buy.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_buy();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adv_gift_buy message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adv_gift_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adv_gift_buy} adv_gift_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adv_gift_buy.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adv_gift_buy message.
- * @function verify
- * @memberof game.adv_gift_buy
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adv_gift_buy.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates an adv_gift_buy message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adv_gift_buy
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adv_gift_buy} adv_gift_buy
- */
- adv_gift_buy.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adv_gift_buy)
- return object;
- let message = new $root.game.adv_gift_buy();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adv_gift_buy message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adv_gift_buy
- * @static
- * @param {game.adv_gift_buy} message adv_gift_buy
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adv_gift_buy.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this adv_gift_buy to JSON.
- * @function toJSON
- * @memberof game.adv_gift_buy
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adv_gift_buy.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adv_gift_buy;
- })();
- game.adv_gift_buy_rsp = (function() {
- /**
- * Properties of an adv_gift_buy_rsp.
- * @memberof game
- * @interface Iadv_gift_buy_rsp
- * @property {number|Long|null} [errno] adv_gift_buy_rsp errno
- */
- /**
- * Constructs a new adv_gift_buy_rsp.
- * @memberof game
- * @classdesc Represents an adv_gift_buy_rsp.
- * @implements Iadv_gift_buy_rsp
- * @constructor
- * @param {game.Iadv_gift_buy_rsp=} [properties] Properties to set
- */
- function adv_gift_buy_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adv_gift_buy_rsp errno.
- * @member {number|Long} errno
- * @memberof game.adv_gift_buy_rsp
- * @instance
- */
- adv_gift_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new adv_gift_buy_rsp instance using the specified properties.
- * @function create
- * @memberof game.adv_gift_buy_rsp
- * @static
- * @param {game.Iadv_gift_buy_rsp=} [properties] Properties to set
- * @returns {game.adv_gift_buy_rsp} adv_gift_buy_rsp instance
- */
- adv_gift_buy_rsp.create = function create(properties) {
- return new adv_gift_buy_rsp(properties);
- };
- /**
- * Encodes the specified adv_gift_buy_rsp message. Does not implicitly {@link game.adv_gift_buy_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.adv_gift_buy_rsp
- * @static
- * @param {game.Iadv_gift_buy_rsp} message adv_gift_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adv_gift_buy_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified adv_gift_buy_rsp message, length delimited. Does not implicitly {@link game.adv_gift_buy_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adv_gift_buy_rsp
- * @static
- * @param {game.Iadv_gift_buy_rsp} message adv_gift_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adv_gift_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adv_gift_buy_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.adv_gift_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adv_gift_buy_rsp} adv_gift_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adv_gift_buy_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_buy_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adv_gift_buy_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adv_gift_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adv_gift_buy_rsp} adv_gift_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adv_gift_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adv_gift_buy_rsp message.
- * @function verify
- * @memberof game.adv_gift_buy_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adv_gift_buy_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates an adv_gift_buy_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adv_gift_buy_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adv_gift_buy_rsp} adv_gift_buy_rsp
- */
- adv_gift_buy_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adv_gift_buy_rsp)
- return object;
- let message = new $root.game.adv_gift_buy_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an adv_gift_buy_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adv_gift_buy_rsp
- * @static
- * @param {game.adv_gift_buy_rsp} message adv_gift_buy_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adv_gift_buy_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this adv_gift_buy_rsp to JSON.
- * @function toJSON
- * @memberof game.adv_gift_buy_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adv_gift_buy_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adv_gift_buy_rsp;
- })();
- game.adv_gift_nty = (function() {
- /**
- * Properties of an adv_gift_nty.
- * @memberof game
- * @interface Iadv_gift_nty
- * @property {Array.<game.Iid_num>|null} [list] adv_gift_nty list
- */
- /**
- * Constructs a new adv_gift_nty.
- * @memberof game
- * @classdesc Represents an adv_gift_nty.
- * @implements Iadv_gift_nty
- * @constructor
- * @param {game.Iadv_gift_nty=} [properties] Properties to set
- */
- function adv_gift_nty(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * adv_gift_nty list.
- * @member {Array.<game.Iid_num>} list
- * @memberof game.adv_gift_nty
- * @instance
- */
- adv_gift_nty.prototype.list = $util.emptyArray;
- /**
- * Creates a new adv_gift_nty instance using the specified properties.
- * @function create
- * @memberof game.adv_gift_nty
- * @static
- * @param {game.Iadv_gift_nty=} [properties] Properties to set
- * @returns {game.adv_gift_nty} adv_gift_nty instance
- */
- adv_gift_nty.create = function create(properties) {
- return new adv_gift_nty(properties);
- };
- /**
- * Encodes the specified adv_gift_nty message. Does not implicitly {@link game.adv_gift_nty.verify|verify} messages.
- * @function encode
- * @memberof game.adv_gift_nty
- * @static
- * @param {game.Iadv_gift_nty} message adv_gift_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adv_gift_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.id_num.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified adv_gift_nty message, length delimited. Does not implicitly {@link game.adv_gift_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.adv_gift_nty
- * @static
- * @param {game.Iadv_gift_nty} message adv_gift_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- adv_gift_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an adv_gift_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.adv_gift_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.adv_gift_nty} adv_gift_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adv_gift_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an adv_gift_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.adv_gift_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.adv_gift_nty} adv_gift_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- adv_gift_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an adv_gift_nty message.
- * @function verify
- * @memberof game.adv_gift_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- adv_gift_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.id_num.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates an adv_gift_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.adv_gift_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.adv_gift_nty} adv_gift_nty
- */
- adv_gift_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.adv_gift_nty)
- return object;
- let message = new $root.game.adv_gift_nty();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.adv_gift_nty.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.adv_gift_nty.list: object expected");
- message.list[i] = $root.game.id_num.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from an adv_gift_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.adv_gift_nty
- * @static
- * @param {game.adv_gift_nty} message adv_gift_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- adv_gift_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.id_num.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this adv_gift_nty to JSON.
- * @function toJSON
- * @memberof game.adv_gift_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- adv_gift_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return adv_gift_nty;
- })();
- game.pop_gift_data = (function() {
- /**
- * Properties of a pop_gift_data.
- * @memberof game
- * @interface Ipop_gift_data
- */
- /**
- * Constructs a new pop_gift_data.
- * @memberof game
- * @classdesc Represents a pop_gift_data.
- * @implements Ipop_gift_data
- * @constructor
- * @param {game.Ipop_gift_data=} [properties] Properties to set
- */
- function pop_gift_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new pop_gift_data instance using the specified properties.
- * @function create
- * @memberof game.pop_gift_data
- * @static
- * @param {game.Ipop_gift_data=} [properties] Properties to set
- * @returns {game.pop_gift_data} pop_gift_data instance
- */
- pop_gift_data.create = function create(properties) {
- return new pop_gift_data(properties);
- };
- /**
- * Encodes the specified pop_gift_data message. Does not implicitly {@link game.pop_gift_data.verify|verify} messages.
- * @function encode
- * @memberof game.pop_gift_data
- * @static
- * @param {game.Ipop_gift_data} message pop_gift_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified pop_gift_data message, length delimited. Does not implicitly {@link game.pop_gift_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pop_gift_data
- * @static
- * @param {game.Ipop_gift_data} message pop_gift_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pop_gift_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.pop_gift_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pop_gift_data} pop_gift_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pop_gift_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pop_gift_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pop_gift_data} pop_gift_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pop_gift_data message.
- * @function verify
- * @memberof game.pop_gift_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pop_gift_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a pop_gift_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pop_gift_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pop_gift_data} pop_gift_data
- */
- pop_gift_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pop_gift_data)
- return object;
- return new $root.game.pop_gift_data();
- };
- /**
- * Creates a plain object from a pop_gift_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pop_gift_data
- * @static
- * @param {game.pop_gift_data} message pop_gift_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pop_gift_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this pop_gift_data to JSON.
- * @function toJSON
- * @memberof game.pop_gift_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pop_gift_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pop_gift_data;
- })();
- game.pop_gift_data_rsp = (function() {
- /**
- * Properties of a pop_gift_data_rsp.
- * @memberof game
- * @interface Ipop_gift_data_rsp
- * @property {number|Long|null} [errno] pop_gift_data_rsp errno
- * @property {Array.<game.Ipop_gift_info>|null} [list] pop_gift_data_rsp list
- */
- /**
- * Constructs a new pop_gift_data_rsp.
- * @memberof game
- * @classdesc Represents a pop_gift_data_rsp.
- * @implements Ipop_gift_data_rsp
- * @constructor
- * @param {game.Ipop_gift_data_rsp=} [properties] Properties to set
- */
- function pop_gift_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pop_gift_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.pop_gift_data_rsp
- * @instance
- */
- pop_gift_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * pop_gift_data_rsp list.
- * @member {Array.<game.Ipop_gift_info>} list
- * @memberof game.pop_gift_data_rsp
- * @instance
- */
- pop_gift_data_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new pop_gift_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.pop_gift_data_rsp
- * @static
- * @param {game.Ipop_gift_data_rsp=} [properties] Properties to set
- * @returns {game.pop_gift_data_rsp} pop_gift_data_rsp instance
- */
- pop_gift_data_rsp.create = function create(properties) {
- return new pop_gift_data_rsp(properties);
- };
- /**
- * Encodes the specified pop_gift_data_rsp message. Does not implicitly {@link game.pop_gift_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.pop_gift_data_rsp
- * @static
- * @param {game.Ipop_gift_data_rsp} message pop_gift_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.pop_gift_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified pop_gift_data_rsp message, length delimited. Does not implicitly {@link game.pop_gift_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pop_gift_data_rsp
- * @static
- * @param {game.Ipop_gift_data_rsp} message pop_gift_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pop_gift_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.pop_gift_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pop_gift_data_rsp} pop_gift_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.pop_gift_info.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pop_gift_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pop_gift_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pop_gift_data_rsp} pop_gift_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pop_gift_data_rsp message.
- * @function verify
- * @memberof game.pop_gift_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pop_gift_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.pop_gift_info.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a pop_gift_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pop_gift_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pop_gift_data_rsp} pop_gift_data_rsp
- */
- pop_gift_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pop_gift_data_rsp)
- return object;
- let message = new $root.game.pop_gift_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.pop_gift_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.pop_gift_data_rsp.list: object expected");
- message.list[i] = $root.game.pop_gift_info.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a pop_gift_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pop_gift_data_rsp
- * @static
- * @param {game.pop_gift_data_rsp} message pop_gift_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pop_gift_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.pop_gift_info.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this pop_gift_data_rsp to JSON.
- * @function toJSON
- * @memberof game.pop_gift_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pop_gift_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pop_gift_data_rsp;
- })();
- game.pop_gift_buy = (function() {
- /**
- * Properties of a pop_gift_buy.
- * @memberof game
- * @interface Ipop_gift_buy
- * @property {number|Long|null} [id] pop_gift_buy id
- */
- /**
- * Constructs a new pop_gift_buy.
- * @memberof game
- * @classdesc Represents a pop_gift_buy.
- * @implements Ipop_gift_buy
- * @constructor
- * @param {game.Ipop_gift_buy=} [properties] Properties to set
- */
- function pop_gift_buy(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pop_gift_buy id.
- * @member {number|Long} id
- * @memberof game.pop_gift_buy
- * @instance
- */
- pop_gift_buy.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new pop_gift_buy instance using the specified properties.
- * @function create
- * @memberof game.pop_gift_buy
- * @static
- * @param {game.Ipop_gift_buy=} [properties] Properties to set
- * @returns {game.pop_gift_buy} pop_gift_buy instance
- */
- pop_gift_buy.create = function create(properties) {
- return new pop_gift_buy(properties);
- };
- /**
- * Encodes the specified pop_gift_buy message. Does not implicitly {@link game.pop_gift_buy.verify|verify} messages.
- * @function encode
- * @memberof game.pop_gift_buy
- * @static
- * @param {game.Ipop_gift_buy} message pop_gift_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_buy.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified pop_gift_buy message, length delimited. Does not implicitly {@link game.pop_gift_buy.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pop_gift_buy
- * @static
- * @param {game.Ipop_gift_buy} message pop_gift_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_buy.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pop_gift_buy message from the specified reader or buffer.
- * @function decode
- * @memberof game.pop_gift_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pop_gift_buy} pop_gift_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_buy.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_buy();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pop_gift_buy message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pop_gift_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pop_gift_buy} pop_gift_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_buy.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pop_gift_buy message.
- * @function verify
- * @memberof game.pop_gift_buy
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pop_gift_buy.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a pop_gift_buy message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pop_gift_buy
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pop_gift_buy} pop_gift_buy
- */
- pop_gift_buy.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pop_gift_buy)
- return object;
- let message = new $root.game.pop_gift_buy();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a pop_gift_buy message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pop_gift_buy
- * @static
- * @param {game.pop_gift_buy} message pop_gift_buy
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pop_gift_buy.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this pop_gift_buy to JSON.
- * @function toJSON
- * @memberof game.pop_gift_buy
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pop_gift_buy.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pop_gift_buy;
- })();
- game.pop_gift_buy_rsp = (function() {
- /**
- * Properties of a pop_gift_buy_rsp.
- * @memberof game
- * @interface Ipop_gift_buy_rsp
- * @property {number|Long|null} [errno] pop_gift_buy_rsp errno
- */
- /**
- * Constructs a new pop_gift_buy_rsp.
- * @memberof game
- * @classdesc Represents a pop_gift_buy_rsp.
- * @implements Ipop_gift_buy_rsp
- * @constructor
- * @param {game.Ipop_gift_buy_rsp=} [properties] Properties to set
- */
- function pop_gift_buy_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pop_gift_buy_rsp errno.
- * @member {number|Long} errno
- * @memberof game.pop_gift_buy_rsp
- * @instance
- */
- pop_gift_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new pop_gift_buy_rsp instance using the specified properties.
- * @function create
- * @memberof game.pop_gift_buy_rsp
- * @static
- * @param {game.Ipop_gift_buy_rsp=} [properties] Properties to set
- * @returns {game.pop_gift_buy_rsp} pop_gift_buy_rsp instance
- */
- pop_gift_buy_rsp.create = function create(properties) {
- return new pop_gift_buy_rsp(properties);
- };
- /**
- * Encodes the specified pop_gift_buy_rsp message. Does not implicitly {@link game.pop_gift_buy_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.pop_gift_buy_rsp
- * @static
- * @param {game.Ipop_gift_buy_rsp} message pop_gift_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_buy_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified pop_gift_buy_rsp message, length delimited. Does not implicitly {@link game.pop_gift_buy_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pop_gift_buy_rsp
- * @static
- * @param {game.Ipop_gift_buy_rsp} message pop_gift_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pop_gift_buy_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.pop_gift_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pop_gift_buy_rsp} pop_gift_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_buy_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_buy_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pop_gift_buy_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pop_gift_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pop_gift_buy_rsp} pop_gift_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pop_gift_buy_rsp message.
- * @function verify
- * @memberof game.pop_gift_buy_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pop_gift_buy_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a pop_gift_buy_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pop_gift_buy_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pop_gift_buy_rsp} pop_gift_buy_rsp
- */
- pop_gift_buy_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pop_gift_buy_rsp)
- return object;
- let message = new $root.game.pop_gift_buy_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a pop_gift_buy_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pop_gift_buy_rsp
- * @static
- * @param {game.pop_gift_buy_rsp} message pop_gift_buy_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pop_gift_buy_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this pop_gift_buy_rsp to JSON.
- * @function toJSON
- * @memberof game.pop_gift_buy_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pop_gift_buy_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pop_gift_buy_rsp;
- })();
- game.pop_gift_nty = (function() {
- /**
- * Properties of a pop_gift_nty.
- * @memberof game
- * @interface Ipop_gift_nty
- * @property {game.Ipop_gift_info|null} [data] pop_gift_nty data
- */
- /**
- * Constructs a new pop_gift_nty.
- * @memberof game
- * @classdesc Represents a pop_gift_nty.
- * @implements Ipop_gift_nty
- * @constructor
- * @param {game.Ipop_gift_nty=} [properties] Properties to set
- */
- function pop_gift_nty(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pop_gift_nty data.
- * @member {game.Ipop_gift_info|null|undefined} data
- * @memberof game.pop_gift_nty
- * @instance
- */
- pop_gift_nty.prototype.data = null;
- /**
- * Creates a new pop_gift_nty instance using the specified properties.
- * @function create
- * @memberof game.pop_gift_nty
- * @static
- * @param {game.Ipop_gift_nty=} [properties] Properties to set
- * @returns {game.pop_gift_nty} pop_gift_nty instance
- */
- pop_gift_nty.create = function create(properties) {
- return new pop_gift_nty(properties);
- };
- /**
- * Encodes the specified pop_gift_nty message. Does not implicitly {@link game.pop_gift_nty.verify|verify} messages.
- * @function encode
- * @memberof game.pop_gift_nty
- * @static
- * @param {game.Ipop_gift_nty} message pop_gift_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.pop_gift_info.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified pop_gift_nty message, length delimited. Does not implicitly {@link game.pop_gift_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pop_gift_nty
- * @static
- * @param {game.Ipop_gift_nty} message pop_gift_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pop_gift_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.pop_gift_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pop_gift_nty} pop_gift_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.data = $root.game.pop_gift_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pop_gift_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pop_gift_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pop_gift_nty} pop_gift_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pop_gift_nty message.
- * @function verify
- * @memberof game.pop_gift_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pop_gift_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.pop_gift_info.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a pop_gift_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pop_gift_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pop_gift_nty} pop_gift_nty
- */
- pop_gift_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pop_gift_nty)
- return object;
- let message = new $root.game.pop_gift_nty();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.pop_gift_nty.data: object expected");
- message.data = $root.game.pop_gift_info.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a pop_gift_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pop_gift_nty
- * @static
- * @param {game.pop_gift_nty} message pop_gift_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pop_gift_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- object.data = null;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.pop_gift_info.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this pop_gift_nty to JSON.
- * @function toJSON
- * @memberof game.pop_gift_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pop_gift_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pop_gift_nty;
- })();
- game.pop_gift_change_nty = (function() {
- /**
- * Properties of a pop_gift_change_nty.
- * @memberof game
- * @interface Ipop_gift_change_nty
- * @property {game.Ipop_gift_info|null} [data] pop_gift_change_nty data
- */
- /**
- * Constructs a new pop_gift_change_nty.
- * @memberof game
- * @classdesc Represents a pop_gift_change_nty.
- * @implements Ipop_gift_change_nty
- * @constructor
- * @param {game.Ipop_gift_change_nty=} [properties] Properties to set
- */
- function pop_gift_change_nty(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pop_gift_change_nty data.
- * @member {game.Ipop_gift_info|null|undefined} data
- * @memberof game.pop_gift_change_nty
- * @instance
- */
- pop_gift_change_nty.prototype.data = null;
- /**
- * Creates a new pop_gift_change_nty instance using the specified properties.
- * @function create
- * @memberof game.pop_gift_change_nty
- * @static
- * @param {game.Ipop_gift_change_nty=} [properties] Properties to set
- * @returns {game.pop_gift_change_nty} pop_gift_change_nty instance
- */
- pop_gift_change_nty.create = function create(properties) {
- return new pop_gift_change_nty(properties);
- };
- /**
- * Encodes the specified pop_gift_change_nty message. Does not implicitly {@link game.pop_gift_change_nty.verify|verify} messages.
- * @function encode
- * @memberof game.pop_gift_change_nty
- * @static
- * @param {game.Ipop_gift_change_nty} message pop_gift_change_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_change_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.pop_gift_info.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified pop_gift_change_nty message, length delimited. Does not implicitly {@link game.pop_gift_change_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pop_gift_change_nty
- * @static
- * @param {game.Ipop_gift_change_nty} message pop_gift_change_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_change_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pop_gift_change_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.pop_gift_change_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pop_gift_change_nty} pop_gift_change_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_change_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_change_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.data = $root.game.pop_gift_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pop_gift_change_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pop_gift_change_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pop_gift_change_nty} pop_gift_change_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_change_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pop_gift_change_nty message.
- * @function verify
- * @memberof game.pop_gift_change_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pop_gift_change_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.pop_gift_info.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a pop_gift_change_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pop_gift_change_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pop_gift_change_nty} pop_gift_change_nty
- */
- pop_gift_change_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pop_gift_change_nty)
- return object;
- let message = new $root.game.pop_gift_change_nty();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.pop_gift_change_nty.data: object expected");
- message.data = $root.game.pop_gift_info.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a pop_gift_change_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pop_gift_change_nty
- * @static
- * @param {game.pop_gift_change_nty} message pop_gift_change_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pop_gift_change_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- object.data = null;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.pop_gift_info.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this pop_gift_change_nty to JSON.
- * @function toJSON
- * @memberof game.pop_gift_change_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pop_gift_change_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pop_gift_change_nty;
- })();
- game.fund_data = (function() {
- /**
- * Properties of a fund_data.
- * @memberof game
- * @interface Ifund_data
- * @property {number|Long|null} [moduleid] fund_data moduleid
- */
- /**
- * Constructs a new fund_data.
- * @memberof game
- * @classdesc Represents a fund_data.
- * @implements Ifund_data
- * @constructor
- * @param {game.Ifund_data=} [properties] Properties to set
- */
- function fund_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * fund_data moduleid.
- * @member {number|Long} moduleid
- * @memberof game.fund_data
- * @instance
- */
- fund_data.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new fund_data instance using the specified properties.
- * @function create
- * @memberof game.fund_data
- * @static
- * @param {game.Ifund_data=} [properties] Properties to set
- * @returns {game.fund_data} fund_data instance
- */
- fund_data.create = function create(properties) {
- return new fund_data(properties);
- };
- /**
- * Encodes the specified fund_data message. Does not implicitly {@link game.fund_data.verify|verify} messages.
- * @function encode
- * @memberof game.fund_data
- * @static
- * @param {game.Ifund_data} message fund_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified fund_data message, length delimited. Does not implicitly {@link game.fund_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.fund_data
- * @static
- * @param {game.Ifund_data} message fund_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a fund_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.fund_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.fund_data} fund_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a fund_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.fund_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.fund_data} fund_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a fund_data message.
- * @function verify
- * @memberof game.fund_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- fund_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a fund_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.fund_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.fund_data} fund_data
- */
- fund_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.fund_data)
- return object;
- let message = new $root.game.fund_data();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a fund_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.fund_data
- * @static
- * @param {game.fund_data} message fund_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- fund_data.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this fund_data to JSON.
- * @function toJSON
- * @memberof game.fund_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- fund_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return fund_data;
- })();
- game.fund_data_rsp = (function() {
- /**
- * Properties of a fund_data_rsp.
- * @memberof game
- * @interface Ifund_data_rsp
- * @property {number|Long|null} [errno] fund_data_rsp errno
- * @property {number|Long|null} [moduleid] fund_data_rsp moduleid
- * @property {boolean|null} [state] fund_data_rsp state
- * @property {number|Long|null} [award] fund_data_rsp award
- * @property {number|Long|null} [freeAward] fund_data_rsp freeAward
- * @property {number|Long|null} [progress] fund_data_rsp progress
- */
- /**
- * Constructs a new fund_data_rsp.
- * @memberof game
- * @classdesc Represents a fund_data_rsp.
- * @implements Ifund_data_rsp
- * @constructor
- * @param {game.Ifund_data_rsp=} [properties] Properties to set
- */
- function fund_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * fund_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.fund_data_rsp
- * @instance
- */
- fund_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * fund_data_rsp moduleid.
- * @member {number|Long} moduleid
- * @memberof game.fund_data_rsp
- * @instance
- */
- fund_data_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * fund_data_rsp state.
- * @member {boolean} state
- * @memberof game.fund_data_rsp
- * @instance
- */
- fund_data_rsp.prototype.state = false;
- /**
- * fund_data_rsp award.
- * @member {number|Long} award
- * @memberof game.fund_data_rsp
- * @instance
- */
- fund_data_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * fund_data_rsp freeAward.
- * @member {number|Long} freeAward
- * @memberof game.fund_data_rsp
- * @instance
- */
- fund_data_rsp.prototype.freeAward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * fund_data_rsp progress.
- * @member {number|Long} progress
- * @memberof game.fund_data_rsp
- * @instance
- */
- fund_data_rsp.prototype.progress = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new fund_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.fund_data_rsp
- * @static
- * @param {game.Ifund_data_rsp=} [properties] Properties to set
- * @returns {game.fund_data_rsp} fund_data_rsp instance
- */
- fund_data_rsp.create = function create(properties) {
- return new fund_data_rsp(properties);
- };
- /**
- * Encodes the specified fund_data_rsp message. Does not implicitly {@link game.fund_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.fund_data_rsp
- * @static
- * @param {game.Ifund_data_rsp} message fund_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
- if (message.state != null && Object.hasOwnProperty.call(message, "state"))
- writer.uint32(/* id 3, wireType 0 =*/24).bool(message.state);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.award);
- if (message.freeAward != null && Object.hasOwnProperty.call(message, "freeAward"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.freeAward);
- if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
- writer.uint32(/* id 6, wireType 0 =*/48).int64(message.progress);
- return writer;
- };
- /**
- * Encodes the specified fund_data_rsp message, length delimited. Does not implicitly {@link game.fund_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.fund_data_rsp
- * @static
- * @param {game.Ifund_data_rsp} message fund_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a fund_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.fund_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.fund_data_rsp} fund_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.moduleid = reader.int64();
- break;
- case 3:
- message.state = reader.bool();
- break;
- case 4:
- message.award = reader.int64();
- break;
- case 5:
- message.freeAward = reader.int64();
- break;
- case 6:
- message.progress = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a fund_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.fund_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.fund_data_rsp} fund_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a fund_data_rsp message.
- * @function verify
- * @memberof game.fund_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- fund_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- if (message.state != null && message.hasOwnProperty("state"))
- if (typeof message.state !== "boolean")
- return "state: boolean expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- if (message.freeAward != null && message.hasOwnProperty("freeAward"))
- if (!$util.isInteger(message.freeAward) && !(message.freeAward && $util.isInteger(message.freeAward.low) && $util.isInteger(message.freeAward.high)))
- return "freeAward: integer|Long expected";
- if (message.progress != null && message.hasOwnProperty("progress"))
- if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
- return "progress: integer|Long expected";
- return null;
- };
- /**
- * Creates a fund_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.fund_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.fund_data_rsp} fund_data_rsp
- */
- fund_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.fund_data_rsp)
- return object;
- let message = new $root.game.fund_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- if (object.state != null)
- message.state = Boolean(object.state);
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- if (object.freeAward != null)
- if ($util.Long)
- (message.freeAward = $util.Long.fromValue(object.freeAward)).unsigned = false;
- else if (typeof object.freeAward === "string")
- message.freeAward = parseInt(object.freeAward, 10);
- else if (typeof object.freeAward === "number")
- message.freeAward = object.freeAward;
- else if (typeof object.freeAward === "object")
- message.freeAward = new $util.LongBits(object.freeAward.low >>> 0, object.freeAward.high >>> 0).toNumber();
- if (object.progress != null)
- if ($util.Long)
- (message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
- else if (typeof object.progress === "string")
- message.progress = parseInt(object.progress, 10);
- else if (typeof object.progress === "number")
- message.progress = object.progress;
- else if (typeof object.progress === "object")
- message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a fund_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.fund_data_rsp
- * @static
- * @param {game.fund_data_rsp} message fund_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- fund_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- object.state = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.freeAward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.freeAward = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.progress = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- if (message.state != null && message.hasOwnProperty("state"))
- object.state = message.state;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- if (message.freeAward != null && message.hasOwnProperty("freeAward"))
- if (typeof message.freeAward === "number")
- object.freeAward = options.longs === String ? String(message.freeAward) : message.freeAward;
- else
- object.freeAward = options.longs === String ? $util.Long.prototype.toString.call(message.freeAward) : options.longs === Number ? new $util.LongBits(message.freeAward.low >>> 0, message.freeAward.high >>> 0).toNumber() : message.freeAward;
- if (message.progress != null && message.hasOwnProperty("progress"))
- if (typeof message.progress === "number")
- object.progress = options.longs === String ? String(message.progress) : message.progress;
- else
- object.progress = options.longs === String ? $util.Long.prototype.toString.call(message.progress) : options.longs === Number ? new $util.LongBits(message.progress.low >>> 0, message.progress.high >>> 0).toNumber() : message.progress;
- return object;
- };
- /**
- * Converts this fund_data_rsp to JSON.
- * @function toJSON
- * @memberof game.fund_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- fund_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return fund_data_rsp;
- })();
- game.fund_buy = (function() {
- /**
- * Properties of a fund_buy.
- * @memberof game
- * @interface Ifund_buy
- * @property {number|Long|null} [moduleid] fund_buy moduleid
- */
- /**
- * Constructs a new fund_buy.
- * @memberof game
- * @classdesc Represents a fund_buy.
- * @implements Ifund_buy
- * @constructor
- * @param {game.Ifund_buy=} [properties] Properties to set
- */
- function fund_buy(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * fund_buy moduleid.
- * @member {number|Long} moduleid
- * @memberof game.fund_buy
- * @instance
- */
- fund_buy.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new fund_buy instance using the specified properties.
- * @function create
- * @memberof game.fund_buy
- * @static
- * @param {game.Ifund_buy=} [properties] Properties to set
- * @returns {game.fund_buy} fund_buy instance
- */
- fund_buy.create = function create(properties) {
- return new fund_buy(properties);
- };
- /**
- * Encodes the specified fund_buy message. Does not implicitly {@link game.fund_buy.verify|verify} messages.
- * @function encode
- * @memberof game.fund_buy
- * @static
- * @param {game.Ifund_buy} message fund_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_buy.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified fund_buy message, length delimited. Does not implicitly {@link game.fund_buy.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.fund_buy
- * @static
- * @param {game.Ifund_buy} message fund_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_buy.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a fund_buy message from the specified reader or buffer.
- * @function decode
- * @memberof game.fund_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.fund_buy} fund_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_buy.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_buy();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a fund_buy message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.fund_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.fund_buy} fund_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_buy.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a fund_buy message.
- * @function verify
- * @memberof game.fund_buy
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- fund_buy.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a fund_buy message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.fund_buy
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.fund_buy} fund_buy
- */
- fund_buy.fromObject = function fromObject(object) {
- if (object instanceof $root.game.fund_buy)
- return object;
- let message = new $root.game.fund_buy();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a fund_buy message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.fund_buy
- * @static
- * @param {game.fund_buy} message fund_buy
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- fund_buy.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this fund_buy to JSON.
- * @function toJSON
- * @memberof game.fund_buy
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- fund_buy.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return fund_buy;
- })();
- game.fund_buy_rsp = (function() {
- /**
- * Properties of a fund_buy_rsp.
- * @memberof game
- * @interface Ifund_buy_rsp
- * @property {number|Long|null} [errno] fund_buy_rsp errno
- * @property {number|Long|null} [moduleid] fund_buy_rsp moduleid
- */
- /**
- * Constructs a new fund_buy_rsp.
- * @memberof game
- * @classdesc Represents a fund_buy_rsp.
- * @implements Ifund_buy_rsp
- * @constructor
- * @param {game.Ifund_buy_rsp=} [properties] Properties to set
- */
- function fund_buy_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * fund_buy_rsp errno.
- * @member {number|Long} errno
- * @memberof game.fund_buy_rsp
- * @instance
- */
- fund_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * fund_buy_rsp moduleid.
- * @member {number|Long} moduleid
- * @memberof game.fund_buy_rsp
- * @instance
- */
- fund_buy_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new fund_buy_rsp instance using the specified properties.
- * @function create
- * @memberof game.fund_buy_rsp
- * @static
- * @param {game.Ifund_buy_rsp=} [properties] Properties to set
- * @returns {game.fund_buy_rsp} fund_buy_rsp instance
- */
- fund_buy_rsp.create = function create(properties) {
- return new fund_buy_rsp(properties);
- };
- /**
- * Encodes the specified fund_buy_rsp message. Does not implicitly {@link game.fund_buy_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.fund_buy_rsp
- * @static
- * @param {game.Ifund_buy_rsp} message fund_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_buy_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified fund_buy_rsp message, length delimited. Does not implicitly {@link game.fund_buy_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.fund_buy_rsp
- * @static
- * @param {game.Ifund_buy_rsp} message fund_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a fund_buy_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.fund_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.fund_buy_rsp} fund_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_buy_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_buy_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a fund_buy_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.fund_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.fund_buy_rsp} fund_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a fund_buy_rsp message.
- * @function verify
- * @memberof game.fund_buy_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- fund_buy_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a fund_buy_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.fund_buy_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.fund_buy_rsp} fund_buy_rsp
- */
- fund_buy_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.fund_buy_rsp)
- return object;
- let message = new $root.game.fund_buy_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a fund_buy_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.fund_buy_rsp
- * @static
- * @param {game.fund_buy_rsp} message fund_buy_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- fund_buy_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this fund_buy_rsp to JSON.
- * @function toJSON
- * @memberof game.fund_buy_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- fund_buy_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return fund_buy_rsp;
- })();
- game.fund_award = (function() {
- /**
- * Properties of a fund_award.
- * @memberof game
- * @interface Ifund_award
- * @property {number|Long|null} [moduleid] fund_award moduleid
- */
- /**
- * Constructs a new fund_award.
- * @memberof game
- * @classdesc Represents a fund_award.
- * @implements Ifund_award
- * @constructor
- * @param {game.Ifund_award=} [properties] Properties to set
- */
- function fund_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * fund_award moduleid.
- * @member {number|Long} moduleid
- * @memberof game.fund_award
- * @instance
- */
- fund_award.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new fund_award instance using the specified properties.
- * @function create
- * @memberof game.fund_award
- * @static
- * @param {game.Ifund_award=} [properties] Properties to set
- * @returns {game.fund_award} fund_award instance
- */
- fund_award.create = function create(properties) {
- return new fund_award(properties);
- };
- /**
- * Encodes the specified fund_award message. Does not implicitly {@link game.fund_award.verify|verify} messages.
- * @function encode
- * @memberof game.fund_award
- * @static
- * @param {game.Ifund_award} message fund_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
- return writer;
- };
- /**
- * Encodes the specified fund_award message, length delimited. Does not implicitly {@link game.fund_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.fund_award
- * @static
- * @param {game.Ifund_award} message fund_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a fund_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.fund_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.fund_award} fund_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.moduleid = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a fund_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.fund_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.fund_award} fund_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a fund_award message.
- * @function verify
- * @memberof game.fund_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- fund_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- return null;
- };
- /**
- * Creates a fund_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.fund_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.fund_award} fund_award
- */
- fund_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.fund_award)
- return object;
- let message = new $root.game.fund_award();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a fund_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.fund_award
- * @static
- * @param {game.fund_award} message fund_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- fund_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- return object;
- };
- /**
- * Converts this fund_award to JSON.
- * @function toJSON
- * @memberof game.fund_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- fund_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return fund_award;
- })();
- game.fund_award_rsp = (function() {
- /**
- * Properties of a fund_award_rsp.
- * @memberof game
- * @interface Ifund_award_rsp
- * @property {number|Long|null} [errno] fund_award_rsp errno
- * @property {number|Long|null} [moduleid] fund_award_rsp moduleid
- * @property {number|Long|null} [award] fund_award_rsp award
- * @property {number|Long|null} [freeAward] fund_award_rsp freeAward
- */
- /**
- * Constructs a new fund_award_rsp.
- * @memberof game
- * @classdesc Represents a fund_award_rsp.
- * @implements Ifund_award_rsp
- * @constructor
- * @param {game.Ifund_award_rsp=} [properties] Properties to set
- */
- function fund_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * fund_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.fund_award_rsp
- * @instance
- */
- fund_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * fund_award_rsp moduleid.
- * @member {number|Long} moduleid
- * @memberof game.fund_award_rsp
- * @instance
- */
- fund_award_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * fund_award_rsp award.
- * @member {number|Long} award
- * @memberof game.fund_award_rsp
- * @instance
- */
- fund_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * fund_award_rsp freeAward.
- * @member {number|Long} freeAward
- * @memberof game.fund_award_rsp
- * @instance
- */
- fund_award_rsp.prototype.freeAward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new fund_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.fund_award_rsp
- * @static
- * @param {game.Ifund_award_rsp=} [properties] Properties to set
- * @returns {game.fund_award_rsp} fund_award_rsp instance
- */
- fund_award_rsp.create = function create(properties) {
- return new fund_award_rsp(properties);
- };
- /**
- * Encodes the specified fund_award_rsp message. Does not implicitly {@link game.fund_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.fund_award_rsp
- * @static
- * @param {game.Ifund_award_rsp} message fund_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
- if (message.freeAward != null && Object.hasOwnProperty.call(message, "freeAward"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.freeAward);
- return writer;
- };
- /**
- * Encodes the specified fund_award_rsp message, length delimited. Does not implicitly {@link game.fund_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.fund_award_rsp
- * @static
- * @param {game.Ifund_award_rsp} message fund_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a fund_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.fund_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.fund_award_rsp} fund_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.moduleid = reader.int64();
- break;
- case 3:
- message.award = reader.int64();
- break;
- case 4:
- message.freeAward = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a fund_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.fund_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.fund_award_rsp} fund_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a fund_award_rsp message.
- * @function verify
- * @memberof game.fund_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- fund_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- if (message.freeAward != null && message.hasOwnProperty("freeAward"))
- if (!$util.isInteger(message.freeAward) && !(message.freeAward && $util.isInteger(message.freeAward.low) && $util.isInteger(message.freeAward.high)))
- return "freeAward: integer|Long expected";
- return null;
- };
- /**
- * Creates a fund_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.fund_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.fund_award_rsp} fund_award_rsp
- */
- fund_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.fund_award_rsp)
- return object;
- let message = new $root.game.fund_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- if (object.freeAward != null)
- if ($util.Long)
- (message.freeAward = $util.Long.fromValue(object.freeAward)).unsigned = false;
- else if (typeof object.freeAward === "string")
- message.freeAward = parseInt(object.freeAward, 10);
- else if (typeof object.freeAward === "number")
- message.freeAward = object.freeAward;
- else if (typeof object.freeAward === "object")
- message.freeAward = new $util.LongBits(object.freeAward.low >>> 0, object.freeAward.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a fund_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.fund_award_rsp
- * @static
- * @param {game.fund_award_rsp} message fund_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- fund_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.freeAward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.freeAward = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- if (message.freeAward != null && message.hasOwnProperty("freeAward"))
- if (typeof message.freeAward === "number")
- object.freeAward = options.longs === String ? String(message.freeAward) : message.freeAward;
- else
- object.freeAward = options.longs === String ? $util.Long.prototype.toString.call(message.freeAward) : options.longs === Number ? new $util.LongBits(message.freeAward.low >>> 0, message.freeAward.high >>> 0).toNumber() : message.freeAward;
- return object;
- };
- /**
- * Converts this fund_award_rsp to JSON.
- * @function toJSON
- * @memberof game.fund_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- fund_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return fund_award_rsp;
- })();
- game.fund_nty = (function() {
- /**
- * Properties of a fund_nty.
- * @memberof game
- * @interface Ifund_nty
- * @property {number|Long|null} [moduleid] fund_nty moduleid
- * @property {boolean|null} [state] fund_nty state
- * @property {number|Long|null} [award] fund_nty award
- * @property {number|Long|null} [freeAward] fund_nty freeAward
- * @property {number|Long|null} [progress] fund_nty progress
- */
- /**
- * Constructs a new fund_nty.
- * @memberof game
- * @classdesc Represents a fund_nty.
- * @implements Ifund_nty
- * @constructor
- * @param {game.Ifund_nty=} [properties] Properties to set
- */
- function fund_nty(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * fund_nty moduleid.
- * @member {number|Long} moduleid
- * @memberof game.fund_nty
- * @instance
- */
- fund_nty.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * fund_nty state.
- * @member {boolean} state
- * @memberof game.fund_nty
- * @instance
- */
- fund_nty.prototype.state = false;
- /**
- * fund_nty award.
- * @member {number|Long} award
- * @memberof game.fund_nty
- * @instance
- */
- fund_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * fund_nty freeAward.
- * @member {number|Long} freeAward
- * @memberof game.fund_nty
- * @instance
- */
- fund_nty.prototype.freeAward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * fund_nty progress.
- * @member {number|Long} progress
- * @memberof game.fund_nty
- * @instance
- */
- fund_nty.prototype.progress = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new fund_nty instance using the specified properties.
- * @function create
- * @memberof game.fund_nty
- * @static
- * @param {game.Ifund_nty=} [properties] Properties to set
- * @returns {game.fund_nty} fund_nty instance
- */
- fund_nty.create = function create(properties) {
- return new fund_nty(properties);
- };
- /**
- * Encodes the specified fund_nty message. Does not implicitly {@link game.fund_nty.verify|verify} messages.
- * @function encode
- * @memberof game.fund_nty
- * @static
- * @param {game.Ifund_nty} message fund_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
- if (message.state != null && Object.hasOwnProperty.call(message, "state"))
- writer.uint32(/* id 3, wireType 0 =*/24).bool(message.state);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.award);
- if (message.freeAward != null && Object.hasOwnProperty.call(message, "freeAward"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.freeAward);
- if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
- writer.uint32(/* id 6, wireType 0 =*/48).int64(message.progress);
- return writer;
- };
- /**
- * Encodes the specified fund_nty message, length delimited. Does not implicitly {@link game.fund_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.fund_nty
- * @static
- * @param {game.Ifund_nty} message fund_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- fund_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a fund_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.fund_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.fund_nty} fund_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.moduleid = reader.int64();
- break;
- case 3:
- message.state = reader.bool();
- break;
- case 4:
- message.award = reader.int64();
- break;
- case 5:
- message.freeAward = reader.int64();
- break;
- case 6:
- message.progress = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a fund_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.fund_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.fund_nty} fund_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- fund_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a fund_nty message.
- * @function verify
- * @memberof game.fund_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- fund_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- if (message.state != null && message.hasOwnProperty("state"))
- if (typeof message.state !== "boolean")
- return "state: boolean expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- if (message.freeAward != null && message.hasOwnProperty("freeAward"))
- if (!$util.isInteger(message.freeAward) && !(message.freeAward && $util.isInteger(message.freeAward.low) && $util.isInteger(message.freeAward.high)))
- return "freeAward: integer|Long expected";
- if (message.progress != null && message.hasOwnProperty("progress"))
- if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
- return "progress: integer|Long expected";
- return null;
- };
- /**
- * Creates a fund_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.fund_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.fund_nty} fund_nty
- */
- fund_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.fund_nty)
- return object;
- let message = new $root.game.fund_nty();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- if (object.state != null)
- message.state = Boolean(object.state);
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- if (object.freeAward != null)
- if ($util.Long)
- (message.freeAward = $util.Long.fromValue(object.freeAward)).unsigned = false;
- else if (typeof object.freeAward === "string")
- message.freeAward = parseInt(object.freeAward, 10);
- else if (typeof object.freeAward === "number")
- message.freeAward = object.freeAward;
- else if (typeof object.freeAward === "object")
- message.freeAward = new $util.LongBits(object.freeAward.low >>> 0, object.freeAward.high >>> 0).toNumber();
- if (object.progress != null)
- if ($util.Long)
- (message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
- else if (typeof object.progress === "string")
- message.progress = parseInt(object.progress, 10);
- else if (typeof object.progress === "number")
- message.progress = object.progress;
- else if (typeof object.progress === "object")
- message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a fund_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.fund_nty
- * @static
- * @param {game.fund_nty} message fund_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- fund_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- object.state = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.freeAward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.freeAward = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.progress = options.longs === String ? "0" : 0;
- }
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- if (message.state != null && message.hasOwnProperty("state"))
- object.state = message.state;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- if (message.freeAward != null && message.hasOwnProperty("freeAward"))
- if (typeof message.freeAward === "number")
- object.freeAward = options.longs === String ? String(message.freeAward) : message.freeAward;
- else
- object.freeAward = options.longs === String ? $util.Long.prototype.toString.call(message.freeAward) : options.longs === Number ? new $util.LongBits(message.freeAward.low >>> 0, message.freeAward.high >>> 0).toNumber() : message.freeAward;
- if (message.progress != null && message.hasOwnProperty("progress"))
- if (typeof message.progress === "number")
- object.progress = options.longs === String ? String(message.progress) : message.progress;
- else
- object.progress = options.longs === String ? $util.Long.prototype.toString.call(message.progress) : options.longs === Number ? new $util.LongBits(message.progress.low >>> 0, message.progress.high >>> 0).toNumber() : message.progress;
- return object;
- };
- /**
- * Converts this fund_nty to JSON.
- * @function toJSON
- * @memberof game.fund_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- fund_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return fund_nty;
- })();
- game.keep_recharge_data = (function() {
- /**
- * Properties of a keep_recharge_data.
- * @memberof game
- * @interface Ikeep_recharge_data
- */
- /**
- * Constructs a new keep_recharge_data.
- * @memberof game
- * @classdesc Represents a keep_recharge_data.
- * @implements Ikeep_recharge_data
- * @constructor
- * @param {game.Ikeep_recharge_data=} [properties] Properties to set
- */
- function keep_recharge_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new keep_recharge_data instance using the specified properties.
- * @function create
- * @memberof game.keep_recharge_data
- * @static
- * @param {game.Ikeep_recharge_data=} [properties] Properties to set
- * @returns {game.keep_recharge_data} keep_recharge_data instance
- */
- keep_recharge_data.create = function create(properties) {
- return new keep_recharge_data(properties);
- };
- /**
- * Encodes the specified keep_recharge_data message. Does not implicitly {@link game.keep_recharge_data.verify|verify} messages.
- * @function encode
- * @memberof game.keep_recharge_data
- * @static
- * @param {game.Ikeep_recharge_data} message keep_recharge_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- keep_recharge_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified keep_recharge_data message, length delimited. Does not implicitly {@link game.keep_recharge_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.keep_recharge_data
- * @static
- * @param {game.Ikeep_recharge_data} message keep_recharge_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- keep_recharge_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a keep_recharge_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.keep_recharge_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.keep_recharge_data} keep_recharge_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- keep_recharge_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.keep_recharge_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a keep_recharge_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.keep_recharge_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.keep_recharge_data} keep_recharge_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- keep_recharge_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a keep_recharge_data message.
- * @function verify
- * @memberof game.keep_recharge_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- keep_recharge_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a keep_recharge_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.keep_recharge_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.keep_recharge_data} keep_recharge_data
- */
- keep_recharge_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.keep_recharge_data)
- return object;
- return new $root.game.keep_recharge_data();
- };
- /**
- * Creates a plain object from a keep_recharge_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.keep_recharge_data
- * @static
- * @param {game.keep_recharge_data} message keep_recharge_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- keep_recharge_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this keep_recharge_data to JSON.
- * @function toJSON
- * @memberof game.keep_recharge_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- keep_recharge_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return keep_recharge_data;
- })();
- game.keep_recharge_data_rsp = (function() {
- /**
- * Properties of a keep_recharge_data_rsp.
- * @memberof game
- * @interface Ikeep_recharge_data_rsp
- * @property {number|Long|null} [errno] keep_recharge_data_rsp errno
- * @property {number|Long|null} [day] keep_recharge_data_rsp day
- * @property {number|Long|null} [num] keep_recharge_data_rsp num
- * @property {number|Long|null} [award] keep_recharge_data_rsp award
- */
- /**
- * Constructs a new keep_recharge_data_rsp.
- * @memberof game
- * @classdesc Represents a keep_recharge_data_rsp.
- * @implements Ikeep_recharge_data_rsp
- * @constructor
- * @param {game.Ikeep_recharge_data_rsp=} [properties] Properties to set
- */
- function keep_recharge_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * keep_recharge_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.keep_recharge_data_rsp
- * @instance
- */
- keep_recharge_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * keep_recharge_data_rsp day.
- * @member {number|Long} day
- * @memberof game.keep_recharge_data_rsp
- * @instance
- */
- keep_recharge_data_rsp.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * keep_recharge_data_rsp num.
- * @member {number|Long} num
- * @memberof game.keep_recharge_data_rsp
- * @instance
- */
- keep_recharge_data_rsp.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * keep_recharge_data_rsp award.
- * @member {number|Long} award
- * @memberof game.keep_recharge_data_rsp
- * @instance
- */
- keep_recharge_data_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new keep_recharge_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.keep_recharge_data_rsp
- * @static
- * @param {game.Ikeep_recharge_data_rsp=} [properties] Properties to set
- * @returns {game.keep_recharge_data_rsp} keep_recharge_data_rsp instance
- */
- keep_recharge_data_rsp.create = function create(properties) {
- return new keep_recharge_data_rsp(properties);
- };
- /**
- * Encodes the specified keep_recharge_data_rsp message. Does not implicitly {@link game.keep_recharge_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.keep_recharge_data_rsp
- * @static
- * @param {game.Ikeep_recharge_data_rsp} message keep_recharge_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- keep_recharge_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.day != null && Object.hasOwnProperty.call(message, "day"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.day);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.award);
- return writer;
- };
- /**
- * Encodes the specified keep_recharge_data_rsp message, length delimited. Does not implicitly {@link game.keep_recharge_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.keep_recharge_data_rsp
- * @static
- * @param {game.Ikeep_recharge_data_rsp} message keep_recharge_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- keep_recharge_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a keep_recharge_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.keep_recharge_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.keep_recharge_data_rsp} keep_recharge_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- keep_recharge_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.keep_recharge_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.day = reader.int64();
- break;
- case 3:
- message.num = reader.int64();
- break;
- case 4:
- message.award = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a keep_recharge_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.keep_recharge_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.keep_recharge_data_rsp} keep_recharge_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- keep_recharge_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a keep_recharge_data_rsp message.
- * @function verify
- * @memberof game.keep_recharge_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- keep_recharge_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.day != null && message.hasOwnProperty("day"))
- if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
- return "day: integer|Long expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- return null;
- };
- /**
- * Creates a keep_recharge_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.keep_recharge_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.keep_recharge_data_rsp} keep_recharge_data_rsp
- */
- keep_recharge_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.keep_recharge_data_rsp)
- return object;
- let message = new $root.game.keep_recharge_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.day != null)
- if ($util.Long)
- (message.day = $util.Long.fromValue(object.day)).unsigned = false;
- else if (typeof object.day === "string")
- message.day = parseInt(object.day, 10);
- else if (typeof object.day === "number")
- message.day = object.day;
- else if (typeof object.day === "object")
- message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a keep_recharge_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.keep_recharge_data_rsp
- * @static
- * @param {game.keep_recharge_data_rsp} message keep_recharge_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- keep_recharge_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.day = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.day != null && message.hasOwnProperty("day"))
- if (typeof message.day === "number")
- object.day = options.longs === String ? String(message.day) : message.day;
- else
- object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- return object;
- };
- /**
- * Converts this keep_recharge_data_rsp to JSON.
- * @function toJSON
- * @memberof game.keep_recharge_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- keep_recharge_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return keep_recharge_data_rsp;
- })();
- game.keep_recharge_award = (function() {
- /**
- * Properties of a keep_recharge_award.
- * @memberof game
- * @interface Ikeep_recharge_award
- * @property {number|Long|null} [day] keep_recharge_award day
- */
- /**
- * Constructs a new keep_recharge_award.
- * @memberof game
- * @classdesc Represents a keep_recharge_award.
- * @implements Ikeep_recharge_award
- * @constructor
- * @param {game.Ikeep_recharge_award=} [properties] Properties to set
- */
- function keep_recharge_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * keep_recharge_award day.
- * @member {number|Long} day
- * @memberof game.keep_recharge_award
- * @instance
- */
- keep_recharge_award.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new keep_recharge_award instance using the specified properties.
- * @function create
- * @memberof game.keep_recharge_award
- * @static
- * @param {game.Ikeep_recharge_award=} [properties] Properties to set
- * @returns {game.keep_recharge_award} keep_recharge_award instance
- */
- keep_recharge_award.create = function create(properties) {
- return new keep_recharge_award(properties);
- };
- /**
- * Encodes the specified keep_recharge_award message. Does not implicitly {@link game.keep_recharge_award.verify|verify} messages.
- * @function encode
- * @memberof game.keep_recharge_award
- * @static
- * @param {game.Ikeep_recharge_award} message keep_recharge_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- keep_recharge_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.day != null && Object.hasOwnProperty.call(message, "day"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.day);
- return writer;
- };
- /**
- * Encodes the specified keep_recharge_award message, length delimited. Does not implicitly {@link game.keep_recharge_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.keep_recharge_award
- * @static
- * @param {game.Ikeep_recharge_award} message keep_recharge_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- keep_recharge_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a keep_recharge_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.keep_recharge_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.keep_recharge_award} keep_recharge_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- keep_recharge_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.keep_recharge_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.day = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a keep_recharge_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.keep_recharge_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.keep_recharge_award} keep_recharge_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- keep_recharge_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a keep_recharge_award message.
- * @function verify
- * @memberof game.keep_recharge_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- keep_recharge_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.day != null && message.hasOwnProperty("day"))
- if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
- return "day: integer|Long expected";
- return null;
- };
- /**
- * Creates a keep_recharge_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.keep_recharge_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.keep_recharge_award} keep_recharge_award
- */
- keep_recharge_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.keep_recharge_award)
- return object;
- let message = new $root.game.keep_recharge_award();
- if (object.day != null)
- if ($util.Long)
- (message.day = $util.Long.fromValue(object.day)).unsigned = false;
- else if (typeof object.day === "string")
- message.day = parseInt(object.day, 10);
- else if (typeof object.day === "number")
- message.day = object.day;
- else if (typeof object.day === "object")
- message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a keep_recharge_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.keep_recharge_award
- * @static
- * @param {game.keep_recharge_award} message keep_recharge_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- keep_recharge_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.day = options.longs === String ? "0" : 0;
- if (message.day != null && message.hasOwnProperty("day"))
- if (typeof message.day === "number")
- object.day = options.longs === String ? String(message.day) : message.day;
- else
- object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
- return object;
- };
- /**
- * Converts this keep_recharge_award to JSON.
- * @function toJSON
- * @memberof game.keep_recharge_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- keep_recharge_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return keep_recharge_award;
- })();
- game.keep_recharge_award_rsp = (function() {
- /**
- * Properties of a keep_recharge_award_rsp.
- * @memberof game
- * @interface Ikeep_recharge_award_rsp
- * @property {number|Long|null} [errno] keep_recharge_award_rsp errno
- * @property {number|Long|null} [award] keep_recharge_award_rsp award
- */
- /**
- * Constructs a new keep_recharge_award_rsp.
- * @memberof game
- * @classdesc Represents a keep_recharge_award_rsp.
- * @implements Ikeep_recharge_award_rsp
- * @constructor
- * @param {game.Ikeep_recharge_award_rsp=} [properties] Properties to set
- */
- function keep_recharge_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * keep_recharge_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.keep_recharge_award_rsp
- * @instance
- */
- keep_recharge_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * keep_recharge_award_rsp award.
- * @member {number|Long} award
- * @memberof game.keep_recharge_award_rsp
- * @instance
- */
- keep_recharge_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new keep_recharge_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.keep_recharge_award_rsp
- * @static
- * @param {game.Ikeep_recharge_award_rsp=} [properties] Properties to set
- * @returns {game.keep_recharge_award_rsp} keep_recharge_award_rsp instance
- */
- keep_recharge_award_rsp.create = function create(properties) {
- return new keep_recharge_award_rsp(properties);
- };
- /**
- * Encodes the specified keep_recharge_award_rsp message. Does not implicitly {@link game.keep_recharge_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.keep_recharge_award_rsp
- * @static
- * @param {game.Ikeep_recharge_award_rsp} message keep_recharge_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- keep_recharge_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.award);
- return writer;
- };
- /**
- * Encodes the specified keep_recharge_award_rsp message, length delimited. Does not implicitly {@link game.keep_recharge_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.keep_recharge_award_rsp
- * @static
- * @param {game.Ikeep_recharge_award_rsp} message keep_recharge_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- keep_recharge_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a keep_recharge_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.keep_recharge_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.keep_recharge_award_rsp} keep_recharge_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- keep_recharge_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.keep_recharge_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.award = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a keep_recharge_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.keep_recharge_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.keep_recharge_award_rsp} keep_recharge_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- keep_recharge_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a keep_recharge_award_rsp message.
- * @function verify
- * @memberof game.keep_recharge_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- keep_recharge_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- return null;
- };
- /**
- * Creates a keep_recharge_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.keep_recharge_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.keep_recharge_award_rsp} keep_recharge_award_rsp
- */
- keep_recharge_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.keep_recharge_award_rsp)
- return object;
- let message = new $root.game.keep_recharge_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a keep_recharge_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.keep_recharge_award_rsp
- * @static
- * @param {game.keep_recharge_award_rsp} message keep_recharge_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- keep_recharge_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- return object;
- };
- /**
- * Converts this keep_recharge_award_rsp to JSON.
- * @function toJSON
- * @memberof game.keep_recharge_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- keep_recharge_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return keep_recharge_award_rsp;
- })();
- game.get_red_point_list = (function() {
- /**
- * Properties of a get_red_point_list.
- * @memberof game
- * @interface Iget_red_point_list
- */
- /**
- * Constructs a new get_red_point_list.
- * @memberof game
- * @classdesc Represents a get_red_point_list.
- * @implements Iget_red_point_list
- * @constructor
- * @param {game.Iget_red_point_list=} [properties] Properties to set
- */
- function get_red_point_list(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new get_red_point_list instance using the specified properties.
- * @function create
- * @memberof game.get_red_point_list
- * @static
- * @param {game.Iget_red_point_list=} [properties] Properties to set
- * @returns {game.get_red_point_list} get_red_point_list instance
- */
- get_red_point_list.create = function create(properties) {
- return new get_red_point_list(properties);
- };
- /**
- * Encodes the specified get_red_point_list message. Does not implicitly {@link game.get_red_point_list.verify|verify} messages.
- * @function encode
- * @memberof game.get_red_point_list
- * @static
- * @param {game.Iget_red_point_list} message get_red_point_list message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- get_red_point_list.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified get_red_point_list message, length delimited. Does not implicitly {@link game.get_red_point_list.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.get_red_point_list
- * @static
- * @param {game.Iget_red_point_list} message get_red_point_list message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- get_red_point_list.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a get_red_point_list message from the specified reader or buffer.
- * @function decode
- * @memberof game.get_red_point_list
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.get_red_point_list} get_red_point_list
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- get_red_point_list.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_red_point_list();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a get_red_point_list message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.get_red_point_list
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.get_red_point_list} get_red_point_list
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- get_red_point_list.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a get_red_point_list message.
- * @function verify
- * @memberof game.get_red_point_list
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- get_red_point_list.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a get_red_point_list message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.get_red_point_list
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.get_red_point_list} get_red_point_list
- */
- get_red_point_list.fromObject = function fromObject(object) {
- if (object instanceof $root.game.get_red_point_list)
- return object;
- return new $root.game.get_red_point_list();
- };
- /**
- * Creates a plain object from a get_red_point_list message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.get_red_point_list
- * @static
- * @param {game.get_red_point_list} message get_red_point_list
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- get_red_point_list.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this get_red_point_list to JSON.
- * @function toJSON
- * @memberof game.get_red_point_list
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- get_red_point_list.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return get_red_point_list;
- })();
- game.get_red_point_list_rsp = (function() {
- /**
- * Properties of a get_red_point_list_rsp.
- * @memberof game
- * @interface Iget_red_point_list_rsp
- * @property {number|Long|null} [errno] get_red_point_list_rsp errno
- * @property {Array.<game.Ired_point_info>|null} [list] get_red_point_list_rsp list
- */
- /**
- * Constructs a new get_red_point_list_rsp.
- * @memberof game
- * @classdesc Represents a get_red_point_list_rsp.
- * @implements Iget_red_point_list_rsp
- * @constructor
- * @param {game.Iget_red_point_list_rsp=} [properties] Properties to set
- */
- function get_red_point_list_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * get_red_point_list_rsp errno.
- * @member {number|Long} errno
- * @memberof game.get_red_point_list_rsp
- * @instance
- */
- get_red_point_list_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * get_red_point_list_rsp list.
- * @member {Array.<game.Ired_point_info>} list
- * @memberof game.get_red_point_list_rsp
- * @instance
- */
- get_red_point_list_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new get_red_point_list_rsp instance using the specified properties.
- * @function create
- * @memberof game.get_red_point_list_rsp
- * @static
- * @param {game.Iget_red_point_list_rsp=} [properties] Properties to set
- * @returns {game.get_red_point_list_rsp} get_red_point_list_rsp instance
- */
- get_red_point_list_rsp.create = function create(properties) {
- return new get_red_point_list_rsp(properties);
- };
- /**
- * Encodes the specified get_red_point_list_rsp message. Does not implicitly {@link game.get_red_point_list_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.get_red_point_list_rsp
- * @static
- * @param {game.Iget_red_point_list_rsp} message get_red_point_list_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- get_red_point_list_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.red_point_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified get_red_point_list_rsp message, length delimited. Does not implicitly {@link game.get_red_point_list_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.get_red_point_list_rsp
- * @static
- * @param {game.Iget_red_point_list_rsp} message get_red_point_list_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- get_red_point_list_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a get_red_point_list_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.get_red_point_list_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.get_red_point_list_rsp} get_red_point_list_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- get_red_point_list_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_red_point_list_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.red_point_info.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a get_red_point_list_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.get_red_point_list_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.get_red_point_list_rsp} get_red_point_list_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- get_red_point_list_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a get_red_point_list_rsp message.
- * @function verify
- * @memberof game.get_red_point_list_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- get_red_point_list_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.red_point_info.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a get_red_point_list_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.get_red_point_list_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.get_red_point_list_rsp} get_red_point_list_rsp
- */
- get_red_point_list_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.get_red_point_list_rsp)
- return object;
- let message = new $root.game.get_red_point_list_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.get_red_point_list_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.get_red_point_list_rsp.list: object expected");
- message.list[i] = $root.game.red_point_info.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a get_red_point_list_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.get_red_point_list_rsp
- * @static
- * @param {game.get_red_point_list_rsp} message get_red_point_list_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- get_red_point_list_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.red_point_info.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this get_red_point_list_rsp to JSON.
- * @function toJSON
- * @memberof game.get_red_point_list_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- get_red_point_list_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return get_red_point_list_rsp;
- })();
- game.recharge_result = (function() {
- /**
- * Properties of a recharge_result.
- * @memberof game
- * @interface Irecharge_result
- * @property {string|null} [orderId] recharge_result orderId
- * @property {string|null} [payOrderId] recharge_result payOrderId
- * @property {string|null} [purchaseToken] recharge_result purchaseToken
- * @property {string|null} [payType] recharge_result payType
- * @property {number|Long|null} [cfgId] recharge_result cfgId
- */
- /**
- * Constructs a new recharge_result.
- * @memberof game
- * @classdesc Represents a recharge_result.
- * @implements Irecharge_result
- * @constructor
- * @param {game.Irecharge_result=} [properties] Properties to set
- */
- function recharge_result(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * recharge_result orderId.
- * @member {string} orderId
- * @memberof game.recharge_result
- * @instance
- */
- recharge_result.prototype.orderId = "";
- /**
- * recharge_result payOrderId.
- * @member {string} payOrderId
- * @memberof game.recharge_result
- * @instance
- */
- recharge_result.prototype.payOrderId = "";
- /**
- * recharge_result purchaseToken.
- * @member {string} purchaseToken
- * @memberof game.recharge_result
- * @instance
- */
- recharge_result.prototype.purchaseToken = "";
- /**
- * recharge_result payType.
- * @member {string} payType
- * @memberof game.recharge_result
- * @instance
- */
- recharge_result.prototype.payType = "";
- /**
- * recharge_result cfgId.
- * @member {number|Long} cfgId
- * @memberof game.recharge_result
- * @instance
- */
- recharge_result.prototype.cfgId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new recharge_result instance using the specified properties.
- * @function create
- * @memberof game.recharge_result
- * @static
- * @param {game.Irecharge_result=} [properties] Properties to set
- * @returns {game.recharge_result} recharge_result instance
- */
- recharge_result.create = function create(properties) {
- return new recharge_result(properties);
- };
- /**
- * Encodes the specified recharge_result message. Does not implicitly {@link game.recharge_result.verify|verify} messages.
- * @function encode
- * @memberof game.recharge_result
- * @static
- * @param {game.Irecharge_result} message recharge_result message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- recharge_result.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.orderId != null && Object.hasOwnProperty.call(message, "orderId"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.orderId);
- if (message.payOrderId != null && Object.hasOwnProperty.call(message, "payOrderId"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.payOrderId);
- if (message.purchaseToken != null && Object.hasOwnProperty.call(message, "purchaseToken"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.purchaseToken);
- if (message.payType != null && Object.hasOwnProperty.call(message, "payType"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.payType);
- if (message.cfgId != null && Object.hasOwnProperty.call(message, "cfgId"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.cfgId);
- return writer;
- };
- /**
- * Encodes the specified recharge_result message, length delimited. Does not implicitly {@link game.recharge_result.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.recharge_result
- * @static
- * @param {game.Irecharge_result} message recharge_result message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- recharge_result.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a recharge_result message from the specified reader or buffer.
- * @function decode
- * @memberof game.recharge_result
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.recharge_result} recharge_result
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- recharge_result.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.recharge_result();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.orderId = reader.string();
- break;
- case 2:
- message.payOrderId = reader.string();
- break;
- case 3:
- message.purchaseToken = reader.string();
- break;
- case 4:
- message.payType = reader.string();
- break;
- case 5:
- message.cfgId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a recharge_result message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.recharge_result
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.recharge_result} recharge_result
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- recharge_result.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a recharge_result message.
- * @function verify
- * @memberof game.recharge_result
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- recharge_result.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.orderId != null && message.hasOwnProperty("orderId"))
- if (!$util.isString(message.orderId))
- return "orderId: string expected";
- if (message.payOrderId != null && message.hasOwnProperty("payOrderId"))
- if (!$util.isString(message.payOrderId))
- return "payOrderId: string expected";
- if (message.purchaseToken != null && message.hasOwnProperty("purchaseToken"))
- if (!$util.isString(message.purchaseToken))
- return "purchaseToken: string expected";
- if (message.payType != null && message.hasOwnProperty("payType"))
- if (!$util.isString(message.payType))
- return "payType: string expected";
- if (message.cfgId != null && message.hasOwnProperty("cfgId"))
- if (!$util.isInteger(message.cfgId) && !(message.cfgId && $util.isInteger(message.cfgId.low) && $util.isInteger(message.cfgId.high)))
- return "cfgId: integer|Long expected";
- return null;
- };
- /**
- * Creates a recharge_result message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.recharge_result
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.recharge_result} recharge_result
- */
- recharge_result.fromObject = function fromObject(object) {
- if (object instanceof $root.game.recharge_result)
- return object;
- let message = new $root.game.recharge_result();
- if (object.orderId != null)
- message.orderId = String(object.orderId);
- if (object.payOrderId != null)
- message.payOrderId = String(object.payOrderId);
- if (object.purchaseToken != null)
- message.purchaseToken = String(object.purchaseToken);
- if (object.payType != null)
- message.payType = String(object.payType);
- if (object.cfgId != null)
- if ($util.Long)
- (message.cfgId = $util.Long.fromValue(object.cfgId)).unsigned = false;
- else if (typeof object.cfgId === "string")
- message.cfgId = parseInt(object.cfgId, 10);
- else if (typeof object.cfgId === "number")
- message.cfgId = object.cfgId;
- else if (typeof object.cfgId === "object")
- message.cfgId = new $util.LongBits(object.cfgId.low >>> 0, object.cfgId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a recharge_result message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.recharge_result
- * @static
- * @param {game.recharge_result} message recharge_result
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- recharge_result.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.orderId = "";
- object.payOrderId = "";
- object.purchaseToken = "";
- object.payType = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.cfgId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.cfgId = options.longs === String ? "0" : 0;
- }
- if (message.orderId != null && message.hasOwnProperty("orderId"))
- object.orderId = message.orderId;
- if (message.payOrderId != null && message.hasOwnProperty("payOrderId"))
- object.payOrderId = message.payOrderId;
- if (message.purchaseToken != null && message.hasOwnProperty("purchaseToken"))
- object.purchaseToken = message.purchaseToken;
- if (message.payType != null && message.hasOwnProperty("payType"))
- object.payType = message.payType;
- if (message.cfgId != null && message.hasOwnProperty("cfgId"))
- if (typeof message.cfgId === "number")
- object.cfgId = options.longs === String ? String(message.cfgId) : message.cfgId;
- else
- object.cfgId = options.longs === String ? $util.Long.prototype.toString.call(message.cfgId) : options.longs === Number ? new $util.LongBits(message.cfgId.low >>> 0, message.cfgId.high >>> 0).toNumber() : message.cfgId;
- return object;
- };
- /**
- * Converts this recharge_result to JSON.
- * @function toJSON
- * @memberof game.recharge_result
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- recharge_result.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return recharge_result;
- })();
- game.recharge_result_rsp = (function() {
- /**
- * Properties of a recharge_result_rsp.
- * @memberof game
- * @interface Irecharge_result_rsp
- * @property {number|Long|null} [errno] recharge_result_rsp errno
- */
- /**
- * Constructs a new recharge_result_rsp.
- * @memberof game
- * @classdesc Represents a recharge_result_rsp.
- * @implements Irecharge_result_rsp
- * @constructor
- * @param {game.Irecharge_result_rsp=} [properties] Properties to set
- */
- function recharge_result_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * recharge_result_rsp errno.
- * @member {number|Long} errno
- * @memberof game.recharge_result_rsp
- * @instance
- */
- recharge_result_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new recharge_result_rsp instance using the specified properties.
- * @function create
- * @memberof game.recharge_result_rsp
- * @static
- * @param {game.Irecharge_result_rsp=} [properties] Properties to set
- * @returns {game.recharge_result_rsp} recharge_result_rsp instance
- */
- recharge_result_rsp.create = function create(properties) {
- return new recharge_result_rsp(properties);
- };
- /**
- * Encodes the specified recharge_result_rsp message. Does not implicitly {@link game.recharge_result_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.recharge_result_rsp
- * @static
- * @param {game.Irecharge_result_rsp} message recharge_result_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- recharge_result_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified recharge_result_rsp message, length delimited. Does not implicitly {@link game.recharge_result_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.recharge_result_rsp
- * @static
- * @param {game.Irecharge_result_rsp} message recharge_result_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- recharge_result_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a recharge_result_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.recharge_result_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.recharge_result_rsp} recharge_result_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- recharge_result_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.recharge_result_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a recharge_result_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.recharge_result_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.recharge_result_rsp} recharge_result_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- recharge_result_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a recharge_result_rsp message.
- * @function verify
- * @memberof game.recharge_result_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- recharge_result_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a recharge_result_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.recharge_result_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.recharge_result_rsp} recharge_result_rsp
- */
- recharge_result_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.recharge_result_rsp)
- return object;
- let message = new $root.game.recharge_result_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a recharge_result_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.recharge_result_rsp
- * @static
- * @param {game.recharge_result_rsp} message recharge_result_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- recharge_result_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this recharge_result_rsp to JSON.
- * @function toJSON
- * @memberof game.recharge_result_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- recharge_result_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return recharge_result_rsp;
- })();
- game.recharge_success = (function() {
- /**
- * Properties of a recharge_success.
- * @memberof game
- * @interface Irecharge_success
- * @property {string|null} [id] recharge_success id
- */
- /**
- * Constructs a new recharge_success.
- * @memberof game
- * @classdesc Represents a recharge_success.
- * @implements Irecharge_success
- * @constructor
- * @param {game.Irecharge_success=} [properties] Properties to set
- */
- function recharge_success(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * recharge_success id.
- * @member {string} id
- * @memberof game.recharge_success
- * @instance
- */
- recharge_success.prototype.id = "";
- /**
- * Creates a new recharge_success instance using the specified properties.
- * @function create
- * @memberof game.recharge_success
- * @static
- * @param {game.Irecharge_success=} [properties] Properties to set
- * @returns {game.recharge_success} recharge_success instance
- */
- recharge_success.create = function create(properties) {
- return new recharge_success(properties);
- };
- /**
- * Encodes the specified recharge_success message. Does not implicitly {@link game.recharge_success.verify|verify} messages.
- * @function encode
- * @memberof game.recharge_success
- * @static
- * @param {game.Irecharge_success} message recharge_success message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- recharge_success.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
- return writer;
- };
- /**
- * Encodes the specified recharge_success message, length delimited. Does not implicitly {@link game.recharge_success.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.recharge_success
- * @static
- * @param {game.Irecharge_success} message recharge_success message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- recharge_success.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a recharge_success message from the specified reader or buffer.
- * @function decode
- * @memberof game.recharge_success
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.recharge_success} recharge_success
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- recharge_success.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.recharge_success();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a recharge_success message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.recharge_success
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.recharge_success} recharge_success
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- recharge_success.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a recharge_success message.
- * @function verify
- * @memberof game.recharge_success
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- recharge_success.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isString(message.id))
- return "id: string expected";
- return null;
- };
- /**
- * Creates a recharge_success message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.recharge_success
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.recharge_success} recharge_success
- */
- recharge_success.fromObject = function fromObject(object) {
- if (object instanceof $root.game.recharge_success)
- return object;
- let message = new $root.game.recharge_success();
- if (object.id != null)
- message.id = String(object.id);
- return message;
- };
- /**
- * Creates a plain object from a recharge_success message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.recharge_success
- * @static
- * @param {game.recharge_success} message recharge_success
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- recharge_success.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- object.id = "";
- if (message.id != null && message.hasOwnProperty("id"))
- object.id = message.id;
- return object;
- };
- /**
- * Converts this recharge_success to JSON.
- * @function toJSON
- * @memberof game.recharge_success
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- recharge_success.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return recharge_success;
- })();
- game.online_award_get_award = (function() {
- /**
- * Properties of an online_award_get_award.
- * @memberof game
- * @interface Ionline_award_get_award
- * @property {number|Long|null} [pos] online_award_get_award pos
- */
- /**
- * Constructs a new online_award_get_award.
- * @memberof game
- * @classdesc Represents an online_award_get_award.
- * @implements Ionline_award_get_award
- * @constructor
- * @param {game.Ionline_award_get_award=} [properties] Properties to set
- */
- function online_award_get_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * online_award_get_award pos.
- * @member {number|Long} pos
- * @memberof game.online_award_get_award
- * @instance
- */
- online_award_get_award.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new online_award_get_award instance using the specified properties.
- * @function create
- * @memberof game.online_award_get_award
- * @static
- * @param {game.Ionline_award_get_award=} [properties] Properties to set
- * @returns {game.online_award_get_award} online_award_get_award instance
- */
- online_award_get_award.create = function create(properties) {
- return new online_award_get_award(properties);
- };
- /**
- * Encodes the specified online_award_get_award message. Does not implicitly {@link game.online_award_get_award.verify|verify} messages.
- * @function encode
- * @memberof game.online_award_get_award
- * @static
- * @param {game.Ionline_award_get_award} message online_award_get_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- online_award_get_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
- return writer;
- };
- /**
- * Encodes the specified online_award_get_award message, length delimited. Does not implicitly {@link game.online_award_get_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.online_award_get_award
- * @static
- * @param {game.Ionline_award_get_award} message online_award_get_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- online_award_get_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an online_award_get_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.online_award_get_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.online_award_get_award} online_award_get_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- online_award_get_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_get_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.pos = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an online_award_get_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.online_award_get_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.online_award_get_award} online_award_get_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- online_award_get_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an online_award_get_award message.
- * @function verify
- * @memberof game.online_award_get_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- online_award_get_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- return null;
- };
- /**
- * Creates an online_award_get_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.online_award_get_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.online_award_get_award} online_award_get_award
- */
- online_award_get_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.online_award_get_award)
- return object;
- let message = new $root.game.online_award_get_award();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an online_award_get_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.online_award_get_award
- * @static
- * @param {game.online_award_get_award} message online_award_get_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- online_award_get_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- return object;
- };
- /**
- * Converts this online_award_get_award to JSON.
- * @function toJSON
- * @memberof game.online_award_get_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- online_award_get_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return online_award_get_award;
- })();
- game.online_award_get_award_rsp = (function() {
- /**
- * Properties of an online_award_get_award_rsp.
- * @memberof game
- * @interface Ionline_award_get_award_rsp
- * @property {number|Long|null} [errno] online_award_get_award_rsp errno
- * @property {number|Long|null} [award] online_award_get_award_rsp award
- */
- /**
- * Constructs a new online_award_get_award_rsp.
- * @memberof game
- * @classdesc Represents an online_award_get_award_rsp.
- * @implements Ionline_award_get_award_rsp
- * @constructor
- * @param {game.Ionline_award_get_award_rsp=} [properties] Properties to set
- */
- function online_award_get_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * online_award_get_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.online_award_get_award_rsp
- * @instance
- */
- online_award_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * online_award_get_award_rsp award.
- * @member {number|Long} award
- * @memberof game.online_award_get_award_rsp
- * @instance
- */
- online_award_get_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new online_award_get_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.online_award_get_award_rsp
- * @static
- * @param {game.Ionline_award_get_award_rsp=} [properties] Properties to set
- * @returns {game.online_award_get_award_rsp} online_award_get_award_rsp instance
- */
- online_award_get_award_rsp.create = function create(properties) {
- return new online_award_get_award_rsp(properties);
- };
- /**
- * Encodes the specified online_award_get_award_rsp message. Does not implicitly {@link game.online_award_get_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.online_award_get_award_rsp
- * @static
- * @param {game.Ionline_award_get_award_rsp} message online_award_get_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- online_award_get_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.award);
- return writer;
- };
- /**
- * Encodes the specified online_award_get_award_rsp message, length delimited. Does not implicitly {@link game.online_award_get_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.online_award_get_award_rsp
- * @static
- * @param {game.Ionline_award_get_award_rsp} message online_award_get_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- online_award_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an online_award_get_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.online_award_get_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.online_award_get_award_rsp} online_award_get_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- online_award_get_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_get_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.award = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an online_award_get_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.online_award_get_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.online_award_get_award_rsp} online_award_get_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- online_award_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an online_award_get_award_rsp message.
- * @function verify
- * @memberof game.online_award_get_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- online_award_get_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- return null;
- };
- /**
- * Creates an online_award_get_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.online_award_get_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.online_award_get_award_rsp} online_award_get_award_rsp
- */
- online_award_get_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.online_award_get_award_rsp)
- return object;
- let message = new $root.game.online_award_get_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an online_award_get_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.online_award_get_award_rsp
- * @static
- * @param {game.online_award_get_award_rsp} message online_award_get_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- online_award_get_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- return object;
- };
- /**
- * Converts this online_award_get_award_rsp to JSON.
- * @function toJSON
- * @memberof game.online_award_get_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- online_award_get_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return online_award_get_award_rsp;
- })();
- game.online_award_get_data = (function() {
- /**
- * Properties of an online_award_get_data.
- * @memberof game
- * @interface Ionline_award_get_data
- */
- /**
- * Constructs a new online_award_get_data.
- * @memberof game
- * @classdesc Represents an online_award_get_data.
- * @implements Ionline_award_get_data
- * @constructor
- * @param {game.Ionline_award_get_data=} [properties] Properties to set
- */
- function online_award_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new online_award_get_data instance using the specified properties.
- * @function create
- * @memberof game.online_award_get_data
- * @static
- * @param {game.Ionline_award_get_data=} [properties] Properties to set
- * @returns {game.online_award_get_data} online_award_get_data instance
- */
- online_award_get_data.create = function create(properties) {
- return new online_award_get_data(properties);
- };
- /**
- * Encodes the specified online_award_get_data message. Does not implicitly {@link game.online_award_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.online_award_get_data
- * @static
- * @param {game.Ionline_award_get_data} message online_award_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- online_award_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified online_award_get_data message, length delimited. Does not implicitly {@link game.online_award_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.online_award_get_data
- * @static
- * @param {game.Ionline_award_get_data} message online_award_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- online_award_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an online_award_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.online_award_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.online_award_get_data} online_award_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- online_award_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an online_award_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.online_award_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.online_award_get_data} online_award_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- online_award_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an online_award_get_data message.
- * @function verify
- * @memberof game.online_award_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- online_award_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates an online_award_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.online_award_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.online_award_get_data} online_award_get_data
- */
- online_award_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.online_award_get_data)
- return object;
- return new $root.game.online_award_get_data();
- };
- /**
- * Creates a plain object from an online_award_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.online_award_get_data
- * @static
- * @param {game.online_award_get_data} message online_award_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- online_award_get_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this online_award_get_data to JSON.
- * @function toJSON
- * @memberof game.online_award_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- online_award_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return online_award_get_data;
- })();
- game.online_award_get_data_rsp = (function() {
- /**
- * Properties of an online_award_get_data_rsp.
- * @memberof game
- * @interface Ionline_award_get_data_rsp
- * @property {number|Long|null} [errno] online_award_get_data_rsp errno
- */
- /**
- * Constructs a new online_award_get_data_rsp.
- * @memberof game
- * @classdesc Represents an online_award_get_data_rsp.
- * @implements Ionline_award_get_data_rsp
- * @constructor
- * @param {game.Ionline_award_get_data_rsp=} [properties] Properties to set
- */
- function online_award_get_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * online_award_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.online_award_get_data_rsp
- * @instance
- */
- online_award_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new online_award_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.online_award_get_data_rsp
- * @static
- * @param {game.Ionline_award_get_data_rsp=} [properties] Properties to set
- * @returns {game.online_award_get_data_rsp} online_award_get_data_rsp instance
- */
- online_award_get_data_rsp.create = function create(properties) {
- return new online_award_get_data_rsp(properties);
- };
- /**
- * Encodes the specified online_award_get_data_rsp message. Does not implicitly {@link game.online_award_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.online_award_get_data_rsp
- * @static
- * @param {game.Ionline_award_get_data_rsp} message online_award_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- online_award_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified online_award_get_data_rsp message, length delimited. Does not implicitly {@link game.online_award_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.online_award_get_data_rsp
- * @static
- * @param {game.Ionline_award_get_data_rsp} message online_award_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- online_award_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an online_award_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.online_award_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.online_award_get_data_rsp} online_award_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- online_award_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an online_award_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.online_award_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.online_award_get_data_rsp} online_award_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- online_award_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an online_award_get_data_rsp message.
- * @function verify
- * @memberof game.online_award_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- online_award_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates an online_award_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.online_award_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.online_award_get_data_rsp} online_award_get_data_rsp
- */
- online_award_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.online_award_get_data_rsp)
- return object;
- let message = new $root.game.online_award_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an online_award_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.online_award_get_data_rsp
- * @static
- * @param {game.online_award_get_data_rsp} message online_award_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- online_award_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this online_award_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.online_award_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- online_award_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return online_award_get_data_rsp;
- })();
- game.online_award_nty = (function() {
- /**
- * Properties of an online_award_nty.
- * @memberof game
- * @interface Ionline_award_nty
- * @property {boolean|null} [open] online_award_nty open
- * @property {number|Long|null} [time] online_award_nty time
- * @property {number|Long|null} [award] online_award_nty award
- */
- /**
- * Constructs a new online_award_nty.
- * @memberof game
- * @classdesc Represents an online_award_nty.
- * @implements Ionline_award_nty
- * @constructor
- * @param {game.Ionline_award_nty=} [properties] Properties to set
- */
- function online_award_nty(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * online_award_nty open.
- * @member {boolean} open
- * @memberof game.online_award_nty
- * @instance
- */
- online_award_nty.prototype.open = false;
- /**
- * online_award_nty time.
- * @member {number|Long} time
- * @memberof game.online_award_nty
- * @instance
- */
- online_award_nty.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * online_award_nty award.
- * @member {number|Long} award
- * @memberof game.online_award_nty
- * @instance
- */
- online_award_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new online_award_nty instance using the specified properties.
- * @function create
- * @memberof game.online_award_nty
- * @static
- * @param {game.Ionline_award_nty=} [properties] Properties to set
- * @returns {game.online_award_nty} online_award_nty instance
- */
- online_award_nty.create = function create(properties) {
- return new online_award_nty(properties);
- };
- /**
- * Encodes the specified online_award_nty message. Does not implicitly {@link game.online_award_nty.verify|verify} messages.
- * @function encode
- * @memberof game.online_award_nty
- * @static
- * @param {game.Ionline_award_nty} message online_award_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- online_award_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.open != null && Object.hasOwnProperty.call(message, "open"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.open);
- if (message.time != null && Object.hasOwnProperty.call(message, "time"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
- return writer;
- };
- /**
- * Encodes the specified online_award_nty message, length delimited. Does not implicitly {@link game.online_award_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.online_award_nty
- * @static
- * @param {game.Ionline_award_nty} message online_award_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- online_award_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an online_award_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.online_award_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.online_award_nty} online_award_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- online_award_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.open = reader.bool();
- break;
- case 2:
- message.time = reader.int64();
- break;
- case 3:
- message.award = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an online_award_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.online_award_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.online_award_nty} online_award_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- online_award_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an online_award_nty message.
- * @function verify
- * @memberof game.online_award_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- online_award_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.open != null && message.hasOwnProperty("open"))
- if (typeof message.open !== "boolean")
- return "open: boolean expected";
- if (message.time != null && message.hasOwnProperty("time"))
- if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
- return "time: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- return null;
- };
- /**
- * Creates an online_award_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.online_award_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.online_award_nty} online_award_nty
- */
- online_award_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.online_award_nty)
- return object;
- let message = new $root.game.online_award_nty();
- if (object.open != null)
- message.open = Boolean(object.open);
- if (object.time != null)
- if ($util.Long)
- (message.time = $util.Long.fromValue(object.time)).unsigned = false;
- else if (typeof object.time === "string")
- message.time = parseInt(object.time, 10);
- else if (typeof object.time === "number")
- message.time = object.time;
- else if (typeof object.time === "object")
- message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an online_award_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.online_award_nty
- * @static
- * @param {game.online_award_nty} message online_award_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- online_award_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.open = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.time = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- }
- if (message.open != null && message.hasOwnProperty("open"))
- object.open = message.open;
- if (message.time != null && message.hasOwnProperty("time"))
- if (typeof message.time === "number")
- object.time = options.longs === String ? String(message.time) : message.time;
- else
- object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- return object;
- };
- /**
- * Converts this online_award_nty to JSON.
- * @function toJSON
- * @memberof game.online_award_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- online_award_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return online_award_nty;
- })();
- game.speed_up_data = (function() {
- /**
- * Properties of a speed_up_data.
- * @memberof game
- * @interface Ispeed_up_data
- */
- /**
- * Constructs a new speed_up_data.
- * @memberof game
- * @classdesc Represents a speed_up_data.
- * @implements Ispeed_up_data
- * @constructor
- * @param {game.Ispeed_up_data=} [properties] Properties to set
- */
- function speed_up_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new speed_up_data instance using the specified properties.
- * @function create
- * @memberof game.speed_up_data
- * @static
- * @param {game.Ispeed_up_data=} [properties] Properties to set
- * @returns {game.speed_up_data} speed_up_data instance
- */
- speed_up_data.create = function create(properties) {
- return new speed_up_data(properties);
- };
- /**
- * Encodes the specified speed_up_data message. Does not implicitly {@link game.speed_up_data.verify|verify} messages.
- * @function encode
- * @memberof game.speed_up_data
- * @static
- * @param {game.Ispeed_up_data} message speed_up_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- speed_up_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified speed_up_data message, length delimited. Does not implicitly {@link game.speed_up_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.speed_up_data
- * @static
- * @param {game.Ispeed_up_data} message speed_up_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- speed_up_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a speed_up_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.speed_up_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.speed_up_data} speed_up_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- speed_up_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.speed_up_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a speed_up_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.speed_up_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.speed_up_data} speed_up_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- speed_up_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a speed_up_data message.
- * @function verify
- * @memberof game.speed_up_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- speed_up_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a speed_up_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.speed_up_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.speed_up_data} speed_up_data
- */
- speed_up_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.speed_up_data)
- return object;
- return new $root.game.speed_up_data();
- };
- /**
- * Creates a plain object from a speed_up_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.speed_up_data
- * @static
- * @param {game.speed_up_data} message speed_up_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- speed_up_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this speed_up_data to JSON.
- * @function toJSON
- * @memberof game.speed_up_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- speed_up_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return speed_up_data;
- })();
- game.speed_up_data_rsp = (function() {
- /**
- * Properties of a speed_up_data_rsp.
- * @memberof game
- * @interface Ispeed_up_data_rsp
- * @property {number|Long|null} [errno] speed_up_data_rsp errno
- * @property {number|Long|null} [time] speed_up_data_rsp time
- */
- /**
- * Constructs a new speed_up_data_rsp.
- * @memberof game
- * @classdesc Represents a speed_up_data_rsp.
- * @implements Ispeed_up_data_rsp
- * @constructor
- * @param {game.Ispeed_up_data_rsp=} [properties] Properties to set
- */
- function speed_up_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * speed_up_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.speed_up_data_rsp
- * @instance
- */
- speed_up_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * speed_up_data_rsp time.
- * @member {number|Long} time
- * @memberof game.speed_up_data_rsp
- * @instance
- */
- speed_up_data_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new speed_up_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.speed_up_data_rsp
- * @static
- * @param {game.Ispeed_up_data_rsp=} [properties] Properties to set
- * @returns {game.speed_up_data_rsp} speed_up_data_rsp instance
- */
- speed_up_data_rsp.create = function create(properties) {
- return new speed_up_data_rsp(properties);
- };
- /**
- * Encodes the specified speed_up_data_rsp message. Does not implicitly {@link game.speed_up_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.speed_up_data_rsp
- * @static
- * @param {game.Ispeed_up_data_rsp} message speed_up_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- speed_up_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.time != null && Object.hasOwnProperty.call(message, "time"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time);
- return writer;
- };
- /**
- * Encodes the specified speed_up_data_rsp message, length delimited. Does not implicitly {@link game.speed_up_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.speed_up_data_rsp
- * @static
- * @param {game.Ispeed_up_data_rsp} message speed_up_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- speed_up_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a speed_up_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.speed_up_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.speed_up_data_rsp} speed_up_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- speed_up_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.speed_up_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.time = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a speed_up_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.speed_up_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.speed_up_data_rsp} speed_up_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- speed_up_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a speed_up_data_rsp message.
- * @function verify
- * @memberof game.speed_up_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- speed_up_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.time != null && message.hasOwnProperty("time"))
- if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
- return "time: integer|Long expected";
- return null;
- };
- /**
- * Creates a speed_up_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.speed_up_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.speed_up_data_rsp} speed_up_data_rsp
- */
- speed_up_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.speed_up_data_rsp)
- return object;
- let message = new $root.game.speed_up_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.time != null)
- if ($util.Long)
- (message.time = $util.Long.fromValue(object.time)).unsigned = false;
- else if (typeof object.time === "string")
- message.time = parseInt(object.time, 10);
- else if (typeof object.time === "number")
- message.time = object.time;
- else if (typeof object.time === "object")
- message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a speed_up_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.speed_up_data_rsp
- * @static
- * @param {game.speed_up_data_rsp} message speed_up_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- speed_up_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.time = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.time != null && message.hasOwnProperty("time"))
- if (typeof message.time === "number")
- object.time = options.longs === String ? String(message.time) : message.time;
- else
- object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
- return object;
- };
- /**
- * Converts this speed_up_data_rsp to JSON.
- * @function toJSON
- * @memberof game.speed_up_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- speed_up_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return speed_up_data_rsp;
- })();
- game.speed_up_buy = (function() {
- /**
- * Properties of a speed_up_buy.
- * @memberof game
- * @interface Ispeed_up_buy
- * @property {boolean|null} [free] speed_up_buy free
- */
- /**
- * Constructs a new speed_up_buy.
- * @memberof game
- * @classdesc Represents a speed_up_buy.
- * @implements Ispeed_up_buy
- * @constructor
- * @param {game.Ispeed_up_buy=} [properties] Properties to set
- */
- function speed_up_buy(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * speed_up_buy free.
- * @member {boolean} free
- * @memberof game.speed_up_buy
- * @instance
- */
- speed_up_buy.prototype.free = false;
- /**
- * Creates a new speed_up_buy instance using the specified properties.
- * @function create
- * @memberof game.speed_up_buy
- * @static
- * @param {game.Ispeed_up_buy=} [properties] Properties to set
- * @returns {game.speed_up_buy} speed_up_buy instance
- */
- speed_up_buy.create = function create(properties) {
- return new speed_up_buy(properties);
- };
- /**
- * Encodes the specified speed_up_buy message. Does not implicitly {@link game.speed_up_buy.verify|verify} messages.
- * @function encode
- * @memberof game.speed_up_buy
- * @static
- * @param {game.Ispeed_up_buy} message speed_up_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- speed_up_buy.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.free != null && Object.hasOwnProperty.call(message, "free"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.free);
- return writer;
- };
- /**
- * Encodes the specified speed_up_buy message, length delimited. Does not implicitly {@link game.speed_up_buy.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.speed_up_buy
- * @static
- * @param {game.Ispeed_up_buy} message speed_up_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- speed_up_buy.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a speed_up_buy message from the specified reader or buffer.
- * @function decode
- * @memberof game.speed_up_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.speed_up_buy} speed_up_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- speed_up_buy.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.speed_up_buy();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.free = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a speed_up_buy message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.speed_up_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.speed_up_buy} speed_up_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- speed_up_buy.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a speed_up_buy message.
- * @function verify
- * @memberof game.speed_up_buy
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- speed_up_buy.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.free != null && message.hasOwnProperty("free"))
- if (typeof message.free !== "boolean")
- return "free: boolean expected";
- return null;
- };
- /**
- * Creates a speed_up_buy message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.speed_up_buy
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.speed_up_buy} speed_up_buy
- */
- speed_up_buy.fromObject = function fromObject(object) {
- if (object instanceof $root.game.speed_up_buy)
- return object;
- let message = new $root.game.speed_up_buy();
- if (object.free != null)
- message.free = Boolean(object.free);
- return message;
- };
- /**
- * Creates a plain object from a speed_up_buy message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.speed_up_buy
- * @static
- * @param {game.speed_up_buy} message speed_up_buy
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- speed_up_buy.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- object.free = false;
- if (message.free != null && message.hasOwnProperty("free"))
- object.free = message.free;
- return object;
- };
- /**
- * Converts this speed_up_buy to JSON.
- * @function toJSON
- * @memberof game.speed_up_buy
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- speed_up_buy.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return speed_up_buy;
- })();
- game.speed_up_buy_rsp = (function() {
- /**
- * Properties of a speed_up_buy_rsp.
- * @memberof game
- * @interface Ispeed_up_buy_rsp
- * @property {number|Long|null} [errno] speed_up_buy_rsp errno
- * @property {number|Long|null} [time] speed_up_buy_rsp time
- */
- /**
- * Constructs a new speed_up_buy_rsp.
- * @memberof game
- * @classdesc Represents a speed_up_buy_rsp.
- * @implements Ispeed_up_buy_rsp
- * @constructor
- * @param {game.Ispeed_up_buy_rsp=} [properties] Properties to set
- */
- function speed_up_buy_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * speed_up_buy_rsp errno.
- * @member {number|Long} errno
- * @memberof game.speed_up_buy_rsp
- * @instance
- */
- speed_up_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * speed_up_buy_rsp time.
- * @member {number|Long} time
- * @memberof game.speed_up_buy_rsp
- * @instance
- */
- speed_up_buy_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new speed_up_buy_rsp instance using the specified properties.
- * @function create
- * @memberof game.speed_up_buy_rsp
- * @static
- * @param {game.Ispeed_up_buy_rsp=} [properties] Properties to set
- * @returns {game.speed_up_buy_rsp} speed_up_buy_rsp instance
- */
- speed_up_buy_rsp.create = function create(properties) {
- return new speed_up_buy_rsp(properties);
- };
- /**
- * Encodes the specified speed_up_buy_rsp message. Does not implicitly {@link game.speed_up_buy_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.speed_up_buy_rsp
- * @static
- * @param {game.Ispeed_up_buy_rsp} message speed_up_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- speed_up_buy_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.time != null && Object.hasOwnProperty.call(message, "time"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time);
- return writer;
- };
- /**
- * Encodes the specified speed_up_buy_rsp message, length delimited. Does not implicitly {@link game.speed_up_buy_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.speed_up_buy_rsp
- * @static
- * @param {game.Ispeed_up_buy_rsp} message speed_up_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- speed_up_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a speed_up_buy_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.speed_up_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.speed_up_buy_rsp} speed_up_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- speed_up_buy_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.speed_up_buy_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.time = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a speed_up_buy_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.speed_up_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.speed_up_buy_rsp} speed_up_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- speed_up_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a speed_up_buy_rsp message.
- * @function verify
- * @memberof game.speed_up_buy_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- speed_up_buy_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.time != null && message.hasOwnProperty("time"))
- if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
- return "time: integer|Long expected";
- return null;
- };
- /**
- * Creates a speed_up_buy_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.speed_up_buy_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.speed_up_buy_rsp} speed_up_buy_rsp
- */
- speed_up_buy_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.speed_up_buy_rsp)
- return object;
- let message = new $root.game.speed_up_buy_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.time != null)
- if ($util.Long)
- (message.time = $util.Long.fromValue(object.time)).unsigned = false;
- else if (typeof object.time === "string")
- message.time = parseInt(object.time, 10);
- else if (typeof object.time === "number")
- message.time = object.time;
- else if (typeof object.time === "object")
- message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a speed_up_buy_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.speed_up_buy_rsp
- * @static
- * @param {game.speed_up_buy_rsp} message speed_up_buy_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- speed_up_buy_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.time = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.time != null && message.hasOwnProperty("time"))
- if (typeof message.time === "number")
- object.time = options.longs === String ? String(message.time) : message.time;
- else
- object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
- return object;
- };
- /**
- * Converts this speed_up_buy_rsp to JSON.
- * @function toJSON
- * @memberof game.speed_up_buy_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- speed_up_buy_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return speed_up_buy_rsp;
- })();
- game.city_skill_upgrade = (function() {
- /**
- * Properties of a city_skill_upgrade.
- * @memberof game
- * @interface Icity_skill_upgrade
- * @property {number|Long|null} [id] city_skill_upgrade id
- */
- /**
- * Constructs a new city_skill_upgrade.
- * @memberof game
- * @classdesc Represents a city_skill_upgrade.
- * @implements Icity_skill_upgrade
- * @constructor
- * @param {game.Icity_skill_upgrade=} [properties] Properties to set
- */
- function city_skill_upgrade(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * city_skill_upgrade id.
- * @member {number|Long} id
- * @memberof game.city_skill_upgrade
- * @instance
- */
- city_skill_upgrade.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new city_skill_upgrade instance using the specified properties.
- * @function create
- * @memberof game.city_skill_upgrade
- * @static
- * @param {game.Icity_skill_upgrade=} [properties] Properties to set
- * @returns {game.city_skill_upgrade} city_skill_upgrade instance
- */
- city_skill_upgrade.create = function create(properties) {
- return new city_skill_upgrade(properties);
- };
- /**
- * Encodes the specified city_skill_upgrade message. Does not implicitly {@link game.city_skill_upgrade.verify|verify} messages.
- * @function encode
- * @memberof game.city_skill_upgrade
- * @static
- * @param {game.Icity_skill_upgrade} message city_skill_upgrade message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_skill_upgrade.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified city_skill_upgrade message, length delimited. Does not implicitly {@link game.city_skill_upgrade.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.city_skill_upgrade
- * @static
- * @param {game.Icity_skill_upgrade} message city_skill_upgrade message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_skill_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a city_skill_upgrade message from the specified reader or buffer.
- * @function decode
- * @memberof game.city_skill_upgrade
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.city_skill_upgrade} city_skill_upgrade
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_skill_upgrade.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_skill_upgrade();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a city_skill_upgrade message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.city_skill_upgrade
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.city_skill_upgrade} city_skill_upgrade
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_skill_upgrade.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a city_skill_upgrade message.
- * @function verify
- * @memberof game.city_skill_upgrade
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- city_skill_upgrade.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a city_skill_upgrade message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.city_skill_upgrade
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.city_skill_upgrade} city_skill_upgrade
- */
- city_skill_upgrade.fromObject = function fromObject(object) {
- if (object instanceof $root.game.city_skill_upgrade)
- return object;
- let message = new $root.game.city_skill_upgrade();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a city_skill_upgrade message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.city_skill_upgrade
- * @static
- * @param {game.city_skill_upgrade} message city_skill_upgrade
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- city_skill_upgrade.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this city_skill_upgrade to JSON.
- * @function toJSON
- * @memberof game.city_skill_upgrade
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- city_skill_upgrade.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return city_skill_upgrade;
- })();
- game.city_skill_upgrade_rsp = (function() {
- /**
- * Properties of a city_skill_upgrade_rsp.
- * @memberof game
- * @interface Icity_skill_upgrade_rsp
- * @property {number|Long|null} [errno] city_skill_upgrade_rsp errno
- * @property {number|Long|null} [id] city_skill_upgrade_rsp id
- */
- /**
- * Constructs a new city_skill_upgrade_rsp.
- * @memberof game
- * @classdesc Represents a city_skill_upgrade_rsp.
- * @implements Icity_skill_upgrade_rsp
- * @constructor
- * @param {game.Icity_skill_upgrade_rsp=} [properties] Properties to set
- */
- function city_skill_upgrade_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * city_skill_upgrade_rsp errno.
- * @member {number|Long} errno
- * @memberof game.city_skill_upgrade_rsp
- * @instance
- */
- city_skill_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * city_skill_upgrade_rsp id.
- * @member {number|Long} id
- * @memberof game.city_skill_upgrade_rsp
- * @instance
- */
- city_skill_upgrade_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new city_skill_upgrade_rsp instance using the specified properties.
- * @function create
- * @memberof game.city_skill_upgrade_rsp
- * @static
- * @param {game.Icity_skill_upgrade_rsp=} [properties] Properties to set
- * @returns {game.city_skill_upgrade_rsp} city_skill_upgrade_rsp instance
- */
- city_skill_upgrade_rsp.create = function create(properties) {
- return new city_skill_upgrade_rsp(properties);
- };
- /**
- * Encodes the specified city_skill_upgrade_rsp message. Does not implicitly {@link game.city_skill_upgrade_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.city_skill_upgrade_rsp
- * @static
- * @param {game.Icity_skill_upgrade_rsp} message city_skill_upgrade_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_skill_upgrade_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified city_skill_upgrade_rsp message, length delimited. Does not implicitly {@link game.city_skill_upgrade_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.city_skill_upgrade_rsp
- * @static
- * @param {game.Icity_skill_upgrade_rsp} message city_skill_upgrade_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_skill_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a city_skill_upgrade_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.city_skill_upgrade_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.city_skill_upgrade_rsp} city_skill_upgrade_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_skill_upgrade_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_skill_upgrade_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a city_skill_upgrade_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.city_skill_upgrade_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.city_skill_upgrade_rsp} city_skill_upgrade_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_skill_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a city_skill_upgrade_rsp message.
- * @function verify
- * @memberof game.city_skill_upgrade_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- city_skill_upgrade_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a city_skill_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.city_skill_upgrade_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.city_skill_upgrade_rsp} city_skill_upgrade_rsp
- */
- city_skill_upgrade_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.city_skill_upgrade_rsp)
- return object;
- let message = new $root.game.city_skill_upgrade_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a city_skill_upgrade_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.city_skill_upgrade_rsp
- * @static
- * @param {game.city_skill_upgrade_rsp} message city_skill_upgrade_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- city_skill_upgrade_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this city_skill_upgrade_rsp to JSON.
- * @function toJSON
- * @memberof game.city_skill_upgrade_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- city_skill_upgrade_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return city_skill_upgrade_rsp;
- })();
- game.city_skill_battle = (function() {
- /**
- * Properties of a city_skill_battle.
- * @memberof game
- * @interface Icity_skill_battle
- * @property {number|Long|null} [id] city_skill_battle id
- */
- /**
- * Constructs a new city_skill_battle.
- * @memberof game
- * @classdesc Represents a city_skill_battle.
- * @implements Icity_skill_battle
- * @constructor
- * @param {game.Icity_skill_battle=} [properties] Properties to set
- */
- function city_skill_battle(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * city_skill_battle id.
- * @member {number|Long} id
- * @memberof game.city_skill_battle
- * @instance
- */
- city_skill_battle.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new city_skill_battle instance using the specified properties.
- * @function create
- * @memberof game.city_skill_battle
- * @static
- * @param {game.Icity_skill_battle=} [properties] Properties to set
- * @returns {game.city_skill_battle} city_skill_battle instance
- */
- city_skill_battle.create = function create(properties) {
- return new city_skill_battle(properties);
- };
- /**
- * Encodes the specified city_skill_battle message. Does not implicitly {@link game.city_skill_battle.verify|verify} messages.
- * @function encode
- * @memberof game.city_skill_battle
- * @static
- * @param {game.Icity_skill_battle} message city_skill_battle message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_skill_battle.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified city_skill_battle message, length delimited. Does not implicitly {@link game.city_skill_battle.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.city_skill_battle
- * @static
- * @param {game.Icity_skill_battle} message city_skill_battle message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_skill_battle.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a city_skill_battle message from the specified reader or buffer.
- * @function decode
- * @memberof game.city_skill_battle
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.city_skill_battle} city_skill_battle
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_skill_battle.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_skill_battle();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a city_skill_battle message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.city_skill_battle
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.city_skill_battle} city_skill_battle
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_skill_battle.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a city_skill_battle message.
- * @function verify
- * @memberof game.city_skill_battle
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- city_skill_battle.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a city_skill_battle message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.city_skill_battle
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.city_skill_battle} city_skill_battle
- */
- city_skill_battle.fromObject = function fromObject(object) {
- if (object instanceof $root.game.city_skill_battle)
- return object;
- let message = new $root.game.city_skill_battle();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a city_skill_battle message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.city_skill_battle
- * @static
- * @param {game.city_skill_battle} message city_skill_battle
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- city_skill_battle.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this city_skill_battle to JSON.
- * @function toJSON
- * @memberof game.city_skill_battle
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- city_skill_battle.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return city_skill_battle;
- })();
- game.city_skill_battle_rsp = (function() {
- /**
- * Properties of a city_skill_battle_rsp.
- * @memberof game
- * @interface Icity_skill_battle_rsp
- * @property {number|Long|null} [errno] city_skill_battle_rsp errno
- * @property {number|Long|null} [id] city_skill_battle_rsp id
- */
- /**
- * Constructs a new city_skill_battle_rsp.
- * @memberof game
- * @classdesc Represents a city_skill_battle_rsp.
- * @implements Icity_skill_battle_rsp
- * @constructor
- * @param {game.Icity_skill_battle_rsp=} [properties] Properties to set
- */
- function city_skill_battle_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * city_skill_battle_rsp errno.
- * @member {number|Long} errno
- * @memberof game.city_skill_battle_rsp
- * @instance
- */
- city_skill_battle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * city_skill_battle_rsp id.
- * @member {number|Long} id
- * @memberof game.city_skill_battle_rsp
- * @instance
- */
- city_skill_battle_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new city_skill_battle_rsp instance using the specified properties.
- * @function create
- * @memberof game.city_skill_battle_rsp
- * @static
- * @param {game.Icity_skill_battle_rsp=} [properties] Properties to set
- * @returns {game.city_skill_battle_rsp} city_skill_battle_rsp instance
- */
- city_skill_battle_rsp.create = function create(properties) {
- return new city_skill_battle_rsp(properties);
- };
- /**
- * Encodes the specified city_skill_battle_rsp message. Does not implicitly {@link game.city_skill_battle_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.city_skill_battle_rsp
- * @static
- * @param {game.Icity_skill_battle_rsp} message city_skill_battle_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_skill_battle_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified city_skill_battle_rsp message, length delimited. Does not implicitly {@link game.city_skill_battle_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.city_skill_battle_rsp
- * @static
- * @param {game.Icity_skill_battle_rsp} message city_skill_battle_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- city_skill_battle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a city_skill_battle_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.city_skill_battle_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.city_skill_battle_rsp} city_skill_battle_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_skill_battle_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_skill_battle_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a city_skill_battle_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.city_skill_battle_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.city_skill_battle_rsp} city_skill_battle_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- city_skill_battle_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a city_skill_battle_rsp message.
- * @function verify
- * @memberof game.city_skill_battle_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- city_skill_battle_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a city_skill_battle_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.city_skill_battle_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.city_skill_battle_rsp} city_skill_battle_rsp
- */
- city_skill_battle_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.city_skill_battle_rsp)
- return object;
- let message = new $root.game.city_skill_battle_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a city_skill_battle_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.city_skill_battle_rsp
- * @static
- * @param {game.city_skill_battle_rsp} message city_skill_battle_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- city_skill_battle_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this city_skill_battle_rsp to JSON.
- * @function toJSON
- * @memberof game.city_skill_battle_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- city_skill_battle_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return city_skill_battle_rsp;
- })();
- game.building_explore = (function() {
- /**
- * Properties of a building_explore.
- * @memberof game
- * @interface Ibuilding_explore
- * @property {number|Long|null} [id] building_explore id
- */
- /**
- * Constructs a new building_explore.
- * @memberof game
- * @classdesc Represents a building_explore.
- * @implements Ibuilding_explore
- * @constructor
- * @param {game.Ibuilding_explore=} [properties] Properties to set
- */
- function building_explore(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * building_explore id.
- * @member {number|Long} id
- * @memberof game.building_explore
- * @instance
- */
- building_explore.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new building_explore instance using the specified properties.
- * @function create
- * @memberof game.building_explore
- * @static
- * @param {game.Ibuilding_explore=} [properties] Properties to set
- * @returns {game.building_explore} building_explore instance
- */
- building_explore.create = function create(properties) {
- return new building_explore(properties);
- };
- /**
- * Encodes the specified building_explore message. Does not implicitly {@link game.building_explore.verify|verify} messages.
- * @function encode
- * @memberof game.building_explore
- * @static
- * @param {game.Ibuilding_explore} message building_explore message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_explore.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified building_explore message, length delimited. Does not implicitly {@link game.building_explore.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building_explore
- * @static
- * @param {game.Ibuilding_explore} message building_explore message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_explore.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building_explore message from the specified reader or buffer.
- * @function decode
- * @memberof game.building_explore
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building_explore} building_explore
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_explore.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_explore();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building_explore message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building_explore
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building_explore} building_explore
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_explore.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building_explore message.
- * @function verify
- * @memberof game.building_explore
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building_explore.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a building_explore message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building_explore
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building_explore} building_explore
- */
- building_explore.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building_explore)
- return object;
- let message = new $root.game.building_explore();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a building_explore message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building_explore
- * @static
- * @param {game.building_explore} message building_explore
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building_explore.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this building_explore to JSON.
- * @function toJSON
- * @memberof game.building_explore
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building_explore.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building_explore;
- })();
- game.building_explore_rsp = (function() {
- /**
- * Properties of a building_explore_rsp.
- * @memberof game
- * @interface Ibuilding_explore_rsp
- * @property {number|Long|null} [errno] building_explore_rsp errno
- * @property {game.Ibuilding|null} [data] building_explore_rsp data
- */
- /**
- * Constructs a new building_explore_rsp.
- * @memberof game
- * @classdesc Represents a building_explore_rsp.
- * @implements Ibuilding_explore_rsp
- * @constructor
- * @param {game.Ibuilding_explore_rsp=} [properties] Properties to set
- */
- function building_explore_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * building_explore_rsp errno.
- * @member {number|Long} errno
- * @memberof game.building_explore_rsp
- * @instance
- */
- building_explore_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building_explore_rsp data.
- * @member {game.Ibuilding|null|undefined} data
- * @memberof game.building_explore_rsp
- * @instance
- */
- building_explore_rsp.prototype.data = null;
- /**
- * Creates a new building_explore_rsp instance using the specified properties.
- * @function create
- * @memberof game.building_explore_rsp
- * @static
- * @param {game.Ibuilding_explore_rsp=} [properties] Properties to set
- * @returns {game.building_explore_rsp} building_explore_rsp instance
- */
- building_explore_rsp.create = function create(properties) {
- return new building_explore_rsp(properties);
- };
- /**
- * Encodes the specified building_explore_rsp message. Does not implicitly {@link game.building_explore_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.building_explore_rsp
- * @static
- * @param {game.Ibuilding_explore_rsp} message building_explore_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_explore_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified building_explore_rsp message, length delimited. Does not implicitly {@link game.building_explore_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building_explore_rsp
- * @static
- * @param {game.Ibuilding_explore_rsp} message building_explore_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_explore_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building_explore_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.building_explore_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building_explore_rsp} building_explore_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_explore_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_explore_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.building.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building_explore_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building_explore_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building_explore_rsp} building_explore_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_explore_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building_explore_rsp message.
- * @function verify
- * @memberof game.building_explore_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building_explore_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.building.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a building_explore_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building_explore_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building_explore_rsp} building_explore_rsp
- */
- building_explore_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building_explore_rsp)
- return object;
- let message = new $root.game.building_explore_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.building_explore_rsp.data: object expected");
- message.data = $root.game.building.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a building_explore_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building_explore_rsp
- * @static
- * @param {game.building_explore_rsp} message building_explore_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building_explore_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.building.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this building_explore_rsp to JSON.
- * @function toJSON
- * @memberof game.building_explore_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building_explore_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building_explore_rsp;
- })();
- game.building_auto_explore_award = (function() {
- /**
- * Properties of a building_auto_explore_award.
- * @memberof game
- * @interface Ibuilding_auto_explore_award
- * @property {number|Long|null} [id] building_auto_explore_award id
- */
- /**
- * Constructs a new building_auto_explore_award.
- * @memberof game
- * @classdesc Represents a building_auto_explore_award.
- * @implements Ibuilding_auto_explore_award
- * @constructor
- * @param {game.Ibuilding_auto_explore_award=} [properties] Properties to set
- */
- function building_auto_explore_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * building_auto_explore_award id.
- * @member {number|Long} id
- * @memberof game.building_auto_explore_award
- * @instance
- */
- building_auto_explore_award.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new building_auto_explore_award instance using the specified properties.
- * @function create
- * @memberof game.building_auto_explore_award
- * @static
- * @param {game.Ibuilding_auto_explore_award=} [properties] Properties to set
- * @returns {game.building_auto_explore_award} building_auto_explore_award instance
- */
- building_auto_explore_award.create = function create(properties) {
- return new building_auto_explore_award(properties);
- };
- /**
- * Encodes the specified building_auto_explore_award message. Does not implicitly {@link game.building_auto_explore_award.verify|verify} messages.
- * @function encode
- * @memberof game.building_auto_explore_award
- * @static
- * @param {game.Ibuilding_auto_explore_award} message building_auto_explore_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_auto_explore_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified building_auto_explore_award message, length delimited. Does not implicitly {@link game.building_auto_explore_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building_auto_explore_award
- * @static
- * @param {game.Ibuilding_auto_explore_award} message building_auto_explore_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_auto_explore_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building_auto_explore_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.building_auto_explore_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building_auto_explore_award} building_auto_explore_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_auto_explore_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_auto_explore_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building_auto_explore_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building_auto_explore_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building_auto_explore_award} building_auto_explore_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_auto_explore_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building_auto_explore_award message.
- * @function verify
- * @memberof game.building_auto_explore_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building_auto_explore_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a building_auto_explore_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building_auto_explore_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building_auto_explore_award} building_auto_explore_award
- */
- building_auto_explore_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building_auto_explore_award)
- return object;
- let message = new $root.game.building_auto_explore_award();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a building_auto_explore_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building_auto_explore_award
- * @static
- * @param {game.building_auto_explore_award} message building_auto_explore_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building_auto_explore_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this building_auto_explore_award to JSON.
- * @function toJSON
- * @memberof game.building_auto_explore_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building_auto_explore_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building_auto_explore_award;
- })();
- game.building_auto_explore_award_rsp = (function() {
- /**
- * Properties of a building_auto_explore_award_rsp.
- * @memberof game
- * @interface Ibuilding_auto_explore_award_rsp
- * @property {number|Long|null} [errno] building_auto_explore_award_rsp errno
- * @property {game.Ibuilding|null} [data] building_auto_explore_award_rsp data
- */
- /**
- * Constructs a new building_auto_explore_award_rsp.
- * @memberof game
- * @classdesc Represents a building_auto_explore_award_rsp.
- * @implements Ibuilding_auto_explore_award_rsp
- * @constructor
- * @param {game.Ibuilding_auto_explore_award_rsp=} [properties] Properties to set
- */
- function building_auto_explore_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * building_auto_explore_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.building_auto_explore_award_rsp
- * @instance
- */
- building_auto_explore_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building_auto_explore_award_rsp data.
- * @member {game.Ibuilding|null|undefined} data
- * @memberof game.building_auto_explore_award_rsp
- * @instance
- */
- building_auto_explore_award_rsp.prototype.data = null;
- /**
- * Creates a new building_auto_explore_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.building_auto_explore_award_rsp
- * @static
- * @param {game.Ibuilding_auto_explore_award_rsp=} [properties] Properties to set
- * @returns {game.building_auto_explore_award_rsp} building_auto_explore_award_rsp instance
- */
- building_auto_explore_award_rsp.create = function create(properties) {
- return new building_auto_explore_award_rsp(properties);
- };
- /**
- * Encodes the specified building_auto_explore_award_rsp message. Does not implicitly {@link game.building_auto_explore_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.building_auto_explore_award_rsp
- * @static
- * @param {game.Ibuilding_auto_explore_award_rsp} message building_auto_explore_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_auto_explore_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified building_auto_explore_award_rsp message, length delimited. Does not implicitly {@link game.building_auto_explore_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building_auto_explore_award_rsp
- * @static
- * @param {game.Ibuilding_auto_explore_award_rsp} message building_auto_explore_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_auto_explore_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building_auto_explore_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.building_auto_explore_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building_auto_explore_award_rsp} building_auto_explore_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_auto_explore_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_auto_explore_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.building.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building_auto_explore_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building_auto_explore_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building_auto_explore_award_rsp} building_auto_explore_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_auto_explore_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building_auto_explore_award_rsp message.
- * @function verify
- * @memberof game.building_auto_explore_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building_auto_explore_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.building.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a building_auto_explore_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building_auto_explore_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building_auto_explore_award_rsp} building_auto_explore_award_rsp
- */
- building_auto_explore_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building_auto_explore_award_rsp)
- return object;
- let message = new $root.game.building_auto_explore_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.building_auto_explore_award_rsp.data: object expected");
- message.data = $root.game.building.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a building_auto_explore_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building_auto_explore_award_rsp
- * @static
- * @param {game.building_auto_explore_award_rsp} message building_auto_explore_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building_auto_explore_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.building.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this building_auto_explore_award_rsp to JSON.
- * @function toJSON
- * @memberof game.building_auto_explore_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building_auto_explore_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building_auto_explore_award_rsp;
- })();
- game.building_explore_battle = (function() {
- /**
- * Properties of a building_explore_battle.
- * @memberof game
- * @interface Ibuilding_explore_battle
- * @property {number|Long|null} [id] building_explore_battle id
- * @property {Array.<string>|null} [list] building_explore_battle list
- */
- /**
- * Constructs a new building_explore_battle.
- * @memberof game
- * @classdesc Represents a building_explore_battle.
- * @implements Ibuilding_explore_battle
- * @constructor
- * @param {game.Ibuilding_explore_battle=} [properties] Properties to set
- */
- function building_explore_battle(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * building_explore_battle id.
- * @member {number|Long} id
- * @memberof game.building_explore_battle
- * @instance
- */
- building_explore_battle.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building_explore_battle list.
- * @member {Array.<string>} list
- * @memberof game.building_explore_battle
- * @instance
- */
- building_explore_battle.prototype.list = $util.emptyArray;
- /**
- * Creates a new building_explore_battle instance using the specified properties.
- * @function create
- * @memberof game.building_explore_battle
- * @static
- * @param {game.Ibuilding_explore_battle=} [properties] Properties to set
- * @returns {game.building_explore_battle} building_explore_battle instance
- */
- building_explore_battle.create = function create(properties) {
- return new building_explore_battle(properties);
- };
- /**
- * Encodes the specified building_explore_battle message. Does not implicitly {@link game.building_explore_battle.verify|verify} messages.
- * @function encode
- * @memberof game.building_explore_battle
- * @static
- * @param {game.Ibuilding_explore_battle} message building_explore_battle message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_explore_battle.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
- return writer;
- };
- /**
- * Encodes the specified building_explore_battle message, length delimited. Does not implicitly {@link game.building_explore_battle.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building_explore_battle
- * @static
- * @param {game.Ibuilding_explore_battle} message building_explore_battle message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_explore_battle.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building_explore_battle message from the specified reader or buffer.
- * @function decode
- * @memberof game.building_explore_battle
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building_explore_battle} building_explore_battle
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_explore_battle.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_explore_battle();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push(reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building_explore_battle message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building_explore_battle
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building_explore_battle} building_explore_battle
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_explore_battle.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building_explore_battle message.
- * @function verify
- * @memberof game.building_explore_battle
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building_explore_battle.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isString(message.list[i]))
- return "list: string[] expected";
- }
- return null;
- };
- /**
- * Creates a building_explore_battle message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building_explore_battle
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building_explore_battle} building_explore_battle
- */
- building_explore_battle.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building_explore_battle)
- return object;
- let message = new $root.game.building_explore_battle();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.building_explore_battle.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- message.list[i] = String(object.list[i]);
- }
- return message;
- };
- /**
- * Creates a plain object from a building_explore_battle message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building_explore_battle
- * @static
- * @param {game.building_explore_battle} message building_explore_battle
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building_explore_battle.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = message.list[j];
- }
- return object;
- };
- /**
- * Converts this building_explore_battle to JSON.
- * @function toJSON
- * @memberof game.building_explore_battle
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building_explore_battle.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building_explore_battle;
- })();
- game.building_explore_battle_rsp = (function() {
- /**
- * Properties of a building_explore_battle_rsp.
- * @memberof game
- * @interface Ibuilding_explore_battle_rsp
- * @property {number|Long|null} [errno] building_explore_battle_rsp errno
- * @property {game.Ibuilding|null} [data] building_explore_battle_rsp data
- */
- /**
- * Constructs a new building_explore_battle_rsp.
- * @memberof game
- * @classdesc Represents a building_explore_battle_rsp.
- * @implements Ibuilding_explore_battle_rsp
- * @constructor
- * @param {game.Ibuilding_explore_battle_rsp=} [properties] Properties to set
- */
- function building_explore_battle_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * building_explore_battle_rsp errno.
- * @member {number|Long} errno
- * @memberof game.building_explore_battle_rsp
- * @instance
- */
- building_explore_battle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building_explore_battle_rsp data.
- * @member {game.Ibuilding|null|undefined} data
- * @memberof game.building_explore_battle_rsp
- * @instance
- */
- building_explore_battle_rsp.prototype.data = null;
- /**
- * Creates a new building_explore_battle_rsp instance using the specified properties.
- * @function create
- * @memberof game.building_explore_battle_rsp
- * @static
- * @param {game.Ibuilding_explore_battle_rsp=} [properties] Properties to set
- * @returns {game.building_explore_battle_rsp} building_explore_battle_rsp instance
- */
- building_explore_battle_rsp.create = function create(properties) {
- return new building_explore_battle_rsp(properties);
- };
- /**
- * Encodes the specified building_explore_battle_rsp message. Does not implicitly {@link game.building_explore_battle_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.building_explore_battle_rsp
- * @static
- * @param {game.Ibuilding_explore_battle_rsp} message building_explore_battle_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_explore_battle_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified building_explore_battle_rsp message, length delimited. Does not implicitly {@link game.building_explore_battle_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building_explore_battle_rsp
- * @static
- * @param {game.Ibuilding_explore_battle_rsp} message building_explore_battle_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_explore_battle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building_explore_battle_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.building_explore_battle_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building_explore_battle_rsp} building_explore_battle_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_explore_battle_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_explore_battle_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.building.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building_explore_battle_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building_explore_battle_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building_explore_battle_rsp} building_explore_battle_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_explore_battle_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building_explore_battle_rsp message.
- * @function verify
- * @memberof game.building_explore_battle_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building_explore_battle_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.building.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a building_explore_battle_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building_explore_battle_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building_explore_battle_rsp} building_explore_battle_rsp
- */
- building_explore_battle_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building_explore_battle_rsp)
- return object;
- let message = new $root.game.building_explore_battle_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.building_explore_battle_rsp.data: object expected");
- message.data = $root.game.building.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a building_explore_battle_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building_explore_battle_rsp
- * @static
- * @param {game.building_explore_battle_rsp} message building_explore_battle_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building_explore_battle_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.building.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this building_explore_battle_rsp to JSON.
- * @function toJSON
- * @memberof game.building_explore_battle_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building_explore_battle_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building_explore_battle_rsp;
- })();
- game.building_auto_explore_option = (function() {
- /**
- * Properties of a building_auto_explore_option.
- * @memberof game
- * @interface Ibuilding_auto_explore_option
- * @property {number|Long|null} [id] building_auto_explore_option id
- * @property {boolean|null} [open] building_auto_explore_option open
- */
- /**
- * Constructs a new building_auto_explore_option.
- * @memberof game
- * @classdesc Represents a building_auto_explore_option.
- * @implements Ibuilding_auto_explore_option
- * @constructor
- * @param {game.Ibuilding_auto_explore_option=} [properties] Properties to set
- */
- function building_auto_explore_option(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * building_auto_explore_option id.
- * @member {number|Long} id
- * @memberof game.building_auto_explore_option
- * @instance
- */
- building_auto_explore_option.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building_auto_explore_option open.
- * @member {boolean} open
- * @memberof game.building_auto_explore_option
- * @instance
- */
- building_auto_explore_option.prototype.open = false;
- /**
- * Creates a new building_auto_explore_option instance using the specified properties.
- * @function create
- * @memberof game.building_auto_explore_option
- * @static
- * @param {game.Ibuilding_auto_explore_option=} [properties] Properties to set
- * @returns {game.building_auto_explore_option} building_auto_explore_option instance
- */
- building_auto_explore_option.create = function create(properties) {
- return new building_auto_explore_option(properties);
- };
- /**
- * Encodes the specified building_auto_explore_option message. Does not implicitly {@link game.building_auto_explore_option.verify|verify} messages.
- * @function encode
- * @memberof game.building_auto_explore_option
- * @static
- * @param {game.Ibuilding_auto_explore_option} message building_auto_explore_option message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_auto_explore_option.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.open != null && Object.hasOwnProperty.call(message, "open"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.open);
- return writer;
- };
- /**
- * Encodes the specified building_auto_explore_option message, length delimited. Does not implicitly {@link game.building_auto_explore_option.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building_auto_explore_option
- * @static
- * @param {game.Ibuilding_auto_explore_option} message building_auto_explore_option message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_auto_explore_option.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building_auto_explore_option message from the specified reader or buffer.
- * @function decode
- * @memberof game.building_auto_explore_option
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building_auto_explore_option} building_auto_explore_option
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_auto_explore_option.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_auto_explore_option();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- message.open = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building_auto_explore_option message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building_auto_explore_option
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building_auto_explore_option} building_auto_explore_option
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_auto_explore_option.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building_auto_explore_option message.
- * @function verify
- * @memberof game.building_auto_explore_option
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building_auto_explore_option.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.open != null && message.hasOwnProperty("open"))
- if (typeof message.open !== "boolean")
- return "open: boolean expected";
- return null;
- };
- /**
- * Creates a building_auto_explore_option message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building_auto_explore_option
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building_auto_explore_option} building_auto_explore_option
- */
- building_auto_explore_option.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building_auto_explore_option)
- return object;
- let message = new $root.game.building_auto_explore_option();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.open != null)
- message.open = Boolean(object.open);
- return message;
- };
- /**
- * Creates a plain object from a building_auto_explore_option message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building_auto_explore_option
- * @static
- * @param {game.building_auto_explore_option} message building_auto_explore_option
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building_auto_explore_option.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- object.open = false;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.open != null && message.hasOwnProperty("open"))
- object.open = message.open;
- return object;
- };
- /**
- * Converts this building_auto_explore_option to JSON.
- * @function toJSON
- * @memberof game.building_auto_explore_option
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building_auto_explore_option.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building_auto_explore_option;
- })();
- game.building_auto_explore_option_rsp = (function() {
- /**
- * Properties of a building_auto_explore_option_rsp.
- * @memberof game
- * @interface Ibuilding_auto_explore_option_rsp
- * @property {number|Long|null} [errno] building_auto_explore_option_rsp errno
- * @property {game.Ibuilding|null} [data] building_auto_explore_option_rsp data
- */
- /**
- * Constructs a new building_auto_explore_option_rsp.
- * @memberof game
- * @classdesc Represents a building_auto_explore_option_rsp.
- * @implements Ibuilding_auto_explore_option_rsp
- * @constructor
- * @param {game.Ibuilding_auto_explore_option_rsp=} [properties] Properties to set
- */
- function building_auto_explore_option_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * building_auto_explore_option_rsp errno.
- * @member {number|Long} errno
- * @memberof game.building_auto_explore_option_rsp
- * @instance
- */
- building_auto_explore_option_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building_auto_explore_option_rsp data.
- * @member {game.Ibuilding|null|undefined} data
- * @memberof game.building_auto_explore_option_rsp
- * @instance
- */
- building_auto_explore_option_rsp.prototype.data = null;
- /**
- * Creates a new building_auto_explore_option_rsp instance using the specified properties.
- * @function create
- * @memberof game.building_auto_explore_option_rsp
- * @static
- * @param {game.Ibuilding_auto_explore_option_rsp=} [properties] Properties to set
- * @returns {game.building_auto_explore_option_rsp} building_auto_explore_option_rsp instance
- */
- building_auto_explore_option_rsp.create = function create(properties) {
- return new building_auto_explore_option_rsp(properties);
- };
- /**
- * Encodes the specified building_auto_explore_option_rsp message. Does not implicitly {@link game.building_auto_explore_option_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.building_auto_explore_option_rsp
- * @static
- * @param {game.Ibuilding_auto_explore_option_rsp} message building_auto_explore_option_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_auto_explore_option_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified building_auto_explore_option_rsp message, length delimited. Does not implicitly {@link game.building_auto_explore_option_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building_auto_explore_option_rsp
- * @static
- * @param {game.Ibuilding_auto_explore_option_rsp} message building_auto_explore_option_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building_auto_explore_option_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building_auto_explore_option_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.building_auto_explore_option_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building_auto_explore_option_rsp} building_auto_explore_option_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_auto_explore_option_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_auto_explore_option_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.building.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building_auto_explore_option_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building_auto_explore_option_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building_auto_explore_option_rsp} building_auto_explore_option_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building_auto_explore_option_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building_auto_explore_option_rsp message.
- * @function verify
- * @memberof game.building_auto_explore_option_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building_auto_explore_option_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.building.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a building_auto_explore_option_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building_auto_explore_option_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building_auto_explore_option_rsp} building_auto_explore_option_rsp
- */
- building_auto_explore_option_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building_auto_explore_option_rsp)
- return object;
- let message = new $root.game.building_auto_explore_option_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.building_auto_explore_option_rsp.data: object expected");
- message.data = $root.game.building.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a building_auto_explore_option_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building_auto_explore_option_rsp
- * @static
- * @param {game.building_auto_explore_option_rsp} message building_auto_explore_option_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building_auto_explore_option_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.building.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this building_auto_explore_option_rsp to JSON.
- * @function toJSON
- * @memberof game.building_auto_explore_option_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building_auto_explore_option_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building_auto_explore_option_rsp;
- })();
- game.level_gift_data = (function() {
- /**
- * Properties of a level_gift_data.
- * @memberof game
- * @interface Ilevel_gift_data
- */
- /**
- * Constructs a new level_gift_data.
- * @memberof game
- * @classdesc Represents a level_gift_data.
- * @implements Ilevel_gift_data
- * @constructor
- * @param {game.Ilevel_gift_data=} [properties] Properties to set
- */
- function level_gift_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new level_gift_data instance using the specified properties.
- * @function create
- * @memberof game.level_gift_data
- * @static
- * @param {game.Ilevel_gift_data=} [properties] Properties to set
- * @returns {game.level_gift_data} level_gift_data instance
- */
- level_gift_data.create = function create(properties) {
- return new level_gift_data(properties);
- };
- /**
- * Encodes the specified level_gift_data message. Does not implicitly {@link game.level_gift_data.verify|verify} messages.
- * @function encode
- * @memberof game.level_gift_data
- * @static
- * @param {game.Ilevel_gift_data} message level_gift_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified level_gift_data message, length delimited. Does not implicitly {@link game.level_gift_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.level_gift_data
- * @static
- * @param {game.Ilevel_gift_data} message level_gift_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a level_gift_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.level_gift_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.level_gift_data} level_gift_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a level_gift_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.level_gift_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.level_gift_data} level_gift_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a level_gift_data message.
- * @function verify
- * @memberof game.level_gift_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- level_gift_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a level_gift_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.level_gift_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.level_gift_data} level_gift_data
- */
- level_gift_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.level_gift_data)
- return object;
- return new $root.game.level_gift_data();
- };
- /**
- * Creates a plain object from a level_gift_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.level_gift_data
- * @static
- * @param {game.level_gift_data} message level_gift_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- level_gift_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this level_gift_data to JSON.
- * @function toJSON
- * @memberof game.level_gift_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- level_gift_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return level_gift_data;
- })();
- game.level_gift_data_rsp = (function() {
- /**
- * Properties of a level_gift_data_rsp.
- * @memberof game
- * @interface Ilevel_gift_data_rsp
- * @property {number|Long|null} [errno] level_gift_data_rsp errno
- */
- /**
- * Constructs a new level_gift_data_rsp.
- * @memberof game
- * @classdesc Represents a level_gift_data_rsp.
- * @implements Ilevel_gift_data_rsp
- * @constructor
- * @param {game.Ilevel_gift_data_rsp=} [properties] Properties to set
- */
- function level_gift_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * level_gift_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.level_gift_data_rsp
- * @instance
- */
- level_gift_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new level_gift_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.level_gift_data_rsp
- * @static
- * @param {game.Ilevel_gift_data_rsp=} [properties] Properties to set
- * @returns {game.level_gift_data_rsp} level_gift_data_rsp instance
- */
- level_gift_data_rsp.create = function create(properties) {
- return new level_gift_data_rsp(properties);
- };
- /**
- * Encodes the specified level_gift_data_rsp message. Does not implicitly {@link game.level_gift_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.level_gift_data_rsp
- * @static
- * @param {game.Ilevel_gift_data_rsp} message level_gift_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified level_gift_data_rsp message, length delimited. Does not implicitly {@link game.level_gift_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.level_gift_data_rsp
- * @static
- * @param {game.Ilevel_gift_data_rsp} message level_gift_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a level_gift_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.level_gift_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.level_gift_data_rsp} level_gift_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a level_gift_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.level_gift_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.level_gift_data_rsp} level_gift_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a level_gift_data_rsp message.
- * @function verify
- * @memberof game.level_gift_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- level_gift_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a level_gift_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.level_gift_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.level_gift_data_rsp} level_gift_data_rsp
- */
- level_gift_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.level_gift_data_rsp)
- return object;
- let message = new $root.game.level_gift_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a level_gift_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.level_gift_data_rsp
- * @static
- * @param {game.level_gift_data_rsp} message level_gift_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- level_gift_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this level_gift_data_rsp to JSON.
- * @function toJSON
- * @memberof game.level_gift_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- level_gift_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return level_gift_data_rsp;
- })();
- game.level_gift_buy = (function() {
- /**
- * Properties of a level_gift_buy.
- * @memberof game
- * @interface Ilevel_gift_buy
- * @property {number|Long|null} [id] level_gift_buy id
- */
- /**
- * Constructs a new level_gift_buy.
- * @memberof game
- * @classdesc Represents a level_gift_buy.
- * @implements Ilevel_gift_buy
- * @constructor
- * @param {game.Ilevel_gift_buy=} [properties] Properties to set
- */
- function level_gift_buy(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * level_gift_buy id.
- * @member {number|Long} id
- * @memberof game.level_gift_buy
- * @instance
- */
- level_gift_buy.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new level_gift_buy instance using the specified properties.
- * @function create
- * @memberof game.level_gift_buy
- * @static
- * @param {game.Ilevel_gift_buy=} [properties] Properties to set
- * @returns {game.level_gift_buy} level_gift_buy instance
- */
- level_gift_buy.create = function create(properties) {
- return new level_gift_buy(properties);
- };
- /**
- * Encodes the specified level_gift_buy message. Does not implicitly {@link game.level_gift_buy.verify|verify} messages.
- * @function encode
- * @memberof game.level_gift_buy
- * @static
- * @param {game.Ilevel_gift_buy} message level_gift_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_buy.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified level_gift_buy message, length delimited. Does not implicitly {@link game.level_gift_buy.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.level_gift_buy
- * @static
- * @param {game.Ilevel_gift_buy} message level_gift_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_buy.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a level_gift_buy message from the specified reader or buffer.
- * @function decode
- * @memberof game.level_gift_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.level_gift_buy} level_gift_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_buy.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_buy();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a level_gift_buy message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.level_gift_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.level_gift_buy} level_gift_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_buy.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a level_gift_buy message.
- * @function verify
- * @memberof game.level_gift_buy
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- level_gift_buy.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates a level_gift_buy message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.level_gift_buy
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.level_gift_buy} level_gift_buy
- */
- level_gift_buy.fromObject = function fromObject(object) {
- if (object instanceof $root.game.level_gift_buy)
- return object;
- let message = new $root.game.level_gift_buy();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a level_gift_buy message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.level_gift_buy
- * @static
- * @param {game.level_gift_buy} message level_gift_buy
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- level_gift_buy.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this level_gift_buy to JSON.
- * @function toJSON
- * @memberof game.level_gift_buy
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- level_gift_buy.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return level_gift_buy;
- })();
- game.level_gift_buy_rsp = (function() {
- /**
- * Properties of a level_gift_buy_rsp.
- * @memberof game
- * @interface Ilevel_gift_buy_rsp
- * @property {number|Long|null} [errno] level_gift_buy_rsp errno
- */
- /**
- * Constructs a new level_gift_buy_rsp.
- * @memberof game
- * @classdesc Represents a level_gift_buy_rsp.
- * @implements Ilevel_gift_buy_rsp
- * @constructor
- * @param {game.Ilevel_gift_buy_rsp=} [properties] Properties to set
- */
- function level_gift_buy_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * level_gift_buy_rsp errno.
- * @member {number|Long} errno
- * @memberof game.level_gift_buy_rsp
- * @instance
- */
- level_gift_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new level_gift_buy_rsp instance using the specified properties.
- * @function create
- * @memberof game.level_gift_buy_rsp
- * @static
- * @param {game.Ilevel_gift_buy_rsp=} [properties] Properties to set
- * @returns {game.level_gift_buy_rsp} level_gift_buy_rsp instance
- */
- level_gift_buy_rsp.create = function create(properties) {
- return new level_gift_buy_rsp(properties);
- };
- /**
- * Encodes the specified level_gift_buy_rsp message. Does not implicitly {@link game.level_gift_buy_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.level_gift_buy_rsp
- * @static
- * @param {game.Ilevel_gift_buy_rsp} message level_gift_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_buy_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified level_gift_buy_rsp message, length delimited. Does not implicitly {@link game.level_gift_buy_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.level_gift_buy_rsp
- * @static
- * @param {game.Ilevel_gift_buy_rsp} message level_gift_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a level_gift_buy_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.level_gift_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.level_gift_buy_rsp} level_gift_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_buy_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_buy_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a level_gift_buy_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.level_gift_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.level_gift_buy_rsp} level_gift_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a level_gift_buy_rsp message.
- * @function verify
- * @memberof game.level_gift_buy_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- level_gift_buy_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a level_gift_buy_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.level_gift_buy_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.level_gift_buy_rsp} level_gift_buy_rsp
- */
- level_gift_buy_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.level_gift_buy_rsp)
- return object;
- let message = new $root.game.level_gift_buy_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a level_gift_buy_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.level_gift_buy_rsp
- * @static
- * @param {game.level_gift_buy_rsp} message level_gift_buy_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- level_gift_buy_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this level_gift_buy_rsp to JSON.
- * @function toJSON
- * @memberof game.level_gift_buy_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- level_gift_buy_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return level_gift_buy_rsp;
- })();
- game.level_gift_nty = (function() {
- /**
- * Properties of a level_gift_nty.
- * @memberof game
- * @interface Ilevel_gift_nty
- * @property {Array.<game.Iid_num>|null} [list] level_gift_nty list
- */
- /**
- * Constructs a new level_gift_nty.
- * @memberof game
- * @classdesc Represents a level_gift_nty.
- * @implements Ilevel_gift_nty
- * @constructor
- * @param {game.Ilevel_gift_nty=} [properties] Properties to set
- */
- function level_gift_nty(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * level_gift_nty list.
- * @member {Array.<game.Iid_num>} list
- * @memberof game.level_gift_nty
- * @instance
- */
- level_gift_nty.prototype.list = $util.emptyArray;
- /**
- * Creates a new level_gift_nty instance using the specified properties.
- * @function create
- * @memberof game.level_gift_nty
- * @static
- * @param {game.Ilevel_gift_nty=} [properties] Properties to set
- * @returns {game.level_gift_nty} level_gift_nty instance
- */
- level_gift_nty.create = function create(properties) {
- return new level_gift_nty(properties);
- };
- /**
- * Encodes the specified level_gift_nty message. Does not implicitly {@link game.level_gift_nty.verify|verify} messages.
- * @function encode
- * @memberof game.level_gift_nty
- * @static
- * @param {game.Ilevel_gift_nty} message level_gift_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.id_num.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified level_gift_nty message, length delimited. Does not implicitly {@link game.level_gift_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.level_gift_nty
- * @static
- * @param {game.Ilevel_gift_nty} message level_gift_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a level_gift_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.level_gift_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.level_gift_nty} level_gift_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a level_gift_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.level_gift_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.level_gift_nty} level_gift_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a level_gift_nty message.
- * @function verify
- * @memberof game.level_gift_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- level_gift_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.id_num.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a level_gift_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.level_gift_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.level_gift_nty} level_gift_nty
- */
- level_gift_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.level_gift_nty)
- return object;
- let message = new $root.game.level_gift_nty();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.level_gift_nty.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.level_gift_nty.list: object expected");
- message.list[i] = $root.game.id_num.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a level_gift_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.level_gift_nty
- * @static
- * @param {game.level_gift_nty} message level_gift_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- level_gift_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.id_num.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this level_gift_nty to JSON.
- * @function toJSON
- * @memberof game.level_gift_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- level_gift_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return level_gift_nty;
- })();
- game.level_gift_del_red_point = (function() {
- /**
- * Properties of a level_gift_del_red_point.
- * @memberof game
- * @interface Ilevel_gift_del_red_point
- */
- /**
- * Constructs a new level_gift_del_red_point.
- * @memberof game
- * @classdesc Represents a level_gift_del_red_point.
- * @implements Ilevel_gift_del_red_point
- * @constructor
- * @param {game.Ilevel_gift_del_red_point=} [properties] Properties to set
- */
- function level_gift_del_red_point(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new level_gift_del_red_point instance using the specified properties.
- * @function create
- * @memberof game.level_gift_del_red_point
- * @static
- * @param {game.Ilevel_gift_del_red_point=} [properties] Properties to set
- * @returns {game.level_gift_del_red_point} level_gift_del_red_point instance
- */
- level_gift_del_red_point.create = function create(properties) {
- return new level_gift_del_red_point(properties);
- };
- /**
- * Encodes the specified level_gift_del_red_point message. Does not implicitly {@link game.level_gift_del_red_point.verify|verify} messages.
- * @function encode
- * @memberof game.level_gift_del_red_point
- * @static
- * @param {game.Ilevel_gift_del_red_point} message level_gift_del_red_point message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_del_red_point.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified level_gift_del_red_point message, length delimited. Does not implicitly {@link game.level_gift_del_red_point.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.level_gift_del_red_point
- * @static
- * @param {game.Ilevel_gift_del_red_point} message level_gift_del_red_point message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_del_red_point.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a level_gift_del_red_point message from the specified reader or buffer.
- * @function decode
- * @memberof game.level_gift_del_red_point
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.level_gift_del_red_point} level_gift_del_red_point
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_del_red_point.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_del_red_point();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a level_gift_del_red_point message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.level_gift_del_red_point
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.level_gift_del_red_point} level_gift_del_red_point
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_del_red_point.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a level_gift_del_red_point message.
- * @function verify
- * @memberof game.level_gift_del_red_point
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- level_gift_del_red_point.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a level_gift_del_red_point message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.level_gift_del_red_point
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.level_gift_del_red_point} level_gift_del_red_point
- */
- level_gift_del_red_point.fromObject = function fromObject(object) {
- if (object instanceof $root.game.level_gift_del_red_point)
- return object;
- return new $root.game.level_gift_del_red_point();
- };
- /**
- * Creates a plain object from a level_gift_del_red_point message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.level_gift_del_red_point
- * @static
- * @param {game.level_gift_del_red_point} message level_gift_del_red_point
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- level_gift_del_red_point.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this level_gift_del_red_point to JSON.
- * @function toJSON
- * @memberof game.level_gift_del_red_point
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- level_gift_del_red_point.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return level_gift_del_red_point;
- })();
- game.level_gift_del_red_point_rsp = (function() {
- /**
- * Properties of a level_gift_del_red_point_rsp.
- * @memberof game
- * @interface Ilevel_gift_del_red_point_rsp
- * @property {number|Long|null} [errno] level_gift_del_red_point_rsp errno
- */
- /**
- * Constructs a new level_gift_del_red_point_rsp.
- * @memberof game
- * @classdesc Represents a level_gift_del_red_point_rsp.
- * @implements Ilevel_gift_del_red_point_rsp
- * @constructor
- * @param {game.Ilevel_gift_del_red_point_rsp=} [properties] Properties to set
- */
- function level_gift_del_red_point_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * level_gift_del_red_point_rsp errno.
- * @member {number|Long} errno
- * @memberof game.level_gift_del_red_point_rsp
- * @instance
- */
- level_gift_del_red_point_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new level_gift_del_red_point_rsp instance using the specified properties.
- * @function create
- * @memberof game.level_gift_del_red_point_rsp
- * @static
- * @param {game.Ilevel_gift_del_red_point_rsp=} [properties] Properties to set
- * @returns {game.level_gift_del_red_point_rsp} level_gift_del_red_point_rsp instance
- */
- level_gift_del_red_point_rsp.create = function create(properties) {
- return new level_gift_del_red_point_rsp(properties);
- };
- /**
- * Encodes the specified level_gift_del_red_point_rsp message. Does not implicitly {@link game.level_gift_del_red_point_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.level_gift_del_red_point_rsp
- * @static
- * @param {game.Ilevel_gift_del_red_point_rsp} message level_gift_del_red_point_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_del_red_point_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified level_gift_del_red_point_rsp message, length delimited. Does not implicitly {@link game.level_gift_del_red_point_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.level_gift_del_red_point_rsp
- * @static
- * @param {game.Ilevel_gift_del_red_point_rsp} message level_gift_del_red_point_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- level_gift_del_red_point_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a level_gift_del_red_point_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.level_gift_del_red_point_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.level_gift_del_red_point_rsp} level_gift_del_red_point_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_del_red_point_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_del_red_point_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a level_gift_del_red_point_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.level_gift_del_red_point_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.level_gift_del_red_point_rsp} level_gift_del_red_point_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- level_gift_del_red_point_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a level_gift_del_red_point_rsp message.
- * @function verify
- * @memberof game.level_gift_del_red_point_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- level_gift_del_red_point_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a level_gift_del_red_point_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.level_gift_del_red_point_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.level_gift_del_red_point_rsp} level_gift_del_red_point_rsp
- */
- level_gift_del_red_point_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.level_gift_del_red_point_rsp)
- return object;
- let message = new $root.game.level_gift_del_red_point_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a level_gift_del_red_point_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.level_gift_del_red_point_rsp
- * @static
- * @param {game.level_gift_del_red_point_rsp} message level_gift_del_red_point_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- level_gift_del_red_point_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this level_gift_del_red_point_rsp to JSON.
- * @function toJSON
- * @memberof game.level_gift_del_red_point_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- level_gift_del_red_point_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return level_gift_del_red_point_rsp;
- })();
- game.lottery_data = (function() {
- /**
- * Properties of a lottery_data.
- * @memberof game
- * @interface Ilottery_data
- */
- /**
- * Constructs a new lottery_data.
- * @memberof game
- * @classdesc Represents a lottery_data.
- * @implements Ilottery_data
- * @constructor
- * @param {game.Ilottery_data=} [properties] Properties to set
- */
- function lottery_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new lottery_data instance using the specified properties.
- * @function create
- * @memberof game.lottery_data
- * @static
- * @param {game.Ilottery_data=} [properties] Properties to set
- * @returns {game.lottery_data} lottery_data instance
- */
- lottery_data.create = function create(properties) {
- return new lottery_data(properties);
- };
- /**
- * Encodes the specified lottery_data message. Does not implicitly {@link game.lottery_data.verify|verify} messages.
- * @function encode
- * @memberof game.lottery_data
- * @static
- * @param {game.Ilottery_data} message lottery_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified lottery_data message, length delimited. Does not implicitly {@link game.lottery_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.lottery_data
- * @static
- * @param {game.Ilottery_data} message lottery_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a lottery_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.lottery_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.lottery_data} lottery_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a lottery_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.lottery_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.lottery_data} lottery_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a lottery_data message.
- * @function verify
- * @memberof game.lottery_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- lottery_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a lottery_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.lottery_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.lottery_data} lottery_data
- */
- lottery_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.lottery_data)
- return object;
- return new $root.game.lottery_data();
- };
- /**
- * Creates a plain object from a lottery_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.lottery_data
- * @static
- * @param {game.lottery_data} message lottery_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- lottery_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this lottery_data to JSON.
- * @function toJSON
- * @memberof game.lottery_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- lottery_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return lottery_data;
- })();
- game.lottery_data_rsp = (function() {
- /**
- * Properties of a lottery_data_rsp.
- * @memberof game
- * @interface Ilottery_data_rsp
- * @property {number|Long|null} [errno] lottery_data_rsp errno
- */
- /**
- * Constructs a new lottery_data_rsp.
- * @memberof game
- * @classdesc Represents a lottery_data_rsp.
- * @implements Ilottery_data_rsp
- * @constructor
- * @param {game.Ilottery_data_rsp=} [properties] Properties to set
- */
- function lottery_data_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * lottery_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.lottery_data_rsp
- * @instance
- */
- lottery_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new lottery_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.lottery_data_rsp
- * @static
- * @param {game.Ilottery_data_rsp=} [properties] Properties to set
- * @returns {game.lottery_data_rsp} lottery_data_rsp instance
- */
- lottery_data_rsp.create = function create(properties) {
- return new lottery_data_rsp(properties);
- };
- /**
- * Encodes the specified lottery_data_rsp message. Does not implicitly {@link game.lottery_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.lottery_data_rsp
- * @static
- * @param {game.Ilottery_data_rsp} message lottery_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified lottery_data_rsp message, length delimited. Does not implicitly {@link game.lottery_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.lottery_data_rsp
- * @static
- * @param {game.Ilottery_data_rsp} message lottery_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a lottery_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.lottery_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.lottery_data_rsp} lottery_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a lottery_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.lottery_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.lottery_data_rsp} lottery_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a lottery_data_rsp message.
- * @function verify
- * @memberof game.lottery_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- lottery_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a lottery_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.lottery_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.lottery_data_rsp} lottery_data_rsp
- */
- lottery_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.lottery_data_rsp)
- return object;
- let message = new $root.game.lottery_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a lottery_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.lottery_data_rsp
- * @static
- * @param {game.lottery_data_rsp} message lottery_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- lottery_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this lottery_data_rsp to JSON.
- * @function toJSON
- * @memberof game.lottery_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- lottery_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return lottery_data_rsp;
- })();
- game.lottery_award = (function() {
- /**
- * Properties of a lottery_award.
- * @memberof game
- * @interface Ilottery_award
- * @property {boolean|null} [free] lottery_award free
- */
- /**
- * Constructs a new lottery_award.
- * @memberof game
- * @classdesc Represents a lottery_award.
- * @implements Ilottery_award
- * @constructor
- * @param {game.Ilottery_award=} [properties] Properties to set
- */
- function lottery_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * lottery_award free.
- * @member {boolean} free
- * @memberof game.lottery_award
- * @instance
- */
- lottery_award.prototype.free = false;
- /**
- * Creates a new lottery_award instance using the specified properties.
- * @function create
- * @memberof game.lottery_award
- * @static
- * @param {game.Ilottery_award=} [properties] Properties to set
- * @returns {game.lottery_award} lottery_award instance
- */
- lottery_award.create = function create(properties) {
- return new lottery_award(properties);
- };
- /**
- * Encodes the specified lottery_award message. Does not implicitly {@link game.lottery_award.verify|verify} messages.
- * @function encode
- * @memberof game.lottery_award
- * @static
- * @param {game.Ilottery_award} message lottery_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.free != null && Object.hasOwnProperty.call(message, "free"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.free);
- return writer;
- };
- /**
- * Encodes the specified lottery_award message, length delimited. Does not implicitly {@link game.lottery_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.lottery_award
- * @static
- * @param {game.Ilottery_award} message lottery_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a lottery_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.lottery_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.lottery_award} lottery_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.free = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a lottery_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.lottery_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.lottery_award} lottery_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a lottery_award message.
- * @function verify
- * @memberof game.lottery_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- lottery_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.free != null && message.hasOwnProperty("free"))
- if (typeof message.free !== "boolean")
- return "free: boolean expected";
- return null;
- };
- /**
- * Creates a lottery_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.lottery_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.lottery_award} lottery_award
- */
- lottery_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.lottery_award)
- return object;
- let message = new $root.game.lottery_award();
- if (object.free != null)
- message.free = Boolean(object.free);
- return message;
- };
- /**
- * Creates a plain object from a lottery_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.lottery_award
- * @static
- * @param {game.lottery_award} message lottery_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- lottery_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- object.free = false;
- if (message.free != null && message.hasOwnProperty("free"))
- object.free = message.free;
- return object;
- };
- /**
- * Converts this lottery_award to JSON.
- * @function toJSON
- * @memberof game.lottery_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- lottery_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return lottery_award;
- })();
- game.lottery_award_rsp = (function() {
- /**
- * Properties of a lottery_award_rsp.
- * @memberof game
- * @interface Ilottery_award_rsp
- * @property {number|Long|null} [errno] lottery_award_rsp errno
- * @property {boolean|null} [free] lottery_award_rsp free
- * @property {number|Long|null} [award] lottery_award_rsp award
- */
- /**
- * Constructs a new lottery_award_rsp.
- * @memberof game
- * @classdesc Represents a lottery_award_rsp.
- * @implements Ilottery_award_rsp
- * @constructor
- * @param {game.Ilottery_award_rsp=} [properties] Properties to set
- */
- function lottery_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * lottery_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.lottery_award_rsp
- * @instance
- */
- lottery_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * lottery_award_rsp free.
- * @member {boolean} free
- * @memberof game.lottery_award_rsp
- * @instance
- */
- lottery_award_rsp.prototype.free = false;
- /**
- * lottery_award_rsp award.
- * @member {number|Long} award
- * @memberof game.lottery_award_rsp
- * @instance
- */
- lottery_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new lottery_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.lottery_award_rsp
- * @static
- * @param {game.Ilottery_award_rsp=} [properties] Properties to set
- * @returns {game.lottery_award_rsp} lottery_award_rsp instance
- */
- lottery_award_rsp.create = function create(properties) {
- return new lottery_award_rsp(properties);
- };
- /**
- * Encodes the specified lottery_award_rsp message. Does not implicitly {@link game.lottery_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.lottery_award_rsp
- * @static
- * @param {game.Ilottery_award_rsp} message lottery_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.free != null && Object.hasOwnProperty.call(message, "free"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.free);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
- return writer;
- };
- /**
- * Encodes the specified lottery_award_rsp message, length delimited. Does not implicitly {@link game.lottery_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.lottery_award_rsp
- * @static
- * @param {game.Ilottery_award_rsp} message lottery_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a lottery_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.lottery_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.lottery_award_rsp} lottery_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.free = reader.bool();
- break;
- case 3:
- message.award = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a lottery_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.lottery_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.lottery_award_rsp} lottery_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a lottery_award_rsp message.
- * @function verify
- * @memberof game.lottery_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- lottery_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.free != null && message.hasOwnProperty("free"))
- if (typeof message.free !== "boolean")
- return "free: boolean expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- return null;
- };
- /**
- * Creates a lottery_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.lottery_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.lottery_award_rsp} lottery_award_rsp
- */
- lottery_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.lottery_award_rsp)
- return object;
- let message = new $root.game.lottery_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.free != null)
- message.free = Boolean(object.free);
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a lottery_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.lottery_award_rsp
- * @static
- * @param {game.lottery_award_rsp} message lottery_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- lottery_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.free = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.free != null && message.hasOwnProperty("free"))
- object.free = message.free;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- return object;
- };
- /**
- * Converts this lottery_award_rsp to JSON.
- * @function toJSON
- * @memberof game.lottery_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- lottery_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return lottery_award_rsp;
- })();
- game.lottery_buy = (function() {
- /**
- * Properties of a lottery_buy.
- * @memberof game
- * @interface Ilottery_buy
- */
- /**
- * Constructs a new lottery_buy.
- * @memberof game
- * @classdesc Represents a lottery_buy.
- * @implements Ilottery_buy
- * @constructor
- * @param {game.Ilottery_buy=} [properties] Properties to set
- */
- function lottery_buy(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new lottery_buy instance using the specified properties.
- * @function create
- * @memberof game.lottery_buy
- * @static
- * @param {game.Ilottery_buy=} [properties] Properties to set
- * @returns {game.lottery_buy} lottery_buy instance
- */
- lottery_buy.create = function create(properties) {
- return new lottery_buy(properties);
- };
- /**
- * Encodes the specified lottery_buy message. Does not implicitly {@link game.lottery_buy.verify|verify} messages.
- * @function encode
- * @memberof game.lottery_buy
- * @static
- * @param {game.Ilottery_buy} message lottery_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_buy.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified lottery_buy message, length delimited. Does not implicitly {@link game.lottery_buy.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.lottery_buy
- * @static
- * @param {game.Ilottery_buy} message lottery_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_buy.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a lottery_buy message from the specified reader or buffer.
- * @function decode
- * @memberof game.lottery_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.lottery_buy} lottery_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_buy.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_buy();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a lottery_buy message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.lottery_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.lottery_buy} lottery_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_buy.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a lottery_buy message.
- * @function verify
- * @memberof game.lottery_buy
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- lottery_buy.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a lottery_buy message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.lottery_buy
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.lottery_buy} lottery_buy
- */
- lottery_buy.fromObject = function fromObject(object) {
- if (object instanceof $root.game.lottery_buy)
- return object;
- return new $root.game.lottery_buy();
- };
- /**
- * Creates a plain object from a lottery_buy message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.lottery_buy
- * @static
- * @param {game.lottery_buy} message lottery_buy
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- lottery_buy.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this lottery_buy to JSON.
- * @function toJSON
- * @memberof game.lottery_buy
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- lottery_buy.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return lottery_buy;
- })();
- game.lottery_buy_rsp = (function() {
- /**
- * Properties of a lottery_buy_rsp.
- * @memberof game
- * @interface Ilottery_buy_rsp
- * @property {number|Long|null} [errno] lottery_buy_rsp errno
- */
- /**
- * Constructs a new lottery_buy_rsp.
- * @memberof game
- * @classdesc Represents a lottery_buy_rsp.
- * @implements Ilottery_buy_rsp
- * @constructor
- * @param {game.Ilottery_buy_rsp=} [properties] Properties to set
- */
- function lottery_buy_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * lottery_buy_rsp errno.
- * @member {number|Long} errno
- * @memberof game.lottery_buy_rsp
- * @instance
- */
- lottery_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new lottery_buy_rsp instance using the specified properties.
- * @function create
- * @memberof game.lottery_buy_rsp
- * @static
- * @param {game.Ilottery_buy_rsp=} [properties] Properties to set
- * @returns {game.lottery_buy_rsp} lottery_buy_rsp instance
- */
- lottery_buy_rsp.create = function create(properties) {
- return new lottery_buy_rsp(properties);
- };
- /**
- * Encodes the specified lottery_buy_rsp message. Does not implicitly {@link game.lottery_buy_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.lottery_buy_rsp
- * @static
- * @param {game.Ilottery_buy_rsp} message lottery_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_buy_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified lottery_buy_rsp message, length delimited. Does not implicitly {@link game.lottery_buy_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.lottery_buy_rsp
- * @static
- * @param {game.Ilottery_buy_rsp} message lottery_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a lottery_buy_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.lottery_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.lottery_buy_rsp} lottery_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_buy_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_buy_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a lottery_buy_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.lottery_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.lottery_buy_rsp} lottery_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a lottery_buy_rsp message.
- * @function verify
- * @memberof game.lottery_buy_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- lottery_buy_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a lottery_buy_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.lottery_buy_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.lottery_buy_rsp} lottery_buy_rsp
- */
- lottery_buy_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.lottery_buy_rsp)
- return object;
- let message = new $root.game.lottery_buy_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a lottery_buy_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.lottery_buy_rsp
- * @static
- * @param {game.lottery_buy_rsp} message lottery_buy_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- lottery_buy_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this lottery_buy_rsp to JSON.
- * @function toJSON
- * @memberof game.lottery_buy_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- lottery_buy_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return lottery_buy_rsp;
- })();
- game.lottery_nty = (function() {
- /**
- * Properties of a lottery_nty.
- * @memberof game
- * @interface Ilottery_nty
- * @property {number|Long|null} [state] lottery_nty state
- * @property {number|Long|null} [free] lottery_nty free
- * @property {number|Long|null} [award] lottery_nty award
- * @property {number|Long|null} [day] lottery_nty day
- */
- /**
- * Constructs a new lottery_nty.
- * @memberof game
- * @classdesc Represents a lottery_nty.
- * @implements Ilottery_nty
- * @constructor
- * @param {game.Ilottery_nty=} [properties] Properties to set
- */
- function lottery_nty(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * lottery_nty state.
- * @member {number|Long} state
- * @memberof game.lottery_nty
- * @instance
- */
- lottery_nty.prototype.state = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * lottery_nty free.
- * @member {number|Long} free
- * @memberof game.lottery_nty
- * @instance
- */
- lottery_nty.prototype.free = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * lottery_nty award.
- * @member {number|Long} award
- * @memberof game.lottery_nty
- * @instance
- */
- lottery_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * lottery_nty day.
- * @member {number|Long} day
- * @memberof game.lottery_nty
- * @instance
- */
- lottery_nty.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new lottery_nty instance using the specified properties.
- * @function create
- * @memberof game.lottery_nty
- * @static
- * @param {game.Ilottery_nty=} [properties] Properties to set
- * @returns {game.lottery_nty} lottery_nty instance
- */
- lottery_nty.create = function create(properties) {
- return new lottery_nty(properties);
- };
- /**
- * Encodes the specified lottery_nty message. Does not implicitly {@link game.lottery_nty.verify|verify} messages.
- * @function encode
- * @memberof game.lottery_nty
- * @static
- * @param {game.Ilottery_nty} message lottery_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_nty.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.state != null && Object.hasOwnProperty.call(message, "state"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.state);
- if (message.free != null && Object.hasOwnProperty.call(message, "free"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.free);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
- if (message.day != null && Object.hasOwnProperty.call(message, "day"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.day);
- return writer;
- };
- /**
- * Encodes the specified lottery_nty message, length delimited. Does not implicitly {@link game.lottery_nty.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.lottery_nty
- * @static
- * @param {game.Ilottery_nty} message lottery_nty message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- lottery_nty.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a lottery_nty message from the specified reader or buffer.
- * @function decode
- * @memberof game.lottery_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.lottery_nty} lottery_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_nty.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_nty();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.state = reader.int64();
- break;
- case 2:
- message.free = reader.int64();
- break;
- case 3:
- message.award = reader.int64();
- break;
- case 4:
- message.day = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a lottery_nty message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.lottery_nty
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.lottery_nty} lottery_nty
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- lottery_nty.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a lottery_nty message.
- * @function verify
- * @memberof game.lottery_nty
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- lottery_nty.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.state != null && message.hasOwnProperty("state"))
- if (!$util.isInteger(message.state) && !(message.state && $util.isInteger(message.state.low) && $util.isInteger(message.state.high)))
- return "state: integer|Long expected";
- if (message.free != null && message.hasOwnProperty("free"))
- if (!$util.isInteger(message.free) && !(message.free && $util.isInteger(message.free.low) && $util.isInteger(message.free.high)))
- return "free: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- if (message.day != null && message.hasOwnProperty("day"))
- if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
- return "day: integer|Long expected";
- return null;
- };
- /**
- * Creates a lottery_nty message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.lottery_nty
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.lottery_nty} lottery_nty
- */
- lottery_nty.fromObject = function fromObject(object) {
- if (object instanceof $root.game.lottery_nty)
- return object;
- let message = new $root.game.lottery_nty();
- if (object.state != null)
- if ($util.Long)
- (message.state = $util.Long.fromValue(object.state)).unsigned = false;
- else if (typeof object.state === "string")
- message.state = parseInt(object.state, 10);
- else if (typeof object.state === "number")
- message.state = object.state;
- else if (typeof object.state === "object")
- message.state = new $util.LongBits(object.state.low >>> 0, object.state.high >>> 0).toNumber();
- if (object.free != null)
- if ($util.Long)
- (message.free = $util.Long.fromValue(object.free)).unsigned = false;
- else if (typeof object.free === "string")
- message.free = parseInt(object.free, 10);
- else if (typeof object.free === "number")
- message.free = object.free;
- else if (typeof object.free === "object")
- message.free = new $util.LongBits(object.free.low >>> 0, object.free.high >>> 0).toNumber();
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- if (object.day != null)
- if ($util.Long)
- (message.day = $util.Long.fromValue(object.day)).unsigned = false;
- else if (typeof object.day === "string")
- message.day = parseInt(object.day, 10);
- else if (typeof object.day === "number")
- message.day = object.day;
- else if (typeof object.day === "object")
- message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a lottery_nty message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.lottery_nty
- * @static
- * @param {game.lottery_nty} message lottery_nty
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- lottery_nty.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.state = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.state = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.free = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.free = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.day = options.longs === String ? "0" : 0;
- }
- if (message.state != null && message.hasOwnProperty("state"))
- if (typeof message.state === "number")
- object.state = options.longs === String ? String(message.state) : message.state;
- else
- object.state = options.longs === String ? $util.Long.prototype.toString.call(message.state) : options.longs === Number ? new $util.LongBits(message.state.low >>> 0, message.state.high >>> 0).toNumber() : message.state;
- if (message.free != null && message.hasOwnProperty("free"))
- if (typeof message.free === "number")
- object.free = options.longs === String ? String(message.free) : message.free;
- else
- object.free = options.longs === String ? $util.Long.prototype.toString.call(message.free) : options.longs === Number ? new $util.LongBits(message.free.low >>> 0, message.free.high >>> 0).toNumber() : message.free;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- if (message.day != null && message.hasOwnProperty("day"))
- if (typeof message.day === "number")
- object.day = options.longs === String ? String(message.day) : message.day;
- else
- object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
- return object;
- };
- /**
- * Converts this lottery_nty to JSON.
- * @function toJSON
- * @memberof game.lottery_nty
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- lottery_nty.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return lottery_nty;
- })();
- game.act_rank_data = (function() {
- /**
- * Properties of an act_rank_data.
- * @memberof game
- * @interface Iact_rank_data
- * @property {number|Long|null} [id] act_rank_data id
- */
- /**
- * Constructs a new act_rank_data.
- * @memberof game
- * @classdesc Represents an act_rank_data.
- * @implements Iact_rank_data
- * @constructor
- * @param {game.Iact_rank_data=} [properties] Properties to set
- */
- function act_rank_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * act_rank_data id.
- * @member {number|Long} id
- * @memberof game.act_rank_data
- * @instance
- */
- act_rank_data.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new act_rank_data instance using the specified properties.
- * @function create
- * @memberof game.act_rank_data
- * @static
- * @param {game.Iact_rank_data=} [properties] Properties to set
- * @returns {game.act_rank_data} act_rank_data instance
- */
- act_rank_data.create = function create(properties) {
- return new act_rank_data(properties);
- };
- /**
- * Encodes the specified act_rank_data message. Does not implicitly {@link game.act_rank_data.verify|verify} messages.
- * @function encode
- * @memberof game.act_rank_data
- * @static
- * @param {game.Iact_rank_data} message act_rank_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- act_rank_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified act_rank_data message, length delimited. Does not implicitly {@link game.act_rank_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.act_rank_data
- * @static
- * @param {game.Iact_rank_data} message act_rank_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- act_rank_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an act_rank_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.act_rank_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.act_rank_data} act_rank_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- act_rank_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.act_rank_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an act_rank_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.act_rank_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.act_rank_data} act_rank_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- act_rank_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an act_rank_data message.
- * @function verify
- * @memberof game.act_rank_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- act_rank_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates an act_rank_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.act_rank_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.act_rank_data} act_rank_data
- */
- act_rank_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.act_rank_data)
- return object;
- let message = new $root.game.act_rank_data();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an act_rank_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.act_rank_data
- * @static
- * @param {game.act_rank_data} message act_rank_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- act_rank_data.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this act_rank_data to JSON.
- * @function toJSON
- * @memberof game.act_rank_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- act_rank_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return act_rank_data;
- })();
- game.act_rank_data_rsp = (function() {
- /**
- * Properties of an act_rank_data_rsp.
- * @memberof game
- * @interface Iact_rank_data_rsp
- * @property {number|Long|null} [errno] act_rank_data_rsp errno
- * @property {Array.<game.Iranking_info>|null} [list] act_rank_data_rsp list
- */
- /**
- * Constructs a new act_rank_data_rsp.
- * @memberof game
- * @classdesc Represents an act_rank_data_rsp.
- * @implements Iact_rank_data_rsp
- * @constructor
- * @param {game.Iact_rank_data_rsp=} [properties] Properties to set
- */
- function act_rank_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * act_rank_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.act_rank_data_rsp
- * @instance
- */
- act_rank_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * act_rank_data_rsp list.
- * @member {Array.<game.Iranking_info>} list
- * @memberof game.act_rank_data_rsp
- * @instance
- */
- act_rank_data_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new act_rank_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.act_rank_data_rsp
- * @static
- * @param {game.Iact_rank_data_rsp=} [properties] Properties to set
- * @returns {game.act_rank_data_rsp} act_rank_data_rsp instance
- */
- act_rank_data_rsp.create = function create(properties) {
- return new act_rank_data_rsp(properties);
- };
- /**
- * Encodes the specified act_rank_data_rsp message. Does not implicitly {@link game.act_rank_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.act_rank_data_rsp
- * @static
- * @param {game.Iact_rank_data_rsp} message act_rank_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- act_rank_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.ranking_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified act_rank_data_rsp message, length delimited. Does not implicitly {@link game.act_rank_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.act_rank_data_rsp
- * @static
- * @param {game.Iact_rank_data_rsp} message act_rank_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- act_rank_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an act_rank_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.act_rank_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.act_rank_data_rsp} act_rank_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- act_rank_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.act_rank_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.ranking_info.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an act_rank_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.act_rank_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.act_rank_data_rsp} act_rank_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- act_rank_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an act_rank_data_rsp message.
- * @function verify
- * @memberof game.act_rank_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- act_rank_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.ranking_info.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates an act_rank_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.act_rank_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.act_rank_data_rsp} act_rank_data_rsp
- */
- act_rank_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.act_rank_data_rsp)
- return object;
- let message = new $root.game.act_rank_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.act_rank_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.act_rank_data_rsp.list: object expected");
- message.list[i] = $root.game.ranking_info.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from an act_rank_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.act_rank_data_rsp
- * @static
- * @param {game.act_rank_data_rsp} message act_rank_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- act_rank_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.ranking_info.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this act_rank_data_rsp to JSON.
- * @function toJSON
- * @memberof game.act_rank_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- act_rank_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return act_rank_data_rsp;
- })();
- game.treasure_get_data = (function() {
- /**
- * Properties of a treasure_get_data.
- * @memberof game
- * @interface Itreasure_get_data
- */
- /**
- * Constructs a new treasure_get_data.
- * @memberof game
- * @classdesc Represents a treasure_get_data.
- * @implements Itreasure_get_data
- * @constructor
- * @param {game.Itreasure_get_data=} [properties] Properties to set
- */
- function treasure_get_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new treasure_get_data instance using the specified properties.
- * @function create
- * @memberof game.treasure_get_data
- * @static
- * @param {game.Itreasure_get_data=} [properties] Properties to set
- * @returns {game.treasure_get_data} treasure_get_data instance
- */
- treasure_get_data.create = function create(properties) {
- return new treasure_get_data(properties);
- };
- /**
- * Encodes the specified treasure_get_data message. Does not implicitly {@link game.treasure_get_data.verify|verify} messages.
- * @function encode
- * @memberof game.treasure_get_data
- * @static
- * @param {game.Itreasure_get_data} message treasure_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_get_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified treasure_get_data message, length delimited. Does not implicitly {@link game.treasure_get_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.treasure_get_data
- * @static
- * @param {game.Itreasure_get_data} message treasure_get_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_get_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a treasure_get_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.treasure_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.treasure_get_data} treasure_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_get_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_get_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a treasure_get_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.treasure_get_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.treasure_get_data} treasure_get_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_get_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a treasure_get_data message.
- * @function verify
- * @memberof game.treasure_get_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- treasure_get_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a treasure_get_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.treasure_get_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.treasure_get_data} treasure_get_data
- */
- treasure_get_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.treasure_get_data)
- return object;
- return new $root.game.treasure_get_data();
- };
- /**
- * Creates a plain object from a treasure_get_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.treasure_get_data
- * @static
- * @param {game.treasure_get_data} message treasure_get_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- treasure_get_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this treasure_get_data to JSON.
- * @function toJSON
- * @memberof game.treasure_get_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- treasure_get_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return treasure_get_data;
- })();
- game.treasure_get_data_rsp = (function() {
- /**
- * Properties of a treasure_get_data_rsp.
- * @memberof game
- * @interface Itreasure_get_data_rsp
- * @property {number|Long|null} [errno] treasure_get_data_rsp errno
- * @property {number|Long|null} [buy] treasure_get_data_rsp buy
- * @property {number|Long|null} [sign] treasure_get_data_rsp sign
- * @property {Array.<number|Long>|null} [list] treasure_get_data_rsp list
- * @property {boolean|null} [treasure] treasure_get_data_rsp treasure
- */
- /**
- * Constructs a new treasure_get_data_rsp.
- * @memberof game
- * @classdesc Represents a treasure_get_data_rsp.
- * @implements Itreasure_get_data_rsp
- * @constructor
- * @param {game.Itreasure_get_data_rsp=} [properties] Properties to set
- */
- function treasure_get_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * treasure_get_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.treasure_get_data_rsp
- * @instance
- */
- treasure_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * treasure_get_data_rsp buy.
- * @member {number|Long} buy
- * @memberof game.treasure_get_data_rsp
- * @instance
- */
- treasure_get_data_rsp.prototype.buy = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * treasure_get_data_rsp sign.
- * @member {number|Long} sign
- * @memberof game.treasure_get_data_rsp
- * @instance
- */
- treasure_get_data_rsp.prototype.sign = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * treasure_get_data_rsp list.
- * @member {Array.<number|Long>} list
- * @memberof game.treasure_get_data_rsp
- * @instance
- */
- treasure_get_data_rsp.prototype.list = $util.emptyArray;
- /**
- * treasure_get_data_rsp treasure.
- * @member {boolean} treasure
- * @memberof game.treasure_get_data_rsp
- * @instance
- */
- treasure_get_data_rsp.prototype.treasure = false;
- /**
- * Creates a new treasure_get_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.treasure_get_data_rsp
- * @static
- * @param {game.Itreasure_get_data_rsp=} [properties] Properties to set
- * @returns {game.treasure_get_data_rsp} treasure_get_data_rsp instance
- */
- treasure_get_data_rsp.create = function create(properties) {
- return new treasure_get_data_rsp(properties);
- };
- /**
- * Encodes the specified treasure_get_data_rsp message. Does not implicitly {@link game.treasure_get_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.treasure_get_data_rsp
- * @static
- * @param {game.Itreasure_get_data_rsp} message treasure_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_get_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.buy != null && Object.hasOwnProperty.call(message, "buy"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.buy);
- if (message.sign != null && Object.hasOwnProperty.call(message, "sign"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.sign);
- if (message.list != null && message.list.length) {
- writer.uint32(/* id 4, wireType 2 =*/34).fork();
- for (let i = 0; i < message.list.length; ++i)
- writer.int64(message.list[i]);
- writer.ldelim();
- }
- if (message.treasure != null && Object.hasOwnProperty.call(message, "treasure"))
- writer.uint32(/* id 5, wireType 0 =*/40).bool(message.treasure);
- return writer;
- };
- /**
- * Encodes the specified treasure_get_data_rsp message, length delimited. Does not implicitly {@link game.treasure_get_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.treasure_get_data_rsp
- * @static
- * @param {game.Itreasure_get_data_rsp} message treasure_get_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a treasure_get_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.treasure_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.treasure_get_data_rsp} treasure_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_get_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_get_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.buy = reader.int64();
- break;
- case 3:
- message.sign = reader.int64();
- break;
- case 4:
- if (!(message.list && message.list.length))
- message.list = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.list.push(reader.int64());
- } else
- message.list.push(reader.int64());
- break;
- case 5:
- message.treasure = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a treasure_get_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.treasure_get_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.treasure_get_data_rsp} treasure_get_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a treasure_get_data_rsp message.
- * @function verify
- * @memberof game.treasure_get_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- treasure_get_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.buy != null && message.hasOwnProperty("buy"))
- if (!$util.isInteger(message.buy) && !(message.buy && $util.isInteger(message.buy.low) && $util.isInteger(message.buy.high)))
- return "buy: integer|Long expected";
- if (message.sign != null && message.hasOwnProperty("sign"))
- if (!$util.isInteger(message.sign) && !(message.sign && $util.isInteger(message.sign.low) && $util.isInteger(message.sign.high)))
- return "sign: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isInteger(message.list[i]) && !(message.list[i] && $util.isInteger(message.list[i].low) && $util.isInteger(message.list[i].high)))
- return "list: integer|Long[] expected";
- }
- if (message.treasure != null && message.hasOwnProperty("treasure"))
- if (typeof message.treasure !== "boolean")
- return "treasure: boolean expected";
- return null;
- };
- /**
- * Creates a treasure_get_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.treasure_get_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.treasure_get_data_rsp} treasure_get_data_rsp
- */
- treasure_get_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.treasure_get_data_rsp)
- return object;
- let message = new $root.game.treasure_get_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.buy != null)
- if ($util.Long)
- (message.buy = $util.Long.fromValue(object.buy)).unsigned = false;
- else if (typeof object.buy === "string")
- message.buy = parseInt(object.buy, 10);
- else if (typeof object.buy === "number")
- message.buy = object.buy;
- else if (typeof object.buy === "object")
- message.buy = new $util.LongBits(object.buy.low >>> 0, object.buy.high >>> 0).toNumber();
- if (object.sign != null)
- if ($util.Long)
- (message.sign = $util.Long.fromValue(object.sign)).unsigned = false;
- else if (typeof object.sign === "string")
- message.sign = parseInt(object.sign, 10);
- else if (typeof object.sign === "number")
- message.sign = object.sign;
- else if (typeof object.sign === "object")
- message.sign = new $util.LongBits(object.sign.low >>> 0, object.sign.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.treasure_get_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- if ($util.Long)
- (message.list[i] = $util.Long.fromValue(object.list[i])).unsigned = false;
- else if (typeof object.list[i] === "string")
- message.list[i] = parseInt(object.list[i], 10);
- else if (typeof object.list[i] === "number")
- message.list[i] = object.list[i];
- else if (typeof object.list[i] === "object")
- message.list[i] = new $util.LongBits(object.list[i].low >>> 0, object.list[i].high >>> 0).toNumber();
- }
- if (object.treasure != null)
- message.treasure = Boolean(object.treasure);
- return message;
- };
- /**
- * Creates a plain object from a treasure_get_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.treasure_get_data_rsp
- * @static
- * @param {game.treasure_get_data_rsp} message treasure_get_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- treasure_get_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.buy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.buy = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.sign = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.sign = options.longs === String ? "0" : 0;
- object.treasure = false;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.buy != null && message.hasOwnProperty("buy"))
- if (typeof message.buy === "number")
- object.buy = options.longs === String ? String(message.buy) : message.buy;
- else
- object.buy = options.longs === String ? $util.Long.prototype.toString.call(message.buy) : options.longs === Number ? new $util.LongBits(message.buy.low >>> 0, message.buy.high >>> 0).toNumber() : message.buy;
- if (message.sign != null && message.hasOwnProperty("sign"))
- if (typeof message.sign === "number")
- object.sign = options.longs === String ? String(message.sign) : message.sign;
- else
- object.sign = options.longs === String ? $util.Long.prototype.toString.call(message.sign) : options.longs === Number ? new $util.LongBits(message.sign.low >>> 0, message.sign.high >>> 0).toNumber() : message.sign;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- if (typeof message.list[j] === "number")
- object.list[j] = options.longs === String ? String(message.list[j]) : message.list[j];
- else
- object.list[j] = options.longs === String ? $util.Long.prototype.toString.call(message.list[j]) : options.longs === Number ? new $util.LongBits(message.list[j].low >>> 0, message.list[j].high >>> 0).toNumber() : message.list[j];
- }
- if (message.treasure != null && message.hasOwnProperty("treasure"))
- object.treasure = message.treasure;
- return object;
- };
- /**
- * Converts this treasure_get_data_rsp to JSON.
- * @function toJSON
- * @memberof game.treasure_get_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- treasure_get_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return treasure_get_data_rsp;
- })();
- game.treasure_draw = (function() {
- /**
- * Properties of a treasure_draw.
- * @memberof game
- * @interface Itreasure_draw
- */
- /**
- * Constructs a new treasure_draw.
- * @memberof game
- * @classdesc Represents a treasure_draw.
- * @implements Itreasure_draw
- * @constructor
- * @param {game.Itreasure_draw=} [properties] Properties to set
- */
- function treasure_draw(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new treasure_draw instance using the specified properties.
- * @function create
- * @memberof game.treasure_draw
- * @static
- * @param {game.Itreasure_draw=} [properties] Properties to set
- * @returns {game.treasure_draw} treasure_draw instance
- */
- treasure_draw.create = function create(properties) {
- return new treasure_draw(properties);
- };
- /**
- * Encodes the specified treasure_draw message. Does not implicitly {@link game.treasure_draw.verify|verify} messages.
- * @function encode
- * @memberof game.treasure_draw
- * @static
- * @param {game.Itreasure_draw} message treasure_draw message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_draw.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified treasure_draw message, length delimited. Does not implicitly {@link game.treasure_draw.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.treasure_draw
- * @static
- * @param {game.Itreasure_draw} message treasure_draw message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_draw.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a treasure_draw message from the specified reader or buffer.
- * @function decode
- * @memberof game.treasure_draw
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.treasure_draw} treasure_draw
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_draw.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_draw();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a treasure_draw message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.treasure_draw
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.treasure_draw} treasure_draw
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_draw.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a treasure_draw message.
- * @function verify
- * @memberof game.treasure_draw
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- treasure_draw.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a treasure_draw message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.treasure_draw
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.treasure_draw} treasure_draw
- */
- treasure_draw.fromObject = function fromObject(object) {
- if (object instanceof $root.game.treasure_draw)
- return object;
- return new $root.game.treasure_draw();
- };
- /**
- * Creates a plain object from a treasure_draw message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.treasure_draw
- * @static
- * @param {game.treasure_draw} message treasure_draw
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- treasure_draw.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this treasure_draw to JSON.
- * @function toJSON
- * @memberof game.treasure_draw
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- treasure_draw.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return treasure_draw;
- })();
- game.treasure_draw_rsp = (function() {
- /**
- * Properties of a treasure_draw_rsp.
- * @memberof game
- * @interface Itreasure_draw_rsp
- * @property {number|Long|null} [errno] treasure_draw_rsp errno
- * @property {number|Long|null} [pos] treasure_draw_rsp pos
- */
- /**
- * Constructs a new treasure_draw_rsp.
- * @memberof game
- * @classdesc Represents a treasure_draw_rsp.
- * @implements Itreasure_draw_rsp
- * @constructor
- * @param {game.Itreasure_draw_rsp=} [properties] Properties to set
- */
- function treasure_draw_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * treasure_draw_rsp errno.
- * @member {number|Long} errno
- * @memberof game.treasure_draw_rsp
- * @instance
- */
- treasure_draw_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * treasure_draw_rsp pos.
- * @member {number|Long} pos
- * @memberof game.treasure_draw_rsp
- * @instance
- */
- treasure_draw_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new treasure_draw_rsp instance using the specified properties.
- * @function create
- * @memberof game.treasure_draw_rsp
- * @static
- * @param {game.Itreasure_draw_rsp=} [properties] Properties to set
- * @returns {game.treasure_draw_rsp} treasure_draw_rsp instance
- */
- treasure_draw_rsp.create = function create(properties) {
- return new treasure_draw_rsp(properties);
- };
- /**
- * Encodes the specified treasure_draw_rsp message. Does not implicitly {@link game.treasure_draw_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.treasure_draw_rsp
- * @static
- * @param {game.Itreasure_draw_rsp} message treasure_draw_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_draw_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
- return writer;
- };
- /**
- * Encodes the specified treasure_draw_rsp message, length delimited. Does not implicitly {@link game.treasure_draw_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.treasure_draw_rsp
- * @static
- * @param {game.Itreasure_draw_rsp} message treasure_draw_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_draw_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a treasure_draw_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.treasure_draw_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.treasure_draw_rsp} treasure_draw_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_draw_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_draw_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.pos = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a treasure_draw_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.treasure_draw_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.treasure_draw_rsp} treasure_draw_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_draw_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a treasure_draw_rsp message.
- * @function verify
- * @memberof game.treasure_draw_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- treasure_draw_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- return null;
- };
- /**
- * Creates a treasure_draw_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.treasure_draw_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.treasure_draw_rsp} treasure_draw_rsp
- */
- treasure_draw_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.treasure_draw_rsp)
- return object;
- let message = new $root.game.treasure_draw_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a treasure_draw_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.treasure_draw_rsp
- * @static
- * @param {game.treasure_draw_rsp} message treasure_draw_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- treasure_draw_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- return object;
- };
- /**
- * Converts this treasure_draw_rsp to JSON.
- * @function toJSON
- * @memberof game.treasure_draw_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- treasure_draw_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return treasure_draw_rsp;
- })();
- game.treasure_sign = (function() {
- /**
- * Properties of a treasure_sign.
- * @memberof game
- * @interface Itreasure_sign
- */
- /**
- * Constructs a new treasure_sign.
- * @memberof game
- * @classdesc Represents a treasure_sign.
- * @implements Itreasure_sign
- * @constructor
- * @param {game.Itreasure_sign=} [properties] Properties to set
- */
- function treasure_sign(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new treasure_sign instance using the specified properties.
- * @function create
- * @memberof game.treasure_sign
- * @static
- * @param {game.Itreasure_sign=} [properties] Properties to set
- * @returns {game.treasure_sign} treasure_sign instance
- */
- treasure_sign.create = function create(properties) {
- return new treasure_sign(properties);
- };
- /**
- * Encodes the specified treasure_sign message. Does not implicitly {@link game.treasure_sign.verify|verify} messages.
- * @function encode
- * @memberof game.treasure_sign
- * @static
- * @param {game.Itreasure_sign} message treasure_sign message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_sign.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified treasure_sign message, length delimited. Does not implicitly {@link game.treasure_sign.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.treasure_sign
- * @static
- * @param {game.Itreasure_sign} message treasure_sign message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_sign.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a treasure_sign message from the specified reader or buffer.
- * @function decode
- * @memberof game.treasure_sign
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.treasure_sign} treasure_sign
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_sign.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_sign();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a treasure_sign message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.treasure_sign
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.treasure_sign} treasure_sign
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_sign.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a treasure_sign message.
- * @function verify
- * @memberof game.treasure_sign
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- treasure_sign.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a treasure_sign message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.treasure_sign
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.treasure_sign} treasure_sign
- */
- treasure_sign.fromObject = function fromObject(object) {
- if (object instanceof $root.game.treasure_sign)
- return object;
- return new $root.game.treasure_sign();
- };
- /**
- * Creates a plain object from a treasure_sign message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.treasure_sign
- * @static
- * @param {game.treasure_sign} message treasure_sign
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- treasure_sign.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this treasure_sign to JSON.
- * @function toJSON
- * @memberof game.treasure_sign
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- treasure_sign.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return treasure_sign;
- })();
- game.treasure_sign_rsp = (function() {
- /**
- * Properties of a treasure_sign_rsp.
- * @memberof game
- * @interface Itreasure_sign_rsp
- * @property {number|Long|null} [errno] treasure_sign_rsp errno
- * @property {number|Long|null} [sign] treasure_sign_rsp sign
- */
- /**
- * Constructs a new treasure_sign_rsp.
- * @memberof game
- * @classdesc Represents a treasure_sign_rsp.
- * @implements Itreasure_sign_rsp
- * @constructor
- * @param {game.Itreasure_sign_rsp=} [properties] Properties to set
- */
- function treasure_sign_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * treasure_sign_rsp errno.
- * @member {number|Long} errno
- * @memberof game.treasure_sign_rsp
- * @instance
- */
- treasure_sign_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * treasure_sign_rsp sign.
- * @member {number|Long} sign
- * @memberof game.treasure_sign_rsp
- * @instance
- */
- treasure_sign_rsp.prototype.sign = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new treasure_sign_rsp instance using the specified properties.
- * @function create
- * @memberof game.treasure_sign_rsp
- * @static
- * @param {game.Itreasure_sign_rsp=} [properties] Properties to set
- * @returns {game.treasure_sign_rsp} treasure_sign_rsp instance
- */
- treasure_sign_rsp.create = function create(properties) {
- return new treasure_sign_rsp(properties);
- };
- /**
- * Encodes the specified treasure_sign_rsp message. Does not implicitly {@link game.treasure_sign_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.treasure_sign_rsp
- * @static
- * @param {game.Itreasure_sign_rsp} message treasure_sign_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_sign_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.sign != null && Object.hasOwnProperty.call(message, "sign"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.sign);
- return writer;
- };
- /**
- * Encodes the specified treasure_sign_rsp message, length delimited. Does not implicitly {@link game.treasure_sign_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.treasure_sign_rsp
- * @static
- * @param {game.Itreasure_sign_rsp} message treasure_sign_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_sign_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a treasure_sign_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.treasure_sign_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.treasure_sign_rsp} treasure_sign_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_sign_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_sign_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.sign = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a treasure_sign_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.treasure_sign_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.treasure_sign_rsp} treasure_sign_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_sign_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a treasure_sign_rsp message.
- * @function verify
- * @memberof game.treasure_sign_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- treasure_sign_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.sign != null && message.hasOwnProperty("sign"))
- if (!$util.isInteger(message.sign) && !(message.sign && $util.isInteger(message.sign.low) && $util.isInteger(message.sign.high)))
- return "sign: integer|Long expected";
- return null;
- };
- /**
- * Creates a treasure_sign_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.treasure_sign_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.treasure_sign_rsp} treasure_sign_rsp
- */
- treasure_sign_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.treasure_sign_rsp)
- return object;
- let message = new $root.game.treasure_sign_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.sign != null)
- if ($util.Long)
- (message.sign = $util.Long.fromValue(object.sign)).unsigned = false;
- else if (typeof object.sign === "string")
- message.sign = parseInt(object.sign, 10);
- else if (typeof object.sign === "number")
- message.sign = object.sign;
- else if (typeof object.sign === "object")
- message.sign = new $util.LongBits(object.sign.low >>> 0, object.sign.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a treasure_sign_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.treasure_sign_rsp
- * @static
- * @param {game.treasure_sign_rsp} message treasure_sign_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- treasure_sign_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.sign = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.sign = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.sign != null && message.hasOwnProperty("sign"))
- if (typeof message.sign === "number")
- object.sign = options.longs === String ? String(message.sign) : message.sign;
- else
- object.sign = options.longs === String ? $util.Long.prototype.toString.call(message.sign) : options.longs === Number ? new $util.LongBits(message.sign.low >>> 0, message.sign.high >>> 0).toNumber() : message.sign;
- return object;
- };
- /**
- * Converts this treasure_sign_rsp to JSON.
- * @function toJSON
- * @memberof game.treasure_sign_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- treasure_sign_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return treasure_sign_rsp;
- })();
- game.treasure_buy = (function() {
- /**
- * Properties of a treasure_buy.
- * @memberof game
- * @interface Itreasure_buy
- */
- /**
- * Constructs a new treasure_buy.
- * @memberof game
- * @classdesc Represents a treasure_buy.
- * @implements Itreasure_buy
- * @constructor
- * @param {game.Itreasure_buy=} [properties] Properties to set
- */
- function treasure_buy(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new treasure_buy instance using the specified properties.
- * @function create
- * @memberof game.treasure_buy
- * @static
- * @param {game.Itreasure_buy=} [properties] Properties to set
- * @returns {game.treasure_buy} treasure_buy instance
- */
- treasure_buy.create = function create(properties) {
- return new treasure_buy(properties);
- };
- /**
- * Encodes the specified treasure_buy message. Does not implicitly {@link game.treasure_buy.verify|verify} messages.
- * @function encode
- * @memberof game.treasure_buy
- * @static
- * @param {game.Itreasure_buy} message treasure_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_buy.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified treasure_buy message, length delimited. Does not implicitly {@link game.treasure_buy.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.treasure_buy
- * @static
- * @param {game.Itreasure_buy} message treasure_buy message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_buy.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a treasure_buy message from the specified reader or buffer.
- * @function decode
- * @memberof game.treasure_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.treasure_buy} treasure_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_buy.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_buy();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a treasure_buy message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.treasure_buy
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.treasure_buy} treasure_buy
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_buy.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a treasure_buy message.
- * @function verify
- * @memberof game.treasure_buy
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- treasure_buy.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a treasure_buy message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.treasure_buy
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.treasure_buy} treasure_buy
- */
- treasure_buy.fromObject = function fromObject(object) {
- if (object instanceof $root.game.treasure_buy)
- return object;
- return new $root.game.treasure_buy();
- };
- /**
- * Creates a plain object from a treasure_buy message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.treasure_buy
- * @static
- * @param {game.treasure_buy} message treasure_buy
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- treasure_buy.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this treasure_buy to JSON.
- * @function toJSON
- * @memberof game.treasure_buy
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- treasure_buy.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return treasure_buy;
- })();
- game.treasure_buy_rsp = (function() {
- /**
- * Properties of a treasure_buy_rsp.
- * @memberof game
- * @interface Itreasure_buy_rsp
- * @property {number|Long|null} [errno] treasure_buy_rsp errno
- * @property {number|Long|null} [buy] treasure_buy_rsp buy
- */
- /**
- * Constructs a new treasure_buy_rsp.
- * @memberof game
- * @classdesc Represents a treasure_buy_rsp.
- * @implements Itreasure_buy_rsp
- * @constructor
- * @param {game.Itreasure_buy_rsp=} [properties] Properties to set
- */
- function treasure_buy_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * treasure_buy_rsp errno.
- * @member {number|Long} errno
- * @memberof game.treasure_buy_rsp
- * @instance
- */
- treasure_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * treasure_buy_rsp buy.
- * @member {number|Long} buy
- * @memberof game.treasure_buy_rsp
- * @instance
- */
- treasure_buy_rsp.prototype.buy = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new treasure_buy_rsp instance using the specified properties.
- * @function create
- * @memberof game.treasure_buy_rsp
- * @static
- * @param {game.Itreasure_buy_rsp=} [properties] Properties to set
- * @returns {game.treasure_buy_rsp} treasure_buy_rsp instance
- */
- treasure_buy_rsp.create = function create(properties) {
- return new treasure_buy_rsp(properties);
- };
- /**
- * Encodes the specified treasure_buy_rsp message. Does not implicitly {@link game.treasure_buy_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.treasure_buy_rsp
- * @static
- * @param {game.Itreasure_buy_rsp} message treasure_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_buy_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.buy != null && Object.hasOwnProperty.call(message, "buy"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.buy);
- return writer;
- };
- /**
- * Encodes the specified treasure_buy_rsp message, length delimited. Does not implicitly {@link game.treasure_buy_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.treasure_buy_rsp
- * @static
- * @param {game.Itreasure_buy_rsp} message treasure_buy_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- treasure_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a treasure_buy_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.treasure_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.treasure_buy_rsp} treasure_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_buy_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_buy_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.buy = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a treasure_buy_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.treasure_buy_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.treasure_buy_rsp} treasure_buy_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- treasure_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a treasure_buy_rsp message.
- * @function verify
- * @memberof game.treasure_buy_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- treasure_buy_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.buy != null && message.hasOwnProperty("buy"))
- if (!$util.isInteger(message.buy) && !(message.buy && $util.isInteger(message.buy.low) && $util.isInteger(message.buy.high)))
- return "buy: integer|Long expected";
- return null;
- };
- /**
- * Creates a treasure_buy_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.treasure_buy_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.treasure_buy_rsp} treasure_buy_rsp
- */
- treasure_buy_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.treasure_buy_rsp)
- return object;
- let message = new $root.game.treasure_buy_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.buy != null)
- if ($util.Long)
- (message.buy = $util.Long.fromValue(object.buy)).unsigned = false;
- else if (typeof object.buy === "string")
- message.buy = parseInt(object.buy, 10);
- else if (typeof object.buy === "number")
- message.buy = object.buy;
- else if (typeof object.buy === "object")
- message.buy = new $util.LongBits(object.buy.low >>> 0, object.buy.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a treasure_buy_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.treasure_buy_rsp
- * @static
- * @param {game.treasure_buy_rsp} message treasure_buy_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- treasure_buy_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.buy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.buy = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.buy != null && message.hasOwnProperty("buy"))
- if (typeof message.buy === "number")
- object.buy = options.longs === String ? String(message.buy) : message.buy;
- else
- object.buy = options.longs === String ? $util.Long.prototype.toString.call(message.buy) : options.longs === Number ? new $util.LongBits(message.buy.low >>> 0, message.buy.high >>> 0).toNumber() : message.buy;
- return object;
- };
- /**
- * Converts this treasure_buy_rsp to JSON.
- * @function toJSON
- * @memberof game.treasure_buy_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- treasure_buy_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return treasure_buy_rsp;
- })();
- game.pvp_data = (function() {
- /**
- * Properties of a pvp_data.
- * @memberof game
- * @interface Ipvp_data
- */
- /**
- * Constructs a new pvp_data.
- * @memberof game
- * @classdesc Represents a pvp_data.
- * @implements Ipvp_data
- * @constructor
- * @param {game.Ipvp_data=} [properties] Properties to set
- */
- function pvp_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new pvp_data instance using the specified properties.
- * @function create
- * @memberof game.pvp_data
- * @static
- * @param {game.Ipvp_data=} [properties] Properties to set
- * @returns {game.pvp_data} pvp_data instance
- */
- pvp_data.create = function create(properties) {
- return new pvp_data(properties);
- };
- /**
- * Encodes the specified pvp_data message. Does not implicitly {@link game.pvp_data.verify|verify} messages.
- * @function encode
- * @memberof game.pvp_data
- * @static
- * @param {game.Ipvp_data} message pvp_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified pvp_data message, length delimited. Does not implicitly {@link game.pvp_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pvp_data
- * @static
- * @param {game.Ipvp_data} message pvp_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pvp_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.pvp_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pvp_data} pvp_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pvp_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pvp_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pvp_data} pvp_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pvp_data message.
- * @function verify
- * @memberof game.pvp_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pvp_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a pvp_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pvp_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pvp_data} pvp_data
- */
- pvp_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pvp_data)
- return object;
- return new $root.game.pvp_data();
- };
- /**
- * Creates a plain object from a pvp_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pvp_data
- * @static
- * @param {game.pvp_data} message pvp_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pvp_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this pvp_data to JSON.
- * @function toJSON
- * @memberof game.pvp_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pvp_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pvp_data;
- })();
- game.pvp_data_rsp = (function() {
- /**
- * Properties of a pvp_data_rsp.
- * @memberof game
- * @interface Ipvp_data_rsp
- * @property {number|Long|null} [errno] pvp_data_rsp errno
- * @property {Array.<game.Iembattle_info>|null} [embattleList] pvp_data_rsp embattleList
- * @property {Array.<game.Iranking_info>|null} [rankingList] pvp_data_rsp rankingList
- */
- /**
- * Constructs a new pvp_data_rsp.
- * @memberof game
- * @classdesc Represents a pvp_data_rsp.
- * @implements Ipvp_data_rsp
- * @constructor
- * @param {game.Ipvp_data_rsp=} [properties] Properties to set
- */
- function pvp_data_rsp(properties) {
- this.embattleList = [];
- this.rankingList = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pvp_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.pvp_data_rsp
- * @instance
- */
- pvp_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * pvp_data_rsp embattleList.
- * @member {Array.<game.Iembattle_info>} embattleList
- * @memberof game.pvp_data_rsp
- * @instance
- */
- pvp_data_rsp.prototype.embattleList = $util.emptyArray;
- /**
- * pvp_data_rsp rankingList.
- * @member {Array.<game.Iranking_info>} rankingList
- * @memberof game.pvp_data_rsp
- * @instance
- */
- pvp_data_rsp.prototype.rankingList = $util.emptyArray;
- /**
- * Creates a new pvp_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.pvp_data_rsp
- * @static
- * @param {game.Ipvp_data_rsp=} [properties] Properties to set
- * @returns {game.pvp_data_rsp} pvp_data_rsp instance
- */
- pvp_data_rsp.create = function create(properties) {
- return new pvp_data_rsp(properties);
- };
- /**
- * Encodes the specified pvp_data_rsp message. Does not implicitly {@link game.pvp_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.pvp_data_rsp
- * @static
- * @param {game.Ipvp_data_rsp} message pvp_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.embattleList != null && message.embattleList.length)
- for (let i = 0; i < message.embattleList.length; ++i)
- $root.game.embattle_info.encode(message.embattleList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- if (message.rankingList != null && message.rankingList.length)
- for (let i = 0; i < message.rankingList.length; ++i)
- $root.game.ranking_info.encode(message.rankingList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified pvp_data_rsp message, length delimited. Does not implicitly {@link game.pvp_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pvp_data_rsp
- * @static
- * @param {game.Ipvp_data_rsp} message pvp_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pvp_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.pvp_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pvp_data_rsp} pvp_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.embattleList && message.embattleList.length))
- message.embattleList = [];
- message.embattleList.push($root.game.embattle_info.decode(reader, reader.uint32()));
- break;
- case 3:
- if (!(message.rankingList && message.rankingList.length))
- message.rankingList = [];
- message.rankingList.push($root.game.ranking_info.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pvp_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pvp_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pvp_data_rsp} pvp_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pvp_data_rsp message.
- * @function verify
- * @memberof game.pvp_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pvp_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.embattleList != null && message.hasOwnProperty("embattleList")) {
- if (!Array.isArray(message.embattleList))
- return "embattleList: array expected";
- for (let i = 0; i < message.embattleList.length; ++i) {
- let error = $root.game.embattle_info.verify(message.embattleList[i]);
- if (error)
- return "embattleList." + error;
- }
- }
- if (message.rankingList != null && message.hasOwnProperty("rankingList")) {
- if (!Array.isArray(message.rankingList))
- return "rankingList: array expected";
- for (let i = 0; i < message.rankingList.length; ++i) {
- let error = $root.game.ranking_info.verify(message.rankingList[i]);
- if (error)
- return "rankingList." + error;
- }
- }
- return null;
- };
- /**
- * Creates a pvp_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pvp_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pvp_data_rsp} pvp_data_rsp
- */
- pvp_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pvp_data_rsp)
- return object;
- let message = new $root.game.pvp_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.embattleList) {
- if (!Array.isArray(object.embattleList))
- throw TypeError(".game.pvp_data_rsp.embattleList: array expected");
- message.embattleList = [];
- for (let i = 0; i < object.embattleList.length; ++i) {
- if (typeof object.embattleList[i] !== "object")
- throw TypeError(".game.pvp_data_rsp.embattleList: object expected");
- message.embattleList[i] = $root.game.embattle_info.fromObject(object.embattleList[i]);
- }
- }
- if (object.rankingList) {
- if (!Array.isArray(object.rankingList))
- throw TypeError(".game.pvp_data_rsp.rankingList: array expected");
- message.rankingList = [];
- for (let i = 0; i < object.rankingList.length; ++i) {
- if (typeof object.rankingList[i] !== "object")
- throw TypeError(".game.pvp_data_rsp.rankingList: object expected");
- message.rankingList[i] = $root.game.ranking_info.fromObject(object.rankingList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a pvp_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pvp_data_rsp
- * @static
- * @param {game.pvp_data_rsp} message pvp_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pvp_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.embattleList = [];
- object.rankingList = [];
- }
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.embattleList && message.embattleList.length) {
- object.embattleList = [];
- for (let j = 0; j < message.embattleList.length; ++j)
- object.embattleList[j] = $root.game.embattle_info.toObject(message.embattleList[j], options);
- }
- if (message.rankingList && message.rankingList.length) {
- object.rankingList = [];
- for (let j = 0; j < message.rankingList.length; ++j)
- object.rankingList[j] = $root.game.ranking_info.toObject(message.rankingList[j], options);
- }
- return object;
- };
- /**
- * Converts this pvp_data_rsp to JSON.
- * @function toJSON
- * @memberof game.pvp_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pvp_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pvp_data_rsp;
- })();
- game.pvp_match = (function() {
- /**
- * Properties of a pvp_match.
- * @memberof game
- * @interface Ipvp_match
- */
- /**
- * Constructs a new pvp_match.
- * @memberof game
- * @classdesc Represents a pvp_match.
- * @implements Ipvp_match
- * @constructor
- * @param {game.Ipvp_match=} [properties] Properties to set
- */
- function pvp_match(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new pvp_match instance using the specified properties.
- * @function create
- * @memberof game.pvp_match
- * @static
- * @param {game.Ipvp_match=} [properties] Properties to set
- * @returns {game.pvp_match} pvp_match instance
- */
- pvp_match.create = function create(properties) {
- return new pvp_match(properties);
- };
- /**
- * Encodes the specified pvp_match message. Does not implicitly {@link game.pvp_match.verify|verify} messages.
- * @function encode
- * @memberof game.pvp_match
- * @static
- * @param {game.Ipvp_match} message pvp_match message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_match.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified pvp_match message, length delimited. Does not implicitly {@link game.pvp_match.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pvp_match
- * @static
- * @param {game.Ipvp_match} message pvp_match message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_match.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pvp_match message from the specified reader or buffer.
- * @function decode
- * @memberof game.pvp_match
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pvp_match} pvp_match
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_match.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_match();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pvp_match message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pvp_match
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pvp_match} pvp_match
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_match.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pvp_match message.
- * @function verify
- * @memberof game.pvp_match
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pvp_match.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a pvp_match message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pvp_match
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pvp_match} pvp_match
- */
- pvp_match.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pvp_match)
- return object;
- return new $root.game.pvp_match();
- };
- /**
- * Creates a plain object from a pvp_match message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pvp_match
- * @static
- * @param {game.pvp_match} message pvp_match
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pvp_match.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this pvp_match to JSON.
- * @function toJSON
- * @memberof game.pvp_match
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pvp_match.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pvp_match;
- })();
- game.pvp_match_rsp = (function() {
- /**
- * Properties of a pvp_match_rsp.
- * @memberof game
- * @interface Ipvp_match_rsp
- * @property {number|Long|null} [errno] pvp_match_rsp errno
- * @property {Array.<game.Iembattle_info>|null} [embattleList] pvp_match_rsp embattleList
- * @property {Array.<game.Ihero>|null} [heroList] pvp_match_rsp heroList
- * @property {Array.<game.Icard>|null} [cardList] pvp_match_rsp cardList
- * @property {Array.<game.Iequip>|null} [equipList] pvp_match_rsp equipList
- * @property {game.Italent_info|null} [talentData] pvp_match_rsp talentData
- */
- /**
- * Constructs a new pvp_match_rsp.
- * @memberof game
- * @classdesc Represents a pvp_match_rsp.
- * @implements Ipvp_match_rsp
- * @constructor
- * @param {game.Ipvp_match_rsp=} [properties] Properties to set
- */
- function pvp_match_rsp(properties) {
- this.embattleList = [];
- this.heroList = [];
- this.cardList = [];
- this.equipList = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pvp_match_rsp errno.
- * @member {number|Long} errno
- * @memberof game.pvp_match_rsp
- * @instance
- */
- pvp_match_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * pvp_match_rsp embattleList.
- * @member {Array.<game.Iembattle_info>} embattleList
- * @memberof game.pvp_match_rsp
- * @instance
- */
- pvp_match_rsp.prototype.embattleList = $util.emptyArray;
- /**
- * pvp_match_rsp heroList.
- * @member {Array.<game.Ihero>} heroList
- * @memberof game.pvp_match_rsp
- * @instance
- */
- pvp_match_rsp.prototype.heroList = $util.emptyArray;
- /**
- * pvp_match_rsp cardList.
- * @member {Array.<game.Icard>} cardList
- * @memberof game.pvp_match_rsp
- * @instance
- */
- pvp_match_rsp.prototype.cardList = $util.emptyArray;
- /**
- * pvp_match_rsp equipList.
- * @member {Array.<game.Iequip>} equipList
- * @memberof game.pvp_match_rsp
- * @instance
- */
- pvp_match_rsp.prototype.equipList = $util.emptyArray;
- /**
- * pvp_match_rsp talentData.
- * @member {game.Italent_info|null|undefined} talentData
- * @memberof game.pvp_match_rsp
- * @instance
- */
- pvp_match_rsp.prototype.talentData = null;
- /**
- * Creates a new pvp_match_rsp instance using the specified properties.
- * @function create
- * @memberof game.pvp_match_rsp
- * @static
- * @param {game.Ipvp_match_rsp=} [properties] Properties to set
- * @returns {game.pvp_match_rsp} pvp_match_rsp instance
- */
- pvp_match_rsp.create = function create(properties) {
- return new pvp_match_rsp(properties);
- };
- /**
- * Encodes the specified pvp_match_rsp message. Does not implicitly {@link game.pvp_match_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.pvp_match_rsp
- * @static
- * @param {game.Ipvp_match_rsp} message pvp_match_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_match_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.embattleList != null && message.embattleList.length)
- for (let i = 0; i < message.embattleList.length; ++i)
- $root.game.embattle_info.encode(message.embattleList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- if (message.heroList != null && message.heroList.length)
- for (let i = 0; i < message.heroList.length; ++i)
- $root.game.hero.encode(message.heroList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- if (message.cardList != null && message.cardList.length)
- for (let i = 0; i < message.cardList.length; ++i)
- $root.game.card.encode(message.cardList[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
- if (message.equipList != null && message.equipList.length)
- for (let i = 0; i < message.equipList.length; ++i)
- $root.game.equip.encode(message.equipList[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
- if (message.talentData != null && Object.hasOwnProperty.call(message, "talentData"))
- $root.game.talent_info.encode(message.talentData, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified pvp_match_rsp message, length delimited. Does not implicitly {@link game.pvp_match_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pvp_match_rsp
- * @static
- * @param {game.Ipvp_match_rsp} message pvp_match_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_match_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pvp_match_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.pvp_match_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pvp_match_rsp} pvp_match_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_match_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_match_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.embattleList && message.embattleList.length))
- message.embattleList = [];
- message.embattleList.push($root.game.embattle_info.decode(reader, reader.uint32()));
- break;
- case 3:
- if (!(message.heroList && message.heroList.length))
- message.heroList = [];
- message.heroList.push($root.game.hero.decode(reader, reader.uint32()));
- break;
- case 4:
- if (!(message.cardList && message.cardList.length))
- message.cardList = [];
- message.cardList.push($root.game.card.decode(reader, reader.uint32()));
- break;
- case 5:
- if (!(message.equipList && message.equipList.length))
- message.equipList = [];
- message.equipList.push($root.game.equip.decode(reader, reader.uint32()));
- break;
- case 6:
- message.talentData = $root.game.talent_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pvp_match_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pvp_match_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pvp_match_rsp} pvp_match_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_match_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pvp_match_rsp message.
- * @function verify
- * @memberof game.pvp_match_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pvp_match_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.embattleList != null && message.hasOwnProperty("embattleList")) {
- if (!Array.isArray(message.embattleList))
- return "embattleList: array expected";
- for (let i = 0; i < message.embattleList.length; ++i) {
- let error = $root.game.embattle_info.verify(message.embattleList[i]);
- if (error)
- return "embattleList." + error;
- }
- }
- if (message.heroList != null && message.hasOwnProperty("heroList")) {
- if (!Array.isArray(message.heroList))
- return "heroList: array expected";
- for (let i = 0; i < message.heroList.length; ++i) {
- let error = $root.game.hero.verify(message.heroList[i]);
- if (error)
- return "heroList." + error;
- }
- }
- if (message.cardList != null && message.hasOwnProperty("cardList")) {
- if (!Array.isArray(message.cardList))
- return "cardList: array expected";
- for (let i = 0; i < message.cardList.length; ++i) {
- let error = $root.game.card.verify(message.cardList[i]);
- if (error)
- return "cardList." + error;
- }
- }
- if (message.equipList != null && message.hasOwnProperty("equipList")) {
- if (!Array.isArray(message.equipList))
- return "equipList: array expected";
- for (let i = 0; i < message.equipList.length; ++i) {
- let error = $root.game.equip.verify(message.equipList[i]);
- if (error)
- return "equipList." + error;
- }
- }
- if (message.talentData != null && message.hasOwnProperty("talentData")) {
- let error = $root.game.talent_info.verify(message.talentData);
- if (error)
- return "talentData." + error;
- }
- return null;
- };
- /**
- * Creates a pvp_match_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pvp_match_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pvp_match_rsp} pvp_match_rsp
- */
- pvp_match_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pvp_match_rsp)
- return object;
- let message = new $root.game.pvp_match_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.embattleList) {
- if (!Array.isArray(object.embattleList))
- throw TypeError(".game.pvp_match_rsp.embattleList: array expected");
- message.embattleList = [];
- for (let i = 0; i < object.embattleList.length; ++i) {
- if (typeof object.embattleList[i] !== "object")
- throw TypeError(".game.pvp_match_rsp.embattleList: object expected");
- message.embattleList[i] = $root.game.embattle_info.fromObject(object.embattleList[i]);
- }
- }
- if (object.heroList) {
- if (!Array.isArray(object.heroList))
- throw TypeError(".game.pvp_match_rsp.heroList: array expected");
- message.heroList = [];
- for (let i = 0; i < object.heroList.length; ++i) {
- if (typeof object.heroList[i] !== "object")
- throw TypeError(".game.pvp_match_rsp.heroList: object expected");
- message.heroList[i] = $root.game.hero.fromObject(object.heroList[i]);
- }
- }
- if (object.cardList) {
- if (!Array.isArray(object.cardList))
- throw TypeError(".game.pvp_match_rsp.cardList: array expected");
- message.cardList = [];
- for (let i = 0; i < object.cardList.length; ++i) {
- if (typeof object.cardList[i] !== "object")
- throw TypeError(".game.pvp_match_rsp.cardList: object expected");
- message.cardList[i] = $root.game.card.fromObject(object.cardList[i]);
- }
- }
- if (object.equipList) {
- if (!Array.isArray(object.equipList))
- throw TypeError(".game.pvp_match_rsp.equipList: array expected");
- message.equipList = [];
- for (let i = 0; i < object.equipList.length; ++i) {
- if (typeof object.equipList[i] !== "object")
- throw TypeError(".game.pvp_match_rsp.equipList: object expected");
- message.equipList[i] = $root.game.equip.fromObject(object.equipList[i]);
- }
- }
- if (object.talentData != null) {
- if (typeof object.talentData !== "object")
- throw TypeError(".game.pvp_match_rsp.talentData: object expected");
- message.talentData = $root.game.talent_info.fromObject(object.talentData);
- }
- return message;
- };
- /**
- * Creates a plain object from a pvp_match_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pvp_match_rsp
- * @static
- * @param {game.pvp_match_rsp} message pvp_match_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pvp_match_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.embattleList = [];
- object.heroList = [];
- object.cardList = [];
- object.equipList = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.talentData = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.embattleList && message.embattleList.length) {
- object.embattleList = [];
- for (let j = 0; j < message.embattleList.length; ++j)
- object.embattleList[j] = $root.game.embattle_info.toObject(message.embattleList[j], options);
- }
- if (message.heroList && message.heroList.length) {
- object.heroList = [];
- for (let j = 0; j < message.heroList.length; ++j)
- object.heroList[j] = $root.game.hero.toObject(message.heroList[j], options);
- }
- if (message.cardList && message.cardList.length) {
- object.cardList = [];
- for (let j = 0; j < message.cardList.length; ++j)
- object.cardList[j] = $root.game.card.toObject(message.cardList[j], options);
- }
- if (message.equipList && message.equipList.length) {
- object.equipList = [];
- for (let j = 0; j < message.equipList.length; ++j)
- object.equipList[j] = $root.game.equip.toObject(message.equipList[j], options);
- }
- if (message.talentData != null && message.hasOwnProperty("talentData"))
- object.talentData = $root.game.talent_info.toObject(message.talentData, options);
- return object;
- };
- /**
- * Converts this pvp_match_rsp to JSON.
- * @function toJSON
- * @memberof game.pvp_match_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pvp_match_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pvp_match_rsp;
- })();
- game.pvp_reslut = (function() {
- /**
- * Properties of a pvp_reslut.
- * @memberof game
- * @interface Ipvp_reslut
- * @property {number|Long|null} [win] pvp_reslut win
- */
- /**
- * Constructs a new pvp_reslut.
- * @memberof game
- * @classdesc Represents a pvp_reslut.
- * @implements Ipvp_reslut
- * @constructor
- * @param {game.Ipvp_reslut=} [properties] Properties to set
- */
- function pvp_reslut(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pvp_reslut win.
- * @member {number|Long} win
- * @memberof game.pvp_reslut
- * @instance
- */
- pvp_reslut.prototype.win = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new pvp_reslut instance using the specified properties.
- * @function create
- * @memberof game.pvp_reslut
- * @static
- * @param {game.Ipvp_reslut=} [properties] Properties to set
- * @returns {game.pvp_reslut} pvp_reslut instance
- */
- pvp_reslut.create = function create(properties) {
- return new pvp_reslut(properties);
- };
- /**
- * Encodes the specified pvp_reslut message. Does not implicitly {@link game.pvp_reslut.verify|verify} messages.
- * @function encode
- * @memberof game.pvp_reslut
- * @static
- * @param {game.Ipvp_reslut} message pvp_reslut message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_reslut.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.win != null && Object.hasOwnProperty.call(message, "win"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.win);
- return writer;
- };
- /**
- * Encodes the specified pvp_reslut message, length delimited. Does not implicitly {@link game.pvp_reslut.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pvp_reslut
- * @static
- * @param {game.Ipvp_reslut} message pvp_reslut message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_reslut.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pvp_reslut message from the specified reader or buffer.
- * @function decode
- * @memberof game.pvp_reslut
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pvp_reslut} pvp_reslut
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_reslut.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_reslut();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.win = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pvp_reslut message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pvp_reslut
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pvp_reslut} pvp_reslut
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_reslut.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pvp_reslut message.
- * @function verify
- * @memberof game.pvp_reslut
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pvp_reslut.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.win != null && message.hasOwnProperty("win"))
- if (!$util.isInteger(message.win) && !(message.win && $util.isInteger(message.win.low) && $util.isInteger(message.win.high)))
- return "win: integer|Long expected";
- return null;
- };
- /**
- * Creates a pvp_reslut message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pvp_reslut
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pvp_reslut} pvp_reslut
- */
- pvp_reslut.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pvp_reslut)
- return object;
- let message = new $root.game.pvp_reslut();
- if (object.win != null)
- if ($util.Long)
- (message.win = $util.Long.fromValue(object.win)).unsigned = false;
- else if (typeof object.win === "string")
- message.win = parseInt(object.win, 10);
- else if (typeof object.win === "number")
- message.win = object.win;
- else if (typeof object.win === "object")
- message.win = new $util.LongBits(object.win.low >>> 0, object.win.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a pvp_reslut message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pvp_reslut
- * @static
- * @param {game.pvp_reslut} message pvp_reslut
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pvp_reslut.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.win = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.win = options.longs === String ? "0" : 0;
- if (message.win != null && message.hasOwnProperty("win"))
- if (typeof message.win === "number")
- object.win = options.longs === String ? String(message.win) : message.win;
- else
- object.win = options.longs === String ? $util.Long.prototype.toString.call(message.win) : options.longs === Number ? new $util.LongBits(message.win.low >>> 0, message.win.high >>> 0).toNumber() : message.win;
- return object;
- };
- /**
- * Converts this pvp_reslut to JSON.
- * @function toJSON
- * @memberof game.pvp_reslut
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pvp_reslut.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pvp_reslut;
- })();
- game.pvp_reslut_rsp = (function() {
- /**
- * Properties of a pvp_reslut_rsp.
- * @memberof game
- * @interface Ipvp_reslut_rsp
- * @property {number|Long|null} [errno] pvp_reslut_rsp errno
- */
- /**
- * Constructs a new pvp_reslut_rsp.
- * @memberof game
- * @classdesc Represents a pvp_reslut_rsp.
- * @implements Ipvp_reslut_rsp
- * @constructor
- * @param {game.Ipvp_reslut_rsp=} [properties] Properties to set
- */
- function pvp_reslut_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pvp_reslut_rsp errno.
- * @member {number|Long} errno
- * @memberof game.pvp_reslut_rsp
- * @instance
- */
- pvp_reslut_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new pvp_reslut_rsp instance using the specified properties.
- * @function create
- * @memberof game.pvp_reslut_rsp
- * @static
- * @param {game.Ipvp_reslut_rsp=} [properties] Properties to set
- * @returns {game.pvp_reslut_rsp} pvp_reslut_rsp instance
- */
- pvp_reslut_rsp.create = function create(properties) {
- return new pvp_reslut_rsp(properties);
- };
- /**
- * Encodes the specified pvp_reslut_rsp message. Does not implicitly {@link game.pvp_reslut_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.pvp_reslut_rsp
- * @static
- * @param {game.Ipvp_reslut_rsp} message pvp_reslut_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_reslut_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified pvp_reslut_rsp message, length delimited. Does not implicitly {@link game.pvp_reslut_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pvp_reslut_rsp
- * @static
- * @param {game.Ipvp_reslut_rsp} message pvp_reslut_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_reslut_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pvp_reslut_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.pvp_reslut_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pvp_reslut_rsp} pvp_reslut_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_reslut_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_reslut_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pvp_reslut_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pvp_reslut_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pvp_reslut_rsp} pvp_reslut_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_reslut_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pvp_reslut_rsp message.
- * @function verify
- * @memberof game.pvp_reslut_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pvp_reslut_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a pvp_reslut_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pvp_reslut_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pvp_reslut_rsp} pvp_reslut_rsp
- */
- pvp_reslut_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pvp_reslut_rsp)
- return object;
- let message = new $root.game.pvp_reslut_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a pvp_reslut_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pvp_reslut_rsp
- * @static
- * @param {game.pvp_reslut_rsp} message pvp_reslut_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pvp_reslut_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this pvp_reslut_rsp to JSON.
- * @function toJSON
- * @memberof game.pvp_reslut_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pvp_reslut_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pvp_reslut_rsp;
- })();
- game.pvp_embattle = (function() {
- /**
- * Properties of a pvp_embattle.
- * @memberof game
- * @interface Ipvp_embattle
- * @property {game.Iembattle_info|null} [data] pvp_embattle data
- */
- /**
- * Constructs a new pvp_embattle.
- * @memberof game
- * @classdesc Represents a pvp_embattle.
- * @implements Ipvp_embattle
- * @constructor
- * @param {game.Ipvp_embattle=} [properties] Properties to set
- */
- function pvp_embattle(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pvp_embattle data.
- * @member {game.Iembattle_info|null|undefined} data
- * @memberof game.pvp_embattle
- * @instance
- */
- pvp_embattle.prototype.data = null;
- /**
- * Creates a new pvp_embattle instance using the specified properties.
- * @function create
- * @memberof game.pvp_embattle
- * @static
- * @param {game.Ipvp_embattle=} [properties] Properties to set
- * @returns {game.pvp_embattle} pvp_embattle instance
- */
- pvp_embattle.create = function create(properties) {
- return new pvp_embattle(properties);
- };
- /**
- * Encodes the specified pvp_embattle message. Does not implicitly {@link game.pvp_embattle.verify|verify} messages.
- * @function encode
- * @memberof game.pvp_embattle
- * @static
- * @param {game.Ipvp_embattle} message pvp_embattle message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_embattle.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.embattle_info.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified pvp_embattle message, length delimited. Does not implicitly {@link game.pvp_embattle.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pvp_embattle
- * @static
- * @param {game.Ipvp_embattle} message pvp_embattle message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_embattle.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pvp_embattle message from the specified reader or buffer.
- * @function decode
- * @memberof game.pvp_embattle
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pvp_embattle} pvp_embattle
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_embattle.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_embattle();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.data = $root.game.embattle_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pvp_embattle message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pvp_embattle
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pvp_embattle} pvp_embattle
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_embattle.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pvp_embattle message.
- * @function verify
- * @memberof game.pvp_embattle
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pvp_embattle.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.embattle_info.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a pvp_embattle message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pvp_embattle
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pvp_embattle} pvp_embattle
- */
- pvp_embattle.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pvp_embattle)
- return object;
- let message = new $root.game.pvp_embattle();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.pvp_embattle.data: object expected");
- message.data = $root.game.embattle_info.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a pvp_embattle message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pvp_embattle
- * @static
- * @param {game.pvp_embattle} message pvp_embattle
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pvp_embattle.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- object.data = null;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.embattle_info.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this pvp_embattle to JSON.
- * @function toJSON
- * @memberof game.pvp_embattle
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pvp_embattle.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pvp_embattle;
- })();
- game.pvp_embattle_rsp = (function() {
- /**
- * Properties of a pvp_embattle_rsp.
- * @memberof game
- * @interface Ipvp_embattle_rsp
- * @property {number|Long|null} [errno] pvp_embattle_rsp errno
- */
- /**
- * Constructs a new pvp_embattle_rsp.
- * @memberof game
- * @classdesc Represents a pvp_embattle_rsp.
- * @implements Ipvp_embattle_rsp
- * @constructor
- * @param {game.Ipvp_embattle_rsp=} [properties] Properties to set
- */
- function pvp_embattle_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pvp_embattle_rsp errno.
- * @member {number|Long} errno
- * @memberof game.pvp_embattle_rsp
- * @instance
- */
- pvp_embattle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new pvp_embattle_rsp instance using the specified properties.
- * @function create
- * @memberof game.pvp_embattle_rsp
- * @static
- * @param {game.Ipvp_embattle_rsp=} [properties] Properties to set
- * @returns {game.pvp_embattle_rsp} pvp_embattle_rsp instance
- */
- pvp_embattle_rsp.create = function create(properties) {
- return new pvp_embattle_rsp(properties);
- };
- /**
- * Encodes the specified pvp_embattle_rsp message. Does not implicitly {@link game.pvp_embattle_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.pvp_embattle_rsp
- * @static
- * @param {game.Ipvp_embattle_rsp} message pvp_embattle_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_embattle_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- return writer;
- };
- /**
- * Encodes the specified pvp_embattle_rsp message, length delimited. Does not implicitly {@link game.pvp_embattle_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pvp_embattle_rsp
- * @static
- * @param {game.Ipvp_embattle_rsp} message pvp_embattle_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pvp_embattle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pvp_embattle_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.pvp_embattle_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pvp_embattle_rsp} pvp_embattle_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_embattle_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_embattle_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pvp_embattle_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pvp_embattle_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pvp_embattle_rsp} pvp_embattle_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pvp_embattle_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pvp_embattle_rsp message.
- * @function verify
- * @memberof game.pvp_embattle_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pvp_embattle_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- return null;
- };
- /**
- * Creates a pvp_embattle_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pvp_embattle_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pvp_embattle_rsp} pvp_embattle_rsp
- */
- pvp_embattle_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pvp_embattle_rsp)
- return object;
- let message = new $root.game.pvp_embattle_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a pvp_embattle_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pvp_embattle_rsp
- * @static
- * @param {game.pvp_embattle_rsp} message pvp_embattle_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pvp_embattle_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- return object;
- };
- /**
- * Converts this pvp_embattle_rsp to JSON.
- * @function toJSON
- * @memberof game.pvp_embattle_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pvp_embattle_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pvp_embattle_rsp;
- })();
- game.time_box_data = (function() {
- /**
- * Properties of a time_box_data.
- * @memberof game
- * @interface Itime_box_data
- */
- /**
- * Constructs a new time_box_data.
- * @memberof game
- * @classdesc Represents a time_box_data.
- * @implements Itime_box_data
- * @constructor
- * @param {game.Itime_box_data=} [properties] Properties to set
- */
- function time_box_data(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new time_box_data instance using the specified properties.
- * @function create
- * @memberof game.time_box_data
- * @static
- * @param {game.Itime_box_data=} [properties] Properties to set
- * @returns {game.time_box_data} time_box_data instance
- */
- time_box_data.create = function create(properties) {
- return new time_box_data(properties);
- };
- /**
- * Encodes the specified time_box_data message. Does not implicitly {@link game.time_box_data.verify|verify} messages.
- * @function encode
- * @memberof game.time_box_data
- * @static
- * @param {game.Itime_box_data} message time_box_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box_data.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified time_box_data message, length delimited. Does not implicitly {@link game.time_box_data.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.time_box_data
- * @static
- * @param {game.Itime_box_data} message time_box_data message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box_data.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a time_box_data message from the specified reader or buffer.
- * @function decode
- * @memberof game.time_box_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.time_box_data} time_box_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box_data.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box_data();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a time_box_data message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.time_box_data
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.time_box_data} time_box_data
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box_data.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a time_box_data message.
- * @function verify
- * @memberof game.time_box_data
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- time_box_data.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a time_box_data message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.time_box_data
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.time_box_data} time_box_data
- */
- time_box_data.fromObject = function fromObject(object) {
- if (object instanceof $root.game.time_box_data)
- return object;
- return new $root.game.time_box_data();
- };
- /**
- * Creates a plain object from a time_box_data message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.time_box_data
- * @static
- * @param {game.time_box_data} message time_box_data
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- time_box_data.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this time_box_data to JSON.
- * @function toJSON
- * @memberof game.time_box_data
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- time_box_data.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return time_box_data;
- })();
- game.time_box_data_rsp = (function() {
- /**
- * Properties of a time_box_data_rsp.
- * @memberof game
- * @interface Itime_box_data_rsp
- * @property {number|Long|null} [errno] time_box_data_rsp errno
- * @property {Array.<game.Itime_box>|null} [list] time_box_data_rsp list
- */
- /**
- * Constructs a new time_box_data_rsp.
- * @memberof game
- * @classdesc Represents a time_box_data_rsp.
- * @implements Itime_box_data_rsp
- * @constructor
- * @param {game.Itime_box_data_rsp=} [properties] Properties to set
- */
- function time_box_data_rsp(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * time_box_data_rsp errno.
- * @member {number|Long} errno
- * @memberof game.time_box_data_rsp
- * @instance
- */
- time_box_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * time_box_data_rsp list.
- * @member {Array.<game.Itime_box>} list
- * @memberof game.time_box_data_rsp
- * @instance
- */
- time_box_data_rsp.prototype.list = $util.emptyArray;
- /**
- * Creates a new time_box_data_rsp instance using the specified properties.
- * @function create
- * @memberof game.time_box_data_rsp
- * @static
- * @param {game.Itime_box_data_rsp=} [properties] Properties to set
- * @returns {game.time_box_data_rsp} time_box_data_rsp instance
- */
- time_box_data_rsp.create = function create(properties) {
- return new time_box_data_rsp(properties);
- };
- /**
- * Encodes the specified time_box_data_rsp message. Does not implicitly {@link game.time_box_data_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.time_box_data_rsp
- * @static
- * @param {game.Itime_box_data_rsp} message time_box_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box_data_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.time_box.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified time_box_data_rsp message, length delimited. Does not implicitly {@link game.time_box_data_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.time_box_data_rsp
- * @static
- * @param {game.Itime_box_data_rsp} message time_box_data_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a time_box_data_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.time_box_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.time_box_data_rsp} time_box_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box_data_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box_data_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.time_box.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a time_box_data_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.time_box_data_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.time_box_data_rsp} time_box_data_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box_data_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a time_box_data_rsp message.
- * @function verify
- * @memberof game.time_box_data_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- time_box_data_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.time_box.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a time_box_data_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.time_box_data_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.time_box_data_rsp} time_box_data_rsp
- */
- time_box_data_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.time_box_data_rsp)
- return object;
- let message = new $root.game.time_box_data_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.time_box_data_rsp.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.time_box_data_rsp.list: object expected");
- message.list[i] = $root.game.time_box.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a time_box_data_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.time_box_data_rsp
- * @static
- * @param {game.time_box_data_rsp} message time_box_data_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- time_box_data_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.time_box.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this time_box_data_rsp to JSON.
- * @function toJSON
- * @memberof game.time_box_data_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- time_box_data_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return time_box_data_rsp;
- })();
- game.time_box_unlock = (function() {
- /**
- * Properties of a time_box_unlock.
- * @memberof game
- * @interface Itime_box_unlock
- * @property {number|Long|null} [pos] time_box_unlock pos
- */
- /**
- * Constructs a new time_box_unlock.
- * @memberof game
- * @classdesc Represents a time_box_unlock.
- * @implements Itime_box_unlock
- * @constructor
- * @param {game.Itime_box_unlock=} [properties] Properties to set
- */
- function time_box_unlock(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * time_box_unlock pos.
- * @member {number|Long} pos
- * @memberof game.time_box_unlock
- * @instance
- */
- time_box_unlock.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new time_box_unlock instance using the specified properties.
- * @function create
- * @memberof game.time_box_unlock
- * @static
- * @param {game.Itime_box_unlock=} [properties] Properties to set
- * @returns {game.time_box_unlock} time_box_unlock instance
- */
- time_box_unlock.create = function create(properties) {
- return new time_box_unlock(properties);
- };
- /**
- * Encodes the specified time_box_unlock message. Does not implicitly {@link game.time_box_unlock.verify|verify} messages.
- * @function encode
- * @memberof game.time_box_unlock
- * @static
- * @param {game.Itime_box_unlock} message time_box_unlock message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box_unlock.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
- return writer;
- };
- /**
- * Encodes the specified time_box_unlock message, length delimited. Does not implicitly {@link game.time_box_unlock.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.time_box_unlock
- * @static
- * @param {game.Itime_box_unlock} message time_box_unlock message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box_unlock.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a time_box_unlock message from the specified reader or buffer.
- * @function decode
- * @memberof game.time_box_unlock
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.time_box_unlock} time_box_unlock
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box_unlock.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box_unlock();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.pos = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a time_box_unlock message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.time_box_unlock
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.time_box_unlock} time_box_unlock
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box_unlock.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a time_box_unlock message.
- * @function verify
- * @memberof game.time_box_unlock
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- time_box_unlock.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- return null;
- };
- /**
- * Creates a time_box_unlock message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.time_box_unlock
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.time_box_unlock} time_box_unlock
- */
- time_box_unlock.fromObject = function fromObject(object) {
- if (object instanceof $root.game.time_box_unlock)
- return object;
- let message = new $root.game.time_box_unlock();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a time_box_unlock message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.time_box_unlock
- * @static
- * @param {game.time_box_unlock} message time_box_unlock
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- time_box_unlock.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- return object;
- };
- /**
- * Converts this time_box_unlock to JSON.
- * @function toJSON
- * @memberof game.time_box_unlock
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- time_box_unlock.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return time_box_unlock;
- })();
- game.time_box_unlock_rsp = (function() {
- /**
- * Properties of a time_box_unlock_rsp.
- * @memberof game
- * @interface Itime_box_unlock_rsp
- * @property {number|Long|null} [errno] time_box_unlock_rsp errno
- * @property {game.Itime_box|null} [data] time_box_unlock_rsp data
- */
- /**
- * Constructs a new time_box_unlock_rsp.
- * @memberof game
- * @classdesc Represents a time_box_unlock_rsp.
- * @implements Itime_box_unlock_rsp
- * @constructor
- * @param {game.Itime_box_unlock_rsp=} [properties] Properties to set
- */
- function time_box_unlock_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * time_box_unlock_rsp errno.
- * @member {number|Long} errno
- * @memberof game.time_box_unlock_rsp
- * @instance
- */
- time_box_unlock_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * time_box_unlock_rsp data.
- * @member {game.Itime_box|null|undefined} data
- * @memberof game.time_box_unlock_rsp
- * @instance
- */
- time_box_unlock_rsp.prototype.data = null;
- /**
- * Creates a new time_box_unlock_rsp instance using the specified properties.
- * @function create
- * @memberof game.time_box_unlock_rsp
- * @static
- * @param {game.Itime_box_unlock_rsp=} [properties] Properties to set
- * @returns {game.time_box_unlock_rsp} time_box_unlock_rsp instance
- */
- time_box_unlock_rsp.create = function create(properties) {
- return new time_box_unlock_rsp(properties);
- };
- /**
- * Encodes the specified time_box_unlock_rsp message. Does not implicitly {@link game.time_box_unlock_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.time_box_unlock_rsp
- * @static
- * @param {game.Itime_box_unlock_rsp} message time_box_unlock_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box_unlock_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.data != null && Object.hasOwnProperty.call(message, "data"))
- $root.game.time_box.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified time_box_unlock_rsp message, length delimited. Does not implicitly {@link game.time_box_unlock_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.time_box_unlock_rsp
- * @static
- * @param {game.Itime_box_unlock_rsp} message time_box_unlock_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box_unlock_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a time_box_unlock_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.time_box_unlock_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.time_box_unlock_rsp} time_box_unlock_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box_unlock_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box_unlock_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.data = $root.game.time_box.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a time_box_unlock_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.time_box_unlock_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.time_box_unlock_rsp} time_box_unlock_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box_unlock_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a time_box_unlock_rsp message.
- * @function verify
- * @memberof game.time_box_unlock_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- time_box_unlock_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.data != null && message.hasOwnProperty("data")) {
- let error = $root.game.time_box.verify(message.data);
- if (error)
- return "data." + error;
- }
- return null;
- };
- /**
- * Creates a time_box_unlock_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.time_box_unlock_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.time_box_unlock_rsp} time_box_unlock_rsp
- */
- time_box_unlock_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.time_box_unlock_rsp)
- return object;
- let message = new $root.game.time_box_unlock_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.data != null) {
- if (typeof object.data !== "object")
- throw TypeError(".game.time_box_unlock_rsp.data: object expected");
- message.data = $root.game.time_box.fromObject(object.data);
- }
- return message;
- };
- /**
- * Creates a plain object from a time_box_unlock_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.time_box_unlock_rsp
- * @static
- * @param {game.time_box_unlock_rsp} message time_box_unlock_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- time_box_unlock_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- object.data = null;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.data != null && message.hasOwnProperty("data"))
- object.data = $root.game.time_box.toObject(message.data, options);
- return object;
- };
- /**
- * Converts this time_box_unlock_rsp to JSON.
- * @function toJSON
- * @memberof game.time_box_unlock_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- time_box_unlock_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return time_box_unlock_rsp;
- })();
- game.time_box_get_award = (function() {
- /**
- * Properties of a time_box_get_award.
- * @memberof game
- * @interface Itime_box_get_award
- * @property {number|Long|null} [pos] time_box_get_award pos
- */
- /**
- * Constructs a new time_box_get_award.
- * @memberof game
- * @classdesc Represents a time_box_get_award.
- * @implements Itime_box_get_award
- * @constructor
- * @param {game.Itime_box_get_award=} [properties] Properties to set
- */
- function time_box_get_award(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * time_box_get_award pos.
- * @member {number|Long} pos
- * @memberof game.time_box_get_award
- * @instance
- */
- time_box_get_award.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new time_box_get_award instance using the specified properties.
- * @function create
- * @memberof game.time_box_get_award
- * @static
- * @param {game.Itime_box_get_award=} [properties] Properties to set
- * @returns {game.time_box_get_award} time_box_get_award instance
- */
- time_box_get_award.create = function create(properties) {
- return new time_box_get_award(properties);
- };
- /**
- * Encodes the specified time_box_get_award message. Does not implicitly {@link game.time_box_get_award.verify|verify} messages.
- * @function encode
- * @memberof game.time_box_get_award
- * @static
- * @param {game.Itime_box_get_award} message time_box_get_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box_get_award.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
- return writer;
- };
- /**
- * Encodes the specified time_box_get_award message, length delimited. Does not implicitly {@link game.time_box_get_award.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.time_box_get_award
- * @static
- * @param {game.Itime_box_get_award} message time_box_get_award message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box_get_award.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a time_box_get_award message from the specified reader or buffer.
- * @function decode
- * @memberof game.time_box_get_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.time_box_get_award} time_box_get_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box_get_award.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box_get_award();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.pos = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a time_box_get_award message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.time_box_get_award
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.time_box_get_award} time_box_get_award
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box_get_award.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a time_box_get_award message.
- * @function verify
- * @memberof game.time_box_get_award
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- time_box_get_award.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- return null;
- };
- /**
- * Creates a time_box_get_award message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.time_box_get_award
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.time_box_get_award} time_box_get_award
- */
- time_box_get_award.fromObject = function fromObject(object) {
- if (object instanceof $root.game.time_box_get_award)
- return object;
- let message = new $root.game.time_box_get_award();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a time_box_get_award message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.time_box_get_award
- * @static
- * @param {game.time_box_get_award} message time_box_get_award
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- time_box_get_award.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- return object;
- };
- /**
- * Converts this time_box_get_award to JSON.
- * @function toJSON
- * @memberof game.time_box_get_award
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- time_box_get_award.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return time_box_get_award;
- })();
- game.time_box_get_award_rsp = (function() {
- /**
- * Properties of a time_box_get_award_rsp.
- * @memberof game
- * @interface Itime_box_get_award_rsp
- * @property {number|Long|null} [errno] time_box_get_award_rsp errno
- * @property {number|Long|null} [pos] time_box_get_award_rsp pos
- */
- /**
- * Constructs a new time_box_get_award_rsp.
- * @memberof game
- * @classdesc Represents a time_box_get_award_rsp.
- * @implements Itime_box_get_award_rsp
- * @constructor
- * @param {game.Itime_box_get_award_rsp=} [properties] Properties to set
- */
- function time_box_get_award_rsp(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * time_box_get_award_rsp errno.
- * @member {number|Long} errno
- * @memberof game.time_box_get_award_rsp
- * @instance
- */
- time_box_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * time_box_get_award_rsp pos.
- * @member {number|Long} pos
- * @memberof game.time_box_get_award_rsp
- * @instance
- */
- time_box_get_award_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new time_box_get_award_rsp instance using the specified properties.
- * @function create
- * @memberof game.time_box_get_award_rsp
- * @static
- * @param {game.Itime_box_get_award_rsp=} [properties] Properties to set
- * @returns {game.time_box_get_award_rsp} time_box_get_award_rsp instance
- */
- time_box_get_award_rsp.create = function create(properties) {
- return new time_box_get_award_rsp(properties);
- };
- /**
- * Encodes the specified time_box_get_award_rsp message. Does not implicitly {@link game.time_box_get_award_rsp.verify|verify} messages.
- * @function encode
- * @memberof game.time_box_get_award_rsp
- * @static
- * @param {game.Itime_box_get_award_rsp} message time_box_get_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box_get_award_rsp.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
- return writer;
- };
- /**
- * Encodes the specified time_box_get_award_rsp message, length delimited. Does not implicitly {@link game.time_box_get_award_rsp.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.time_box_get_award_rsp
- * @static
- * @param {game.Itime_box_get_award_rsp} message time_box_get_award_rsp message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a time_box_get_award_rsp message from the specified reader or buffer.
- * @function decode
- * @memberof game.time_box_get_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.time_box_get_award_rsp} time_box_get_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box_get_award_rsp.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box_get_award_rsp();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errno = reader.int64();
- break;
- case 2:
- message.pos = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a time_box_get_award_rsp message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.time_box_get_award_rsp
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.time_box_get_award_rsp} time_box_get_award_rsp
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a time_box_get_award_rsp message.
- * @function verify
- * @memberof game.time_box_get_award_rsp
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- time_box_get_award_rsp.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
- return "errno: integer|Long expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- return null;
- };
- /**
- * Creates a time_box_get_award_rsp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.time_box_get_award_rsp
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.time_box_get_award_rsp} time_box_get_award_rsp
- */
- time_box_get_award_rsp.fromObject = function fromObject(object) {
- if (object instanceof $root.game.time_box_get_award_rsp)
- return object;
- let message = new $root.game.time_box_get_award_rsp();
- if (object.errno != null)
- if ($util.Long)
- (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
- else if (typeof object.errno === "string")
- message.errno = parseInt(object.errno, 10);
- else if (typeof object.errno === "number")
- message.errno = object.errno;
- else if (typeof object.errno === "object")
- message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a time_box_get_award_rsp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.time_box_get_award_rsp
- * @static
- * @param {game.time_box_get_award_rsp} message time_box_get_award_rsp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- time_box_get_award_rsp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.errno = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- }
- if (message.errno != null && message.hasOwnProperty("errno"))
- if (typeof message.errno === "number")
- object.errno = options.longs === String ? String(message.errno) : message.errno;
- else
- object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- return object;
- };
- /**
- * Converts this time_box_get_award_rsp to JSON.
- * @function toJSON
- * @memberof game.time_box_get_award_rsp
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- time_box_get_award_rsp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return time_box_get_award_rsp;
- })();
- game.id_num = (function() {
- /**
- * Properties of an id_num.
- * @memberof game
- * @interface Iid_num
- * @property {number|Long|null} [id] id_num id
- * @property {number|Long|null} [num] id_num num
- */
- /**
- * Constructs a new id_num.
- * @memberof game
- * @classdesc Represents an id_num.
- * @implements Iid_num
- * @constructor
- * @param {game.Iid_num=} [properties] Properties to set
- */
- function id_num(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * id_num id.
- * @member {number|Long} id
- * @memberof game.id_num
- * @instance
- */
- id_num.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * id_num num.
- * @member {number|Long} num
- * @memberof game.id_num
- * @instance
- */
- id_num.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new id_num instance using the specified properties.
- * @function create
- * @memberof game.id_num
- * @static
- * @param {game.Iid_num=} [properties] Properties to set
- * @returns {game.id_num} id_num instance
- */
- id_num.create = function create(properties) {
- return new id_num(properties);
- };
- /**
- * Encodes the specified id_num message. Does not implicitly {@link game.id_num.verify|verify} messages.
- * @function encode
- * @memberof game.id_num
- * @static
- * @param {game.Iid_num} message id_num message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- id_num.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
- return writer;
- };
- /**
- * Encodes the specified id_num message, length delimited. Does not implicitly {@link game.id_num.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.id_num
- * @static
- * @param {game.Iid_num} message id_num message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- id_num.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an id_num message from the specified reader or buffer.
- * @function decode
- * @memberof game.id_num
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.id_num} id_num
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- id_num.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.id_num();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- message.num = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an id_num message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.id_num
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.id_num} id_num
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- id_num.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an id_num message.
- * @function verify
- * @memberof game.id_num
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- id_num.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- return null;
- };
- /**
- * Creates an id_num message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.id_num
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.id_num} id_num
- */
- id_num.fromObject = function fromObject(object) {
- if (object instanceof $root.game.id_num)
- return object;
- let message = new $root.game.id_num();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an id_num message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.id_num
- * @static
- * @param {game.id_num} message id_num
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- id_num.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- return object;
- };
- /**
- * Converts this id_num to JSON.
- * @function toJSON
- * @memberof game.id_num
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- id_num.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return id_num;
- })();
- game.sid_pos = (function() {
- /**
- * Properties of a sid_pos.
- * @memberof game
- * @interface Isid_pos
- * @property {string|null} [sid] sid_pos sid
- * @property {number|Long|null} [pos] sid_pos pos
- */
- /**
- * Constructs a new sid_pos.
- * @memberof game
- * @classdesc Represents a sid_pos.
- * @implements Isid_pos
- * @constructor
- * @param {game.Isid_pos=} [properties] Properties to set
- */
- function sid_pos(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * sid_pos sid.
- * @member {string} sid
- * @memberof game.sid_pos
- * @instance
- */
- sid_pos.prototype.sid = "";
- /**
- * sid_pos pos.
- * @member {number|Long} pos
- * @memberof game.sid_pos
- * @instance
- */
- sid_pos.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new sid_pos instance using the specified properties.
- * @function create
- * @memberof game.sid_pos
- * @static
- * @param {game.Isid_pos=} [properties] Properties to set
- * @returns {game.sid_pos} sid_pos instance
- */
- sid_pos.create = function create(properties) {
- return new sid_pos(properties);
- };
- /**
- * Encodes the specified sid_pos message. Does not implicitly {@link game.sid_pos.verify|verify} messages.
- * @function encode
- * @memberof game.sid_pos
- * @static
- * @param {game.Isid_pos} message sid_pos message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- sid_pos.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
- return writer;
- };
- /**
- * Encodes the specified sid_pos message, length delimited. Does not implicitly {@link game.sid_pos.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.sid_pos
- * @static
- * @param {game.Isid_pos} message sid_pos message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- sid_pos.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a sid_pos message from the specified reader or buffer.
- * @function decode
- * @memberof game.sid_pos
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.sid_pos} sid_pos
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- sid_pos.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sid_pos();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sid = reader.string();
- break;
- case 2:
- message.pos = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a sid_pos message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.sid_pos
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.sid_pos} sid_pos
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- sid_pos.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a sid_pos message.
- * @function verify
- * @memberof game.sid_pos
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- sid_pos.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- return null;
- };
- /**
- * Creates a sid_pos message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.sid_pos
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.sid_pos} sid_pos
- */
- sid_pos.fromObject = function fromObject(object) {
- if (object instanceof $root.game.sid_pos)
- return object;
- let message = new $root.game.sid_pos();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a sid_pos message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.sid_pos
- * @static
- * @param {game.sid_pos} message sid_pos
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- sid_pos.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.sid = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- }
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- return object;
- };
- /**
- * Converts this sid_pos to JSON.
- * @function toJSON
- * @memberof game.sid_pos
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- sid_pos.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return sid_pos;
- })();
- game.hero = (function() {
- /**
- * Properties of a hero.
- * @memberof game
- * @interface Ihero
- * @property {string|null} [sid] hero sid
- * @property {number|Long|null} [id] hero id
- * @property {number|Long|null} [lv] hero lv
- * @property {Array.<string>|null} [equip] hero equip
- * @property {number|Long|null} [num] hero num
- */
- /**
- * Constructs a new hero.
- * @memberof game
- * @classdesc Represents a hero.
- * @implements Ihero
- * @constructor
- * @param {game.Ihero=} [properties] Properties to set
- */
- function hero(properties) {
- this.equip = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero sid.
- * @member {string} sid
- * @memberof game.hero
- * @instance
- */
- hero.prototype.sid = "";
- /**
- * hero id.
- * @member {number|Long} id
- * @memberof game.hero
- * @instance
- */
- hero.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * hero lv.
- * @member {number|Long} lv
- * @memberof game.hero
- * @instance
- */
- hero.prototype.lv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * hero equip.
- * @member {Array.<string>} equip
- * @memberof game.hero
- * @instance
- */
- hero.prototype.equip = $util.emptyArray;
- /**
- * hero num.
- * @member {number|Long} num
- * @memberof game.hero
- * @instance
- */
- hero.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new hero instance using the specified properties.
- * @function create
- * @memberof game.hero
- * @static
- * @param {game.Ihero=} [properties] Properties to set
- * @returns {game.hero} hero instance
- */
- hero.create = function create(properties) {
- return new hero(properties);
- };
- /**
- * Encodes the specified hero message. Does not implicitly {@link game.hero.verify|verify} messages.
- * @function encode
- * @memberof game.hero
- * @static
- * @param {game.Ihero} message hero message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
- if (message.lv != null && Object.hasOwnProperty.call(message, "lv"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lv);
- if (message.equip != null && message.equip.length)
- for (let i = 0; i < message.equip.length; ++i)
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.equip[i]);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.num);
- return writer;
- };
- /**
- * Encodes the specified hero message, length delimited. Does not implicitly {@link game.hero.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero
- * @static
- * @param {game.Ihero} message hero message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero} hero
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sid = reader.string();
- break;
- case 2:
- message.id = reader.int64();
- break;
- case 3:
- message.lv = reader.int64();
- break;
- case 4:
- if (!(message.equip && message.equip.length))
- message.equip = [];
- message.equip.push(reader.string());
- break;
- case 5:
- message.num = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero} hero
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero message.
- * @function verify
- * @memberof game.hero
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.lv != null && message.hasOwnProperty("lv"))
- if (!$util.isInteger(message.lv) && !(message.lv && $util.isInteger(message.lv.low) && $util.isInteger(message.lv.high)))
- return "lv: integer|Long expected";
- if (message.equip != null && message.hasOwnProperty("equip")) {
- if (!Array.isArray(message.equip))
- return "equip: array expected";
- for (let i = 0; i < message.equip.length; ++i)
- if (!$util.isString(message.equip[i]))
- return "equip: string[] expected";
- }
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- return null;
- };
- /**
- * Creates a hero message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero} hero
- */
- hero.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero)
- return object;
- let message = new $root.game.hero();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.lv != null)
- if ($util.Long)
- (message.lv = $util.Long.fromValue(object.lv)).unsigned = false;
- else if (typeof object.lv === "string")
- message.lv = parseInt(object.lv, 10);
- else if (typeof object.lv === "number")
- message.lv = object.lv;
- else if (typeof object.lv === "object")
- message.lv = new $util.LongBits(object.lv.low >>> 0, object.lv.high >>> 0).toNumber();
- if (object.equip) {
- if (!Array.isArray(object.equip))
- throw TypeError(".game.hero.equip: array expected");
- message.equip = [];
- for (let i = 0; i < object.equip.length; ++i)
- message.equip[i] = String(object.equip[i]);
- }
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a hero message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero
- * @static
- * @param {game.hero} message hero
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.equip = [];
- if (options.defaults) {
- object.sid = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.lv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.lv = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- }
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.lv != null && message.hasOwnProperty("lv"))
- if (typeof message.lv === "number")
- object.lv = options.longs === String ? String(message.lv) : message.lv;
- else
- object.lv = options.longs === String ? $util.Long.prototype.toString.call(message.lv) : options.longs === Number ? new $util.LongBits(message.lv.low >>> 0, message.lv.high >>> 0).toNumber() : message.lv;
- if (message.equip && message.equip.length) {
- object.equip = [];
- for (let j = 0; j < message.equip.length; ++j)
- object.equip[j] = message.equip[j];
- }
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- return object;
- };
- /**
- * Converts this hero to JSON.
- * @function toJSON
- * @memberof game.hero
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero;
- })();
- game.card = (function() {
- /**
- * Properties of a card.
- * @memberof game
- * @interface Icard
- * @property {string|null} [sid] card sid
- * @property {number|Long|null} [id] card id
- * @property {number|Long|null} [lv] card lv
- */
- /**
- * Constructs a new card.
- * @memberof game
- * @classdesc Represents a card.
- * @implements Icard
- * @constructor
- * @param {game.Icard=} [properties] Properties to set
- */
- function card(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * card sid.
- * @member {string} sid
- * @memberof game.card
- * @instance
- */
- card.prototype.sid = "";
- /**
- * card id.
- * @member {number|Long} id
- * @memberof game.card
- * @instance
- */
- card.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * card lv.
- * @member {number|Long} lv
- * @memberof game.card
- * @instance
- */
- card.prototype.lv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new card instance using the specified properties.
- * @function create
- * @memberof game.card
- * @static
- * @param {game.Icard=} [properties] Properties to set
- * @returns {game.card} card instance
- */
- card.create = function create(properties) {
- return new card(properties);
- };
- /**
- * Encodes the specified card message. Does not implicitly {@link game.card.verify|verify} messages.
- * @function encode
- * @memberof game.card
- * @static
- * @param {game.Icard} message card message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- card.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
- if (message.lv != null && Object.hasOwnProperty.call(message, "lv"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lv);
- return writer;
- };
- /**
- * Encodes the specified card message, length delimited. Does not implicitly {@link game.card.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.card
- * @static
- * @param {game.Icard} message card message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- card.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a card message from the specified reader or buffer.
- * @function decode
- * @memberof game.card
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.card} card
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- card.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.card();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sid = reader.string();
- break;
- case 2:
- message.id = reader.int64();
- break;
- case 3:
- message.lv = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a card message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.card
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.card} card
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- card.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a card message.
- * @function verify
- * @memberof game.card
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- card.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.lv != null && message.hasOwnProperty("lv"))
- if (!$util.isInteger(message.lv) && !(message.lv && $util.isInteger(message.lv.low) && $util.isInteger(message.lv.high)))
- return "lv: integer|Long expected";
- return null;
- };
- /**
- * Creates a card message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.card
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.card} card
- */
- card.fromObject = function fromObject(object) {
- if (object instanceof $root.game.card)
- return object;
- let message = new $root.game.card();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.lv != null)
- if ($util.Long)
- (message.lv = $util.Long.fromValue(object.lv)).unsigned = false;
- else if (typeof object.lv === "string")
- message.lv = parseInt(object.lv, 10);
- else if (typeof object.lv === "number")
- message.lv = object.lv;
- else if (typeof object.lv === "object")
- message.lv = new $util.LongBits(object.lv.low >>> 0, object.lv.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a card message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.card
- * @static
- * @param {game.card} message card
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- card.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.sid = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.lv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.lv = options.longs === String ? "0" : 0;
- }
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.lv != null && message.hasOwnProperty("lv"))
- if (typeof message.lv === "number")
- object.lv = options.longs === String ? String(message.lv) : message.lv;
- else
- object.lv = options.longs === String ? $util.Long.prototype.toString.call(message.lv) : options.longs === Number ? new $util.LongBits(message.lv.low >>> 0, message.lv.high >>> 0).toNumber() : message.lv;
- return object;
- };
- /**
- * Converts this card to JSON.
- * @function toJSON
- * @memberof game.card
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- card.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return card;
- })();
- game.equip = (function() {
- /**
- * Properties of an equip.
- * @memberof game
- * @interface Iequip
- * @property {string|null} [sid] equip sid
- * @property {number|Long|null} [id] equip id
- * @property {number|Long|null} [lv] equip lv
- * @property {string|null} [hero] equip hero
- */
- /**
- * Constructs a new equip.
- * @memberof game
- * @classdesc Represents an equip.
- * @implements Iequip
- * @constructor
- * @param {game.Iequip=} [properties] Properties to set
- */
- function equip(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * equip sid.
- * @member {string} sid
- * @memberof game.equip
- * @instance
- */
- equip.prototype.sid = "";
- /**
- * equip id.
- * @member {number|Long} id
- * @memberof game.equip
- * @instance
- */
- equip.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * equip lv.
- * @member {number|Long} lv
- * @memberof game.equip
- * @instance
- */
- equip.prototype.lv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * equip hero.
- * @member {string} hero
- * @memberof game.equip
- * @instance
- */
- equip.prototype.hero = "";
- /**
- * Creates a new equip instance using the specified properties.
- * @function create
- * @memberof game.equip
- * @static
- * @param {game.Iequip=} [properties] Properties to set
- * @returns {game.equip} equip instance
- */
- equip.create = function create(properties) {
- return new equip(properties);
- };
- /**
- * Encodes the specified equip message. Does not implicitly {@link game.equip.verify|verify} messages.
- * @function encode
- * @memberof game.equip
- * @static
- * @param {game.Iequip} message equip message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
- if (message.lv != null && Object.hasOwnProperty.call(message, "lv"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lv);
- if (message.hero != null && Object.hasOwnProperty.call(message, "hero"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.hero);
- return writer;
- };
- /**
- * Encodes the specified equip message, length delimited. Does not implicitly {@link game.equip.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.equip
- * @static
- * @param {game.Iequip} message equip message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- equip.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an equip message from the specified reader or buffer.
- * @function decode
- * @memberof game.equip
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.equip} equip
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sid = reader.string();
- break;
- case 2:
- message.id = reader.int64();
- break;
- case 3:
- message.lv = reader.int64();
- break;
- case 4:
- message.hero = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an equip message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.equip
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.equip} equip
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- equip.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an equip message.
- * @function verify
- * @memberof game.equip
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- equip.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.lv != null && message.hasOwnProperty("lv"))
- if (!$util.isInteger(message.lv) && !(message.lv && $util.isInteger(message.lv.low) && $util.isInteger(message.lv.high)))
- return "lv: integer|Long expected";
- if (message.hero != null && message.hasOwnProperty("hero"))
- if (!$util.isString(message.hero))
- return "hero: string expected";
- return null;
- };
- /**
- * Creates an equip message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.equip
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.equip} equip
- */
- equip.fromObject = function fromObject(object) {
- if (object instanceof $root.game.equip)
- return object;
- let message = new $root.game.equip();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.lv != null)
- if ($util.Long)
- (message.lv = $util.Long.fromValue(object.lv)).unsigned = false;
- else if (typeof object.lv === "string")
- message.lv = parseInt(object.lv, 10);
- else if (typeof object.lv === "number")
- message.lv = object.lv;
- else if (typeof object.lv === "object")
- message.lv = new $util.LongBits(object.lv.low >>> 0, object.lv.high >>> 0).toNumber();
- if (object.hero != null)
- message.hero = String(object.hero);
- return message;
- };
- /**
- * Creates a plain object from an equip message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.equip
- * @static
- * @param {game.equip} message equip
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- equip.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.sid = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.lv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.lv = options.longs === String ? "0" : 0;
- object.hero = "";
- }
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.lv != null && message.hasOwnProperty("lv"))
- if (typeof message.lv === "number")
- object.lv = options.longs === String ? String(message.lv) : message.lv;
- else
- object.lv = options.longs === String ? $util.Long.prototype.toString.call(message.lv) : options.longs === Number ? new $util.LongBits(message.lv.low >>> 0, message.lv.high >>> 0).toNumber() : message.lv;
- if (message.hero != null && message.hasOwnProperty("hero"))
- object.hero = message.hero;
- return object;
- };
- /**
- * Converts this equip to JSON.
- * @function toJSON
- * @memberof game.equip
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- equip.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return equip;
- })();
- game.time_box = (function() {
- /**
- * Properties of a time_box.
- * @memberof game
- * @interface Itime_box
- * @property {number|Long|null} [id] time_box id
- * @property {number|Long|null} [tm] time_box tm
- * @property {number|Long|null} [pos] time_box pos
- */
- /**
- * Constructs a new time_box.
- * @memberof game
- * @classdesc Represents a time_box.
- * @implements Itime_box
- * @constructor
- * @param {game.Itime_box=} [properties] Properties to set
- */
- function time_box(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * time_box id.
- * @member {number|Long} id
- * @memberof game.time_box
- * @instance
- */
- time_box.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * time_box tm.
- * @member {number|Long} tm
- * @memberof game.time_box
- * @instance
- */
- time_box.prototype.tm = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * time_box pos.
- * @member {number|Long} pos
- * @memberof game.time_box
- * @instance
- */
- time_box.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new time_box instance using the specified properties.
- * @function create
- * @memberof game.time_box
- * @static
- * @param {game.Itime_box=} [properties] Properties to set
- * @returns {game.time_box} time_box instance
- */
- time_box.create = function create(properties) {
- return new time_box(properties);
- };
- /**
- * Encodes the specified time_box message. Does not implicitly {@link game.time_box.verify|verify} messages.
- * @function encode
- * @memberof game.time_box
- * @static
- * @param {game.Itime_box} message time_box message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
- if (message.tm != null && Object.hasOwnProperty.call(message, "tm"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.tm);
- if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.pos);
- return writer;
- };
- /**
- * Encodes the specified time_box message, length delimited. Does not implicitly {@link game.time_box.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.time_box
- * @static
- * @param {game.Itime_box} message time_box message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- time_box.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a time_box message from the specified reader or buffer.
- * @function decode
- * @memberof game.time_box
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.time_box} time_box
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.id = reader.int64();
- break;
- case 3:
- message.tm = reader.int64();
- break;
- case 4:
- message.pos = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a time_box message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.time_box
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.time_box} time_box
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- time_box.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a time_box message.
- * @function verify
- * @memberof game.time_box
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- time_box.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.tm != null && message.hasOwnProperty("tm"))
- if (!$util.isInteger(message.tm) && !(message.tm && $util.isInteger(message.tm.low) && $util.isInteger(message.tm.high)))
- return "tm: integer|Long expected";
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
- return "pos: integer|Long expected";
- return null;
- };
- /**
- * Creates a time_box message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.time_box
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.time_box} time_box
- */
- time_box.fromObject = function fromObject(object) {
- if (object instanceof $root.game.time_box)
- return object;
- let message = new $root.game.time_box();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.tm != null)
- if ($util.Long)
- (message.tm = $util.Long.fromValue(object.tm)).unsigned = false;
- else if (typeof object.tm === "string")
- message.tm = parseInt(object.tm, 10);
- else if (typeof object.tm === "number")
- message.tm = object.tm;
- else if (typeof object.tm === "object")
- message.tm = new $util.LongBits(object.tm.low >>> 0, object.tm.high >>> 0).toNumber();
- if (object.pos != null)
- if ($util.Long)
- (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
- else if (typeof object.pos === "string")
- message.pos = parseInt(object.pos, 10);
- else if (typeof object.pos === "number")
- message.pos = object.pos;
- else if (typeof object.pos === "object")
- message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a time_box message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.time_box
- * @static
- * @param {game.time_box} message time_box
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- time_box.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.tm = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.tm = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.pos = options.longs === String ? "0" : 0;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.tm != null && message.hasOwnProperty("tm"))
- if (typeof message.tm === "number")
- object.tm = options.longs === String ? String(message.tm) : message.tm;
- else
- object.tm = options.longs === String ? $util.Long.prototype.toString.call(message.tm) : options.longs === Number ? new $util.LongBits(message.tm.low >>> 0, message.tm.high >>> 0).toNumber() : message.tm;
- if (message.pos != null && message.hasOwnProperty("pos"))
- if (typeof message.pos === "number")
- object.pos = options.longs === String ? String(message.pos) : message.pos;
- else
- object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
- return object;
- };
- /**
- * Converts this time_box to JSON.
- * @function toJSON
- * @memberof game.time_box
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- time_box.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return time_box;
- })();
- game.reward = (function() {
- /**
- * Properties of a reward.
- * @memberof game
- * @interface Ireward
- * @property {Array.<game.Iid_num>|null} [currency] reward currency
- * @property {Array.<game.Ihero>|null} [heroes] reward heroes
- * @property {Array.<game.Icard>|null} [skillCard] reward skillCard
- * @property {Array.<game.Iid_num>|null} [debris] reward debris
- * @property {Array.<game.Iequip>|null} [equip] reward equip
- * @property {Array.<game.Itime_box>|null} [box] reward box
- */
- /**
- * Constructs a new reward.
- * @memberof game
- * @classdesc Represents a reward.
- * @implements Ireward
- * @constructor
- * @param {game.Ireward=} [properties] Properties to set
- */
- function reward(properties) {
- this.currency = [];
- this.heroes = [];
- this.skillCard = [];
- this.debris = [];
- this.equip = [];
- this.box = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * reward currency.
- * @member {Array.<game.Iid_num>} currency
- * @memberof game.reward
- * @instance
- */
- reward.prototype.currency = $util.emptyArray;
- /**
- * reward heroes.
- * @member {Array.<game.Ihero>} heroes
- * @memberof game.reward
- * @instance
- */
- reward.prototype.heroes = $util.emptyArray;
- /**
- * reward skillCard.
- * @member {Array.<game.Icard>} skillCard
- * @memberof game.reward
- * @instance
- */
- reward.prototype.skillCard = $util.emptyArray;
- /**
- * reward debris.
- * @member {Array.<game.Iid_num>} debris
- * @memberof game.reward
- * @instance
- */
- reward.prototype.debris = $util.emptyArray;
- /**
- * reward equip.
- * @member {Array.<game.Iequip>} equip
- * @memberof game.reward
- * @instance
- */
- reward.prototype.equip = $util.emptyArray;
- /**
- * reward box.
- * @member {Array.<game.Itime_box>} box
- * @memberof game.reward
- * @instance
- */
- reward.prototype.box = $util.emptyArray;
- /**
- * Creates a new reward instance using the specified properties.
- * @function create
- * @memberof game.reward
- * @static
- * @param {game.Ireward=} [properties] Properties to set
- * @returns {game.reward} reward instance
- */
- reward.create = function create(properties) {
- return new reward(properties);
- };
- /**
- * Encodes the specified reward message. Does not implicitly {@link game.reward.verify|verify} messages.
- * @function encode
- * @memberof game.reward
- * @static
- * @param {game.Ireward} message reward message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- reward.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.currency != null && message.currency.length)
- for (let i = 0; i < message.currency.length; ++i)
- $root.game.id_num.encode(message.currency[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- if (message.heroes != null && message.heroes.length)
- for (let i = 0; i < message.heroes.length; ++i)
- $root.game.hero.encode(message.heroes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- if (message.skillCard != null && message.skillCard.length)
- for (let i = 0; i < message.skillCard.length; ++i)
- $root.game.card.encode(message.skillCard[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- if (message.debris != null && message.debris.length)
- for (let i = 0; i < message.debris.length; ++i)
- $root.game.id_num.encode(message.debris[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
- if (message.equip != null && message.equip.length)
- for (let i = 0; i < message.equip.length; ++i)
- $root.game.equip.encode(message.equip[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
- if (message.box != null && message.box.length)
- for (let i = 0; i < message.box.length; ++i)
- $root.game.time_box.encode(message.box[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified reward message, length delimited. Does not implicitly {@link game.reward.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.reward
- * @static
- * @param {game.Ireward} message reward message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- reward.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a reward message from the specified reader or buffer.
- * @function decode
- * @memberof game.reward
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.reward} reward
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- reward.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.reward();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.currency && message.currency.length))
- message.currency = [];
- message.currency.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- case 2:
- if (!(message.heroes && message.heroes.length))
- message.heroes = [];
- message.heroes.push($root.game.hero.decode(reader, reader.uint32()));
- break;
- case 3:
- if (!(message.skillCard && message.skillCard.length))
- message.skillCard = [];
- message.skillCard.push($root.game.card.decode(reader, reader.uint32()));
- break;
- case 4:
- if (!(message.debris && message.debris.length))
- message.debris = [];
- message.debris.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- case 5:
- if (!(message.equip && message.equip.length))
- message.equip = [];
- message.equip.push($root.game.equip.decode(reader, reader.uint32()));
- break;
- case 6:
- if (!(message.box && message.box.length))
- message.box = [];
- message.box.push($root.game.time_box.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a reward message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.reward
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.reward} reward
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- reward.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a reward message.
- * @function verify
- * @memberof game.reward
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- reward.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.currency != null && message.hasOwnProperty("currency")) {
- if (!Array.isArray(message.currency))
- return "currency: array expected";
- for (let i = 0; i < message.currency.length; ++i) {
- let error = $root.game.id_num.verify(message.currency[i]);
- if (error)
- return "currency." + error;
- }
- }
- if (message.heroes != null && message.hasOwnProperty("heroes")) {
- if (!Array.isArray(message.heroes))
- return "heroes: array expected";
- for (let i = 0; i < message.heroes.length; ++i) {
- let error = $root.game.hero.verify(message.heroes[i]);
- if (error)
- return "heroes." + error;
- }
- }
- if (message.skillCard != null && message.hasOwnProperty("skillCard")) {
- if (!Array.isArray(message.skillCard))
- return "skillCard: array expected";
- for (let i = 0; i < message.skillCard.length; ++i) {
- let error = $root.game.card.verify(message.skillCard[i]);
- if (error)
- return "skillCard." + error;
- }
- }
- if (message.debris != null && message.hasOwnProperty("debris")) {
- if (!Array.isArray(message.debris))
- return "debris: array expected";
- for (let i = 0; i < message.debris.length; ++i) {
- let error = $root.game.id_num.verify(message.debris[i]);
- if (error)
- return "debris." + error;
- }
- }
- if (message.equip != null && message.hasOwnProperty("equip")) {
- if (!Array.isArray(message.equip))
- return "equip: array expected";
- for (let i = 0; i < message.equip.length; ++i) {
- let error = $root.game.equip.verify(message.equip[i]);
- if (error)
- return "equip." + error;
- }
- }
- if (message.box != null && message.hasOwnProperty("box")) {
- if (!Array.isArray(message.box))
- return "box: array expected";
- for (let i = 0; i < message.box.length; ++i) {
- let error = $root.game.time_box.verify(message.box[i]);
- if (error)
- return "box." + error;
- }
- }
- return null;
- };
- /**
- * Creates a reward message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.reward
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.reward} reward
- */
- reward.fromObject = function fromObject(object) {
- if (object instanceof $root.game.reward)
- return object;
- let message = new $root.game.reward();
- if (object.currency) {
- if (!Array.isArray(object.currency))
- throw TypeError(".game.reward.currency: array expected");
- message.currency = [];
- for (let i = 0; i < object.currency.length; ++i) {
- if (typeof object.currency[i] !== "object")
- throw TypeError(".game.reward.currency: object expected");
- message.currency[i] = $root.game.id_num.fromObject(object.currency[i]);
- }
- }
- if (object.heroes) {
- if (!Array.isArray(object.heroes))
- throw TypeError(".game.reward.heroes: array expected");
- message.heroes = [];
- for (let i = 0; i < object.heroes.length; ++i) {
- if (typeof object.heroes[i] !== "object")
- throw TypeError(".game.reward.heroes: object expected");
- message.heroes[i] = $root.game.hero.fromObject(object.heroes[i]);
- }
- }
- if (object.skillCard) {
- if (!Array.isArray(object.skillCard))
- throw TypeError(".game.reward.skillCard: array expected");
- message.skillCard = [];
- for (let i = 0; i < object.skillCard.length; ++i) {
- if (typeof object.skillCard[i] !== "object")
- throw TypeError(".game.reward.skillCard: object expected");
- message.skillCard[i] = $root.game.card.fromObject(object.skillCard[i]);
- }
- }
- if (object.debris) {
- if (!Array.isArray(object.debris))
- throw TypeError(".game.reward.debris: array expected");
- message.debris = [];
- for (let i = 0; i < object.debris.length; ++i) {
- if (typeof object.debris[i] !== "object")
- throw TypeError(".game.reward.debris: object expected");
- message.debris[i] = $root.game.id_num.fromObject(object.debris[i]);
- }
- }
- if (object.equip) {
- if (!Array.isArray(object.equip))
- throw TypeError(".game.reward.equip: array expected");
- message.equip = [];
- for (let i = 0; i < object.equip.length; ++i) {
- if (typeof object.equip[i] !== "object")
- throw TypeError(".game.reward.equip: object expected");
- message.equip[i] = $root.game.equip.fromObject(object.equip[i]);
- }
- }
- if (object.box) {
- if (!Array.isArray(object.box))
- throw TypeError(".game.reward.box: array expected");
- message.box = [];
- for (let i = 0; i < object.box.length; ++i) {
- if (typeof object.box[i] !== "object")
- throw TypeError(".game.reward.box: object expected");
- message.box[i] = $root.game.time_box.fromObject(object.box[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a reward message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.reward
- * @static
- * @param {game.reward} message reward
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- reward.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.currency = [];
- object.heroes = [];
- object.skillCard = [];
- object.debris = [];
- object.equip = [];
- object.box = [];
- }
- if (message.currency && message.currency.length) {
- object.currency = [];
- for (let j = 0; j < message.currency.length; ++j)
- object.currency[j] = $root.game.id_num.toObject(message.currency[j], options);
- }
- if (message.heroes && message.heroes.length) {
- object.heroes = [];
- for (let j = 0; j < message.heroes.length; ++j)
- object.heroes[j] = $root.game.hero.toObject(message.heroes[j], options);
- }
- if (message.skillCard && message.skillCard.length) {
- object.skillCard = [];
- for (let j = 0; j < message.skillCard.length; ++j)
- object.skillCard[j] = $root.game.card.toObject(message.skillCard[j], options);
- }
- if (message.debris && message.debris.length) {
- object.debris = [];
- for (let j = 0; j < message.debris.length; ++j)
- object.debris[j] = $root.game.id_num.toObject(message.debris[j], options);
- }
- if (message.equip && message.equip.length) {
- object.equip = [];
- for (let j = 0; j < message.equip.length; ++j)
- object.equip[j] = $root.game.equip.toObject(message.equip[j], options);
- }
- if (message.box && message.box.length) {
- object.box = [];
- for (let j = 0; j < message.box.length; ++j)
- object.box[j] = $root.game.time_box.toObject(message.box[j], options);
- }
- return object;
- };
- /**
- * Converts this reward to JSON.
- * @function toJSON
- * @memberof game.reward
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- reward.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return reward;
- })();
- game.building = (function() {
- /**
- * Properties of a building.
- * @memberof game
- * @interface Ibuilding
- * @property {number|Long|null} [id] building id
- * @property {number|Long|null} [level] building level
- * @property {number|Long|null} [time] building time
- * @property {Array.<string>|null} [list] building list
- * @property {boolean|null} [autoExploreOption] building autoExploreOption
- * @property {number|Long|null} [exploreTime] building exploreTime
- * @property {number|Long|null} [exploreTimes] building exploreTimes
- * @property {number|Long|null} [autoExploreTimes] building autoExploreTimes
- */
- /**
- * Constructs a new building.
- * @memberof game
- * @classdesc Represents a building.
- * @implements Ibuilding
- * @constructor
- * @param {game.Ibuilding=} [properties] Properties to set
- */
- function building(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * building id.
- * @member {number|Long} id
- * @memberof game.building
- * @instance
- */
- building.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building level.
- * @member {number|Long} level
- * @memberof game.building
- * @instance
- */
- building.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building time.
- * @member {number|Long} time
- * @memberof game.building
- * @instance
- */
- building.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building list.
- * @member {Array.<string>} list
- * @memberof game.building
- * @instance
- */
- building.prototype.list = $util.emptyArray;
- /**
- * building autoExploreOption.
- * @member {boolean} autoExploreOption
- * @memberof game.building
- * @instance
- */
- building.prototype.autoExploreOption = false;
- /**
- * building exploreTime.
- * @member {number|Long} exploreTime
- * @memberof game.building
- * @instance
- */
- building.prototype.exploreTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building exploreTimes.
- * @member {number|Long} exploreTimes
- * @memberof game.building
- * @instance
- */
- building.prototype.exploreTimes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * building autoExploreTimes.
- * @member {number|Long} autoExploreTimes
- * @memberof game.building
- * @instance
- */
- building.prototype.autoExploreTimes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new building instance using the specified properties.
- * @function create
- * @memberof game.building
- * @static
- * @param {game.Ibuilding=} [properties] Properties to set
- * @returns {game.building} building instance
- */
- building.create = function create(properties) {
- return new building(properties);
- };
- /**
- * Encodes the specified building message. Does not implicitly {@link game.building.verify|verify} messages.
- * @function encode
- * @memberof game.building
- * @static
- * @param {game.Ibuilding} message building message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.level != null && Object.hasOwnProperty.call(message, "level"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.level);
- if (message.time != null && Object.hasOwnProperty.call(message, "time"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.list[i]);
- if (message.autoExploreOption != null && Object.hasOwnProperty.call(message, "autoExploreOption"))
- writer.uint32(/* id 5, wireType 0 =*/40).bool(message.autoExploreOption);
- if (message.exploreTime != null && Object.hasOwnProperty.call(message, "exploreTime"))
- writer.uint32(/* id 6, wireType 0 =*/48).int64(message.exploreTime);
- if (message.exploreTimes != null && Object.hasOwnProperty.call(message, "exploreTimes"))
- writer.uint32(/* id 7, wireType 0 =*/56).int64(message.exploreTimes);
- if (message.autoExploreTimes != null && Object.hasOwnProperty.call(message, "autoExploreTimes"))
- writer.uint32(/* id 8, wireType 0 =*/64).int64(message.autoExploreTimes);
- return writer;
- };
- /**
- * Encodes the specified building message, length delimited. Does not implicitly {@link game.building.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.building
- * @static
- * @param {game.Ibuilding} message building message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- building.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a building message from the specified reader or buffer.
- * @function decode
- * @memberof game.building
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.building} building
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- message.level = reader.int64();
- break;
- case 3:
- message.time = reader.int64();
- break;
- case 4:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push(reader.string());
- break;
- case 5:
- message.autoExploreOption = reader.bool();
- break;
- case 6:
- message.exploreTime = reader.int64();
- break;
- case 7:
- message.exploreTimes = reader.int64();
- break;
- case 8:
- message.autoExploreTimes = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a building message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.building
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.building} building
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- building.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a building message.
- * @function verify
- * @memberof game.building
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- building.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.level != null && message.hasOwnProperty("level"))
- if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
- return "level: integer|Long expected";
- if (message.time != null && message.hasOwnProperty("time"))
- if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
- return "time: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isString(message.list[i]))
- return "list: string[] expected";
- }
- if (message.autoExploreOption != null && message.hasOwnProperty("autoExploreOption"))
- if (typeof message.autoExploreOption !== "boolean")
- return "autoExploreOption: boolean expected";
- if (message.exploreTime != null && message.hasOwnProperty("exploreTime"))
- if (!$util.isInteger(message.exploreTime) && !(message.exploreTime && $util.isInteger(message.exploreTime.low) && $util.isInteger(message.exploreTime.high)))
- return "exploreTime: integer|Long expected";
- if (message.exploreTimes != null && message.hasOwnProperty("exploreTimes"))
- if (!$util.isInteger(message.exploreTimes) && !(message.exploreTimes && $util.isInteger(message.exploreTimes.low) && $util.isInteger(message.exploreTimes.high)))
- return "exploreTimes: integer|Long expected";
- if (message.autoExploreTimes != null && message.hasOwnProperty("autoExploreTimes"))
- if (!$util.isInteger(message.autoExploreTimes) && !(message.autoExploreTimes && $util.isInteger(message.autoExploreTimes.low) && $util.isInteger(message.autoExploreTimes.high)))
- return "autoExploreTimes: integer|Long expected";
- return null;
- };
- /**
- * Creates a building message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.building
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.building} building
- */
- building.fromObject = function fromObject(object) {
- if (object instanceof $root.game.building)
- return object;
- let message = new $root.game.building();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.level != null)
- if ($util.Long)
- (message.level = $util.Long.fromValue(object.level)).unsigned = false;
- else if (typeof object.level === "string")
- message.level = parseInt(object.level, 10);
- else if (typeof object.level === "number")
- message.level = object.level;
- else if (typeof object.level === "object")
- message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
- if (object.time != null)
- if ($util.Long)
- (message.time = $util.Long.fromValue(object.time)).unsigned = false;
- else if (typeof object.time === "string")
- message.time = parseInt(object.time, 10);
- else if (typeof object.time === "number")
- message.time = object.time;
- else if (typeof object.time === "object")
- message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.building.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- message.list[i] = String(object.list[i]);
- }
- if (object.autoExploreOption != null)
- message.autoExploreOption = Boolean(object.autoExploreOption);
- if (object.exploreTime != null)
- if ($util.Long)
- (message.exploreTime = $util.Long.fromValue(object.exploreTime)).unsigned = false;
- else if (typeof object.exploreTime === "string")
- message.exploreTime = parseInt(object.exploreTime, 10);
- else if (typeof object.exploreTime === "number")
- message.exploreTime = object.exploreTime;
- else if (typeof object.exploreTime === "object")
- message.exploreTime = new $util.LongBits(object.exploreTime.low >>> 0, object.exploreTime.high >>> 0).toNumber();
- if (object.exploreTimes != null)
- if ($util.Long)
- (message.exploreTimes = $util.Long.fromValue(object.exploreTimes)).unsigned = false;
- else if (typeof object.exploreTimes === "string")
- message.exploreTimes = parseInt(object.exploreTimes, 10);
- else if (typeof object.exploreTimes === "number")
- message.exploreTimes = object.exploreTimes;
- else if (typeof object.exploreTimes === "object")
- message.exploreTimes = new $util.LongBits(object.exploreTimes.low >>> 0, object.exploreTimes.high >>> 0).toNumber();
- if (object.autoExploreTimes != null)
- if ($util.Long)
- (message.autoExploreTimes = $util.Long.fromValue(object.autoExploreTimes)).unsigned = false;
- else if (typeof object.autoExploreTimes === "string")
- message.autoExploreTimes = parseInt(object.autoExploreTimes, 10);
- else if (typeof object.autoExploreTimes === "number")
- message.autoExploreTimes = object.autoExploreTimes;
- else if (typeof object.autoExploreTimes === "object")
- message.autoExploreTimes = new $util.LongBits(object.autoExploreTimes.low >>> 0, object.autoExploreTimes.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a building message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.building
- * @static
- * @param {game.building} message building
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- building.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.level = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.time = options.longs === String ? "0" : 0;
- object.autoExploreOption = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.exploreTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.exploreTime = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.exploreTimes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.exploreTimes = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.autoExploreTimes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.autoExploreTimes = options.longs === String ? "0" : 0;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.level != null && message.hasOwnProperty("level"))
- if (typeof message.level === "number")
- object.level = options.longs === String ? String(message.level) : message.level;
- else
- object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
- if (message.time != null && message.hasOwnProperty("time"))
- if (typeof message.time === "number")
- object.time = options.longs === String ? String(message.time) : message.time;
- else
- object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = message.list[j];
- }
- if (message.autoExploreOption != null && message.hasOwnProperty("autoExploreOption"))
- object.autoExploreOption = message.autoExploreOption;
- if (message.exploreTime != null && message.hasOwnProperty("exploreTime"))
- if (typeof message.exploreTime === "number")
- object.exploreTime = options.longs === String ? String(message.exploreTime) : message.exploreTime;
- else
- object.exploreTime = options.longs === String ? $util.Long.prototype.toString.call(message.exploreTime) : options.longs === Number ? new $util.LongBits(message.exploreTime.low >>> 0, message.exploreTime.high >>> 0).toNumber() : message.exploreTime;
- if (message.exploreTimes != null && message.hasOwnProperty("exploreTimes"))
- if (typeof message.exploreTimes === "number")
- object.exploreTimes = options.longs === String ? String(message.exploreTimes) : message.exploreTimes;
- else
- object.exploreTimes = options.longs === String ? $util.Long.prototype.toString.call(message.exploreTimes) : options.longs === Number ? new $util.LongBits(message.exploreTimes.low >>> 0, message.exploreTimes.high >>> 0).toNumber() : message.exploreTimes;
- if (message.autoExploreTimes != null && message.hasOwnProperty("autoExploreTimes"))
- if (typeof message.autoExploreTimes === "number")
- object.autoExploreTimes = options.longs === String ? String(message.autoExploreTimes) : message.autoExploreTimes;
- else
- object.autoExploreTimes = options.longs === String ? $util.Long.prototype.toString.call(message.autoExploreTimes) : options.longs === Number ? new $util.LongBits(message.autoExploreTimes.low >>> 0, message.autoExploreTimes.high >>> 0).toNumber() : message.autoExploreTimes;
- return object;
- };
- /**
- * Converts this building to JSON.
- * @function toJSON
- * @memberof game.building
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- building.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return building;
- })();
- game.packageMail = (function() {
- /**
- * Properties of a packageMail.
- * @memberof game
- * @interface IpackageMail
- * @property {Array.<game.Iid_num>|null} [currency] packageMail currency
- */
- /**
- * Constructs a new packageMail.
- * @memberof game
- * @classdesc Represents a packageMail.
- * @implements IpackageMail
- * @constructor
- * @param {game.IpackageMail=} [properties] Properties to set
- */
- function packageMail(properties) {
- this.currency = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * packageMail currency.
- * @member {Array.<game.Iid_num>} currency
- * @memberof game.packageMail
- * @instance
- */
- packageMail.prototype.currency = $util.emptyArray;
- /**
- * Creates a new packageMail instance using the specified properties.
- * @function create
- * @memberof game.packageMail
- * @static
- * @param {game.IpackageMail=} [properties] Properties to set
- * @returns {game.packageMail} packageMail instance
- */
- packageMail.create = function create(properties) {
- return new packageMail(properties);
- };
- /**
- * Encodes the specified packageMail message. Does not implicitly {@link game.packageMail.verify|verify} messages.
- * @function encode
- * @memberof game.packageMail
- * @static
- * @param {game.IpackageMail} message packageMail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- packageMail.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.currency != null && message.currency.length)
- for (let i = 0; i < message.currency.length; ++i)
- $root.game.id_num.encode(message.currency[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified packageMail message, length delimited. Does not implicitly {@link game.packageMail.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.packageMail
- * @static
- * @param {game.IpackageMail} message packageMail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- packageMail.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a packageMail message from the specified reader or buffer.
- * @function decode
- * @memberof game.packageMail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.packageMail} packageMail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- packageMail.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.packageMail();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.currency && message.currency.length))
- message.currency = [];
- message.currency.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a packageMail message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.packageMail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.packageMail} packageMail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- packageMail.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a packageMail message.
- * @function verify
- * @memberof game.packageMail
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- packageMail.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.currency != null && message.hasOwnProperty("currency")) {
- if (!Array.isArray(message.currency))
- return "currency: array expected";
- for (let i = 0; i < message.currency.length; ++i) {
- let error = $root.game.id_num.verify(message.currency[i]);
- if (error)
- return "currency." + error;
- }
- }
- return null;
- };
- /**
- * Creates a packageMail message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.packageMail
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.packageMail} packageMail
- */
- packageMail.fromObject = function fromObject(object) {
- if (object instanceof $root.game.packageMail)
- return object;
- let message = new $root.game.packageMail();
- if (object.currency) {
- if (!Array.isArray(object.currency))
- throw TypeError(".game.packageMail.currency: array expected");
- message.currency = [];
- for (let i = 0; i < object.currency.length; ++i) {
- if (typeof object.currency[i] !== "object")
- throw TypeError(".game.packageMail.currency: object expected");
- message.currency[i] = $root.game.id_num.fromObject(object.currency[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a packageMail message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.packageMail
- * @static
- * @param {game.packageMail} message packageMail
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- packageMail.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.currency = [];
- if (message.currency && message.currency.length) {
- object.currency = [];
- for (let j = 0; j < message.currency.length; ++j)
- object.currency[j] = $root.game.id_num.toObject(message.currency[j], options);
- }
- return object;
- };
- /**
- * Converts this packageMail to JSON.
- * @function toJSON
- * @memberof game.packageMail
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- packageMail.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return packageMail;
- })();
- game.mail = (function() {
- /**
- * Properties of a mail.
- * @memberof game
- * @interface Imail
- * @property {string|null} [id] mail id
- * @property {number|Long|null} [date] mail date
- * @property {number|Long|null} [subject] mail subject
- * @property {string|null} [body] mail body
- * @property {Array.<game.Iid_num>|null} [attachment] mail attachment
- * @property {boolean|null} [attach] mail attach
- * @property {boolean|null} [read] mail read
- * @property {boolean|null} [receive] mail receive
- */
- /**
- * Constructs a new mail.
- * @memberof game
- * @classdesc Represents a mail.
- * @implements Imail
- * @constructor
- * @param {game.Imail=} [properties] Properties to set
- */
- function mail(properties) {
- this.attachment = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * mail id.
- * @member {string} id
- * @memberof game.mail
- * @instance
- */
- mail.prototype.id = "";
- /**
- * mail date.
- * @member {number|Long} date
- * @memberof game.mail
- * @instance
- */
- mail.prototype.date = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * mail subject.
- * @member {number|Long} subject
- * @memberof game.mail
- * @instance
- */
- mail.prototype.subject = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * mail body.
- * @member {string} body
- * @memberof game.mail
- * @instance
- */
- mail.prototype.body = "";
- /**
- * mail attachment.
- * @member {Array.<game.Iid_num>} attachment
- * @memberof game.mail
- * @instance
- */
- mail.prototype.attachment = $util.emptyArray;
- /**
- * mail attach.
- * @member {boolean} attach
- * @memberof game.mail
- * @instance
- */
- mail.prototype.attach = false;
- /**
- * mail read.
- * @member {boolean} read
- * @memberof game.mail
- * @instance
- */
- mail.prototype.read = false;
- /**
- * mail receive.
- * @member {boolean} receive
- * @memberof game.mail
- * @instance
- */
- mail.prototype.receive = false;
- /**
- * Creates a new mail instance using the specified properties.
- * @function create
- * @memberof game.mail
- * @static
- * @param {game.Imail=} [properties] Properties to set
- * @returns {game.mail} mail instance
- */
- mail.create = function create(properties) {
- return new mail(properties);
- };
- /**
- * Encodes the specified mail message. Does not implicitly {@link game.mail.verify|verify} messages.
- * @function encode
- * @memberof game.mail
- * @static
- * @param {game.Imail} message mail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- mail.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
- if (message.date != null && Object.hasOwnProperty.call(message, "date"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.date);
- if (message.subject != null && Object.hasOwnProperty.call(message, "subject"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.subject);
- if (message.body != null && Object.hasOwnProperty.call(message, "body"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.body);
- if (message.attachment != null && message.attachment.length)
- for (let i = 0; i < message.attachment.length; ++i)
- $root.game.id_num.encode(message.attachment[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
- if (message.attach != null && Object.hasOwnProperty.call(message, "attach"))
- writer.uint32(/* id 6, wireType 0 =*/48).bool(message.attach);
- if (message.read != null && Object.hasOwnProperty.call(message, "read"))
- writer.uint32(/* id 7, wireType 0 =*/56).bool(message.read);
- if (message.receive != null && Object.hasOwnProperty.call(message, "receive"))
- writer.uint32(/* id 8, wireType 0 =*/64).bool(message.receive);
- return writer;
- };
- /**
- * Encodes the specified mail message, length delimited. Does not implicitly {@link game.mail.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.mail
- * @static
- * @param {game.Imail} message mail message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- mail.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a mail message from the specified reader or buffer.
- * @function decode
- * @memberof game.mail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.mail} mail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- mail.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.mail();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.string();
- break;
- case 2:
- message.date = reader.int64();
- break;
- case 3:
- message.subject = reader.int64();
- break;
- case 4:
- message.body = reader.string();
- break;
- case 5:
- if (!(message.attachment && message.attachment.length))
- message.attachment = [];
- message.attachment.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- case 6:
- message.attach = reader.bool();
- break;
- case 7:
- message.read = reader.bool();
- break;
- case 8:
- message.receive = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a mail message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.mail
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.mail} mail
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- mail.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a mail message.
- * @function verify
- * @memberof game.mail
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- mail.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isString(message.id))
- return "id: string expected";
- if (message.date != null && message.hasOwnProperty("date"))
- if (!$util.isInteger(message.date) && !(message.date && $util.isInteger(message.date.low) && $util.isInteger(message.date.high)))
- return "date: integer|Long expected";
- if (message.subject != null && message.hasOwnProperty("subject"))
- if (!$util.isInteger(message.subject) && !(message.subject && $util.isInteger(message.subject.low) && $util.isInteger(message.subject.high)))
- return "subject: integer|Long expected";
- if (message.body != null && message.hasOwnProperty("body"))
- if (!$util.isString(message.body))
- return "body: string expected";
- if (message.attachment != null && message.hasOwnProperty("attachment")) {
- if (!Array.isArray(message.attachment))
- return "attachment: array expected";
- for (let i = 0; i < message.attachment.length; ++i) {
- let error = $root.game.id_num.verify(message.attachment[i]);
- if (error)
- return "attachment." + error;
- }
- }
- if (message.attach != null && message.hasOwnProperty("attach"))
- if (typeof message.attach !== "boolean")
- return "attach: boolean expected";
- if (message.read != null && message.hasOwnProperty("read"))
- if (typeof message.read !== "boolean")
- return "read: boolean expected";
- if (message.receive != null && message.hasOwnProperty("receive"))
- if (typeof message.receive !== "boolean")
- return "receive: boolean expected";
- return null;
- };
- /**
- * Creates a mail message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.mail
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.mail} mail
- */
- mail.fromObject = function fromObject(object) {
- if (object instanceof $root.game.mail)
- return object;
- let message = new $root.game.mail();
- if (object.id != null)
- message.id = String(object.id);
- if (object.date != null)
- if ($util.Long)
- (message.date = $util.Long.fromValue(object.date)).unsigned = false;
- else if (typeof object.date === "string")
- message.date = parseInt(object.date, 10);
- else if (typeof object.date === "number")
- message.date = object.date;
- else if (typeof object.date === "object")
- message.date = new $util.LongBits(object.date.low >>> 0, object.date.high >>> 0).toNumber();
- if (object.subject != null)
- if ($util.Long)
- (message.subject = $util.Long.fromValue(object.subject)).unsigned = false;
- else if (typeof object.subject === "string")
- message.subject = parseInt(object.subject, 10);
- else if (typeof object.subject === "number")
- message.subject = object.subject;
- else if (typeof object.subject === "object")
- message.subject = new $util.LongBits(object.subject.low >>> 0, object.subject.high >>> 0).toNumber();
- if (object.body != null)
- message.body = String(object.body);
- if (object.attachment) {
- if (!Array.isArray(object.attachment))
- throw TypeError(".game.mail.attachment: array expected");
- message.attachment = [];
- for (let i = 0; i < object.attachment.length; ++i) {
- if (typeof object.attachment[i] !== "object")
- throw TypeError(".game.mail.attachment: object expected");
- message.attachment[i] = $root.game.id_num.fromObject(object.attachment[i]);
- }
- }
- if (object.attach != null)
- message.attach = Boolean(object.attach);
- if (object.read != null)
- message.read = Boolean(object.read);
- if (object.receive != null)
- message.receive = Boolean(object.receive);
- return message;
- };
- /**
- * Creates a plain object from a mail message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.mail
- * @static
- * @param {game.mail} message mail
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- mail.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.attachment = [];
- if (options.defaults) {
- object.id = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.date = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.date = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.subject = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.subject = options.longs === String ? "0" : 0;
- object.body = "";
- object.attach = false;
- object.read = false;
- object.receive = false;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- object.id = message.id;
- if (message.date != null && message.hasOwnProperty("date"))
- if (typeof message.date === "number")
- object.date = options.longs === String ? String(message.date) : message.date;
- else
- object.date = options.longs === String ? $util.Long.prototype.toString.call(message.date) : options.longs === Number ? new $util.LongBits(message.date.low >>> 0, message.date.high >>> 0).toNumber() : message.date;
- if (message.subject != null && message.hasOwnProperty("subject"))
- if (typeof message.subject === "number")
- object.subject = options.longs === String ? String(message.subject) : message.subject;
- else
- object.subject = options.longs === String ? $util.Long.prototype.toString.call(message.subject) : options.longs === Number ? new $util.LongBits(message.subject.low >>> 0, message.subject.high >>> 0).toNumber() : message.subject;
- if (message.body != null && message.hasOwnProperty("body"))
- object.body = message.body;
- if (message.attachment && message.attachment.length) {
- object.attachment = [];
- for (let j = 0; j < message.attachment.length; ++j)
- object.attachment[j] = $root.game.id_num.toObject(message.attachment[j], options);
- }
- if (message.attach != null && message.hasOwnProperty("attach"))
- object.attach = message.attach;
- if (message.read != null && message.hasOwnProperty("read"))
- object.read = message.read;
- if (message.receive != null && message.hasOwnProperty("receive"))
- object.receive = message.receive;
- return object;
- };
- /**
- * Converts this mail to JSON.
- * @function toJSON
- * @memberof game.mail
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- mail.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return mail;
- })();
- game.quest = (function() {
- /**
- * Properties of a quest.
- * @memberof game
- * @interface Iquest
- * @property {number|Long|null} [id] quest id
- * @property {number|Long|null} [progress] quest progress
- * @property {number|Long|null} [state] quest state
- */
- /**
- * Constructs a new quest.
- * @memberof game
- * @classdesc Represents a quest.
- * @implements Iquest
- * @constructor
- * @param {game.Iquest=} [properties] Properties to set
- */
- function quest(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * quest id.
- * @member {number|Long} id
- * @memberof game.quest
- * @instance
- */
- quest.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * quest progress.
- * @member {number|Long} progress
- * @memberof game.quest
- * @instance
- */
- quest.prototype.progress = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * quest state.
- * @member {number|Long} state
- * @memberof game.quest
- * @instance
- */
- quest.prototype.state = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new quest instance using the specified properties.
- * @function create
- * @memberof game.quest
- * @static
- * @param {game.Iquest=} [properties] Properties to set
- * @returns {game.quest} quest instance
- */
- quest.create = function create(properties) {
- return new quest(properties);
- };
- /**
- * Encodes the specified quest message. Does not implicitly {@link game.quest.verify|verify} messages.
- * @function encode
- * @memberof game.quest
- * @static
- * @param {game.Iquest} message quest message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.progress);
- if (message.state != null && Object.hasOwnProperty.call(message, "state"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.state);
- return writer;
- };
- /**
- * Encodes the specified quest message, length delimited. Does not implicitly {@link game.quest.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.quest
- * @static
- * @param {game.Iquest} message quest message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- quest.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a quest message from the specified reader or buffer.
- * @function decode
- * @memberof game.quest
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.quest} quest
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- message.progress = reader.int64();
- break;
- case 3:
- message.state = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a quest message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.quest
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.quest} quest
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- quest.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a quest message.
- * @function verify
- * @memberof game.quest
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- quest.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.progress != null && message.hasOwnProperty("progress"))
- if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
- return "progress: integer|Long expected";
- if (message.state != null && message.hasOwnProperty("state"))
- if (!$util.isInteger(message.state) && !(message.state && $util.isInteger(message.state.low) && $util.isInteger(message.state.high)))
- return "state: integer|Long expected";
- return null;
- };
- /**
- * Creates a quest message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.quest
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.quest} quest
- */
- quest.fromObject = function fromObject(object) {
- if (object instanceof $root.game.quest)
- return object;
- let message = new $root.game.quest();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.progress != null)
- if ($util.Long)
- (message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
- else if (typeof object.progress === "string")
- message.progress = parseInt(object.progress, 10);
- else if (typeof object.progress === "number")
- message.progress = object.progress;
- else if (typeof object.progress === "object")
- message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
- if (object.state != null)
- if ($util.Long)
- (message.state = $util.Long.fromValue(object.state)).unsigned = false;
- else if (typeof object.state === "string")
- message.state = parseInt(object.state, 10);
- else if (typeof object.state === "number")
- message.state = object.state;
- else if (typeof object.state === "object")
- message.state = new $util.LongBits(object.state.low >>> 0, object.state.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a quest message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.quest
- * @static
- * @param {game.quest} message quest
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- quest.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.progress = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.state = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.state = options.longs === String ? "0" : 0;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.progress != null && message.hasOwnProperty("progress"))
- if (typeof message.progress === "number")
- object.progress = options.longs === String ? String(message.progress) : message.progress;
- else
- object.progress = options.longs === String ? $util.Long.prototype.toString.call(message.progress) : options.longs === Number ? new $util.LongBits(message.progress.low >>> 0, message.progress.high >>> 0).toNumber() : message.progress;
- if (message.state != null && message.hasOwnProperty("state"))
- if (typeof message.state === "number")
- object.state = options.longs === String ? String(message.state) : message.state;
- else
- object.state = options.longs === String ? $util.Long.prototype.toString.call(message.state) : options.longs === Number ? new $util.LongBits(message.state.low >>> 0, message.state.high >>> 0).toNumber() : message.state;
- return object;
- };
- /**
- * Converts this quest to JSON.
- * @function toJSON
- * @memberof game.quest
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- quest.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return quest;
- })();
- game.manual = (function() {
- /**
- * Properties of a manual.
- * @memberof game
- * @interface Imanual
- * @property {boolean|null} [lock] manual lock
- * @property {number|Long|null} [award] manual award
- */
- /**
- * Constructs a new manual.
- * @memberof game
- * @classdesc Represents a manual.
- * @implements Imanual
- * @constructor
- * @param {game.Imanual=} [properties] Properties to set
- */
- function manual(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * manual lock.
- * @member {boolean} lock
- * @memberof game.manual
- * @instance
- */
- manual.prototype.lock = false;
- /**
- * manual award.
- * @member {number|Long} award
- * @memberof game.manual
- * @instance
- */
- manual.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new manual instance using the specified properties.
- * @function create
- * @memberof game.manual
- * @static
- * @param {game.Imanual=} [properties] Properties to set
- * @returns {game.manual} manual instance
- */
- manual.create = function create(properties) {
- return new manual(properties);
- };
- /**
- * Encodes the specified manual message. Does not implicitly {@link game.manual.verify|verify} messages.
- * @function encode
- * @memberof game.manual
- * @static
- * @param {game.Imanual} message manual message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.lock != null && Object.hasOwnProperty.call(message, "lock"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.lock);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.award);
- return writer;
- };
- /**
- * Encodes the specified manual message, length delimited. Does not implicitly {@link game.manual.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.manual
- * @static
- * @param {game.Imanual} message manual message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- manual.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a manual message from the specified reader or buffer.
- * @function decode
- * @memberof game.manual
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.manual} manual
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.lock = reader.bool();
- break;
- case 2:
- message.award = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a manual message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.manual
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.manual} manual
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- manual.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a manual message.
- * @function verify
- * @memberof game.manual
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- manual.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.lock != null && message.hasOwnProperty("lock"))
- if (typeof message.lock !== "boolean")
- return "lock: boolean expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
- return "award: integer|Long expected";
- return null;
- };
- /**
- * Creates a manual message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.manual
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.manual} manual
- */
- manual.fromObject = function fromObject(object) {
- if (object instanceof $root.game.manual)
- return object;
- let message = new $root.game.manual();
- if (object.lock != null)
- message.lock = Boolean(object.lock);
- if (object.award != null)
- if ($util.Long)
- (message.award = $util.Long.fromValue(object.award)).unsigned = false;
- else if (typeof object.award === "string")
- message.award = parseInt(object.award, 10);
- else if (typeof object.award === "number")
- message.award = object.award;
- else if (typeof object.award === "object")
- message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a manual message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.manual
- * @static
- * @param {game.manual} message manual
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- manual.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.lock = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.award = options.longs === String ? "0" : 0;
- }
- if (message.lock != null && message.hasOwnProperty("lock"))
- object.lock = message.lock;
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award === "number")
- object.award = options.longs === String ? String(message.award) : message.award;
- else
- object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
- return object;
- };
- /**
- * Converts this manual to JSON.
- * @function toJSON
- * @memberof game.manual
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- manual.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return manual;
- })();
- game.draw_award_info = (function() {
- /**
- * Properties of a draw_award_info.
- * @memberof game
- * @interface Idraw_award_info
- * @property {number|Long|null} [id] draw_award_info id
- * @property {number|Long|null} [num] draw_award_info num
- * @property {number|Long|null} [quality] draw_award_info quality
- */
- /**
- * Constructs a new draw_award_info.
- * @memberof game
- * @classdesc Represents a draw_award_info.
- * @implements Idraw_award_info
- * @constructor
- * @param {game.Idraw_award_info=} [properties] Properties to set
- */
- function draw_award_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * draw_award_info id.
- * @member {number|Long} id
- * @memberof game.draw_award_info
- * @instance
- */
- draw_award_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * draw_award_info num.
- * @member {number|Long} num
- * @memberof game.draw_award_info
- * @instance
- */
- draw_award_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * draw_award_info quality.
- * @member {number|Long} quality
- * @memberof game.draw_award_info
- * @instance
- */
- draw_award_info.prototype.quality = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new draw_award_info instance using the specified properties.
- * @function create
- * @memberof game.draw_award_info
- * @static
- * @param {game.Idraw_award_info=} [properties] Properties to set
- * @returns {game.draw_award_info} draw_award_info instance
- */
- draw_award_info.create = function create(properties) {
- return new draw_award_info(properties);
- };
- /**
- * Encodes the specified draw_award_info message. Does not implicitly {@link game.draw_award_info.verify|verify} messages.
- * @function encode
- * @memberof game.draw_award_info
- * @static
- * @param {game.Idraw_award_info} message draw_award_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- draw_award_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
- if (message.quality != null && Object.hasOwnProperty.call(message, "quality"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.quality);
- return writer;
- };
- /**
- * Encodes the specified draw_award_info message, length delimited. Does not implicitly {@link game.draw_award_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.draw_award_info
- * @static
- * @param {game.Idraw_award_info} message draw_award_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- draw_award_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a draw_award_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.draw_award_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.draw_award_info} draw_award_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- draw_award_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_award_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- message.num = reader.int64();
- break;
- case 3:
- message.quality = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a draw_award_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.draw_award_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.draw_award_info} draw_award_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- draw_award_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a draw_award_info message.
- * @function verify
- * @memberof game.draw_award_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- draw_award_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- if (message.quality != null && message.hasOwnProperty("quality"))
- if (!$util.isInteger(message.quality) && !(message.quality && $util.isInteger(message.quality.low) && $util.isInteger(message.quality.high)))
- return "quality: integer|Long expected";
- return null;
- };
- /**
- * Creates a draw_award_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.draw_award_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.draw_award_info} draw_award_info
- */
- draw_award_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.draw_award_info)
- return object;
- let message = new $root.game.draw_award_info();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- if (object.quality != null)
- if ($util.Long)
- (message.quality = $util.Long.fromValue(object.quality)).unsigned = false;
- else if (typeof object.quality === "string")
- message.quality = parseInt(object.quality, 10);
- else if (typeof object.quality === "number")
- message.quality = object.quality;
- else if (typeof object.quality === "object")
- message.quality = new $util.LongBits(object.quality.low >>> 0, object.quality.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a draw_award_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.draw_award_info
- * @static
- * @param {game.draw_award_info} message draw_award_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- draw_award_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.quality = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.quality = options.longs === String ? "0" : 0;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- if (message.quality != null && message.hasOwnProperty("quality"))
- if (typeof message.quality === "number")
- object.quality = options.longs === String ? String(message.quality) : message.quality;
- else
- object.quality = options.longs === String ? $util.Long.prototype.toString.call(message.quality) : options.longs === Number ? new $util.LongBits(message.quality.low >>> 0, message.quality.high >>> 0).toNumber() : message.quality;
- return object;
- };
- /**
- * Converts this draw_award_info to JSON.
- * @function toJSON
- * @memberof game.draw_award_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- draw_award_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return draw_award_info;
- })();
- game.draw_info = (function() {
- /**
- * Properties of a draw_info.
- * @memberof game
- * @interface Idraw_info
- * @property {number|Long|null} [daily] draw_info daily
- * @property {number|Long|null} [free] draw_info free
- * @property {Array.<number|Long>|null} [list] draw_info list
- */
- /**
- * Constructs a new draw_info.
- * @memberof game
- * @classdesc Represents a draw_info.
- * @implements Idraw_info
- * @constructor
- * @param {game.Idraw_info=} [properties] Properties to set
- */
- function draw_info(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * draw_info daily.
- * @member {number|Long} daily
- * @memberof game.draw_info
- * @instance
- */
- draw_info.prototype.daily = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * draw_info free.
- * @member {number|Long} free
- * @memberof game.draw_info
- * @instance
- */
- draw_info.prototype.free = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * draw_info list.
- * @member {Array.<number|Long>} list
- * @memberof game.draw_info
- * @instance
- */
- draw_info.prototype.list = $util.emptyArray;
- /**
- * Creates a new draw_info instance using the specified properties.
- * @function create
- * @memberof game.draw_info
- * @static
- * @param {game.Idraw_info=} [properties] Properties to set
- * @returns {game.draw_info} draw_info instance
- */
- draw_info.create = function create(properties) {
- return new draw_info(properties);
- };
- /**
- * Encodes the specified draw_info message. Does not implicitly {@link game.draw_info.verify|verify} messages.
- * @function encode
- * @memberof game.draw_info
- * @static
- * @param {game.Idraw_info} message draw_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- draw_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.daily != null && Object.hasOwnProperty.call(message, "daily"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.daily);
- if (message.free != null && Object.hasOwnProperty.call(message, "free"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.free);
- if (message.list != null && message.list.length) {
- writer.uint32(/* id 3, wireType 2 =*/26).fork();
- for (let i = 0; i < message.list.length; ++i)
- writer.int64(message.list[i]);
- writer.ldelim();
- }
- return writer;
- };
- /**
- * Encodes the specified draw_info message, length delimited. Does not implicitly {@link game.draw_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.draw_info
- * @static
- * @param {game.Idraw_info} message draw_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- draw_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a draw_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.draw_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.draw_info} draw_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- draw_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.daily = reader.int64();
- break;
- case 2:
- message.free = reader.int64();
- break;
- case 3:
- if (!(message.list && message.list.length))
- message.list = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.list.push(reader.int64());
- } else
- message.list.push(reader.int64());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a draw_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.draw_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.draw_info} draw_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- draw_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a draw_info message.
- * @function verify
- * @memberof game.draw_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- draw_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.daily != null && message.hasOwnProperty("daily"))
- if (!$util.isInteger(message.daily) && !(message.daily && $util.isInteger(message.daily.low) && $util.isInteger(message.daily.high)))
- return "daily: integer|Long expected";
- if (message.free != null && message.hasOwnProperty("free"))
- if (!$util.isInteger(message.free) && !(message.free && $util.isInteger(message.free.low) && $util.isInteger(message.free.high)))
- return "free: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i)
- if (!$util.isInteger(message.list[i]) && !(message.list[i] && $util.isInteger(message.list[i].low) && $util.isInteger(message.list[i].high)))
- return "list: integer|Long[] expected";
- }
- return null;
- };
- /**
- * Creates a draw_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.draw_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.draw_info} draw_info
- */
- draw_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.draw_info)
- return object;
- let message = new $root.game.draw_info();
- if (object.daily != null)
- if ($util.Long)
- (message.daily = $util.Long.fromValue(object.daily)).unsigned = false;
- else if (typeof object.daily === "string")
- message.daily = parseInt(object.daily, 10);
- else if (typeof object.daily === "number")
- message.daily = object.daily;
- else if (typeof object.daily === "object")
- message.daily = new $util.LongBits(object.daily.low >>> 0, object.daily.high >>> 0).toNumber();
- if (object.free != null)
- if ($util.Long)
- (message.free = $util.Long.fromValue(object.free)).unsigned = false;
- else if (typeof object.free === "string")
- message.free = parseInt(object.free, 10);
- else if (typeof object.free === "number")
- message.free = object.free;
- else if (typeof object.free === "object")
- message.free = new $util.LongBits(object.free.low >>> 0, object.free.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.draw_info.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i)
- if ($util.Long)
- (message.list[i] = $util.Long.fromValue(object.list[i])).unsigned = false;
- else if (typeof object.list[i] === "string")
- message.list[i] = parseInt(object.list[i], 10);
- else if (typeof object.list[i] === "number")
- message.list[i] = object.list[i];
- else if (typeof object.list[i] === "object")
- message.list[i] = new $util.LongBits(object.list[i].low >>> 0, object.list[i].high >>> 0).toNumber();
- }
- return message;
- };
- /**
- * Creates a plain object from a draw_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.draw_info
- * @static
- * @param {game.draw_info} message draw_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- draw_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.daily = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.daily = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.free = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.free = options.longs === String ? "0" : 0;
- }
- if (message.daily != null && message.hasOwnProperty("daily"))
- if (typeof message.daily === "number")
- object.daily = options.longs === String ? String(message.daily) : message.daily;
- else
- object.daily = options.longs === String ? $util.Long.prototype.toString.call(message.daily) : options.longs === Number ? new $util.LongBits(message.daily.low >>> 0, message.daily.high >>> 0).toNumber() : message.daily;
- if (message.free != null && message.hasOwnProperty("free"))
- if (typeof message.free === "number")
- object.free = options.longs === String ? String(message.free) : message.free;
- else
- object.free = options.longs === String ? $util.Long.prototype.toString.call(message.free) : options.longs === Number ? new $util.LongBits(message.free.low >>> 0, message.free.high >>> 0).toNumber() : message.free;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- if (typeof message.list[j] === "number")
- object.list[j] = options.longs === String ? String(message.list[j]) : message.list[j];
- else
- object.list[j] = options.longs === String ? $util.Long.prototype.toString.call(message.list[j]) : options.longs === Number ? new $util.LongBits(message.list[j].low >>> 0, message.list[j].high >>> 0).toNumber() : message.list[j];
- }
- return object;
- };
- /**
- * Converts this draw_info to JSON.
- * @function toJSON
- * @memberof game.draw_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- draw_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return draw_info;
- })();
- game.shop_info = (function() {
- /**
- * Properties of a shop_info.
- * @memberof game
- * @interface Ishop_info
- * @property {number|Long|null} [type] shop_info type
- * @property {Array.<game.Iid_num>|null} [list] shop_info list
- */
- /**
- * Constructs a new shop_info.
- * @memberof game
- * @classdesc Represents a shop_info.
- * @implements Ishop_info
- * @constructor
- * @param {game.Ishop_info=} [properties] Properties to set
- */
- function shop_info(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * shop_info type.
- * @member {number|Long} type
- * @memberof game.shop_info
- * @instance
- */
- shop_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * shop_info list.
- * @member {Array.<game.Iid_num>} list
- * @memberof game.shop_info
- * @instance
- */
- shop_info.prototype.list = $util.emptyArray;
- /**
- * Creates a new shop_info instance using the specified properties.
- * @function create
- * @memberof game.shop_info
- * @static
- * @param {game.Ishop_info=} [properties] Properties to set
- * @returns {game.shop_info} shop_info instance
- */
- shop_info.create = function create(properties) {
- return new shop_info(properties);
- };
- /**
- * Encodes the specified shop_info message. Does not implicitly {@link game.shop_info.verify|verify} messages.
- * @function encode
- * @memberof game.shop_info
- * @static
- * @param {game.Ishop_info} message shop_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- shop_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.id_num.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified shop_info message, length delimited. Does not implicitly {@link game.shop_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.shop_info
- * @static
- * @param {game.Ishop_info} message shop_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- shop_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a shop_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.shop_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.shop_info} shop_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- shop_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a shop_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.shop_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.shop_info} shop_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- shop_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a shop_info message.
- * @function verify
- * @memberof game.shop_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- shop_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.id_num.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates a shop_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.shop_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.shop_info} shop_info
- */
- shop_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.shop_info)
- return object;
- let message = new $root.game.shop_info();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.shop_info.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.shop_info.list: object expected");
- message.list[i] = $root.game.id_num.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a shop_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.shop_info
- * @static
- * @param {game.shop_info} message shop_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- shop_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.id_num.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this shop_info to JSON.
- * @function toJSON
- * @memberof game.shop_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- shop_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return shop_info;
- })();
- game.role_info = (function() {
- /**
- * Properties of a role_info.
- * @memberof game
- * @interface Irole_info
- * @property {string|null} [uid] role_info uid
- * @property {string|null} [nickname] role_info nickname
- * @property {number|Long|null} [avatar] role_info avatar
- * @property {number|Long|null} [level] role_info level
- */
- /**
- * Constructs a new role_info.
- * @memberof game
- * @classdesc Represents a role_info.
- * @implements Irole_info
- * @constructor
- * @param {game.Irole_info=} [properties] Properties to set
- */
- function role_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * role_info uid.
- * @member {string} uid
- * @memberof game.role_info
- * @instance
- */
- role_info.prototype.uid = "";
- /**
- * role_info nickname.
- * @member {string} nickname
- * @memberof game.role_info
- * @instance
- */
- role_info.prototype.nickname = "";
- /**
- * role_info avatar.
- * @member {number|Long} avatar
- * @memberof game.role_info
- * @instance
- */
- role_info.prototype.avatar = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * role_info level.
- * @member {number|Long} level
- * @memberof game.role_info
- * @instance
- */
- role_info.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new role_info instance using the specified properties.
- * @function create
- * @memberof game.role_info
- * @static
- * @param {game.Irole_info=} [properties] Properties to set
- * @returns {game.role_info} role_info instance
- */
- role_info.create = function create(properties) {
- return new role_info(properties);
- };
- /**
- * Encodes the specified role_info message. Does not implicitly {@link game.role_info.verify|verify} messages.
- * @function encode
- * @memberof game.role_info
- * @static
- * @param {game.Irole_info} message role_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.uid);
- if (message.nickname != null && Object.hasOwnProperty.call(message, "nickname"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.nickname);
- if (message.avatar != null && Object.hasOwnProperty.call(message, "avatar"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.avatar);
- if (message.level != null && Object.hasOwnProperty.call(message, "level"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.level);
- return writer;
- };
- /**
- * Encodes the specified role_info message, length delimited. Does not implicitly {@link game.role_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.role_info
- * @static
- * @param {game.Irole_info} message role_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- role_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a role_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.role_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.role_info} role_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.uid = reader.string();
- break;
- case 2:
- message.nickname = reader.string();
- break;
- case 3:
- message.avatar = reader.int64();
- break;
- case 4:
- message.level = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a role_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.role_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.role_info} role_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- role_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a role_info message.
- * @function verify
- * @memberof game.role_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- role_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.uid != null && message.hasOwnProperty("uid"))
- if (!$util.isString(message.uid))
- return "uid: string expected";
- if (message.nickname != null && message.hasOwnProperty("nickname"))
- if (!$util.isString(message.nickname))
- return "nickname: string expected";
- if (message.avatar != null && message.hasOwnProperty("avatar"))
- if (!$util.isInteger(message.avatar) && !(message.avatar && $util.isInteger(message.avatar.low) && $util.isInteger(message.avatar.high)))
- return "avatar: integer|Long expected";
- if (message.level != null && message.hasOwnProperty("level"))
- if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
- return "level: integer|Long expected";
- return null;
- };
- /**
- * Creates a role_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.role_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.role_info} role_info
- */
- role_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.role_info)
- return object;
- let message = new $root.game.role_info();
- if (object.uid != null)
- message.uid = String(object.uid);
- if (object.nickname != null)
- message.nickname = String(object.nickname);
- if (object.avatar != null)
- if ($util.Long)
- (message.avatar = $util.Long.fromValue(object.avatar)).unsigned = false;
- else if (typeof object.avatar === "string")
- message.avatar = parseInt(object.avatar, 10);
- else if (typeof object.avatar === "number")
- message.avatar = object.avatar;
- else if (typeof object.avatar === "object")
- message.avatar = new $util.LongBits(object.avatar.low >>> 0, object.avatar.high >>> 0).toNumber();
- if (object.level != null)
- if ($util.Long)
- (message.level = $util.Long.fromValue(object.level)).unsigned = false;
- else if (typeof object.level === "string")
- message.level = parseInt(object.level, 10);
- else if (typeof object.level === "number")
- message.level = object.level;
- else if (typeof object.level === "object")
- message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a role_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.role_info
- * @static
- * @param {game.role_info} message role_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- role_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.uid = "";
- object.nickname = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.avatar = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.avatar = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.level = options.longs === String ? "0" : 0;
- }
- if (message.uid != null && message.hasOwnProperty("uid"))
- object.uid = message.uid;
- if (message.nickname != null && message.hasOwnProperty("nickname"))
- object.nickname = message.nickname;
- if (message.avatar != null && message.hasOwnProperty("avatar"))
- if (typeof message.avatar === "number")
- object.avatar = options.longs === String ? String(message.avatar) : message.avatar;
- else
- object.avatar = options.longs === String ? $util.Long.prototype.toString.call(message.avatar) : options.longs === Number ? new $util.LongBits(message.avatar.low >>> 0, message.avatar.high >>> 0).toNumber() : message.avatar;
- if (message.level != null && message.hasOwnProperty("level"))
- if (typeof message.level === "number")
- object.level = options.longs === String ? String(message.level) : message.level;
- else
- object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
- return object;
- };
- /**
- * Converts this role_info to JSON.
- * @function toJSON
- * @memberof game.role_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- role_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return role_info;
- })();
- game.hero_info = (function() {
- /**
- * Properties of a hero_info.
- * @memberof game
- * @interface Ihero_info
- * @property {number|Long|null} [id] hero_info id
- * @property {number|Long|null} [lv] hero_info lv
- */
- /**
- * Constructs a new hero_info.
- * @memberof game
- * @classdesc Represents a hero_info.
- * @implements Ihero_info
- * @constructor
- * @param {game.Ihero_info=} [properties] Properties to set
- */
- function hero_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * hero_info id.
- * @member {number|Long} id
- * @memberof game.hero_info
- * @instance
- */
- hero_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * hero_info lv.
- * @member {number|Long} lv
- * @memberof game.hero_info
- * @instance
- */
- hero_info.prototype.lv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new hero_info instance using the specified properties.
- * @function create
- * @memberof game.hero_info
- * @static
- * @param {game.Ihero_info=} [properties] Properties to set
- * @returns {game.hero_info} hero_info instance
- */
- hero_info.create = function create(properties) {
- return new hero_info(properties);
- };
- /**
- * Encodes the specified hero_info message. Does not implicitly {@link game.hero_info.verify|verify} messages.
- * @function encode
- * @memberof game.hero_info
- * @static
- * @param {game.Ihero_info} message hero_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.lv != null && Object.hasOwnProperty.call(message, "lv"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lv);
- return writer;
- };
- /**
- * Encodes the specified hero_info message, length delimited. Does not implicitly {@link game.hero_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.hero_info
- * @static
- * @param {game.Ihero_info} message hero_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- hero_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a hero_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.hero_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.hero_info} hero_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- message.lv = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a hero_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.hero_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.hero_info} hero_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- hero_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a hero_info message.
- * @function verify
- * @memberof game.hero_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- hero_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.lv != null && message.hasOwnProperty("lv"))
- if (!$util.isInteger(message.lv) && !(message.lv && $util.isInteger(message.lv.low) && $util.isInteger(message.lv.high)))
- return "lv: integer|Long expected";
- return null;
- };
- /**
- * Creates a hero_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.hero_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.hero_info} hero_info
- */
- hero_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.hero_info)
- return object;
- let message = new $root.game.hero_info();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.lv != null)
- if ($util.Long)
- (message.lv = $util.Long.fromValue(object.lv)).unsigned = false;
- else if (typeof object.lv === "string")
- message.lv = parseInt(object.lv, 10);
- else if (typeof object.lv === "number")
- message.lv = object.lv;
- else if (typeof object.lv === "object")
- message.lv = new $util.LongBits(object.lv.low >>> 0, object.lv.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a hero_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.hero_info
- * @static
- * @param {game.hero_info} message hero_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- hero_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.lv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.lv = options.longs === String ? "0" : 0;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.lv != null && message.hasOwnProperty("lv"))
- if (typeof message.lv === "number")
- object.lv = options.longs === String ? String(message.lv) : message.lv;
- else
- object.lv = options.longs === String ? $util.Long.prototype.toString.call(message.lv) : options.longs === Number ? new $util.LongBits(message.lv.low >>> 0, message.lv.high >>> 0).toNumber() : message.lv;
- return object;
- };
- /**
- * Converts this hero_info to JSON.
- * @function toJSON
- * @memberof game.hero_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- hero_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return hero_info;
- })();
- game.talent_info = (function() {
- /**
- * Properties of a talent_info.
- * @memberof game
- * @interface Italent_info
- * @property {number|Long|null} [id1] talent_info id1
- * @property {number|Long|null} [id2] talent_info id2
- */
- /**
- * Constructs a new talent_info.
- * @memberof game
- * @classdesc Represents a talent_info.
- * @implements Italent_info
- * @constructor
- * @param {game.Italent_info=} [properties] Properties to set
- */
- function talent_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * talent_info id1.
- * @member {number|Long} id1
- * @memberof game.talent_info
- * @instance
- */
- talent_info.prototype.id1 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * talent_info id2.
- * @member {number|Long} id2
- * @memberof game.talent_info
- * @instance
- */
- talent_info.prototype.id2 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new talent_info instance using the specified properties.
- * @function create
- * @memberof game.talent_info
- * @static
- * @param {game.Italent_info=} [properties] Properties to set
- * @returns {game.talent_info} talent_info instance
- */
- talent_info.create = function create(properties) {
- return new talent_info(properties);
- };
- /**
- * Encodes the specified talent_info message. Does not implicitly {@link game.talent_info.verify|verify} messages.
- * @function encode
- * @memberof game.talent_info
- * @static
- * @param {game.Italent_info} message talent_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- talent_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id1 != null && Object.hasOwnProperty.call(message, "id1"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id1);
- if (message.id2 != null && Object.hasOwnProperty.call(message, "id2"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id2);
- return writer;
- };
- /**
- * Encodes the specified talent_info message, length delimited. Does not implicitly {@link game.talent_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.talent_info
- * @static
- * @param {game.Italent_info} message talent_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- talent_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a talent_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.talent_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.talent_info} talent_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- talent_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id1 = reader.int64();
- break;
- case 2:
- message.id2 = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a talent_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.talent_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.talent_info} talent_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- talent_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a talent_info message.
- * @function verify
- * @memberof game.talent_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- talent_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id1 != null && message.hasOwnProperty("id1"))
- if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high)))
- return "id1: integer|Long expected";
- if (message.id2 != null && message.hasOwnProperty("id2"))
- if (!$util.isInteger(message.id2) && !(message.id2 && $util.isInteger(message.id2.low) && $util.isInteger(message.id2.high)))
- return "id2: integer|Long expected";
- return null;
- };
- /**
- * Creates a talent_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.talent_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.talent_info} talent_info
- */
- talent_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.talent_info)
- return object;
- let message = new $root.game.talent_info();
- if (object.id1 != null)
- if ($util.Long)
- (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false;
- else if (typeof object.id1 === "string")
- message.id1 = parseInt(object.id1, 10);
- else if (typeof object.id1 === "number")
- message.id1 = object.id1;
- else if (typeof object.id1 === "object")
- message.id1 = new $util.LongBits(object.id1.low >>> 0, object.id1.high >>> 0).toNumber();
- if (object.id2 != null)
- if ($util.Long)
- (message.id2 = $util.Long.fromValue(object.id2)).unsigned = false;
- else if (typeof object.id2 === "string")
- message.id2 = parseInt(object.id2, 10);
- else if (typeof object.id2 === "number")
- message.id2 = object.id2;
- else if (typeof object.id2 === "object")
- message.id2 = new $util.LongBits(object.id2.low >>> 0, object.id2.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a talent_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.talent_info
- * @static
- * @param {game.talent_info} message talent_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- talent_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id1 = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id2 = options.longs === String ? "0" : 0;
- }
- if (message.id1 != null && message.hasOwnProperty("id1"))
- if (typeof message.id1 === "number")
- object.id1 = options.longs === String ? String(message.id1) : message.id1;
- else
- object.id1 = options.longs === String ? $util.Long.prototype.toString.call(message.id1) : options.longs === Number ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() : message.id1;
- if (message.id2 != null && message.hasOwnProperty("id2"))
- if (typeof message.id2 === "number")
- object.id2 = options.longs === String ? String(message.id2) : message.id2;
- else
- object.id2 = options.longs === String ? $util.Long.prototype.toString.call(message.id2) : options.longs === Number ? new $util.LongBits(message.id2.low >>> 0, message.id2.high >>> 0).toNumber() : message.id2;
- return object;
- };
- /**
- * Converts this talent_info to JSON.
- * @function toJSON
- * @memberof game.talent_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- talent_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return talent_info;
- })();
- game.ranking_info = (function() {
- /**
- * Properties of a ranking_info.
- * @memberof game
- * @interface Iranking_info
- * @property {number|Long|null} [ranking] ranking_info ranking
- * @property {number|Long|null} [num] ranking_info num
- * @property {game.Irole_info|null} [role] ranking_info role
- * @property {game.Ihero_info|null} [hero] ranking_info hero
- */
- /**
- * Constructs a new ranking_info.
- * @memberof game
- * @classdesc Represents a ranking_info.
- * @implements Iranking_info
- * @constructor
- * @param {game.Iranking_info=} [properties] Properties to set
- */
- function ranking_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * ranking_info ranking.
- * @member {number|Long} ranking
- * @memberof game.ranking_info
- * @instance
- */
- ranking_info.prototype.ranking = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * ranking_info num.
- * @member {number|Long} num
- * @memberof game.ranking_info
- * @instance
- */
- ranking_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * ranking_info role.
- * @member {game.Irole_info|null|undefined} role
- * @memberof game.ranking_info
- * @instance
- */
- ranking_info.prototype.role = null;
- /**
- * ranking_info hero.
- * @member {game.Ihero_info|null|undefined} hero
- * @memberof game.ranking_info
- * @instance
- */
- ranking_info.prototype.hero = null;
- /**
- * Creates a new ranking_info instance using the specified properties.
- * @function create
- * @memberof game.ranking_info
- * @static
- * @param {game.Iranking_info=} [properties] Properties to set
- * @returns {game.ranking_info} ranking_info instance
- */
- ranking_info.create = function create(properties) {
- return new ranking_info(properties);
- };
- /**
- * Encodes the specified ranking_info message. Does not implicitly {@link game.ranking_info.verify|verify} messages.
- * @function encode
- * @memberof game.ranking_info
- * @static
- * @param {game.Iranking_info} message ranking_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- ranking_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.ranking != null && Object.hasOwnProperty.call(message, "ranking"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.ranking);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
- if (message.role != null && Object.hasOwnProperty.call(message, "role"))
- $root.game.role_info.encode(message.role, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- if (message.hero != null && Object.hasOwnProperty.call(message, "hero"))
- $root.game.hero_info.encode(message.hero, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified ranking_info message, length delimited. Does not implicitly {@link game.ranking_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.ranking_info
- * @static
- * @param {game.Iranking_info} message ranking_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- ranking_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a ranking_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.ranking_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.ranking_info} ranking_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- ranking_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ranking_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.ranking = reader.int64();
- break;
- case 2:
- message.num = reader.int64();
- break;
- case 3:
- message.role = $root.game.role_info.decode(reader, reader.uint32());
- break;
- case 4:
- message.hero = $root.game.hero_info.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a ranking_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.ranking_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.ranking_info} ranking_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- ranking_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a ranking_info message.
- * @function verify
- * @memberof game.ranking_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- ranking_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.ranking != null && message.hasOwnProperty("ranking"))
- if (!$util.isInteger(message.ranking) && !(message.ranking && $util.isInteger(message.ranking.low) && $util.isInteger(message.ranking.high)))
- return "ranking: integer|Long expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- if (message.role != null && message.hasOwnProperty("role")) {
- let error = $root.game.role_info.verify(message.role);
- if (error)
- return "role." + error;
- }
- if (message.hero != null && message.hasOwnProperty("hero")) {
- let error = $root.game.hero_info.verify(message.hero);
- if (error)
- return "hero." + error;
- }
- return null;
- };
- /**
- * Creates a ranking_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.ranking_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.ranking_info} ranking_info
- */
- ranking_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.ranking_info)
- return object;
- let message = new $root.game.ranking_info();
- if (object.ranking != null)
- if ($util.Long)
- (message.ranking = $util.Long.fromValue(object.ranking)).unsigned = false;
- else if (typeof object.ranking === "string")
- message.ranking = parseInt(object.ranking, 10);
- else if (typeof object.ranking === "number")
- message.ranking = object.ranking;
- else if (typeof object.ranking === "object")
- message.ranking = new $util.LongBits(object.ranking.low >>> 0, object.ranking.high >>> 0).toNumber();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- if (object.role != null) {
- if (typeof object.role !== "object")
- throw TypeError(".game.ranking_info.role: object expected");
- message.role = $root.game.role_info.fromObject(object.role);
- }
- if (object.hero != null) {
- if (typeof object.hero !== "object")
- throw TypeError(".game.ranking_info.hero: object expected");
- message.hero = $root.game.hero_info.fromObject(object.hero);
- }
- return message;
- };
- /**
- * Creates a plain object from a ranking_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.ranking_info
- * @static
- * @param {game.ranking_info} message ranking_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- ranking_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.ranking = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.ranking = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- object.role = null;
- object.hero = null;
- }
- if (message.ranking != null && message.hasOwnProperty("ranking"))
- if (typeof message.ranking === "number")
- object.ranking = options.longs === String ? String(message.ranking) : message.ranking;
- else
- object.ranking = options.longs === String ? $util.Long.prototype.toString.call(message.ranking) : options.longs === Number ? new $util.LongBits(message.ranking.low >>> 0, message.ranking.high >>> 0).toNumber() : message.ranking;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- if (message.role != null && message.hasOwnProperty("role"))
- object.role = $root.game.role_info.toObject(message.role, options);
- if (message.hero != null && message.hasOwnProperty("hero"))
- object.hero = $root.game.hero_info.toObject(message.hero, options);
- return object;
- };
- /**
- * Converts this ranking_info to JSON.
- * @function toJSON
- * @memberof game.ranking_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- ranking_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return ranking_info;
- })();
- game.grocery_info = (function() {
- /**
- * Properties of a grocery_info.
- * @memberof game
- * @interface Igrocery_info
- * @property {number|Long|null} [type] grocery_info type
- * @property {number|Long|null} [freeTime] grocery_info freeTime
- * @property {number|Long|null} [freeNum] grocery_info freeNum
- * @property {number|Long|null} [buyNum] grocery_info buyNum
- */
- /**
- * Constructs a new grocery_info.
- * @memberof game
- * @classdesc Represents a grocery_info.
- * @implements Igrocery_info
- * @constructor
- * @param {game.Igrocery_info=} [properties] Properties to set
- */
- function grocery_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * grocery_info type.
- * @member {number|Long} type
- * @memberof game.grocery_info
- * @instance
- */
- grocery_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * grocery_info freeTime.
- * @member {number|Long} freeTime
- * @memberof game.grocery_info
- * @instance
- */
- grocery_info.prototype.freeTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * grocery_info freeNum.
- * @member {number|Long} freeNum
- * @memberof game.grocery_info
- * @instance
- */
- grocery_info.prototype.freeNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * grocery_info buyNum.
- * @member {number|Long} buyNum
- * @memberof game.grocery_info
- * @instance
- */
- grocery_info.prototype.buyNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new grocery_info instance using the specified properties.
- * @function create
- * @memberof game.grocery_info
- * @static
- * @param {game.Igrocery_info=} [properties] Properties to set
- * @returns {game.grocery_info} grocery_info instance
- */
- grocery_info.create = function create(properties) {
- return new grocery_info(properties);
- };
- /**
- * Encodes the specified grocery_info message. Does not implicitly {@link game.grocery_info.verify|verify} messages.
- * @function encode
- * @memberof game.grocery_info
- * @static
- * @param {game.Igrocery_info} message grocery_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- grocery_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.freeTime != null && Object.hasOwnProperty.call(message, "freeTime"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.freeTime);
- if (message.freeNum != null && Object.hasOwnProperty.call(message, "freeNum"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.freeNum);
- if (message.buyNum != null && Object.hasOwnProperty.call(message, "buyNum"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.buyNum);
- return writer;
- };
- /**
- * Encodes the specified grocery_info message, length delimited. Does not implicitly {@link game.grocery_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.grocery_info
- * @static
- * @param {game.Igrocery_info} message grocery_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- grocery_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a grocery_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.grocery_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.grocery_info} grocery_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- grocery_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 2:
- message.freeTime = reader.int64();
- break;
- case 3:
- message.freeNum = reader.int64();
- break;
- case 4:
- message.buyNum = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a grocery_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.grocery_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.grocery_info} grocery_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- grocery_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a grocery_info message.
- * @function verify
- * @memberof game.grocery_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- grocery_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.freeTime != null && message.hasOwnProperty("freeTime"))
- if (!$util.isInteger(message.freeTime) && !(message.freeTime && $util.isInteger(message.freeTime.low) && $util.isInteger(message.freeTime.high)))
- return "freeTime: integer|Long expected";
- if (message.freeNum != null && message.hasOwnProperty("freeNum"))
- if (!$util.isInteger(message.freeNum) && !(message.freeNum && $util.isInteger(message.freeNum.low) && $util.isInteger(message.freeNum.high)))
- return "freeNum: integer|Long expected";
- if (message.buyNum != null && message.hasOwnProperty("buyNum"))
- if (!$util.isInteger(message.buyNum) && !(message.buyNum && $util.isInteger(message.buyNum.low) && $util.isInteger(message.buyNum.high)))
- return "buyNum: integer|Long expected";
- return null;
- };
- /**
- * Creates a grocery_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.grocery_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.grocery_info} grocery_info
- */
- grocery_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.grocery_info)
- return object;
- let message = new $root.game.grocery_info();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.freeTime != null)
- if ($util.Long)
- (message.freeTime = $util.Long.fromValue(object.freeTime)).unsigned = false;
- else if (typeof object.freeTime === "string")
- message.freeTime = parseInt(object.freeTime, 10);
- else if (typeof object.freeTime === "number")
- message.freeTime = object.freeTime;
- else if (typeof object.freeTime === "object")
- message.freeTime = new $util.LongBits(object.freeTime.low >>> 0, object.freeTime.high >>> 0).toNumber();
- if (object.freeNum != null)
- if ($util.Long)
- (message.freeNum = $util.Long.fromValue(object.freeNum)).unsigned = false;
- else if (typeof object.freeNum === "string")
- message.freeNum = parseInt(object.freeNum, 10);
- else if (typeof object.freeNum === "number")
- message.freeNum = object.freeNum;
- else if (typeof object.freeNum === "object")
- message.freeNum = new $util.LongBits(object.freeNum.low >>> 0, object.freeNum.high >>> 0).toNumber();
- if (object.buyNum != null)
- if ($util.Long)
- (message.buyNum = $util.Long.fromValue(object.buyNum)).unsigned = false;
- else if (typeof object.buyNum === "string")
- message.buyNum = parseInt(object.buyNum, 10);
- else if (typeof object.buyNum === "number")
- message.buyNum = object.buyNum;
- else if (typeof object.buyNum === "object")
- message.buyNum = new $util.LongBits(object.buyNum.low >>> 0, object.buyNum.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a grocery_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.grocery_info
- * @static
- * @param {game.grocery_info} message grocery_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- grocery_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.freeTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.freeTime = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.freeNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.freeNum = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.buyNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.buyNum = options.longs === String ? "0" : 0;
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.freeTime != null && message.hasOwnProperty("freeTime"))
- if (typeof message.freeTime === "number")
- object.freeTime = options.longs === String ? String(message.freeTime) : message.freeTime;
- else
- object.freeTime = options.longs === String ? $util.Long.prototype.toString.call(message.freeTime) : options.longs === Number ? new $util.LongBits(message.freeTime.low >>> 0, message.freeTime.high >>> 0).toNumber() : message.freeTime;
- if (message.freeNum != null && message.hasOwnProperty("freeNum"))
- if (typeof message.freeNum === "number")
- object.freeNum = options.longs === String ? String(message.freeNum) : message.freeNum;
- else
- object.freeNum = options.longs === String ? $util.Long.prototype.toString.call(message.freeNum) : options.longs === Number ? new $util.LongBits(message.freeNum.low >>> 0, message.freeNum.high >>> 0).toNumber() : message.freeNum;
- if (message.buyNum != null && message.hasOwnProperty("buyNum"))
- if (typeof message.buyNum === "number")
- object.buyNum = options.longs === String ? String(message.buyNum) : message.buyNum;
- else
- object.buyNum = options.longs === String ? $util.Long.prototype.toString.call(message.buyNum) : options.longs === Number ? new $util.LongBits(message.buyNum.low >>> 0, message.buyNum.high >>> 0).toNumber() : message.buyNum;
- return object;
- };
- /**
- * Converts this grocery_info to JSON.
- * @function toJSON
- * @memberof game.grocery_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- grocery_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return grocery_info;
- })();
- game.altar_info = (function() {
- /**
- * Properties of an altar_info.
- * @memberof game
- * @interface Ialtar_info
- * @property {string|null} [sid] altar_info sid
- * @property {number|Long|null} [time] altar_info time
- * @property {number|Long|null} [level] altar_info level
- * @property {number|Long|null} [id] altar_info id
- */
- /**
- * Constructs a new altar_info.
- * @memberof game
- * @classdesc Represents an altar_info.
- * @implements Ialtar_info
- * @constructor
- * @param {game.Ialtar_info=} [properties] Properties to set
- */
- function altar_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * altar_info sid.
- * @member {string} sid
- * @memberof game.altar_info
- * @instance
- */
- altar_info.prototype.sid = "";
- /**
- * altar_info time.
- * @member {number|Long} time
- * @memberof game.altar_info
- * @instance
- */
- altar_info.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_info level.
- * @member {number|Long} level
- * @memberof game.altar_info
- * @instance
- */
- altar_info.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * altar_info id.
- * @member {number|Long} id
- * @memberof game.altar_info
- * @instance
- */
- altar_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new altar_info instance using the specified properties.
- * @function create
- * @memberof game.altar_info
- * @static
- * @param {game.Ialtar_info=} [properties] Properties to set
- * @returns {game.altar_info} altar_info instance
- */
- altar_info.create = function create(properties) {
- return new altar_info(properties);
- };
- /**
- * Encodes the specified altar_info message. Does not implicitly {@link game.altar_info.verify|verify} messages.
- * @function encode
- * @memberof game.altar_info
- * @static
- * @param {game.Ialtar_info} message altar_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
- if (message.time != null && Object.hasOwnProperty.call(message, "time"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
- if (message.level != null && Object.hasOwnProperty.call(message, "level"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.level);
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.id);
- return writer;
- };
- /**
- * Encodes the specified altar_info message, length delimited. Does not implicitly {@link game.altar_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.altar_info
- * @static
- * @param {game.Ialtar_info} message altar_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- altar_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an altar_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.altar_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.altar_info} altar_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.sid = reader.string();
- break;
- case 3:
- message.time = reader.int64();
- break;
- case 4:
- message.level = reader.int64();
- break;
- case 5:
- message.id = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an altar_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.altar_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.altar_info} altar_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- altar_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an altar_info message.
- * @function verify
- * @memberof game.altar_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- altar_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.sid != null && message.hasOwnProperty("sid"))
- if (!$util.isString(message.sid))
- return "sid: string expected";
- if (message.time != null && message.hasOwnProperty("time"))
- if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
- return "time: integer|Long expected";
- if (message.level != null && message.hasOwnProperty("level"))
- if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
- return "level: integer|Long expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- return null;
- };
- /**
- * Creates an altar_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.altar_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.altar_info} altar_info
- */
- altar_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.altar_info)
- return object;
- let message = new $root.game.altar_info();
- if (object.sid != null)
- message.sid = String(object.sid);
- if (object.time != null)
- if ($util.Long)
- (message.time = $util.Long.fromValue(object.time)).unsigned = false;
- else if (typeof object.time === "string")
- message.time = parseInt(object.time, 10);
- else if (typeof object.time === "number")
- message.time = object.time;
- else if (typeof object.time === "object")
- message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
- if (object.level != null)
- if ($util.Long)
- (message.level = $util.Long.fromValue(object.level)).unsigned = false;
- else if (typeof object.level === "string")
- message.level = parseInt(object.level, 10);
- else if (typeof object.level === "number")
- message.level = object.level;
- else if (typeof object.level === "object")
- message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from an altar_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.altar_info
- * @static
- * @param {game.altar_info} message altar_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- altar_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- object.sid = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.time = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.level = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- }
- if (message.sid != null && message.hasOwnProperty("sid"))
- object.sid = message.sid;
- if (message.time != null && message.hasOwnProperty("time"))
- if (typeof message.time === "number")
- object.time = options.longs === String ? String(message.time) : message.time;
- else
- object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
- if (message.level != null && message.hasOwnProperty("level"))
- if (typeof message.level === "number")
- object.level = options.longs === String ? String(message.level) : message.level;
- else
- object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- return object;
- };
- /**
- * Converts this altar_info to JSON.
- * @function toJSON
- * @memberof game.altar_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- altar_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return altar_info;
- })();
- game.activity_time_info = (function() {
- /**
- * Properties of an activity_time_info.
- * @memberof game
- * @interface Iactivity_time_info
- * @property {number|Long|null} [type] activity_time_info type
- * @property {number|Long|null} [state] activity_time_info state
- * @property {number|Long|null} [opentime] activity_time_info opentime
- * @property {number|Long|null} [endtime] activity_time_info endtime
- * @property {string|null} [name] activity_time_info name
- * @property {number|Long|null} [sort] activity_time_info sort
- * @property {string|null} [icon] activity_time_info icon
- */
- /**
- * Constructs a new activity_time_info.
- * @memberof game
- * @classdesc Represents an activity_time_info.
- * @implements Iactivity_time_info
- * @constructor
- * @param {game.Iactivity_time_info=} [properties] Properties to set
- */
- function activity_time_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * activity_time_info type.
- * @member {number|Long} type
- * @memberof game.activity_time_info
- * @instance
- */
- activity_time_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * activity_time_info state.
- * @member {number|Long} state
- * @memberof game.activity_time_info
- * @instance
- */
- activity_time_info.prototype.state = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * activity_time_info opentime.
- * @member {number|Long} opentime
- * @memberof game.activity_time_info
- * @instance
- */
- activity_time_info.prototype.opentime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * activity_time_info endtime.
- * @member {number|Long} endtime
- * @memberof game.activity_time_info
- * @instance
- */
- activity_time_info.prototype.endtime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * activity_time_info name.
- * @member {string} name
- * @memberof game.activity_time_info
- * @instance
- */
- activity_time_info.prototype.name = "";
- /**
- * activity_time_info sort.
- * @member {number|Long} sort
- * @memberof game.activity_time_info
- * @instance
- */
- activity_time_info.prototype.sort = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * activity_time_info icon.
- * @member {string} icon
- * @memberof game.activity_time_info
- * @instance
- */
- activity_time_info.prototype.icon = "";
- /**
- * Creates a new activity_time_info instance using the specified properties.
- * @function create
- * @memberof game.activity_time_info
- * @static
- * @param {game.Iactivity_time_info=} [properties] Properties to set
- * @returns {game.activity_time_info} activity_time_info instance
- */
- activity_time_info.create = function create(properties) {
- return new activity_time_info(properties);
- };
- /**
- * Encodes the specified activity_time_info message. Does not implicitly {@link game.activity_time_info.verify|verify} messages.
- * @function encode
- * @memberof game.activity_time_info
- * @static
- * @param {game.Iactivity_time_info} message activity_time_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- activity_time_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.state != null && Object.hasOwnProperty.call(message, "state"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.state);
- if (message.opentime != null && Object.hasOwnProperty.call(message, "opentime"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.opentime);
- if (message.endtime != null && Object.hasOwnProperty.call(message, "endtime"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.endtime);
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.name);
- if (message.sort != null && Object.hasOwnProperty.call(message, "sort"))
- writer.uint32(/* id 6, wireType 0 =*/48).int64(message.sort);
- if (message.icon != null && Object.hasOwnProperty.call(message, "icon"))
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.icon);
- return writer;
- };
- /**
- * Encodes the specified activity_time_info message, length delimited. Does not implicitly {@link game.activity_time_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.activity_time_info
- * @static
- * @param {game.Iactivity_time_info} message activity_time_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- activity_time_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an activity_time_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.activity_time_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.activity_time_info} activity_time_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- activity_time_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_time_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 2:
- message.state = reader.int64();
- break;
- case 3:
- message.opentime = reader.int64();
- break;
- case 4:
- message.endtime = reader.int64();
- break;
- case 5:
- message.name = reader.string();
- break;
- case 6:
- message.sort = reader.int64();
- break;
- case 7:
- message.icon = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an activity_time_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.activity_time_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.activity_time_info} activity_time_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- activity_time_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an activity_time_info message.
- * @function verify
- * @memberof game.activity_time_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- activity_time_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.state != null && message.hasOwnProperty("state"))
- if (!$util.isInteger(message.state) && !(message.state && $util.isInteger(message.state.low) && $util.isInteger(message.state.high)))
- return "state: integer|Long expected";
- if (message.opentime != null && message.hasOwnProperty("opentime"))
- if (!$util.isInteger(message.opentime) && !(message.opentime && $util.isInteger(message.opentime.low) && $util.isInteger(message.opentime.high)))
- return "opentime: integer|Long expected";
- if (message.endtime != null && message.hasOwnProperty("endtime"))
- if (!$util.isInteger(message.endtime) && !(message.endtime && $util.isInteger(message.endtime.low) && $util.isInteger(message.endtime.high)))
- return "endtime: integer|Long expected";
- if (message.name != null && message.hasOwnProperty("name"))
- if (!$util.isString(message.name))
- return "name: string expected";
- if (message.sort != null && message.hasOwnProperty("sort"))
- if (!$util.isInteger(message.sort) && !(message.sort && $util.isInteger(message.sort.low) && $util.isInteger(message.sort.high)))
- return "sort: integer|Long expected";
- if (message.icon != null && message.hasOwnProperty("icon"))
- if (!$util.isString(message.icon))
- return "icon: string expected";
- return null;
- };
- /**
- * Creates an activity_time_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.activity_time_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.activity_time_info} activity_time_info
- */
- activity_time_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.activity_time_info)
- return object;
- let message = new $root.game.activity_time_info();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.state != null)
- if ($util.Long)
- (message.state = $util.Long.fromValue(object.state)).unsigned = false;
- else if (typeof object.state === "string")
- message.state = parseInt(object.state, 10);
- else if (typeof object.state === "number")
- message.state = object.state;
- else if (typeof object.state === "object")
- message.state = new $util.LongBits(object.state.low >>> 0, object.state.high >>> 0).toNumber();
- if (object.opentime != null)
- if ($util.Long)
- (message.opentime = $util.Long.fromValue(object.opentime)).unsigned = false;
- else if (typeof object.opentime === "string")
- message.opentime = parseInt(object.opentime, 10);
- else if (typeof object.opentime === "number")
- message.opentime = object.opentime;
- else if (typeof object.opentime === "object")
- message.opentime = new $util.LongBits(object.opentime.low >>> 0, object.opentime.high >>> 0).toNumber();
- if (object.endtime != null)
- if ($util.Long)
- (message.endtime = $util.Long.fromValue(object.endtime)).unsigned = false;
- else if (typeof object.endtime === "string")
- message.endtime = parseInt(object.endtime, 10);
- else if (typeof object.endtime === "number")
- message.endtime = object.endtime;
- else if (typeof object.endtime === "object")
- message.endtime = new $util.LongBits(object.endtime.low >>> 0, object.endtime.high >>> 0).toNumber();
- if (object.name != null)
- message.name = String(object.name);
- if (object.sort != null)
- if ($util.Long)
- (message.sort = $util.Long.fromValue(object.sort)).unsigned = false;
- else if (typeof object.sort === "string")
- message.sort = parseInt(object.sort, 10);
- else if (typeof object.sort === "number")
- message.sort = object.sort;
- else if (typeof object.sort === "object")
- message.sort = new $util.LongBits(object.sort.low >>> 0, object.sort.high >>> 0).toNumber();
- if (object.icon != null)
- message.icon = String(object.icon);
- return message;
- };
- /**
- * Creates a plain object from an activity_time_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.activity_time_info
- * @static
- * @param {game.activity_time_info} message activity_time_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- activity_time_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.state = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.state = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.opentime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.opentime = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.endtime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.endtime = options.longs === String ? "0" : 0;
- object.name = "";
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.sort = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.sort = options.longs === String ? "0" : 0;
- object.icon = "";
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.state != null && message.hasOwnProperty("state"))
- if (typeof message.state === "number")
- object.state = options.longs === String ? String(message.state) : message.state;
- else
- object.state = options.longs === String ? $util.Long.prototype.toString.call(message.state) : options.longs === Number ? new $util.LongBits(message.state.low >>> 0, message.state.high >>> 0).toNumber() : message.state;
- if (message.opentime != null && message.hasOwnProperty("opentime"))
- if (typeof message.opentime === "number")
- object.opentime = options.longs === String ? String(message.opentime) : message.opentime;
- else
- object.opentime = options.longs === String ? $util.Long.prototype.toString.call(message.opentime) : options.longs === Number ? new $util.LongBits(message.opentime.low >>> 0, message.opentime.high >>> 0).toNumber() : message.opentime;
- if (message.endtime != null && message.hasOwnProperty("endtime"))
- if (typeof message.endtime === "number")
- object.endtime = options.longs === String ? String(message.endtime) : message.endtime;
- else
- object.endtime = options.longs === String ? $util.Long.prototype.toString.call(message.endtime) : options.longs === Number ? new $util.LongBits(message.endtime.low >>> 0, message.endtime.high >>> 0).toNumber() : message.endtime;
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.sort != null && message.hasOwnProperty("sort"))
- if (typeof message.sort === "number")
- object.sort = options.longs === String ? String(message.sort) : message.sort;
- else
- object.sort = options.longs === String ? $util.Long.prototype.toString.call(message.sort) : options.longs === Number ? new $util.LongBits(message.sort.low >>> 0, message.sort.high >>> 0).toNumber() : message.sort;
- if (message.icon != null && message.hasOwnProperty("icon"))
- object.icon = message.icon;
- return object;
- };
- /**
- * Converts this activity_time_info to JSON.
- * @function toJSON
- * @memberof game.activity_time_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- activity_time_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return activity_time_info;
- })();
- game.gift_conf_info = (function() {
- /**
- * Properties of a gift_conf_info.
- * @memberof game
- * @interface Igift_conf_info
- * @property {number|Long|null} [ID] gift_conf_info ID
- * @property {Array.<number|Long>|null} [library] gift_conf_info library
- * @property {number|Long|null} [sort] gift_conf_info sort
- * @property {number|Long|null} [spendtype] gift_conf_info spendtype
- * @property {number|Long|null} [spend] gift_conf_info spend
- * @property {number|Long|null} [num] gift_conf_info num
- * @property {number|Long|null} [daylimit] gift_conf_info daylimit
- * @property {number|Long|null} [weeklimit] gift_conf_info weeklimit
- * @property {number|Long|null} [video] gift_conf_info video
- * @property {number|Long|null} [icon] gift_conf_info icon
- * @property {Array.<number|Long>|null} [parameter] gift_conf_info parameter
- */
- /**
- * Constructs a new gift_conf_info.
- * @memberof game
- * @classdesc Represents a gift_conf_info.
- * @implements Igift_conf_info
- * @constructor
- * @param {game.Igift_conf_info=} [properties] Properties to set
- */
- function gift_conf_info(properties) {
- this.library = [];
- this.parameter = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * gift_conf_info ID.
- * @member {number|Long} ID
- * @memberof game.gift_conf_info
- * @instance
- */
- gift_conf_info.prototype.ID = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * gift_conf_info library.
- * @member {Array.<number|Long>} library
- * @memberof game.gift_conf_info
- * @instance
- */
- gift_conf_info.prototype.library = $util.emptyArray;
- /**
- * gift_conf_info sort.
- * @member {number|Long} sort
- * @memberof game.gift_conf_info
- * @instance
- */
- gift_conf_info.prototype.sort = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * gift_conf_info spendtype.
- * @member {number|Long} spendtype
- * @memberof game.gift_conf_info
- * @instance
- */
- gift_conf_info.prototype.spendtype = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * gift_conf_info spend.
- * @member {number|Long} spend
- * @memberof game.gift_conf_info
- * @instance
- */
- gift_conf_info.prototype.spend = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * gift_conf_info num.
- * @member {number|Long} num
- * @memberof game.gift_conf_info
- * @instance
- */
- gift_conf_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * gift_conf_info daylimit.
- * @member {number|Long} daylimit
- * @memberof game.gift_conf_info
- * @instance
- */
- gift_conf_info.prototype.daylimit = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * gift_conf_info weeklimit.
- * @member {number|Long} weeklimit
- * @memberof game.gift_conf_info
- * @instance
- */
- gift_conf_info.prototype.weeklimit = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * gift_conf_info video.
- * @member {number|Long} video
- * @memberof game.gift_conf_info
- * @instance
- */
- gift_conf_info.prototype.video = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * gift_conf_info icon.
- * @member {number|Long} icon
- * @memberof game.gift_conf_info
- * @instance
- */
- gift_conf_info.prototype.icon = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * gift_conf_info parameter.
- * @member {Array.<number|Long>} parameter
- * @memberof game.gift_conf_info
- * @instance
- */
- gift_conf_info.prototype.parameter = $util.emptyArray;
- /**
- * Creates a new gift_conf_info instance using the specified properties.
- * @function create
- * @memberof game.gift_conf_info
- * @static
- * @param {game.Igift_conf_info=} [properties] Properties to set
- * @returns {game.gift_conf_info} gift_conf_info instance
- */
- gift_conf_info.create = function create(properties) {
- return new gift_conf_info(properties);
- };
- /**
- * Encodes the specified gift_conf_info message. Does not implicitly {@link game.gift_conf_info.verify|verify} messages.
- * @function encode
- * @memberof game.gift_conf_info
- * @static
- * @param {game.Igift_conf_info} message gift_conf_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- gift_conf_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.ID != null && Object.hasOwnProperty.call(message, "ID"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.ID);
- if (message.library != null && message.library.length) {
- writer.uint32(/* id 2, wireType 2 =*/18).fork();
- for (let i = 0; i < message.library.length; ++i)
- writer.int64(message.library[i]);
- writer.ldelim();
- }
- if (message.sort != null && Object.hasOwnProperty.call(message, "sort"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.sort);
- if (message.spendtype != null && Object.hasOwnProperty.call(message, "spendtype"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.spendtype);
- if (message.spend != null && Object.hasOwnProperty.call(message, "spend"))
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.spend);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 6, wireType 0 =*/48).int64(message.num);
- if (message.daylimit != null && Object.hasOwnProperty.call(message, "daylimit"))
- writer.uint32(/* id 7, wireType 0 =*/56).int64(message.daylimit);
- if (message.weeklimit != null && Object.hasOwnProperty.call(message, "weeklimit"))
- writer.uint32(/* id 8, wireType 0 =*/64).int64(message.weeklimit);
- if (message.video != null && Object.hasOwnProperty.call(message, "video"))
- writer.uint32(/* id 9, wireType 0 =*/72).int64(message.video);
- if (message.icon != null && Object.hasOwnProperty.call(message, "icon"))
- writer.uint32(/* id 10, wireType 0 =*/80).int64(message.icon);
- if (message.parameter != null && message.parameter.length) {
- writer.uint32(/* id 11, wireType 2 =*/90).fork();
- for (let i = 0; i < message.parameter.length; ++i)
- writer.int64(message.parameter[i]);
- writer.ldelim();
- }
- return writer;
- };
- /**
- * Encodes the specified gift_conf_info message, length delimited. Does not implicitly {@link game.gift_conf_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.gift_conf_info
- * @static
- * @param {game.Igift_conf_info} message gift_conf_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- gift_conf_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a gift_conf_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.gift_conf_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.gift_conf_info} gift_conf_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- gift_conf_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.gift_conf_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.ID = reader.int64();
- break;
- case 2:
- if (!(message.library && message.library.length))
- message.library = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.library.push(reader.int64());
- } else
- message.library.push(reader.int64());
- break;
- case 3:
- message.sort = reader.int64();
- break;
- case 4:
- message.spendtype = reader.int64();
- break;
- case 5:
- message.spend = reader.int64();
- break;
- case 6:
- message.num = reader.int64();
- break;
- case 7:
- message.daylimit = reader.int64();
- break;
- case 8:
- message.weeklimit = reader.int64();
- break;
- case 9:
- message.video = reader.int64();
- break;
- case 10:
- message.icon = reader.int64();
- break;
- case 11:
- if (!(message.parameter && message.parameter.length))
- message.parameter = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.parameter.push(reader.int64());
- } else
- message.parameter.push(reader.int64());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a gift_conf_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.gift_conf_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.gift_conf_info} gift_conf_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- gift_conf_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a gift_conf_info message.
- * @function verify
- * @memberof game.gift_conf_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- gift_conf_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.ID != null && message.hasOwnProperty("ID"))
- if (!$util.isInteger(message.ID) && !(message.ID && $util.isInteger(message.ID.low) && $util.isInteger(message.ID.high)))
- return "ID: integer|Long expected";
- if (message.library != null && message.hasOwnProperty("library")) {
- if (!Array.isArray(message.library))
- return "library: array expected";
- for (let i = 0; i < message.library.length; ++i)
- if (!$util.isInteger(message.library[i]) && !(message.library[i] && $util.isInteger(message.library[i].low) && $util.isInteger(message.library[i].high)))
- return "library: integer|Long[] expected";
- }
- if (message.sort != null && message.hasOwnProperty("sort"))
- if (!$util.isInteger(message.sort) && !(message.sort && $util.isInteger(message.sort.low) && $util.isInteger(message.sort.high)))
- return "sort: integer|Long expected";
- if (message.spendtype != null && message.hasOwnProperty("spendtype"))
- if (!$util.isInteger(message.spendtype) && !(message.spendtype && $util.isInteger(message.spendtype.low) && $util.isInteger(message.spendtype.high)))
- return "spendtype: integer|Long expected";
- if (message.spend != null && message.hasOwnProperty("spend"))
- if (!$util.isInteger(message.spend) && !(message.spend && $util.isInteger(message.spend.low) && $util.isInteger(message.spend.high)))
- return "spend: integer|Long expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- if (message.daylimit != null && message.hasOwnProperty("daylimit"))
- if (!$util.isInteger(message.daylimit) && !(message.daylimit && $util.isInteger(message.daylimit.low) && $util.isInteger(message.daylimit.high)))
- return "daylimit: integer|Long expected";
- if (message.weeklimit != null && message.hasOwnProperty("weeklimit"))
- if (!$util.isInteger(message.weeklimit) && !(message.weeklimit && $util.isInteger(message.weeklimit.low) && $util.isInteger(message.weeklimit.high)))
- return "weeklimit: integer|Long expected";
- if (message.video != null && message.hasOwnProperty("video"))
- if (!$util.isInteger(message.video) && !(message.video && $util.isInteger(message.video.low) && $util.isInteger(message.video.high)))
- return "video: integer|Long expected";
- if (message.icon != null && message.hasOwnProperty("icon"))
- if (!$util.isInteger(message.icon) && !(message.icon && $util.isInteger(message.icon.low) && $util.isInteger(message.icon.high)))
- return "icon: integer|Long expected";
- if (message.parameter != null && message.hasOwnProperty("parameter")) {
- if (!Array.isArray(message.parameter))
- return "parameter: array expected";
- for (let i = 0; i < message.parameter.length; ++i)
- if (!$util.isInteger(message.parameter[i]) && !(message.parameter[i] && $util.isInteger(message.parameter[i].low) && $util.isInteger(message.parameter[i].high)))
- return "parameter: integer|Long[] expected";
- }
- return null;
- };
- /**
- * Creates a gift_conf_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.gift_conf_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.gift_conf_info} gift_conf_info
- */
- gift_conf_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.gift_conf_info)
- return object;
- let message = new $root.game.gift_conf_info();
- if (object.ID != null)
- if ($util.Long)
- (message.ID = $util.Long.fromValue(object.ID)).unsigned = false;
- else if (typeof object.ID === "string")
- message.ID = parseInt(object.ID, 10);
- else if (typeof object.ID === "number")
- message.ID = object.ID;
- else if (typeof object.ID === "object")
- message.ID = new $util.LongBits(object.ID.low >>> 0, object.ID.high >>> 0).toNumber();
- if (object.library) {
- if (!Array.isArray(object.library))
- throw TypeError(".game.gift_conf_info.library: array expected");
- message.library = [];
- for (let i = 0; i < object.library.length; ++i)
- if ($util.Long)
- (message.library[i] = $util.Long.fromValue(object.library[i])).unsigned = false;
- else if (typeof object.library[i] === "string")
- message.library[i] = parseInt(object.library[i], 10);
- else if (typeof object.library[i] === "number")
- message.library[i] = object.library[i];
- else if (typeof object.library[i] === "object")
- message.library[i] = new $util.LongBits(object.library[i].low >>> 0, object.library[i].high >>> 0).toNumber();
- }
- if (object.sort != null)
- if ($util.Long)
- (message.sort = $util.Long.fromValue(object.sort)).unsigned = false;
- else if (typeof object.sort === "string")
- message.sort = parseInt(object.sort, 10);
- else if (typeof object.sort === "number")
- message.sort = object.sort;
- else if (typeof object.sort === "object")
- message.sort = new $util.LongBits(object.sort.low >>> 0, object.sort.high >>> 0).toNumber();
- if (object.spendtype != null)
- if ($util.Long)
- (message.spendtype = $util.Long.fromValue(object.spendtype)).unsigned = false;
- else if (typeof object.spendtype === "string")
- message.spendtype = parseInt(object.spendtype, 10);
- else if (typeof object.spendtype === "number")
- message.spendtype = object.spendtype;
- else if (typeof object.spendtype === "object")
- message.spendtype = new $util.LongBits(object.spendtype.low >>> 0, object.spendtype.high >>> 0).toNumber();
- if (object.spend != null)
- if ($util.Long)
- (message.spend = $util.Long.fromValue(object.spend)).unsigned = false;
- else if (typeof object.spend === "string")
- message.spend = parseInt(object.spend, 10);
- else if (typeof object.spend === "number")
- message.spend = object.spend;
- else if (typeof object.spend === "object")
- message.spend = new $util.LongBits(object.spend.low >>> 0, object.spend.high >>> 0).toNumber();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- if (object.daylimit != null)
- if ($util.Long)
- (message.daylimit = $util.Long.fromValue(object.daylimit)).unsigned = false;
- else if (typeof object.daylimit === "string")
- message.daylimit = parseInt(object.daylimit, 10);
- else if (typeof object.daylimit === "number")
- message.daylimit = object.daylimit;
- else if (typeof object.daylimit === "object")
- message.daylimit = new $util.LongBits(object.daylimit.low >>> 0, object.daylimit.high >>> 0).toNumber();
- if (object.weeklimit != null)
- if ($util.Long)
- (message.weeklimit = $util.Long.fromValue(object.weeklimit)).unsigned = false;
- else if (typeof object.weeklimit === "string")
- message.weeklimit = parseInt(object.weeklimit, 10);
- else if (typeof object.weeklimit === "number")
- message.weeklimit = object.weeklimit;
- else if (typeof object.weeklimit === "object")
- message.weeklimit = new $util.LongBits(object.weeklimit.low >>> 0, object.weeklimit.high >>> 0).toNumber();
- if (object.video != null)
- if ($util.Long)
- (message.video = $util.Long.fromValue(object.video)).unsigned = false;
- else if (typeof object.video === "string")
- message.video = parseInt(object.video, 10);
- else if (typeof object.video === "number")
- message.video = object.video;
- else if (typeof object.video === "object")
- message.video = new $util.LongBits(object.video.low >>> 0, object.video.high >>> 0).toNumber();
- if (object.icon != null)
- if ($util.Long)
- (message.icon = $util.Long.fromValue(object.icon)).unsigned = false;
- else if (typeof object.icon === "string")
- message.icon = parseInt(object.icon, 10);
- else if (typeof object.icon === "number")
- message.icon = object.icon;
- else if (typeof object.icon === "object")
- message.icon = new $util.LongBits(object.icon.low >>> 0, object.icon.high >>> 0).toNumber();
- if (object.parameter) {
- if (!Array.isArray(object.parameter))
- throw TypeError(".game.gift_conf_info.parameter: array expected");
- message.parameter = [];
- for (let i = 0; i < object.parameter.length; ++i)
- if ($util.Long)
- (message.parameter[i] = $util.Long.fromValue(object.parameter[i])).unsigned = false;
- else if (typeof object.parameter[i] === "string")
- message.parameter[i] = parseInt(object.parameter[i], 10);
- else if (typeof object.parameter[i] === "number")
- message.parameter[i] = object.parameter[i];
- else if (typeof object.parameter[i] === "object")
- message.parameter[i] = new $util.LongBits(object.parameter[i].low >>> 0, object.parameter[i].high >>> 0).toNumber();
- }
- return message;
- };
- /**
- * Creates a plain object from a gift_conf_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.gift_conf_info
- * @static
- * @param {game.gift_conf_info} message gift_conf_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- gift_conf_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.library = [];
- object.parameter = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.ID = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.ID = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.sort = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.sort = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.spendtype = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.spendtype = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.spend = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.spend = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.daylimit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.daylimit = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.weeklimit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.weeklimit = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.video = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.video = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.icon = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.icon = options.longs === String ? "0" : 0;
- }
- if (message.ID != null && message.hasOwnProperty("ID"))
- if (typeof message.ID === "number")
- object.ID = options.longs === String ? String(message.ID) : message.ID;
- else
- object.ID = options.longs === String ? $util.Long.prototype.toString.call(message.ID) : options.longs === Number ? new $util.LongBits(message.ID.low >>> 0, message.ID.high >>> 0).toNumber() : message.ID;
- if (message.library && message.library.length) {
- object.library = [];
- for (let j = 0; j < message.library.length; ++j)
- if (typeof message.library[j] === "number")
- object.library[j] = options.longs === String ? String(message.library[j]) : message.library[j];
- else
- object.library[j] = options.longs === String ? $util.Long.prototype.toString.call(message.library[j]) : options.longs === Number ? new $util.LongBits(message.library[j].low >>> 0, message.library[j].high >>> 0).toNumber() : message.library[j];
- }
- if (message.sort != null && message.hasOwnProperty("sort"))
- if (typeof message.sort === "number")
- object.sort = options.longs === String ? String(message.sort) : message.sort;
- else
- object.sort = options.longs === String ? $util.Long.prototype.toString.call(message.sort) : options.longs === Number ? new $util.LongBits(message.sort.low >>> 0, message.sort.high >>> 0).toNumber() : message.sort;
- if (message.spendtype != null && message.hasOwnProperty("spendtype"))
- if (typeof message.spendtype === "number")
- object.spendtype = options.longs === String ? String(message.spendtype) : message.spendtype;
- else
- object.spendtype = options.longs === String ? $util.Long.prototype.toString.call(message.spendtype) : options.longs === Number ? new $util.LongBits(message.spendtype.low >>> 0, message.spendtype.high >>> 0).toNumber() : message.spendtype;
- if (message.spend != null && message.hasOwnProperty("spend"))
- if (typeof message.spend === "number")
- object.spend = options.longs === String ? String(message.spend) : message.spend;
- else
- object.spend = options.longs === String ? $util.Long.prototype.toString.call(message.spend) : options.longs === Number ? new $util.LongBits(message.spend.low >>> 0, message.spend.high >>> 0).toNumber() : message.spend;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- if (message.daylimit != null && message.hasOwnProperty("daylimit"))
- if (typeof message.daylimit === "number")
- object.daylimit = options.longs === String ? String(message.daylimit) : message.daylimit;
- else
- object.daylimit = options.longs === String ? $util.Long.prototype.toString.call(message.daylimit) : options.longs === Number ? new $util.LongBits(message.daylimit.low >>> 0, message.daylimit.high >>> 0).toNumber() : message.daylimit;
- if (message.weeklimit != null && message.hasOwnProperty("weeklimit"))
- if (typeof message.weeklimit === "number")
- object.weeklimit = options.longs === String ? String(message.weeklimit) : message.weeklimit;
- else
- object.weeklimit = options.longs === String ? $util.Long.prototype.toString.call(message.weeklimit) : options.longs === Number ? new $util.LongBits(message.weeklimit.low >>> 0, message.weeklimit.high >>> 0).toNumber() : message.weeklimit;
- if (message.video != null && message.hasOwnProperty("video"))
- if (typeof message.video === "number")
- object.video = options.longs === String ? String(message.video) : message.video;
- else
- object.video = options.longs === String ? $util.Long.prototype.toString.call(message.video) : options.longs === Number ? new $util.LongBits(message.video.low >>> 0, message.video.high >>> 0).toNumber() : message.video;
- if (message.icon != null && message.hasOwnProperty("icon"))
- if (typeof message.icon === "number")
- object.icon = options.longs === String ? String(message.icon) : message.icon;
- else
- object.icon = options.longs === String ? $util.Long.prototype.toString.call(message.icon) : options.longs === Number ? new $util.LongBits(message.icon.low >>> 0, message.icon.high >>> 0).toNumber() : message.icon;
- if (message.parameter && message.parameter.length) {
- object.parameter = [];
- for (let j = 0; j < message.parameter.length; ++j)
- if (typeof message.parameter[j] === "number")
- object.parameter[j] = options.longs === String ? String(message.parameter[j]) : message.parameter[j];
- else
- object.parameter[j] = options.longs === String ? $util.Long.prototype.toString.call(message.parameter[j]) : options.longs === Number ? new $util.LongBits(message.parameter[j].low >>> 0, message.parameter[j].high >>> 0).toNumber() : message.parameter[j];
- }
- return object;
- };
- /**
- * Converts this gift_conf_info to JSON.
- * @function toJSON
- * @memberof game.gift_conf_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- gift_conf_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return gift_conf_info;
- })();
- game.award_conf_info = (function() {
- /**
- * Properties of an award_conf_info.
- * @memberof game
- * @interface Iaward_conf_info
- * @property {number|Long|null} [id] award_conf_info id
- * @property {Array.<game.Iid_num>|null} [list] award_conf_info list
- */
- /**
- * Constructs a new award_conf_info.
- * @memberof game
- * @classdesc Represents an award_conf_info.
- * @implements Iaward_conf_info
- * @constructor
- * @param {game.Iaward_conf_info=} [properties] Properties to set
- */
- function award_conf_info(properties) {
- this.list = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * award_conf_info id.
- * @member {number|Long} id
- * @memberof game.award_conf_info
- * @instance
- */
- award_conf_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * award_conf_info list.
- * @member {Array.<game.Iid_num>} list
- * @memberof game.award_conf_info
- * @instance
- */
- award_conf_info.prototype.list = $util.emptyArray;
- /**
- * Creates a new award_conf_info instance using the specified properties.
- * @function create
- * @memberof game.award_conf_info
- * @static
- * @param {game.Iaward_conf_info=} [properties] Properties to set
- * @returns {game.award_conf_info} award_conf_info instance
- */
- award_conf_info.create = function create(properties) {
- return new award_conf_info(properties);
- };
- /**
- * Encodes the specified award_conf_info message. Does not implicitly {@link game.award_conf_info.verify|verify} messages.
- * @function encode
- * @memberof game.award_conf_info
- * @static
- * @param {game.Iaward_conf_info} message award_conf_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- award_conf_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.id_num.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified award_conf_info message, length delimited. Does not implicitly {@link game.award_conf_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.award_conf_info
- * @static
- * @param {game.Iaward_conf_info} message award_conf_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- award_conf_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an award_conf_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.award_conf_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.award_conf_info} award_conf_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- award_conf_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.award_conf_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.id_num.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an award_conf_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.award_conf_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.award_conf_info} award_conf_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- award_conf_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an award_conf_info message.
- * @function verify
- * @memberof game.award_conf_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- award_conf_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.id_num.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- return null;
- };
- /**
- * Creates an award_conf_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.award_conf_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.award_conf_info} award_conf_info
- */
- award_conf_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.award_conf_info)
- return object;
- let message = new $root.game.award_conf_info();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.award_conf_info.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.award_conf_info.list: object expected");
- message.list[i] = $root.game.id_num.fromObject(object.list[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from an award_conf_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.award_conf_info
- * @static
- * @param {game.award_conf_info} message award_conf_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- award_conf_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults)
- object.list = [];
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.id_num.toObject(message.list[j], options);
- }
- return object;
- };
- /**
- * Converts this award_conf_info to JSON.
- * @function toJSON
- * @memberof game.award_conf_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- award_conf_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return award_conf_info;
- })();
- game.activity_conf_info = (function() {
- /**
- * Properties of an activity_conf_info.
- * @memberof game
- * @interface Iactivity_conf_info
- * @property {number|Long|null} [type] activity_conf_info type
- * @property {Array.<string>|null} [describe] activity_conf_info describe
- * @property {Array.<number|Long>|null} [parameter1] activity_conf_info parameter1
- * @property {Array.<number|Long>|null} [parameter2] activity_conf_info parameter2
- * @property {Array.<number|Long>|null} [parameter3] activity_conf_info parameter3
- * @property {Array.<game.Igift_conf_info>|null} [giftList] activity_conf_info giftList
- * @property {Array.<game.Iaward_conf_info>|null} [rewardList] activity_conf_info rewardList
- */
- /**
- * Constructs a new activity_conf_info.
- * @memberof game
- * @classdesc Represents an activity_conf_info.
- * @implements Iactivity_conf_info
- * @constructor
- * @param {game.Iactivity_conf_info=} [properties] Properties to set
- */
- function activity_conf_info(properties) {
- this.describe = [];
- this.parameter1 = [];
- this.parameter2 = [];
- this.parameter3 = [];
- this.giftList = [];
- this.rewardList = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * activity_conf_info type.
- * @member {number|Long} type
- * @memberof game.activity_conf_info
- * @instance
- */
- activity_conf_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * activity_conf_info describe.
- * @member {Array.<string>} describe
- * @memberof game.activity_conf_info
- * @instance
- */
- activity_conf_info.prototype.describe = $util.emptyArray;
- /**
- * activity_conf_info parameter1.
- * @member {Array.<number|Long>} parameter1
- * @memberof game.activity_conf_info
- * @instance
- */
- activity_conf_info.prototype.parameter1 = $util.emptyArray;
- /**
- * activity_conf_info parameter2.
- * @member {Array.<number|Long>} parameter2
- * @memberof game.activity_conf_info
- * @instance
- */
- activity_conf_info.prototype.parameter2 = $util.emptyArray;
- /**
- * activity_conf_info parameter3.
- * @member {Array.<number|Long>} parameter3
- * @memberof game.activity_conf_info
- * @instance
- */
- activity_conf_info.prototype.parameter3 = $util.emptyArray;
- /**
- * activity_conf_info giftList.
- * @member {Array.<game.Igift_conf_info>} giftList
- * @memberof game.activity_conf_info
- * @instance
- */
- activity_conf_info.prototype.giftList = $util.emptyArray;
- /**
- * activity_conf_info rewardList.
- * @member {Array.<game.Iaward_conf_info>} rewardList
- * @memberof game.activity_conf_info
- * @instance
- */
- activity_conf_info.prototype.rewardList = $util.emptyArray;
- /**
- * Creates a new activity_conf_info instance using the specified properties.
- * @function create
- * @memberof game.activity_conf_info
- * @static
- * @param {game.Iactivity_conf_info=} [properties] Properties to set
- * @returns {game.activity_conf_info} activity_conf_info instance
- */
- activity_conf_info.create = function create(properties) {
- return new activity_conf_info(properties);
- };
- /**
- * Encodes the specified activity_conf_info message. Does not implicitly {@link game.activity_conf_info.verify|verify} messages.
- * @function encode
- * @memberof game.activity_conf_info
- * @static
- * @param {game.Iactivity_conf_info} message activity_conf_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- activity_conf_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.describe != null && message.describe.length)
- for (let i = 0; i < message.describe.length; ++i)
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.describe[i]);
- if (message.parameter1 != null && message.parameter1.length) {
- writer.uint32(/* id 3, wireType 2 =*/26).fork();
- for (let i = 0; i < message.parameter1.length; ++i)
- writer.int64(message.parameter1[i]);
- writer.ldelim();
- }
- if (message.parameter2 != null && message.parameter2.length) {
- writer.uint32(/* id 4, wireType 2 =*/34).fork();
- for (let i = 0; i < message.parameter2.length; ++i)
- writer.int64(message.parameter2[i]);
- writer.ldelim();
- }
- if (message.parameter3 != null && message.parameter3.length) {
- writer.uint32(/* id 5, wireType 2 =*/42).fork();
- for (let i = 0; i < message.parameter3.length; ++i)
- writer.int64(message.parameter3[i]);
- writer.ldelim();
- }
- if (message.giftList != null && message.giftList.length)
- for (let i = 0; i < message.giftList.length; ++i)
- $root.game.gift_conf_info.encode(message.giftList[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
- if (message.rewardList != null && message.rewardList.length)
- for (let i = 0; i < message.rewardList.length; ++i)
- $root.game.award_conf_info.encode(message.rewardList[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified activity_conf_info message, length delimited. Does not implicitly {@link game.activity_conf_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.activity_conf_info
- * @static
- * @param {game.Iactivity_conf_info} message activity_conf_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- activity_conf_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an activity_conf_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.activity_conf_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.activity_conf_info} activity_conf_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- activity_conf_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_conf_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 2:
- if (!(message.describe && message.describe.length))
- message.describe = [];
- message.describe.push(reader.string());
- break;
- case 3:
- if (!(message.parameter1 && message.parameter1.length))
- message.parameter1 = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.parameter1.push(reader.int64());
- } else
- message.parameter1.push(reader.int64());
- break;
- case 4:
- if (!(message.parameter2 && message.parameter2.length))
- message.parameter2 = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.parameter2.push(reader.int64());
- } else
- message.parameter2.push(reader.int64());
- break;
- case 5:
- if (!(message.parameter3 && message.parameter3.length))
- message.parameter3 = [];
- if ((tag & 7) === 2) {
- let end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.parameter3.push(reader.int64());
- } else
- message.parameter3.push(reader.int64());
- break;
- case 6:
- if (!(message.giftList && message.giftList.length))
- message.giftList = [];
- message.giftList.push($root.game.gift_conf_info.decode(reader, reader.uint32()));
- break;
- case 7:
- if (!(message.rewardList && message.rewardList.length))
- message.rewardList = [];
- message.rewardList.push($root.game.award_conf_info.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an activity_conf_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.activity_conf_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.activity_conf_info} activity_conf_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- activity_conf_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an activity_conf_info message.
- * @function verify
- * @memberof game.activity_conf_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- activity_conf_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.describe != null && message.hasOwnProperty("describe")) {
- if (!Array.isArray(message.describe))
- return "describe: array expected";
- for (let i = 0; i < message.describe.length; ++i)
- if (!$util.isString(message.describe[i]))
- return "describe: string[] expected";
- }
- if (message.parameter1 != null && message.hasOwnProperty("parameter1")) {
- if (!Array.isArray(message.parameter1))
- return "parameter1: array expected";
- for (let i = 0; i < message.parameter1.length; ++i)
- if (!$util.isInteger(message.parameter1[i]) && !(message.parameter1[i] && $util.isInteger(message.parameter1[i].low) && $util.isInteger(message.parameter1[i].high)))
- return "parameter1: integer|Long[] expected";
- }
- if (message.parameter2 != null && message.hasOwnProperty("parameter2")) {
- if (!Array.isArray(message.parameter2))
- return "parameter2: array expected";
- for (let i = 0; i < message.parameter2.length; ++i)
- if (!$util.isInteger(message.parameter2[i]) && !(message.parameter2[i] && $util.isInteger(message.parameter2[i].low) && $util.isInteger(message.parameter2[i].high)))
- return "parameter2: integer|Long[] expected";
- }
- if (message.parameter3 != null && message.hasOwnProperty("parameter3")) {
- if (!Array.isArray(message.parameter3))
- return "parameter3: array expected";
- for (let i = 0; i < message.parameter3.length; ++i)
- if (!$util.isInteger(message.parameter3[i]) && !(message.parameter3[i] && $util.isInteger(message.parameter3[i].low) && $util.isInteger(message.parameter3[i].high)))
- return "parameter3: integer|Long[] expected";
- }
- if (message.giftList != null && message.hasOwnProperty("giftList")) {
- if (!Array.isArray(message.giftList))
- return "giftList: array expected";
- for (let i = 0; i < message.giftList.length; ++i) {
- let error = $root.game.gift_conf_info.verify(message.giftList[i]);
- if (error)
- return "giftList." + error;
- }
- }
- if (message.rewardList != null && message.hasOwnProperty("rewardList")) {
- if (!Array.isArray(message.rewardList))
- return "rewardList: array expected";
- for (let i = 0; i < message.rewardList.length; ++i) {
- let error = $root.game.award_conf_info.verify(message.rewardList[i]);
- if (error)
- return "rewardList." + error;
- }
- }
- return null;
- };
- /**
- * Creates an activity_conf_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.activity_conf_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.activity_conf_info} activity_conf_info
- */
- activity_conf_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.activity_conf_info)
- return object;
- let message = new $root.game.activity_conf_info();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.describe) {
- if (!Array.isArray(object.describe))
- throw TypeError(".game.activity_conf_info.describe: array expected");
- message.describe = [];
- for (let i = 0; i < object.describe.length; ++i)
- message.describe[i] = String(object.describe[i]);
- }
- if (object.parameter1) {
- if (!Array.isArray(object.parameter1))
- throw TypeError(".game.activity_conf_info.parameter1: array expected");
- message.parameter1 = [];
- for (let i = 0; i < object.parameter1.length; ++i)
- if ($util.Long)
- (message.parameter1[i] = $util.Long.fromValue(object.parameter1[i])).unsigned = false;
- else if (typeof object.parameter1[i] === "string")
- message.parameter1[i] = parseInt(object.parameter1[i], 10);
- else if (typeof object.parameter1[i] === "number")
- message.parameter1[i] = object.parameter1[i];
- else if (typeof object.parameter1[i] === "object")
- message.parameter1[i] = new $util.LongBits(object.parameter1[i].low >>> 0, object.parameter1[i].high >>> 0).toNumber();
- }
- if (object.parameter2) {
- if (!Array.isArray(object.parameter2))
- throw TypeError(".game.activity_conf_info.parameter2: array expected");
- message.parameter2 = [];
- for (let i = 0; i < object.parameter2.length; ++i)
- if ($util.Long)
- (message.parameter2[i] = $util.Long.fromValue(object.parameter2[i])).unsigned = false;
- else if (typeof object.parameter2[i] === "string")
- message.parameter2[i] = parseInt(object.parameter2[i], 10);
- else if (typeof object.parameter2[i] === "number")
- message.parameter2[i] = object.parameter2[i];
- else if (typeof object.parameter2[i] === "object")
- message.parameter2[i] = new $util.LongBits(object.parameter2[i].low >>> 0, object.parameter2[i].high >>> 0).toNumber();
- }
- if (object.parameter3) {
- if (!Array.isArray(object.parameter3))
- throw TypeError(".game.activity_conf_info.parameter3: array expected");
- message.parameter3 = [];
- for (let i = 0; i < object.parameter3.length; ++i)
- if ($util.Long)
- (message.parameter3[i] = $util.Long.fromValue(object.parameter3[i])).unsigned = false;
- else if (typeof object.parameter3[i] === "string")
- message.parameter3[i] = parseInt(object.parameter3[i], 10);
- else if (typeof object.parameter3[i] === "number")
- message.parameter3[i] = object.parameter3[i];
- else if (typeof object.parameter3[i] === "object")
- message.parameter3[i] = new $util.LongBits(object.parameter3[i].low >>> 0, object.parameter3[i].high >>> 0).toNumber();
- }
- if (object.giftList) {
- if (!Array.isArray(object.giftList))
- throw TypeError(".game.activity_conf_info.giftList: array expected");
- message.giftList = [];
- for (let i = 0; i < object.giftList.length; ++i) {
- if (typeof object.giftList[i] !== "object")
- throw TypeError(".game.activity_conf_info.giftList: object expected");
- message.giftList[i] = $root.game.gift_conf_info.fromObject(object.giftList[i]);
- }
- }
- if (object.rewardList) {
- if (!Array.isArray(object.rewardList))
- throw TypeError(".game.activity_conf_info.rewardList: array expected");
- message.rewardList = [];
- for (let i = 0; i < object.rewardList.length; ++i) {
- if (typeof object.rewardList[i] !== "object")
- throw TypeError(".game.activity_conf_info.rewardList: object expected");
- message.rewardList[i] = $root.game.award_conf_info.fromObject(object.rewardList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from an activity_conf_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.activity_conf_info
- * @static
- * @param {game.activity_conf_info} message activity_conf_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- activity_conf_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.describe = [];
- object.parameter1 = [];
- object.parameter2 = [];
- object.parameter3 = [];
- object.giftList = [];
- object.rewardList = [];
- }
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.describe && message.describe.length) {
- object.describe = [];
- for (let j = 0; j < message.describe.length; ++j)
- object.describe[j] = message.describe[j];
- }
- if (message.parameter1 && message.parameter1.length) {
- object.parameter1 = [];
- for (let j = 0; j < message.parameter1.length; ++j)
- if (typeof message.parameter1[j] === "number")
- object.parameter1[j] = options.longs === String ? String(message.parameter1[j]) : message.parameter1[j];
- else
- object.parameter1[j] = options.longs === String ? $util.Long.prototype.toString.call(message.parameter1[j]) : options.longs === Number ? new $util.LongBits(message.parameter1[j].low >>> 0, message.parameter1[j].high >>> 0).toNumber() : message.parameter1[j];
- }
- if (message.parameter2 && message.parameter2.length) {
- object.parameter2 = [];
- for (let j = 0; j < message.parameter2.length; ++j)
- if (typeof message.parameter2[j] === "number")
- object.parameter2[j] = options.longs === String ? String(message.parameter2[j]) : message.parameter2[j];
- else
- object.parameter2[j] = options.longs === String ? $util.Long.prototype.toString.call(message.parameter2[j]) : options.longs === Number ? new $util.LongBits(message.parameter2[j].low >>> 0, message.parameter2[j].high >>> 0).toNumber() : message.parameter2[j];
- }
- if (message.parameter3 && message.parameter3.length) {
- object.parameter3 = [];
- for (let j = 0; j < message.parameter3.length; ++j)
- if (typeof message.parameter3[j] === "number")
- object.parameter3[j] = options.longs === String ? String(message.parameter3[j]) : message.parameter3[j];
- else
- object.parameter3[j] = options.longs === String ? $util.Long.prototype.toString.call(message.parameter3[j]) : options.longs === Number ? new $util.LongBits(message.parameter3[j].low >>> 0, message.parameter3[j].high >>> 0).toNumber() : message.parameter3[j];
- }
- if (message.giftList && message.giftList.length) {
- object.giftList = [];
- for (let j = 0; j < message.giftList.length; ++j)
- object.giftList[j] = $root.game.gift_conf_info.toObject(message.giftList[j], options);
- }
- if (message.rewardList && message.rewardList.length) {
- object.rewardList = [];
- for (let j = 0; j < message.rewardList.length; ++j)
- object.rewardList[j] = $root.game.award_conf_info.toObject(message.rewardList[j], options);
- }
- return object;
- };
- /**
- * Converts this activity_conf_info to JSON.
- * @function toJSON
- * @memberof game.activity_conf_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- activity_conf_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return activity_conf_info;
- })();
- game.privilege_card_info = (function() {
- /**
- * Properties of a privilege_card_info.
- * @memberof game
- * @interface Iprivilege_card_info
- * @property {number|Long|null} [moduleid] privilege_card_info moduleid
- * @property {boolean|null} [state] privilege_card_info state
- * @property {number|Long|null} [startTime] privilege_card_info startTime
- * @property {boolean|null} [award] privilege_card_info award
- */
- /**
- * Constructs a new privilege_card_info.
- * @memberof game
- * @classdesc Represents a privilege_card_info.
- * @implements Iprivilege_card_info
- * @constructor
- * @param {game.Iprivilege_card_info=} [properties] Properties to set
- */
- function privilege_card_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * privilege_card_info moduleid.
- * @member {number|Long} moduleid
- * @memberof game.privilege_card_info
- * @instance
- */
- privilege_card_info.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * privilege_card_info state.
- * @member {boolean} state
- * @memberof game.privilege_card_info
- * @instance
- */
- privilege_card_info.prototype.state = false;
- /**
- * privilege_card_info startTime.
- * @member {number|Long} startTime
- * @memberof game.privilege_card_info
- * @instance
- */
- privilege_card_info.prototype.startTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * privilege_card_info award.
- * @member {boolean} award
- * @memberof game.privilege_card_info
- * @instance
- */
- privilege_card_info.prototype.award = false;
- /**
- * Creates a new privilege_card_info instance using the specified properties.
- * @function create
- * @memberof game.privilege_card_info
- * @static
- * @param {game.Iprivilege_card_info=} [properties] Properties to set
- * @returns {game.privilege_card_info} privilege_card_info instance
- */
- privilege_card_info.create = function create(properties) {
- return new privilege_card_info(properties);
- };
- /**
- * Encodes the specified privilege_card_info message. Does not implicitly {@link game.privilege_card_info.verify|verify} messages.
- * @function encode
- * @memberof game.privilege_card_info
- * @static
- * @param {game.Iprivilege_card_info} message privilege_card_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
- if (message.state != null && Object.hasOwnProperty.call(message, "state"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.state);
- if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.startTime);
- if (message.award != null && Object.hasOwnProperty.call(message, "award"))
- writer.uint32(/* id 4, wireType 0 =*/32).bool(message.award);
- return writer;
- };
- /**
- * Encodes the specified privilege_card_info message, length delimited. Does not implicitly {@link game.privilege_card_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.privilege_card_info
- * @static
- * @param {game.Iprivilege_card_info} message privilege_card_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- privilege_card_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a privilege_card_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.privilege_card_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.privilege_card_info} privilege_card_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.moduleid = reader.int64();
- break;
- case 2:
- message.state = reader.bool();
- break;
- case 3:
- message.startTime = reader.int64();
- break;
- case 4:
- message.award = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a privilege_card_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.privilege_card_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.privilege_card_info} privilege_card_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- privilege_card_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a privilege_card_info message.
- * @function verify
- * @memberof game.privilege_card_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- privilege_card_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
- return "moduleid: integer|Long expected";
- if (message.state != null && message.hasOwnProperty("state"))
- if (typeof message.state !== "boolean")
- return "state: boolean expected";
- if (message.startTime != null && message.hasOwnProperty("startTime"))
- if (!$util.isInteger(message.startTime) && !(message.startTime && $util.isInteger(message.startTime.low) && $util.isInteger(message.startTime.high)))
- return "startTime: integer|Long expected";
- if (message.award != null && message.hasOwnProperty("award"))
- if (typeof message.award !== "boolean")
- return "award: boolean expected";
- return null;
- };
- /**
- * Creates a privilege_card_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.privilege_card_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.privilege_card_info} privilege_card_info
- */
- privilege_card_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.privilege_card_info)
- return object;
- let message = new $root.game.privilege_card_info();
- if (object.moduleid != null)
- if ($util.Long)
- (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
- else if (typeof object.moduleid === "string")
- message.moduleid = parseInt(object.moduleid, 10);
- else if (typeof object.moduleid === "number")
- message.moduleid = object.moduleid;
- else if (typeof object.moduleid === "object")
- message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
- if (object.state != null)
- message.state = Boolean(object.state);
- if (object.startTime != null)
- if ($util.Long)
- (message.startTime = $util.Long.fromValue(object.startTime)).unsigned = false;
- else if (typeof object.startTime === "string")
- message.startTime = parseInt(object.startTime, 10);
- else if (typeof object.startTime === "number")
- message.startTime = object.startTime;
- else if (typeof object.startTime === "object")
- message.startTime = new $util.LongBits(object.startTime.low >>> 0, object.startTime.high >>> 0).toNumber();
- if (object.award != null)
- message.award = Boolean(object.award);
- return message;
- };
- /**
- * Creates a plain object from a privilege_card_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.privilege_card_info
- * @static
- * @param {game.privilege_card_info} message privilege_card_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- privilege_card_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.moduleid = options.longs === String ? "0" : 0;
- object.state = false;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.startTime = options.longs === String ? "0" : 0;
- object.award = false;
- }
- if (message.moduleid != null && message.hasOwnProperty("moduleid"))
- if (typeof message.moduleid === "number")
- object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
- else
- object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
- if (message.state != null && message.hasOwnProperty("state"))
- object.state = message.state;
- if (message.startTime != null && message.hasOwnProperty("startTime"))
- if (typeof message.startTime === "number")
- object.startTime = options.longs === String ? String(message.startTime) : message.startTime;
- else
- object.startTime = options.longs === String ? $util.Long.prototype.toString.call(message.startTime) : options.longs === Number ? new $util.LongBits(message.startTime.low >>> 0, message.startTime.high >>> 0).toNumber() : message.startTime;
- if (message.award != null && message.hasOwnProperty("award"))
- object.award = message.award;
- return object;
- };
- /**
- * Converts this privilege_card_info to JSON.
- * @function toJSON
- * @memberof game.privilege_card_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- privilege_card_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return privilege_card_info;
- })();
- game.daily_dungeons_info = (function() {
- /**
- * Properties of a daily_dungeons_info.
- * @memberof game
- * @interface Idaily_dungeons_info
- * @property {number|Long|null} [type] daily_dungeons_info type
- * @property {number|Long|null} [diff] daily_dungeons_info diff
- * @property {number|Long|null} [num] daily_dungeons_info num
- */
- /**
- * Constructs a new daily_dungeons_info.
- * @memberof game
- * @classdesc Represents a daily_dungeons_info.
- * @implements Idaily_dungeons_info
- * @constructor
- * @param {game.Idaily_dungeons_info=} [properties] Properties to set
- */
- function daily_dungeons_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * daily_dungeons_info type.
- * @member {number|Long} type
- * @memberof game.daily_dungeons_info
- * @instance
- */
- daily_dungeons_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * daily_dungeons_info diff.
- * @member {number|Long} diff
- * @memberof game.daily_dungeons_info
- * @instance
- */
- daily_dungeons_info.prototype.diff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * daily_dungeons_info num.
- * @member {number|Long} num
- * @memberof game.daily_dungeons_info
- * @instance
- */
- daily_dungeons_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new daily_dungeons_info instance using the specified properties.
- * @function create
- * @memberof game.daily_dungeons_info
- * @static
- * @param {game.Idaily_dungeons_info=} [properties] Properties to set
- * @returns {game.daily_dungeons_info} daily_dungeons_info instance
- */
- daily_dungeons_info.create = function create(properties) {
- return new daily_dungeons_info(properties);
- };
- /**
- * Encodes the specified daily_dungeons_info message. Does not implicitly {@link game.daily_dungeons_info.verify|verify} messages.
- * @function encode
- * @memberof game.daily_dungeons_info
- * @static
- * @param {game.Idaily_dungeons_info} message daily_dungeons_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
- if (message.diff != null && Object.hasOwnProperty.call(message, "diff"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.diff);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
- return writer;
- };
- /**
- * Encodes the specified daily_dungeons_info message, length delimited. Does not implicitly {@link game.daily_dungeons_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.daily_dungeons_info
- * @static
- * @param {game.Idaily_dungeons_info} message daily_dungeons_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- daily_dungeons_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a daily_dungeons_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.daily_dungeons_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.daily_dungeons_info} daily_dungeons_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type = reader.int64();
- break;
- case 2:
- message.diff = reader.int64();
- break;
- case 3:
- message.num = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a daily_dungeons_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.daily_dungeons_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.daily_dungeons_info} daily_dungeons_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- daily_dungeons_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a daily_dungeons_info message.
- * @function verify
- * @memberof game.daily_dungeons_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- daily_dungeons_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
- return "type: integer|Long expected";
- if (message.diff != null && message.hasOwnProperty("diff"))
- if (!$util.isInteger(message.diff) && !(message.diff && $util.isInteger(message.diff.low) && $util.isInteger(message.diff.high)))
- return "diff: integer|Long expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- return null;
- };
- /**
- * Creates a daily_dungeons_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.daily_dungeons_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.daily_dungeons_info} daily_dungeons_info
- */
- daily_dungeons_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.daily_dungeons_info)
- return object;
- let message = new $root.game.daily_dungeons_info();
- if (object.type != null)
- if ($util.Long)
- (message.type = $util.Long.fromValue(object.type)).unsigned = false;
- else if (typeof object.type === "string")
- message.type = parseInt(object.type, 10);
- else if (typeof object.type === "number")
- message.type = object.type;
- else if (typeof object.type === "object")
- message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
- if (object.diff != null)
- if ($util.Long)
- (message.diff = $util.Long.fromValue(object.diff)).unsigned = false;
- else if (typeof object.diff === "string")
- message.diff = parseInt(object.diff, 10);
- else if (typeof object.diff === "number")
- message.diff = object.diff;
- else if (typeof object.diff === "object")
- message.diff = new $util.LongBits(object.diff.low >>> 0, object.diff.high >>> 0).toNumber();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a daily_dungeons_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.daily_dungeons_info
- * @static
- * @param {game.daily_dungeons_info} message daily_dungeons_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- daily_dungeons_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.type = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.diff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.diff = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- }
- if (message.type != null && message.hasOwnProperty("type"))
- if (typeof message.type === "number")
- object.type = options.longs === String ? String(message.type) : message.type;
- else
- object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
- if (message.diff != null && message.hasOwnProperty("diff"))
- if (typeof message.diff === "number")
- object.diff = options.longs === String ? String(message.diff) : message.diff;
- else
- object.diff = options.longs === String ? $util.Long.prototype.toString.call(message.diff) : options.longs === Number ? new $util.LongBits(message.diff.low >>> 0, message.diff.high >>> 0).toNumber() : message.diff;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- return object;
- };
- /**
- * Converts this daily_dungeons_info to JSON.
- * @function toJSON
- * @memberof game.daily_dungeons_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- daily_dungeons_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return daily_dungeons_info;
- })();
- game.pop_gift_conf = (function() {
- /**
- * Properties of a pop_gift_conf.
- * @memberof game
- * @interface Ipop_gift_conf
- * @property {number|Long|null} [spendtype] pop_gift_conf spendtype
- * @property {number|Long|null} [spend] pop_gift_conf spend
- * @property {number|Long|null} [num] pop_gift_conf num
- * @property {number|Long|null} [library] pop_gift_conf library
- */
- /**
- * Constructs a new pop_gift_conf.
- * @memberof game
- * @classdesc Represents a pop_gift_conf.
- * @implements Ipop_gift_conf
- * @constructor
- * @param {game.Ipop_gift_conf=} [properties] Properties to set
- */
- function pop_gift_conf(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pop_gift_conf spendtype.
- * @member {number|Long} spendtype
- * @memberof game.pop_gift_conf
- * @instance
- */
- pop_gift_conf.prototype.spendtype = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * pop_gift_conf spend.
- * @member {number|Long} spend
- * @memberof game.pop_gift_conf
- * @instance
- */
- pop_gift_conf.prototype.spend = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * pop_gift_conf num.
- * @member {number|Long} num
- * @memberof game.pop_gift_conf
- * @instance
- */
- pop_gift_conf.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * pop_gift_conf library.
- * @member {number|Long} library
- * @memberof game.pop_gift_conf
- * @instance
- */
- pop_gift_conf.prototype.library = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new pop_gift_conf instance using the specified properties.
- * @function create
- * @memberof game.pop_gift_conf
- * @static
- * @param {game.Ipop_gift_conf=} [properties] Properties to set
- * @returns {game.pop_gift_conf} pop_gift_conf instance
- */
- pop_gift_conf.create = function create(properties) {
- return new pop_gift_conf(properties);
- };
- /**
- * Encodes the specified pop_gift_conf message. Does not implicitly {@link game.pop_gift_conf.verify|verify} messages.
- * @function encode
- * @memberof game.pop_gift_conf
- * @static
- * @param {game.Ipop_gift_conf} message pop_gift_conf message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_conf.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.spendtype != null && Object.hasOwnProperty.call(message, "spendtype"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.spendtype);
- if (message.spend != null && Object.hasOwnProperty.call(message, "spend"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.spend);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
- if (message.library != null && Object.hasOwnProperty.call(message, "library"))
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.library);
- return writer;
- };
- /**
- * Encodes the specified pop_gift_conf message, length delimited. Does not implicitly {@link game.pop_gift_conf.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pop_gift_conf
- * @static
- * @param {game.Ipop_gift_conf} message pop_gift_conf message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_conf.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pop_gift_conf message from the specified reader or buffer.
- * @function decode
- * @memberof game.pop_gift_conf
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pop_gift_conf} pop_gift_conf
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_conf.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_conf();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.spendtype = reader.int64();
- break;
- case 2:
- message.spend = reader.int64();
- break;
- case 3:
- message.num = reader.int64();
- break;
- case 4:
- message.library = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pop_gift_conf message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pop_gift_conf
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pop_gift_conf} pop_gift_conf
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_conf.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pop_gift_conf message.
- * @function verify
- * @memberof game.pop_gift_conf
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pop_gift_conf.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.spendtype != null && message.hasOwnProperty("spendtype"))
- if (!$util.isInteger(message.spendtype) && !(message.spendtype && $util.isInteger(message.spendtype.low) && $util.isInteger(message.spendtype.high)))
- return "spendtype: integer|Long expected";
- if (message.spend != null && message.hasOwnProperty("spend"))
- if (!$util.isInteger(message.spend) && !(message.spend && $util.isInteger(message.spend.low) && $util.isInteger(message.spend.high)))
- return "spend: integer|Long expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- if (message.library != null && message.hasOwnProperty("library"))
- if (!$util.isInteger(message.library) && !(message.library && $util.isInteger(message.library.low) && $util.isInteger(message.library.high)))
- return "library: integer|Long expected";
- return null;
- };
- /**
- * Creates a pop_gift_conf message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pop_gift_conf
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pop_gift_conf} pop_gift_conf
- */
- pop_gift_conf.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pop_gift_conf)
- return object;
- let message = new $root.game.pop_gift_conf();
- if (object.spendtype != null)
- if ($util.Long)
- (message.spendtype = $util.Long.fromValue(object.spendtype)).unsigned = false;
- else if (typeof object.spendtype === "string")
- message.spendtype = parseInt(object.spendtype, 10);
- else if (typeof object.spendtype === "number")
- message.spendtype = object.spendtype;
- else if (typeof object.spendtype === "object")
- message.spendtype = new $util.LongBits(object.spendtype.low >>> 0, object.spendtype.high >>> 0).toNumber();
- if (object.spend != null)
- if ($util.Long)
- (message.spend = $util.Long.fromValue(object.spend)).unsigned = false;
- else if (typeof object.spend === "string")
- message.spend = parseInt(object.spend, 10);
- else if (typeof object.spend === "number")
- message.spend = object.spend;
- else if (typeof object.spend === "object")
- message.spend = new $util.LongBits(object.spend.low >>> 0, object.spend.high >>> 0).toNumber();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- if (object.library != null)
- if ($util.Long)
- (message.library = $util.Long.fromValue(object.library)).unsigned = false;
- else if (typeof object.library === "string")
- message.library = parseInt(object.library, 10);
- else if (typeof object.library === "number")
- message.library = object.library;
- else if (typeof object.library === "object")
- message.library = new $util.LongBits(object.library.low >>> 0, object.library.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a pop_gift_conf message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pop_gift_conf
- * @static
- * @param {game.pop_gift_conf} message pop_gift_conf
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pop_gift_conf.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.spendtype = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.spendtype = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.spend = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.spend = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.library = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.library = options.longs === String ? "0" : 0;
- }
- if (message.spendtype != null && message.hasOwnProperty("spendtype"))
- if (typeof message.spendtype === "number")
- object.spendtype = options.longs === String ? String(message.spendtype) : message.spendtype;
- else
- object.spendtype = options.longs === String ? $util.Long.prototype.toString.call(message.spendtype) : options.longs === Number ? new $util.LongBits(message.spendtype.low >>> 0, message.spendtype.high >>> 0).toNumber() : message.spendtype;
- if (message.spend != null && message.hasOwnProperty("spend"))
- if (typeof message.spend === "number")
- object.spend = options.longs === String ? String(message.spend) : message.spend;
- else
- object.spend = options.longs === String ? $util.Long.prototype.toString.call(message.spend) : options.longs === Number ? new $util.LongBits(message.spend.low >>> 0, message.spend.high >>> 0).toNumber() : message.spend;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- if (message.library != null && message.hasOwnProperty("library"))
- if (typeof message.library === "number")
- object.library = options.longs === String ? String(message.library) : message.library;
- else
- object.library = options.longs === String ? $util.Long.prototype.toString.call(message.library) : options.longs === Number ? new $util.LongBits(message.library.low >>> 0, message.library.high >>> 0).toNumber() : message.library;
- return object;
- };
- /**
- * Converts this pop_gift_conf to JSON.
- * @function toJSON
- * @memberof game.pop_gift_conf
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pop_gift_conf.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pop_gift_conf;
- })();
- game.pop_gift_info = (function() {
- /**
- * Properties of a pop_gift_info.
- * @memberof game
- * @interface Ipop_gift_info
- * @property {number|Long|null} [id] pop_gift_info id
- * @property {number|Long|null} [num] pop_gift_info num
- * @property {number|Long|null} [time] pop_gift_info time
- * @property {game.Ipop_gift_conf|null} [conf] pop_gift_info conf
- */
- /**
- * Constructs a new pop_gift_info.
- * @memberof game
- * @classdesc Represents a pop_gift_info.
- * @implements Ipop_gift_info
- * @constructor
- * @param {game.Ipop_gift_info=} [properties] Properties to set
- */
- function pop_gift_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * pop_gift_info id.
- * @member {number|Long} id
- * @memberof game.pop_gift_info
- * @instance
- */
- pop_gift_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * pop_gift_info num.
- * @member {number|Long} num
- * @memberof game.pop_gift_info
- * @instance
- */
- pop_gift_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * pop_gift_info time.
- * @member {number|Long} time
- * @memberof game.pop_gift_info
- * @instance
- */
- pop_gift_info.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * pop_gift_info conf.
- * @member {game.Ipop_gift_conf|null|undefined} conf
- * @memberof game.pop_gift_info
- * @instance
- */
- pop_gift_info.prototype.conf = null;
- /**
- * Creates a new pop_gift_info instance using the specified properties.
- * @function create
- * @memberof game.pop_gift_info
- * @static
- * @param {game.Ipop_gift_info=} [properties] Properties to set
- * @returns {game.pop_gift_info} pop_gift_info instance
- */
- pop_gift_info.create = function create(properties) {
- return new pop_gift_info(properties);
- };
- /**
- * Encodes the specified pop_gift_info message. Does not implicitly {@link game.pop_gift_info.verify|verify} messages.
- * @function encode
- * @memberof game.pop_gift_info
- * @static
- * @param {game.Ipop_gift_info} message pop_gift_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.num != null && Object.hasOwnProperty.call(message, "num"))
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
- if (message.time != null && Object.hasOwnProperty.call(message, "time"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
- if (message.conf != null && Object.hasOwnProperty.call(message, "conf"))
- $root.game.pop_gift_conf.encode(message.conf, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified pop_gift_info message, length delimited. Does not implicitly {@link game.pop_gift_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.pop_gift_info
- * @static
- * @param {game.Ipop_gift_info} message pop_gift_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- pop_gift_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a pop_gift_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.pop_gift_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.pop_gift_info} pop_gift_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- message.num = reader.int64();
- break;
- case 3:
- message.time = reader.int64();
- break;
- case 4:
- message.conf = $root.game.pop_gift_conf.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a pop_gift_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.pop_gift_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.pop_gift_info} pop_gift_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- pop_gift_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a pop_gift_info message.
- * @function verify
- * @memberof game.pop_gift_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- pop_gift_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.num != null && message.hasOwnProperty("num"))
- if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
- return "num: integer|Long expected";
- if (message.time != null && message.hasOwnProperty("time"))
- if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
- return "time: integer|Long expected";
- if (message.conf != null && message.hasOwnProperty("conf")) {
- let error = $root.game.pop_gift_conf.verify(message.conf);
- if (error)
- return "conf." + error;
- }
- return null;
- };
- /**
- * Creates a pop_gift_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.pop_gift_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.pop_gift_info} pop_gift_info
- */
- pop_gift_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.pop_gift_info)
- return object;
- let message = new $root.game.pop_gift_info();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.num != null)
- if ($util.Long)
- (message.num = $util.Long.fromValue(object.num)).unsigned = false;
- else if (typeof object.num === "string")
- message.num = parseInt(object.num, 10);
- else if (typeof object.num === "number")
- message.num = object.num;
- else if (typeof object.num === "object")
- message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
- if (object.time != null)
- if ($util.Long)
- (message.time = $util.Long.fromValue(object.time)).unsigned = false;
- else if (typeof object.time === "string")
- message.time = parseInt(object.time, 10);
- else if (typeof object.time === "number")
- message.time = object.time;
- else if (typeof object.time === "object")
- message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
- if (object.conf != null) {
- if (typeof object.conf !== "object")
- throw TypeError(".game.pop_gift_info.conf: object expected");
- message.conf = $root.game.pop_gift_conf.fromObject(object.conf);
- }
- return message;
- };
- /**
- * Creates a plain object from a pop_gift_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.pop_gift_info
- * @static
- * @param {game.pop_gift_info} message pop_gift_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- pop_gift_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.num = options.longs === String ? "0" : 0;
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.time = options.longs === String ? "0" : 0;
- object.conf = null;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.num != null && message.hasOwnProperty("num"))
- if (typeof message.num === "number")
- object.num = options.longs === String ? String(message.num) : message.num;
- else
- object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
- if (message.time != null && message.hasOwnProperty("time"))
- if (typeof message.time === "number")
- object.time = options.longs === String ? String(message.time) : message.time;
- else
- object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
- if (message.conf != null && message.hasOwnProperty("conf"))
- object.conf = $root.game.pop_gift_conf.toObject(message.conf, options);
- return object;
- };
- /**
- * Converts this pop_gift_info to JSON.
- * @function toJSON
- * @memberof game.pop_gift_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- pop_gift_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return pop_gift_info;
- })();
- game.red_point_info = (function() {
- /**
- * Properties of a red_point_info.
- * @memberof game
- * @interface Ired_point_info
- * @property {number|Long|null} [id] red_point_info id
- * @property {boolean|null} [red] red_point_info red
- */
- /**
- * Constructs a new red_point_info.
- * @memberof game
- * @classdesc Represents a red_point_info.
- * @implements Ired_point_info
- * @constructor
- * @param {game.Ired_point_info=} [properties] Properties to set
- */
- function red_point_info(properties) {
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * red_point_info id.
- * @member {number|Long} id
- * @memberof game.red_point_info
- * @instance
- */
- red_point_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * red_point_info red.
- * @member {boolean} red
- * @memberof game.red_point_info
- * @instance
- */
- red_point_info.prototype.red = false;
- /**
- * Creates a new red_point_info instance using the specified properties.
- * @function create
- * @memberof game.red_point_info
- * @static
- * @param {game.Ired_point_info=} [properties] Properties to set
- * @returns {game.red_point_info} red_point_info instance
- */
- red_point_info.create = function create(properties) {
- return new red_point_info(properties);
- };
- /**
- * Encodes the specified red_point_info message. Does not implicitly {@link game.red_point_info.verify|verify} messages.
- * @function encode
- * @memberof game.red_point_info
- * @static
- * @param {game.Ired_point_info} message red_point_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- red_point_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.id != null && Object.hasOwnProperty.call(message, "id"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
- if (message.red != null && Object.hasOwnProperty.call(message, "red"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.red);
- return writer;
- };
- /**
- * Encodes the specified red_point_info message, length delimited. Does not implicitly {@link game.red_point_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.red_point_info
- * @static
- * @param {game.Ired_point_info} message red_point_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- red_point_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a red_point_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.red_point_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.red_point_info} red_point_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- red_point_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.red_point_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.id = reader.int64();
- break;
- case 2:
- message.red = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a red_point_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.red_point_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.red_point_info} red_point_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- red_point_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a red_point_info message.
- * @function verify
- * @memberof game.red_point_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- red_point_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.id != null && message.hasOwnProperty("id"))
- if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
- return "id: integer|Long expected";
- if (message.red != null && message.hasOwnProperty("red"))
- if (typeof message.red !== "boolean")
- return "red: boolean expected";
- return null;
- };
- /**
- * Creates a red_point_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.red_point_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.red_point_info} red_point_info
- */
- red_point_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.red_point_info)
- return object;
- let message = new $root.game.red_point_info();
- if (object.id != null)
- if ($util.Long)
- (message.id = $util.Long.fromValue(object.id)).unsigned = false;
- else if (typeof object.id === "string")
- message.id = parseInt(object.id, 10);
- else if (typeof object.id === "number")
- message.id = object.id;
- else if (typeof object.id === "object")
- message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
- if (object.red != null)
- message.red = Boolean(object.red);
- return message;
- };
- /**
- * Creates a plain object from a red_point_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.red_point_info
- * @static
- * @param {game.red_point_info} message red_point_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- red_point_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.defaults) {
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.id = options.longs === String ? "0" : 0;
- object.red = false;
- }
- if (message.id != null && message.hasOwnProperty("id"))
- if (typeof message.id === "number")
- object.id = options.longs === String ? String(message.id) : message.id;
- else
- object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
- if (message.red != null && message.hasOwnProperty("red"))
- object.red = message.red;
- return object;
- };
- /**
- * Converts this red_point_info to JSON.
- * @function toJSON
- * @memberof game.red_point_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- red_point_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return red_point_info;
- })();
- game.embattle_info = (function() {
- /**
- * Properties of an embattle_info.
- * @memberof game
- * @interface Iembattle_info
- * @property {number|Long|null} [team] embattle_info team
- * @property {Array.<game.Isid_pos>|null} [list] embattle_info list
- * @property {Array.<game.Isid_pos>|null} [cardList] embattle_info cardList
- */
- /**
- * Constructs a new embattle_info.
- * @memberof game
- * @classdesc Represents an embattle_info.
- * @implements Iembattle_info
- * @constructor
- * @param {game.Iembattle_info=} [properties] Properties to set
- */
- function embattle_info(properties) {
- this.list = [];
- this.cardList = [];
- if (properties)
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * embattle_info team.
- * @member {number|Long} team
- * @memberof game.embattle_info
- * @instance
- */
- embattle_info.prototype.team = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * embattle_info list.
- * @member {Array.<game.Isid_pos>} list
- * @memberof game.embattle_info
- * @instance
- */
- embattle_info.prototype.list = $util.emptyArray;
- /**
- * embattle_info cardList.
- * @member {Array.<game.Isid_pos>} cardList
- * @memberof game.embattle_info
- * @instance
- */
- embattle_info.prototype.cardList = $util.emptyArray;
- /**
- * Creates a new embattle_info instance using the specified properties.
- * @function create
- * @memberof game.embattle_info
- * @static
- * @param {game.Iembattle_info=} [properties] Properties to set
- * @returns {game.embattle_info} embattle_info instance
- */
- embattle_info.create = function create(properties) {
- return new embattle_info(properties);
- };
- /**
- * Encodes the specified embattle_info message. Does not implicitly {@link game.embattle_info.verify|verify} messages.
- * @function encode
- * @memberof game.embattle_info
- * @static
- * @param {game.Iembattle_info} message embattle_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- embattle_info.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.team != null && Object.hasOwnProperty.call(message, "team"))
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.team);
- if (message.list != null && message.list.length)
- for (let i = 0; i < message.list.length; ++i)
- $root.game.sid_pos.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- if (message.cardList != null && message.cardList.length)
- for (let i = 0; i < message.cardList.length; ++i)
- $root.game.sid_pos.encode(message.cardList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified embattle_info message, length delimited. Does not implicitly {@link game.embattle_info.verify|verify} messages.
- * @function encodeDelimited
- * @memberof game.embattle_info
- * @static
- * @param {game.Iembattle_info} message embattle_info message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- embattle_info.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an embattle_info message from the specified reader or buffer.
- * @function decode
- * @memberof game.embattle_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {game.embattle_info} embattle_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- embattle_info.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_info();
- while (reader.pos < end) {
- let tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.team = reader.int64();
- break;
- case 2:
- if (!(message.list && message.list.length))
- message.list = [];
- message.list.push($root.game.sid_pos.decode(reader, reader.uint32()));
- break;
- case 3:
- if (!(message.cardList && message.cardList.length))
- message.cardList = [];
- message.cardList.push($root.game.sid_pos.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes an embattle_info message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof game.embattle_info
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {game.embattle_info} embattle_info
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- embattle_info.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an embattle_info message.
- * @function verify
- * @memberof game.embattle_info
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- embattle_info.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.team != null && message.hasOwnProperty("team"))
- if (!$util.isInteger(message.team) && !(message.team && $util.isInteger(message.team.low) && $util.isInteger(message.team.high)))
- return "team: integer|Long expected";
- if (message.list != null && message.hasOwnProperty("list")) {
- if (!Array.isArray(message.list))
- return "list: array expected";
- for (let i = 0; i < message.list.length; ++i) {
- let error = $root.game.sid_pos.verify(message.list[i]);
- if (error)
- return "list." + error;
- }
- }
- if (message.cardList != null && message.hasOwnProperty("cardList")) {
- if (!Array.isArray(message.cardList))
- return "cardList: array expected";
- for (let i = 0; i < message.cardList.length; ++i) {
- let error = $root.game.sid_pos.verify(message.cardList[i]);
- if (error)
- return "cardList." + error;
- }
- }
- return null;
- };
- /**
- * Creates an embattle_info message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof game.embattle_info
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {game.embattle_info} embattle_info
- */
- embattle_info.fromObject = function fromObject(object) {
- if (object instanceof $root.game.embattle_info)
- return object;
- let message = new $root.game.embattle_info();
- if (object.team != null)
- if ($util.Long)
- (message.team = $util.Long.fromValue(object.team)).unsigned = false;
- else if (typeof object.team === "string")
- message.team = parseInt(object.team, 10);
- else if (typeof object.team === "number")
- message.team = object.team;
- else if (typeof object.team === "object")
- message.team = new $util.LongBits(object.team.low >>> 0, object.team.high >>> 0).toNumber();
- if (object.list) {
- if (!Array.isArray(object.list))
- throw TypeError(".game.embattle_info.list: array expected");
- message.list = [];
- for (let i = 0; i < object.list.length; ++i) {
- if (typeof object.list[i] !== "object")
- throw TypeError(".game.embattle_info.list: object expected");
- message.list[i] = $root.game.sid_pos.fromObject(object.list[i]);
- }
- }
- if (object.cardList) {
- if (!Array.isArray(object.cardList))
- throw TypeError(".game.embattle_info.cardList: array expected");
- message.cardList = [];
- for (let i = 0; i < object.cardList.length; ++i) {
- if (typeof object.cardList[i] !== "object")
- throw TypeError(".game.embattle_info.cardList: object expected");
- message.cardList[i] = $root.game.sid_pos.fromObject(object.cardList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from an embattle_info message. Also converts values to other types if specified.
- * @function toObject
- * @memberof game.embattle_info
- * @static
- * @param {game.embattle_info} message embattle_info
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- embattle_info.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- let object = {};
- if (options.arrays || options.defaults) {
- object.list = [];
- object.cardList = [];
- }
- if (options.defaults)
- if ($util.Long) {
- let long = new $util.Long(0, 0, false);
- object.team = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.team = options.longs === String ? "0" : 0;
- if (message.team != null && message.hasOwnProperty("team"))
- if (typeof message.team === "number")
- object.team = options.longs === String ? String(message.team) : message.team;
- else
- object.team = options.longs === String ? $util.Long.prototype.toString.call(message.team) : options.longs === Number ? new $util.LongBits(message.team.low >>> 0, message.team.high >>> 0).toNumber() : message.team;
- if (message.list && message.list.length) {
- object.list = [];
- for (let j = 0; j < message.list.length; ++j)
- object.list[j] = $root.game.sid_pos.toObject(message.list[j], options);
- }
- if (message.cardList && message.cardList.length) {
- object.cardList = [];
- for (let j = 0; j < message.cardList.length; ++j)
- object.cardList[j] = $root.game.sid_pos.toObject(message.cardList[j], options);
- }
- return object;
- };
- /**
- * Converts this embattle_info to JSON.
- * @function toJSON
- * @memberof game.embattle_info
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- embattle_info.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return embattle_info;
- })();
- /**
- * msg_cmd enum.
- * @name game.msg_cmd
- * @enum {number}
- * @property {number} cmd_ping=0 cmd_ping value
- * @property {number} cmd_ping_rsp=1 cmd_ping_rsp value
- * @property {number} cmd_login=2 cmd_login value
- * @property {number} cmd_login_rsp=3 cmd_login_rsp value
- * @property {number} cmd_create=4 cmd_create value
- * @property {number} cmd_create_rsp=5 cmd_create_rsp value
- * @property {number} cmd_reward_info=6 cmd_reward_info value
- * @property {number} cmd_user=7 cmd_user value
- * @property {number} cmd_pay_currency=8 cmd_pay_currency value
- * @property {number} cmd_pay_debris_nty=9 cmd_pay_debris_nty value
- * @property {number} cmd_exception_nty=10 cmd_exception_nty value
- * @property {number} cmd_create_order_nty=11 cmd_create_order_nty value
- * @property {number} cmd_recharge_result=100 cmd_recharge_result value
- * @property {number} cmd_recharge_result_rsp=101 cmd_recharge_result_rsp value
- * @property {number} cmd_recharge_success=150 cmd_recharge_success value
- * @property {number} cmd_city_change=1000 cmd_city_change value
- * @property {number} cmd_city_data=1001 cmd_city_data value
- * @property {number} cmd_city_data_rsp=1002 cmd_city_data_rsp value
- * @property {number} cmd_building_upgrade=1003 cmd_building_upgrade value
- * @property {number} cmd_building_upgrade_rsp=1004 cmd_building_upgrade_rsp value
- * @property {number} cmd_building_one_key=1005 cmd_building_one_key value
- * @property {number} cmd_building_one_key_rsp=1006 cmd_building_one_key_rsp value
- * @property {number} cmd_city_data_send=1007 cmd_city_data_send value
- * @property {number} cmd_city_skill_upgrade=1010 cmd_city_skill_upgrade value
- * @property {number} cmd_city_skill_upgrade_rsp=1011 cmd_city_skill_upgrade_rsp value
- * @property {number} cmd_city_skill_battle=1012 cmd_city_skill_battle value
- * @property {number} cmd_city_skill_battle_rsp=1013 cmd_city_skill_battle_rsp value
- * @property {number} cmd_building_explore=1020 cmd_building_explore value
- * @property {number} cmd_building_explore_rsp=1021 cmd_building_explore_rsp value
- * @property {number} cmd_building_auto_explore_award=1022 cmd_building_auto_explore_award value
- * @property {number} cmd_building_auto_explore_award_rsp=1023 cmd_building_auto_explore_award_rsp value
- * @property {number} cmd_building_explore_battle=1024 cmd_building_explore_battle value
- * @property {number} cmd_building_explore_battle_rsp=1025 cmd_building_explore_battle_rsp value
- * @property {number} cmd_building_auto_explore_option=1026 cmd_building_auto_explore_option value
- * @property {number} cmd_building_auto_explore_option_rsp=1027 cmd_building_auto_explore_option_rsp value
- * @property {number} cmd_adventure_data=1100 cmd_adventure_data value
- * @property {number} cmd_adventure_data_rsp=1101 cmd_adventure_data_rsp value
- * @property {number} cmd_adventure_start=1102 cmd_adventure_start value
- * @property {number} cmd_adventure_start_rsp=1103 cmd_adventure_start_rsp value
- * @property {number} cmd_adventure_end=1104 cmd_adventure_end value
- * @property {number} cmd_adventure_end_rsp=1105 cmd_adventure_end_rsp value
- * @property {number} cmd_adventure_layer=1106 cmd_adventure_layer value
- * @property {number} cmd_adventure_layer_rsp=1107 cmd_adventure_layer_rsp value
- * @property {number} cmd_adventure_sweep=1108 cmd_adventure_sweep value
- * @property {number} cmd_adventure_sweep_rsp=1109 cmd_adventure_sweep_rsp value
- * @property {number} cmd_adventure_pass_award=1110 cmd_adventure_pass_award value
- * @property {number} cmd_adventure_pass_award_rsp=1111 cmd_adventure_pass_award_rsp value
- * @property {number} cmd_adventure_ad_award=1112 cmd_adventure_ad_award value
- * @property {number} cmd_adventure_ad_award_rsp=1113 cmd_adventure_ad_award_rsp value
- * @property {number} cmd_adventure_trial=1114 cmd_adventure_trial value
- * @property {number} cmd_adventure_trial_rsp=1115 cmd_adventure_trial_rsp value
- * @property {number} cmd_get_mail=1200 cmd_get_mail value
- * @property {number} cmd_get_mail_rsp=1201 cmd_get_mail_rsp value
- * @property {number} cmd_get_mail_goods=1202 cmd_get_mail_goods value
- * @property {number} cmd_get_mail_goods_rsp=1203 cmd_get_mail_goods_rsp value
- * @property {number} cmd_del_mail=1204 cmd_del_mail value
- * @property {number} cmd_del_mail_rsp=1205 cmd_del_mail_rsp value
- * @property {number} cmd_flag_mail=1206 cmd_flag_mail value
- * @property {number} cmd_flag_mail_rsp=1207 cmd_flag_mail_rsp value
- * @property {number} cmd_send_mail=1208 cmd_send_mail value
- * @property {number} cmd_simple_mail=1209 cmd_simple_mail value
- * @property {number} cmd_embattle_get_data=1300 cmd_embattle_get_data value
- * @property {number} cmd_embattle_get_data_rsp=1301 cmd_embattle_get_data_rsp value
- * @property {number} cmd_embattle_battle=1302 cmd_embattle_battle value
- * @property {number} cmd_embattle_battle_rsp=1303 cmd_embattle_battle_rsp value
- * @property {number} cmd_hero_get_data=1400 cmd_hero_get_data value
- * @property {number} cmd_hero_get_data_rsp=1401 cmd_hero_get_data_rsp value
- * @property {number} cmd_hero_upgrade=1402 cmd_hero_upgrade value
- * @property {number} cmd_hero_upgrade_rsp=1403 cmd_hero_upgrade_rsp value
- * @property {number} cmd_hero_upgrade_star=1404 cmd_hero_upgrade_star value
- * @property {number} cmd_hero_upgrade_star_rsp=1405 cmd_hero_upgrade_star_rsp value
- * @property {number} cmd_hero_onekey_upgrade_star=1406 cmd_hero_onekey_upgrade_star value
- * @property {number} cmd_hero_onekey_upgrade_star_rsp=1407 cmd_hero_onekey_upgrade_star_rsp value
- * @property {number} cmd_hero_reset=1408 cmd_hero_reset value
- * @property {number} cmd_hero_reset_rsp=1409 cmd_hero_reset_rsp value
- * @property {number} cmd_hero_wear_equip=1410 cmd_hero_wear_equip value
- * @property {number} cmd_hero_wear_equip_rsp=1411 cmd_hero_wear_equip_rsp value
- * @property {number} cmd_hero_change_nty=1450 cmd_hero_change_nty value
- * @property {number} cmd_skill_card_get_data=1500 cmd_skill_card_get_data value
- * @property {number} cmd_skill_card_get_data_rsp=1501 cmd_skill_card_get_data_rsp value
- * @property {number} cmd_skill_card_upgrade=1502 cmd_skill_card_upgrade value
- * @property {number} cmd_skill_card_upgrade_rsp=1503 cmd_skill_card_upgrade_rsp value
- * @property {number} cmd_skill_card_upgrade_star=1504 cmd_skill_card_upgrade_star value
- * @property {number} cmd_skill_card_upgrade_star_rsp=1505 cmd_skill_card_upgrade_star_rsp value
- * @property {number} cmd_role_get_data=1600 cmd_role_get_data value
- * @property {number} cmd_role_get_data_rsp=1601 cmd_role_get_data_rsp value
- * @property {number} cmd_role_upgrade=1602 cmd_role_upgrade value
- * @property {number} cmd_role_upgrade_rsp=1603 cmd_role_upgrade_rsp value
- * @property {number} cmd_role_rename=1604 cmd_role_rename value
- * @property {number} cmd_role_rename_rsp=1605 cmd_role_rename_rsp value
- * @property {number} cmd_equip_get_data=1700 cmd_equip_get_data value
- * @property {number} cmd_equip_get_data_rsp=1701 cmd_equip_get_data_rsp value
- * @property {number} cmd_equip_upgrade=1702 cmd_equip_upgrade value
- * @property {number} cmd_equip_upgrade_rsp=1703 cmd_equip_upgrade_rsp value
- * @property {number} cmd_equip_upgrade_star=1704 cmd_equip_upgrade_star value
- * @property {number} cmd_equip_upgrade_star_rsp=1705 cmd_equip_upgrade_star_rsp value
- * @property {number} cmd_equip_onekey_upgrade_star=1706 cmd_equip_onekey_upgrade_star value
- * @property {number} cmd_equip_onekey_upgrade_star_rsp=1707 cmd_equip_onekey_upgrade_star_rsp value
- * @property {number} cmd_equip_reset=1708 cmd_equip_reset value
- * @property {number} cmd_equip_reset_rsp=1709 cmd_equip_reset_rsp value
- * @property {number} cmd_equip_change_nty=1750 cmd_equip_change_nty value
- * @property {number} cmd_debris_get_data=1800 cmd_debris_get_data value
- * @property {number} cmd_debris_get_data_rsp=1801 cmd_debris_get_data_rsp value
- * @property {number} cmd_debris_merge=1802 cmd_debris_merge value
- * @property {number} cmd_debris_merge_rsp=1803 cmd_debris_merge_rsp value
- * @property {number} cmd_talent_get_data=1900 cmd_talent_get_data value
- * @property {number} cmd_talent_get_data_rsp=1901 cmd_talent_get_data_rsp value
- * @property {number} cmd_talent_activate=1902 cmd_talent_activate value
- * @property {number} cmd_talent_activate_rsp=1903 cmd_talent_activate_rsp value
- * @property {number} cmd_sign_in_get_data=2000 cmd_sign_in_get_data value
- * @property {number} cmd_sign_in_get_data_rsp=2001 cmd_sign_in_get_data_rsp value
- * @property {number} cmd_sign_in_award=2002 cmd_sign_in_award value
- * @property {number} cmd_sign_in_award_rsp=2003 cmd_sign_in_award_rsp value
- * @property {number} cmd_sign_in_nty=2004 cmd_sign_in_nty value
- * @property {number} cmd_quest_get_data=2100 cmd_quest_get_data value
- * @property {number} cmd_quest_get_data_rsp=2101 cmd_quest_get_data_rsp value
- * @property {number} cmd_quest_get_award=2102 cmd_quest_get_award value
- * @property {number} cmd_quest_get_award_rsp=2103 cmd_quest_get_award_rsp value
- * @property {number} cmd_quest_active_award=2104 cmd_quest_active_award value
- * @property {number} cmd_quest_active_award_rsp=2105 cmd_quest_active_award_rsp value
- * @property {number} cmd_quest_cmplate_notify=2150 cmd_quest_cmplate_notify value
- * @property {number} cmd_manual_get_data=2200 cmd_manual_get_data value
- * @property {number} cmd_manual_get_data_rsp=2201 cmd_manual_get_data_rsp value
- * @property {number} cmd_manual_buy_exp=2202 cmd_manual_buy_exp value
- * @property {number} cmd_manual_buy_exp_rsp=2203 cmd_manual_buy_exp_rsp value
- * @property {number} cmd_manual_get_award=2204 cmd_manual_get_award value
- * @property {number} cmd_manual_get_award_rsp=2205 cmd_manual_get_award_rsp value
- * @property {number} cmd_manual_buy=2206 cmd_manual_buy value
- * @property {number} cmd_manual_buy_rsp=2207 cmd_manual_buy_rsp value
- * @property {number} cmd_manual_notify=2250 cmd_manual_notify value
- * @property {number} cmd_draw=2300 cmd_draw value
- * @property {number} cmd_draw_rsp=2301 cmd_draw_rsp value
- * @property {number} cmd_draw_get_data=2302 cmd_draw_get_data value
- * @property {number} cmd_draw_get_data_rsp=2303 cmd_draw_get_data_rsp value
- * @property {number} cmd_shop_data=2400 cmd_shop_data value
- * @property {number} cmd_shop_data_rsp=2401 cmd_shop_data_rsp value
- * @property {number} cmd_shop_buy=2402 cmd_shop_buy value
- * @property {number} cmd_shop_buy_rsp=2403 cmd_shop_buy_rsp value
- * @property {number} cmd_shop_notify=2450 cmd_shop_notify value
- * @property {number} cmd_ranking_data=2501 cmd_ranking_data value
- * @property {number} cmd_ranking_data_rsp=2502 cmd_ranking_data_rsp value
- * @property {number} cmd_grocery_data=2601 cmd_grocery_data value
- * @property {number} cmd_grocery_data_rsp=2602 cmd_grocery_data_rsp value
- * @property {number} cmd_grocery_buy=2603 cmd_grocery_buy value
- * @property {number} cmd_grocery_buy_rsp=2604 cmd_grocery_buy_rsp value
- * @property {number} cmd_box_get_award=2605 cmd_box_get_award value
- * @property {number} cmd_box_get_award_rsp=2606 cmd_box_get_award_rsp value
- * @property {number} cmd_altar_data=2701 cmd_altar_data value
- * @property {number} cmd_altar_data_rsp=2702 cmd_altar_data_rsp value
- * @property {number} cmd_altar_battle=2703 cmd_altar_battle value
- * @property {number} cmd_altar_battle_rsp=2704 cmd_altar_battle_rsp value
- * @property {number} cmd_altar_exchange=2705 cmd_altar_exchange value
- * @property {number} cmd_altar_exchange_rsp=2706 cmd_altar_exchange_rsp value
- * @property {number} cmd_altar_exchange_confirm=2707 cmd_altar_exchange_confirm value
- * @property {number} cmd_altar_exchange_confirm_rsp=2708 cmd_altar_exchange_confirm_rsp value
- * @property {number} cmd_altar_buy_battle_space=2709 cmd_altar_buy_battle_space value
- * @property {number} cmd_altar_buy_battle_space_rsp=2710 cmd_altar_buy_battle_space_rsp value
- * @property {number} cmd_altar_reset_cd=2711 cmd_altar_reset_cd value
- * @property {number} cmd_altar_reset_cd_rsp=2712 cmd_altar_reset_cd_rsp value
- * @property {number} cmd_relic_data=2801 cmd_relic_data value
- * @property {number} cmd_relic_data_rsp=2802 cmd_relic_data_rsp value
- * @property {number} cmd_relic_next_pos=2803 cmd_relic_next_pos value
- * @property {number} cmd_relic_next_pos_rsp=2804 cmd_relic_next_pos_rsp value
- * @property {number} cmd_relic_next_layer=2805 cmd_relic_next_layer value
- * @property {number} cmd_relic_next_layer_rsp=2806 cmd_relic_next_layer_rsp value
- * @property {number} cmd_relic_select_buff=2807 cmd_relic_select_buff value
- * @property {number} cmd_relic_select_buff_rsp=2808 cmd_relic_select_buff_rsp value
- * @property {number} cmd_relic_reset=2809 cmd_relic_reset value
- * @property {number} cmd_relic_reset_rsp=2810 cmd_relic_reset_rsp value
- * @property {number} cmd_relic_event_select=2811 cmd_relic_event_select value
- * @property {number} cmd_relic_event_select_rsp=2812 cmd_relic_event_select_rsp value
- * @property {number} cmd_relic_event_nty=2850 cmd_relic_event_nty value
- * @property {number} cmd_relic_data_nty=2851 cmd_relic_data_nty value
- * @property {number} cmd_activity_get_conf_list=2900 cmd_activity_get_conf_list value
- * @property {number} cmd_activity_get_conf_list_rsp=2901 cmd_activity_get_conf_list_rsp value
- * @property {number} cmd_activity_time_list_nty=2950 cmd_activity_time_list_nty value
- * @property {number} cmd_activity_get_conf_nty=2951 cmd_activity_get_conf_nty value
- * @property {number} cmd_privilege_card_data=3000 cmd_privilege_card_data value
- * @property {number} cmd_privilege_card_data_rsp=3001 cmd_privilege_card_data_rsp value
- * @property {number} cmd_privilege_card_buy=3002 cmd_privilege_card_buy value
- * @property {number} cmd_privilege_card_buy_rsp=3003 cmd_privilege_card_buy_rsp value
- * @property {number} cmd_privilege_card_award=3004 cmd_privilege_card_award value
- * @property {number} cmd_privilege_card_award_rsp=3005 cmd_privilege_card_award_rsp value
- * @property {number} cmd_privilege_card_unlock_nty=3050 cmd_privilege_card_unlock_nty value
- * @property {number} cmd_first_recharge_data=3100 cmd_first_recharge_data value
- * @property {number} cmd_first_recharge_data_rsp=3101 cmd_first_recharge_data_rsp value
- * @property {number} cmd_first_recharge_buy=3102 cmd_first_recharge_buy value
- * @property {number} cmd_first_recharge_buy_rsp=3103 cmd_first_recharge_buy_rsp value
- * @property {number} cmd_first_recharge_award=3104 cmd_first_recharge_award value
- * @property {number} cmd_first_recharge_award_rsp=3105 cmd_first_recharge_award_rsp value
- * @property {number} cmd_first_recharge_nty=3150 cmd_first_recharge_nty value
- * @property {number} cmd_daily_dungeons_data=3200 cmd_daily_dungeons_data value
- * @property {number} cmd_daily_dungeons_data_rsp=3201 cmd_daily_dungeons_data_rsp value
- * @property {number} cmd_daily_dungeons_start=3202 cmd_daily_dungeons_start value
- * @property {number} cmd_daily_dungeons_start_rsp=3203 cmd_daily_dungeons_start_rsp value
- * @property {number} cmd_daily_dungeons_end=3204 cmd_daily_dungeons_end value
- * @property {number} cmd_daily_dungeons_end_rsp=3205 cmd_daily_dungeons_end_rsp value
- * @property {number} cmd_daily_dungeons_sweep=3206 cmd_daily_dungeons_sweep value
- * @property {number} cmd_daily_dungeons_sweep_rsp=3207 cmd_daily_dungeons_sweep_rsp value
- * @property {number} cmd_adv_gift_data=3300 cmd_adv_gift_data value
- * @property {number} cmd_adv_gift_data_rsp=3301 cmd_adv_gift_data_rsp value
- * @property {number} cmd_adv_gift_buy=3302 cmd_adv_gift_buy value
- * @property {number} cmd_adv_gift_buy_rsp=3303 cmd_adv_gift_buy_rsp value
- * @property {number} cmd_adv_gift_nty=3350 cmd_adv_gift_nty value
- * @property {number} cmd_pop_gift_data=3400 cmd_pop_gift_data value
- * @property {number} cmd_pop_gift_data_rsp=3401 cmd_pop_gift_data_rsp value
- * @property {number} cmd_pop_gift_buy=3402 cmd_pop_gift_buy value
- * @property {number} cmd_pop_gift_buy_rsp=3403 cmd_pop_gift_buy_rsp value
- * @property {number} cmd_pop_gift_nty=3450 cmd_pop_gift_nty value
- * @property {number} cmd_pop_gift_change_nty=3451 cmd_pop_gift_change_nty value
- * @property {number} cmd_fund_data=3500 cmd_fund_data value
- * @property {number} cmd_fund_data_rsp=3501 cmd_fund_data_rsp value
- * @property {number} cmd_fund_buy=3502 cmd_fund_buy value
- * @property {number} cmd_fund_buy_rsp=3503 cmd_fund_buy_rsp value
- * @property {number} cmd_fund_award=3504 cmd_fund_award value
- * @property {number} cmd_fund_award_rsp=3505 cmd_fund_award_rsp value
- * @property {number} cmd_fund_nty=3550 cmd_fund_nty value
- * @property {number} cmd_keep_recharge_data=3600 cmd_keep_recharge_data value
- * @property {number} cmd_keep_recharge_data_rsp=3601 cmd_keep_recharge_data_rsp value
- * @property {number} cmd_keep_recharge_award=3602 cmd_keep_recharge_award value
- * @property {number} cmd_keep_recharge_award_rsp=3603 cmd_keep_recharge_award_rsp value
- * @property {number} cmd_get_red_point_list=3710 cmd_get_red_point_list value
- * @property {number} cmd_get_red_point_list_rsp=3711 cmd_get_red_point_list_rsp value
- * @property {number} cmd_online_award_get_award=3800 cmd_online_award_get_award value
- * @property {number} cmd_online_award_get_award_rsp=3801 cmd_online_award_get_award_rsp value
- * @property {number} cmd_online_award_get_data=3802 cmd_online_award_get_data value
- * @property {number} cmd_online_award_get_data_rsp=3803 cmd_online_award_get_data_rsp value
- * @property {number} cmd_online_award_nty=3850 cmd_online_award_nty value
- * @property {number} cmd_speed_up_data=3900 cmd_speed_up_data value
- * @property {number} cmd_speed_up_data_rsp=3901 cmd_speed_up_data_rsp value
- * @property {number} cmd_speed_up_buy=3902 cmd_speed_up_buy value
- * @property {number} cmd_speed_up_buy_rsp=3903 cmd_speed_up_buy_rsp value
- * @property {number} cmd_level_gift_data=4000 cmd_level_gift_data value
- * @property {number} cmd_level_gift_data_rsp=4001 cmd_level_gift_data_rsp value
- * @property {number} cmd_level_gift_buy=4002 cmd_level_gift_buy value
- * @property {number} cmd_level_gift_buy_rsp=4003 cmd_level_gift_buy_rsp value
- * @property {number} cmd_level_gift_del_red_point=4004 cmd_level_gift_del_red_point value
- * @property {number} cmd_level_gift_del_red_point_rsp=4005 cmd_level_gift_del_red_point_rsp value
- * @property {number} cmd_level_gift_nty=4050 cmd_level_gift_nty value
- * @property {number} cmd_lottery_data=4100 cmd_lottery_data value
- * @property {number} cmd_lottery_data_rsp=4101 cmd_lottery_data_rsp value
- * @property {number} cmd_lottery_award=4102 cmd_lottery_award value
- * @property {number} cmd_lottery_award_rsp=4103 cmd_lottery_award_rsp value
- * @property {number} cmd_lottery_buy=4104 cmd_lottery_buy value
- * @property {number} cmd_lottery_buy_rsp=4105 cmd_lottery_buy_rsp value
- * @property {number} cmd_lottery_nty=4150 cmd_lottery_nty value
- * @property {number} cmd_act_rank_data=4200 cmd_act_rank_data value
- * @property {number} cmd_act_rank_data_rsp=4201 cmd_act_rank_data_rsp value
- * @property {number} cmd_treasure_get_data=4300 cmd_treasure_get_data value
- * @property {number} cmd_treasure_get_data_rsp=4301 cmd_treasure_get_data_rsp value
- * @property {number} cmd_treasure_draw=4302 cmd_treasure_draw value
- * @property {number} cmd_treasure_draw_rsp=4303 cmd_treasure_draw_rsp value
- * @property {number} cmd_treasure_sign=4304 cmd_treasure_sign value
- * @property {number} cmd_treasure_sign_rsp=4305 cmd_treasure_sign_rsp value
- * @property {number} cmd_treasure_buy=4306 cmd_treasure_buy value
- * @property {number} cmd_treasure_buy_rsp=4307 cmd_treasure_buy_rsp value
- * @property {number} cmd_pvp_data=4400 cmd_pvp_data value
- * @property {number} cmd_pvp_data_rsp=4401 cmd_pvp_data_rsp value
- * @property {number} cmd_pvp_match=4402 cmd_pvp_match value
- * @property {number} cmd_pvp_match_rsp=4403 cmd_pvp_match_rsp value
- * @property {number} cmd_pvp_reslut=4404 cmd_pvp_reslut value
- * @property {number} cmd_pvp_reslut_rsp=4405 cmd_pvp_reslut_rsp value
- * @property {number} cmd_pvp_embattle=4406 cmd_pvp_embattle value
- * @property {number} cmd_pvp_embattle_rsp=4407 cmd_pvp_embattle_rsp value
- * @property {number} cmd_time_box_data=4500 cmd_time_box_data value
- * @property {number} cmd_time_box_data_rsp=4501 cmd_time_box_data_rsp value
- * @property {number} cmd_time_box_unlock=4502 cmd_time_box_unlock value
- * @property {number} cmd_time_box_unlock_rsp=4503 cmd_time_box_unlock_rsp value
- * @property {number} cmd_time_box_get_award=4504 cmd_time_box_get_award value
- * @property {number} cmd_time_box_get_award_rsp=4505 cmd_time_box_get_award_rsp value
- */
- game.msg_cmd = (function() {
- const valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "cmd_ping"] = 0;
- values[valuesById[1] = "cmd_ping_rsp"] = 1;
- values[valuesById[2] = "cmd_login"] = 2;
- values[valuesById[3] = "cmd_login_rsp"] = 3;
- values[valuesById[4] = "cmd_create"] = 4;
- values[valuesById[5] = "cmd_create_rsp"] = 5;
- values[valuesById[6] = "cmd_reward_info"] = 6;
- values[valuesById[7] = "cmd_user"] = 7;
- values[valuesById[8] = "cmd_pay_currency"] = 8;
- values[valuesById[9] = "cmd_pay_debris_nty"] = 9;
- values[valuesById[10] = "cmd_exception_nty"] = 10;
- values[valuesById[11] = "cmd_create_order_nty"] = 11;
- values[valuesById[100] = "cmd_recharge_result"] = 100;
- values[valuesById[101] = "cmd_recharge_result_rsp"] = 101;
- values[valuesById[150] = "cmd_recharge_success"] = 150;
- values[valuesById[1000] = "cmd_city_change"] = 1000;
- values[valuesById[1001] = "cmd_city_data"] = 1001;
- values[valuesById[1002] = "cmd_city_data_rsp"] = 1002;
- values[valuesById[1003] = "cmd_building_upgrade"] = 1003;
- values[valuesById[1004] = "cmd_building_upgrade_rsp"] = 1004;
- values[valuesById[1005] = "cmd_building_one_key"] = 1005;
- values[valuesById[1006] = "cmd_building_one_key_rsp"] = 1006;
- values[valuesById[1007] = "cmd_city_data_send"] = 1007;
- values[valuesById[1010] = "cmd_city_skill_upgrade"] = 1010;
- values[valuesById[1011] = "cmd_city_skill_upgrade_rsp"] = 1011;
- values[valuesById[1012] = "cmd_city_skill_battle"] = 1012;
- values[valuesById[1013] = "cmd_city_skill_battle_rsp"] = 1013;
- values[valuesById[1020] = "cmd_building_explore"] = 1020;
- values[valuesById[1021] = "cmd_building_explore_rsp"] = 1021;
- values[valuesById[1022] = "cmd_building_auto_explore_award"] = 1022;
- values[valuesById[1023] = "cmd_building_auto_explore_award_rsp"] = 1023;
- values[valuesById[1024] = "cmd_building_explore_battle"] = 1024;
- values[valuesById[1025] = "cmd_building_explore_battle_rsp"] = 1025;
- values[valuesById[1026] = "cmd_building_auto_explore_option"] = 1026;
- values[valuesById[1027] = "cmd_building_auto_explore_option_rsp"] = 1027;
- values[valuesById[1100] = "cmd_adventure_data"] = 1100;
- values[valuesById[1101] = "cmd_adventure_data_rsp"] = 1101;
- values[valuesById[1102] = "cmd_adventure_start"] = 1102;
- values[valuesById[1103] = "cmd_adventure_start_rsp"] = 1103;
- values[valuesById[1104] = "cmd_adventure_end"] = 1104;
- values[valuesById[1105] = "cmd_adventure_end_rsp"] = 1105;
- values[valuesById[1106] = "cmd_adventure_layer"] = 1106;
- values[valuesById[1107] = "cmd_adventure_layer_rsp"] = 1107;
- values[valuesById[1108] = "cmd_adventure_sweep"] = 1108;
- values[valuesById[1109] = "cmd_adventure_sweep_rsp"] = 1109;
- values[valuesById[1110] = "cmd_adventure_pass_award"] = 1110;
- values[valuesById[1111] = "cmd_adventure_pass_award_rsp"] = 1111;
- values[valuesById[1112] = "cmd_adventure_ad_award"] = 1112;
- values[valuesById[1113] = "cmd_adventure_ad_award_rsp"] = 1113;
- values[valuesById[1114] = "cmd_adventure_trial"] = 1114;
- values[valuesById[1115] = "cmd_adventure_trial_rsp"] = 1115;
- values[valuesById[1200] = "cmd_get_mail"] = 1200;
- values[valuesById[1201] = "cmd_get_mail_rsp"] = 1201;
- values[valuesById[1202] = "cmd_get_mail_goods"] = 1202;
- values[valuesById[1203] = "cmd_get_mail_goods_rsp"] = 1203;
- values[valuesById[1204] = "cmd_del_mail"] = 1204;
- values[valuesById[1205] = "cmd_del_mail_rsp"] = 1205;
- values[valuesById[1206] = "cmd_flag_mail"] = 1206;
- values[valuesById[1207] = "cmd_flag_mail_rsp"] = 1207;
- values[valuesById[1208] = "cmd_send_mail"] = 1208;
- values[valuesById[1209] = "cmd_simple_mail"] = 1209;
- values[valuesById[1300] = "cmd_embattle_get_data"] = 1300;
- values[valuesById[1301] = "cmd_embattle_get_data_rsp"] = 1301;
- values[valuesById[1302] = "cmd_embattle_battle"] = 1302;
- values[valuesById[1303] = "cmd_embattle_battle_rsp"] = 1303;
- values[valuesById[1400] = "cmd_hero_get_data"] = 1400;
- values[valuesById[1401] = "cmd_hero_get_data_rsp"] = 1401;
- values[valuesById[1402] = "cmd_hero_upgrade"] = 1402;
- values[valuesById[1403] = "cmd_hero_upgrade_rsp"] = 1403;
- values[valuesById[1404] = "cmd_hero_upgrade_star"] = 1404;
- values[valuesById[1405] = "cmd_hero_upgrade_star_rsp"] = 1405;
- values[valuesById[1406] = "cmd_hero_onekey_upgrade_star"] = 1406;
- values[valuesById[1407] = "cmd_hero_onekey_upgrade_star_rsp"] = 1407;
- values[valuesById[1408] = "cmd_hero_reset"] = 1408;
- values[valuesById[1409] = "cmd_hero_reset_rsp"] = 1409;
- values[valuesById[1410] = "cmd_hero_wear_equip"] = 1410;
- values[valuesById[1411] = "cmd_hero_wear_equip_rsp"] = 1411;
- values[valuesById[1450] = "cmd_hero_change_nty"] = 1450;
- values[valuesById[1500] = "cmd_skill_card_get_data"] = 1500;
- values[valuesById[1501] = "cmd_skill_card_get_data_rsp"] = 1501;
- values[valuesById[1502] = "cmd_skill_card_upgrade"] = 1502;
- values[valuesById[1503] = "cmd_skill_card_upgrade_rsp"] = 1503;
- values[valuesById[1504] = "cmd_skill_card_upgrade_star"] = 1504;
- values[valuesById[1505] = "cmd_skill_card_upgrade_star_rsp"] = 1505;
- values[valuesById[1600] = "cmd_role_get_data"] = 1600;
- values[valuesById[1601] = "cmd_role_get_data_rsp"] = 1601;
- values[valuesById[1602] = "cmd_role_upgrade"] = 1602;
- values[valuesById[1603] = "cmd_role_upgrade_rsp"] = 1603;
- values[valuesById[1604] = "cmd_role_rename"] = 1604;
- values[valuesById[1605] = "cmd_role_rename_rsp"] = 1605;
- values[valuesById[1700] = "cmd_equip_get_data"] = 1700;
- values[valuesById[1701] = "cmd_equip_get_data_rsp"] = 1701;
- values[valuesById[1702] = "cmd_equip_upgrade"] = 1702;
- values[valuesById[1703] = "cmd_equip_upgrade_rsp"] = 1703;
- values[valuesById[1704] = "cmd_equip_upgrade_star"] = 1704;
- values[valuesById[1705] = "cmd_equip_upgrade_star_rsp"] = 1705;
- values[valuesById[1706] = "cmd_equip_onekey_upgrade_star"] = 1706;
- values[valuesById[1707] = "cmd_equip_onekey_upgrade_star_rsp"] = 1707;
- values[valuesById[1708] = "cmd_equip_reset"] = 1708;
- values[valuesById[1709] = "cmd_equip_reset_rsp"] = 1709;
- values[valuesById[1750] = "cmd_equip_change_nty"] = 1750;
- values[valuesById[1800] = "cmd_debris_get_data"] = 1800;
- values[valuesById[1801] = "cmd_debris_get_data_rsp"] = 1801;
- values[valuesById[1802] = "cmd_debris_merge"] = 1802;
- values[valuesById[1803] = "cmd_debris_merge_rsp"] = 1803;
- values[valuesById[1900] = "cmd_talent_get_data"] = 1900;
- values[valuesById[1901] = "cmd_talent_get_data_rsp"] = 1901;
- values[valuesById[1902] = "cmd_talent_activate"] = 1902;
- values[valuesById[1903] = "cmd_talent_activate_rsp"] = 1903;
- values[valuesById[2000] = "cmd_sign_in_get_data"] = 2000;
- values[valuesById[2001] = "cmd_sign_in_get_data_rsp"] = 2001;
- values[valuesById[2002] = "cmd_sign_in_award"] = 2002;
- values[valuesById[2003] = "cmd_sign_in_award_rsp"] = 2003;
- values[valuesById[2004] = "cmd_sign_in_nty"] = 2004;
- values[valuesById[2100] = "cmd_quest_get_data"] = 2100;
- values[valuesById[2101] = "cmd_quest_get_data_rsp"] = 2101;
- values[valuesById[2102] = "cmd_quest_get_award"] = 2102;
- values[valuesById[2103] = "cmd_quest_get_award_rsp"] = 2103;
- values[valuesById[2104] = "cmd_quest_active_award"] = 2104;
- values[valuesById[2105] = "cmd_quest_active_award_rsp"] = 2105;
- values[valuesById[2150] = "cmd_quest_cmplate_notify"] = 2150;
- values[valuesById[2200] = "cmd_manual_get_data"] = 2200;
- values[valuesById[2201] = "cmd_manual_get_data_rsp"] = 2201;
- values[valuesById[2202] = "cmd_manual_buy_exp"] = 2202;
- values[valuesById[2203] = "cmd_manual_buy_exp_rsp"] = 2203;
- values[valuesById[2204] = "cmd_manual_get_award"] = 2204;
- values[valuesById[2205] = "cmd_manual_get_award_rsp"] = 2205;
- values[valuesById[2206] = "cmd_manual_buy"] = 2206;
- values[valuesById[2207] = "cmd_manual_buy_rsp"] = 2207;
- values[valuesById[2250] = "cmd_manual_notify"] = 2250;
- values[valuesById[2300] = "cmd_draw"] = 2300;
- values[valuesById[2301] = "cmd_draw_rsp"] = 2301;
- values[valuesById[2302] = "cmd_draw_get_data"] = 2302;
- values[valuesById[2303] = "cmd_draw_get_data_rsp"] = 2303;
- values[valuesById[2400] = "cmd_shop_data"] = 2400;
- values[valuesById[2401] = "cmd_shop_data_rsp"] = 2401;
- values[valuesById[2402] = "cmd_shop_buy"] = 2402;
- values[valuesById[2403] = "cmd_shop_buy_rsp"] = 2403;
- values[valuesById[2450] = "cmd_shop_notify"] = 2450;
- values[valuesById[2501] = "cmd_ranking_data"] = 2501;
- values[valuesById[2502] = "cmd_ranking_data_rsp"] = 2502;
- values[valuesById[2601] = "cmd_grocery_data"] = 2601;
- values[valuesById[2602] = "cmd_grocery_data_rsp"] = 2602;
- values[valuesById[2603] = "cmd_grocery_buy"] = 2603;
- values[valuesById[2604] = "cmd_grocery_buy_rsp"] = 2604;
- values[valuesById[2605] = "cmd_box_get_award"] = 2605;
- values[valuesById[2606] = "cmd_box_get_award_rsp"] = 2606;
- values[valuesById[2701] = "cmd_altar_data"] = 2701;
- values[valuesById[2702] = "cmd_altar_data_rsp"] = 2702;
- values[valuesById[2703] = "cmd_altar_battle"] = 2703;
- values[valuesById[2704] = "cmd_altar_battle_rsp"] = 2704;
- values[valuesById[2705] = "cmd_altar_exchange"] = 2705;
- values[valuesById[2706] = "cmd_altar_exchange_rsp"] = 2706;
- values[valuesById[2707] = "cmd_altar_exchange_confirm"] = 2707;
- values[valuesById[2708] = "cmd_altar_exchange_confirm_rsp"] = 2708;
- values[valuesById[2709] = "cmd_altar_buy_battle_space"] = 2709;
- values[valuesById[2710] = "cmd_altar_buy_battle_space_rsp"] = 2710;
- values[valuesById[2711] = "cmd_altar_reset_cd"] = 2711;
- values[valuesById[2712] = "cmd_altar_reset_cd_rsp"] = 2712;
- values[valuesById[2801] = "cmd_relic_data"] = 2801;
- values[valuesById[2802] = "cmd_relic_data_rsp"] = 2802;
- values[valuesById[2803] = "cmd_relic_next_pos"] = 2803;
- values[valuesById[2804] = "cmd_relic_next_pos_rsp"] = 2804;
- values[valuesById[2805] = "cmd_relic_next_layer"] = 2805;
- values[valuesById[2806] = "cmd_relic_next_layer_rsp"] = 2806;
- values[valuesById[2807] = "cmd_relic_select_buff"] = 2807;
- values[valuesById[2808] = "cmd_relic_select_buff_rsp"] = 2808;
- values[valuesById[2809] = "cmd_relic_reset"] = 2809;
- values[valuesById[2810] = "cmd_relic_reset_rsp"] = 2810;
- values[valuesById[2811] = "cmd_relic_event_select"] = 2811;
- values[valuesById[2812] = "cmd_relic_event_select_rsp"] = 2812;
- values[valuesById[2850] = "cmd_relic_event_nty"] = 2850;
- values[valuesById[2851] = "cmd_relic_data_nty"] = 2851;
- values[valuesById[2900] = "cmd_activity_get_conf_list"] = 2900;
- values[valuesById[2901] = "cmd_activity_get_conf_list_rsp"] = 2901;
- values[valuesById[2950] = "cmd_activity_time_list_nty"] = 2950;
- values[valuesById[2951] = "cmd_activity_get_conf_nty"] = 2951;
- values[valuesById[3000] = "cmd_privilege_card_data"] = 3000;
- values[valuesById[3001] = "cmd_privilege_card_data_rsp"] = 3001;
- values[valuesById[3002] = "cmd_privilege_card_buy"] = 3002;
- values[valuesById[3003] = "cmd_privilege_card_buy_rsp"] = 3003;
- values[valuesById[3004] = "cmd_privilege_card_award"] = 3004;
- values[valuesById[3005] = "cmd_privilege_card_award_rsp"] = 3005;
- values[valuesById[3050] = "cmd_privilege_card_unlock_nty"] = 3050;
- values[valuesById[3100] = "cmd_first_recharge_data"] = 3100;
- values[valuesById[3101] = "cmd_first_recharge_data_rsp"] = 3101;
- values[valuesById[3102] = "cmd_first_recharge_buy"] = 3102;
- values[valuesById[3103] = "cmd_first_recharge_buy_rsp"] = 3103;
- values[valuesById[3104] = "cmd_first_recharge_award"] = 3104;
- values[valuesById[3105] = "cmd_first_recharge_award_rsp"] = 3105;
- values[valuesById[3150] = "cmd_first_recharge_nty"] = 3150;
- values[valuesById[3200] = "cmd_daily_dungeons_data"] = 3200;
- values[valuesById[3201] = "cmd_daily_dungeons_data_rsp"] = 3201;
- values[valuesById[3202] = "cmd_daily_dungeons_start"] = 3202;
- values[valuesById[3203] = "cmd_daily_dungeons_start_rsp"] = 3203;
- values[valuesById[3204] = "cmd_daily_dungeons_end"] = 3204;
- values[valuesById[3205] = "cmd_daily_dungeons_end_rsp"] = 3205;
- values[valuesById[3206] = "cmd_daily_dungeons_sweep"] = 3206;
- values[valuesById[3207] = "cmd_daily_dungeons_sweep_rsp"] = 3207;
- values[valuesById[3300] = "cmd_adv_gift_data"] = 3300;
- values[valuesById[3301] = "cmd_adv_gift_data_rsp"] = 3301;
- values[valuesById[3302] = "cmd_adv_gift_buy"] = 3302;
- values[valuesById[3303] = "cmd_adv_gift_buy_rsp"] = 3303;
- values[valuesById[3350] = "cmd_adv_gift_nty"] = 3350;
- values[valuesById[3400] = "cmd_pop_gift_data"] = 3400;
- values[valuesById[3401] = "cmd_pop_gift_data_rsp"] = 3401;
- values[valuesById[3402] = "cmd_pop_gift_buy"] = 3402;
- values[valuesById[3403] = "cmd_pop_gift_buy_rsp"] = 3403;
- values[valuesById[3450] = "cmd_pop_gift_nty"] = 3450;
- values[valuesById[3451] = "cmd_pop_gift_change_nty"] = 3451;
- values[valuesById[3500] = "cmd_fund_data"] = 3500;
- values[valuesById[3501] = "cmd_fund_data_rsp"] = 3501;
- values[valuesById[3502] = "cmd_fund_buy"] = 3502;
- values[valuesById[3503] = "cmd_fund_buy_rsp"] = 3503;
- values[valuesById[3504] = "cmd_fund_award"] = 3504;
- values[valuesById[3505] = "cmd_fund_award_rsp"] = 3505;
- values[valuesById[3550] = "cmd_fund_nty"] = 3550;
- values[valuesById[3600] = "cmd_keep_recharge_data"] = 3600;
- values[valuesById[3601] = "cmd_keep_recharge_data_rsp"] = 3601;
- values[valuesById[3602] = "cmd_keep_recharge_award"] = 3602;
- values[valuesById[3603] = "cmd_keep_recharge_award_rsp"] = 3603;
- values[valuesById[3710] = "cmd_get_red_point_list"] = 3710;
- values[valuesById[3711] = "cmd_get_red_point_list_rsp"] = 3711;
- values[valuesById[3800] = "cmd_online_award_get_award"] = 3800;
- values[valuesById[3801] = "cmd_online_award_get_award_rsp"] = 3801;
- values[valuesById[3802] = "cmd_online_award_get_data"] = 3802;
- values[valuesById[3803] = "cmd_online_award_get_data_rsp"] = 3803;
- values[valuesById[3850] = "cmd_online_award_nty"] = 3850;
- values[valuesById[3900] = "cmd_speed_up_data"] = 3900;
- values[valuesById[3901] = "cmd_speed_up_data_rsp"] = 3901;
- values[valuesById[3902] = "cmd_speed_up_buy"] = 3902;
- values[valuesById[3903] = "cmd_speed_up_buy_rsp"] = 3903;
- values[valuesById[4000] = "cmd_level_gift_data"] = 4000;
- values[valuesById[4001] = "cmd_level_gift_data_rsp"] = 4001;
- values[valuesById[4002] = "cmd_level_gift_buy"] = 4002;
- values[valuesById[4003] = "cmd_level_gift_buy_rsp"] = 4003;
- values[valuesById[4004] = "cmd_level_gift_del_red_point"] = 4004;
- values[valuesById[4005] = "cmd_level_gift_del_red_point_rsp"] = 4005;
- values[valuesById[4050] = "cmd_level_gift_nty"] = 4050;
- values[valuesById[4100] = "cmd_lottery_data"] = 4100;
- values[valuesById[4101] = "cmd_lottery_data_rsp"] = 4101;
- values[valuesById[4102] = "cmd_lottery_award"] = 4102;
- values[valuesById[4103] = "cmd_lottery_award_rsp"] = 4103;
- values[valuesById[4104] = "cmd_lottery_buy"] = 4104;
- values[valuesById[4105] = "cmd_lottery_buy_rsp"] = 4105;
- values[valuesById[4150] = "cmd_lottery_nty"] = 4150;
- values[valuesById[4200] = "cmd_act_rank_data"] = 4200;
- values[valuesById[4201] = "cmd_act_rank_data_rsp"] = 4201;
- values[valuesById[4300] = "cmd_treasure_get_data"] = 4300;
- values[valuesById[4301] = "cmd_treasure_get_data_rsp"] = 4301;
- values[valuesById[4302] = "cmd_treasure_draw"] = 4302;
- values[valuesById[4303] = "cmd_treasure_draw_rsp"] = 4303;
- values[valuesById[4304] = "cmd_treasure_sign"] = 4304;
- values[valuesById[4305] = "cmd_treasure_sign_rsp"] = 4305;
- values[valuesById[4306] = "cmd_treasure_buy"] = 4306;
- values[valuesById[4307] = "cmd_treasure_buy_rsp"] = 4307;
- values[valuesById[4400] = "cmd_pvp_data"] = 4400;
- values[valuesById[4401] = "cmd_pvp_data_rsp"] = 4401;
- values[valuesById[4402] = "cmd_pvp_match"] = 4402;
- values[valuesById[4403] = "cmd_pvp_match_rsp"] = 4403;
- values[valuesById[4404] = "cmd_pvp_reslut"] = 4404;
- values[valuesById[4405] = "cmd_pvp_reslut_rsp"] = 4405;
- values[valuesById[4406] = "cmd_pvp_embattle"] = 4406;
- values[valuesById[4407] = "cmd_pvp_embattle_rsp"] = 4407;
- values[valuesById[4500] = "cmd_time_box_data"] = 4500;
- values[valuesById[4501] = "cmd_time_box_data_rsp"] = 4501;
- values[valuesById[4502] = "cmd_time_box_unlock"] = 4502;
- values[valuesById[4503] = "cmd_time_box_unlock_rsp"] = 4503;
- values[valuesById[4504] = "cmd_time_box_get_award"] = 4504;
- values[valuesById[4505] = "cmd_time_box_get_award_rsp"] = 4505;
- return values;
- })();
- return game;
- })();
- export { $root as default };
|