1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045 |
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
- // versions:
- // protoc-gen-ts_proto v1.180.0
- // protoc v5.26.0
- // source: game.proto
- /* eslint-disable */
- import {
- activityConfInfo,
- activityTimeInfo,
- altarInfo,
- building,
- card,
- dailyDungeonsInfo,
- drawAwardInfo,
- drawInfo,
- embattleInfo,
- equip,
- groceryInfo,
- hero,
- idNum,
- mail,
- manual,
- popGiftInfo,
- privilegeCardInfo,
- quest,
- rankingInfo,
- redPointInfo,
- reward,
- shopInfo,
- sidPos,
- talentInfo,
- timeBox,
- } from "./typedef";
- export const protobufPackage = "game";
- /** 心跳 */
- export interface ping {
- }
- /** 心跳响应 */
- export interface pingRsp {
- /** 时间 */
- time: number;
- }
- /** 登录请求 */
- export interface login {
- /** 服务器id */
- sid: number;
- /** 玩家账号(渠道分配) */
- account: string;
- /** 玩家渠道( 目前填"xiaohei") */
- channel: string;
- /** sdk参数token */
- token: string;
- /** sdk参数 */
- extension: string;
- }
- /** 登录相应 */
- export interface loginRsp {
- /** 错误码 */
- errno: number;
- }
- /** 创角请求 */
- export interface create {
- /** 玩家姓名 */
- nickname: string;
- }
- /** 创角响应 */
- export interface createRsp {
- /** 错误码 */
- errno: number;
- }
- /** 玩家信息 */
- export interface user {
- /** 玩家唯一id */
- uid: string;
- /** 玩家名字 */
- nickname: string;
- /** 等级 */
- level: number;
- /** 经验 */
- exp: number;
- /** 头像 */
- avatar: number;
- /** 服务器当前时间 */
- svrtime: number;
- /** 重置姓名的时间 */
- renameTime: number;
- /** 创角时间 */
- createtime: number;
- /** 区服id */
- sid: number;
- /** 是否首次登录 */
- bfirst: boolean;
- /** 货币数组 */
- currency: idNum[];
- }
- /** 获得奖励消息 */
- export interface rewardInfo {
- /** 特殊标记 */
- flags: string;
- /** 得到的奖励 */
- added: reward | undefined;
- }
- /** 城镇变化 */
- export interface cityChange {
- /** 变化的数据 */
- currency:
- | idNum
- | undefined;
- /** 下次改变时间 */
- time: number;
- }
- /** 货币支付消息 */
- export interface payCurrency {
- /** 当前的货币数量(支付后的) */
- now: idNum[];
- /** 支付的货币数量 */
- pay: idNum[];
- }
- /** 碎片支付消息 */
- export interface payDebrisNty {
- /** 碎片支付 */
- list: idNum[];
- }
- /** 异常抛出 */
- export interface exceptionNty {
- /** 错误码 */
- errno: number;
- }
- /** 创建订单 */
- export interface createOrderNty {
- /** 订单id */
- id: string;
- /** 计费点id */
- cfid: number;
- /** 订单签名 */
- sign: string;
- /** 时间 */
- time: number;
- }
- /** 主城数据请求 */
- export interface cityData {
- }
- /** 主城数据响应 */
- export interface cityDataRsp {
- /** 错误码 */
- errno: number;
- /** 累计时间 */
- time: number;
- /** 建筑数据 */
- list: building[];
- /** 主城技能列表 */
- skillList: number[];
- /** 主城技能id */
- skillid: number;
- }
- /** 主城数据推送 */
- export interface cityDataSend {
- /** 累计时间 */
- time: number;
- /** 建筑数据 */
- list: building[];
- }
- /** 建筑升级请求 */
- export interface buildingUpgrade {
- /** 主城id */
- id: number;
- }
- /** 建筑升级响应 */
- export interface buildingUpgradeRsp {
- /** 错误码 */
- errno: number;
- /** 建筑数据 */
- data: building | undefined;
- }
- /** 建筑一键收获 */
- export interface buildingOneKey {
- }
- /** 建筑一键收获 */
- export interface buildingOneKeyRsp {
- /** 错误码 */
- errno: number;
- /** 建筑数据 */
- list: building[];
- }
- /** 闯关数据 */
- export interface adventureData {
- }
- /** 闯关数据 */
- export interface adventureDataRsp {
- /** 错误码 */
- errno: number;
- /** 简单关卡 */
- id1: number;
- /** 通关奖励 */
- award1: number[];
- /** 困难关卡 */
- id2: number;
- /** 通关奖励 */
- award2: number[];
- /** 当前冒险关卡类型 */
- type: number;
- /** 当前波次信息 */
- layer: number;
- /** 当前费用 */
- cost: number;
- }
- /** 闯关开始 */
- export interface adventureStart {
- /** 闯关请求 */
- id: number;
- /** 冒险关卡类型 */
- type: number;
- }
- /** 闯关开始 */
- export interface adventureStartRsp {
- /** 错误码 */
- errno: number;
- /** 是否开启试玩 */
- btrial: boolean;
- /** 试玩id */
- trialId: number;
- /** 试玩次数 */
- trialNum: number;
- }
- /** 闯关结束 */
- export interface adventureEnd {
- /** 是否胜利 */
- win: boolean;
- /** 杀怪数量 */
- monsterNum: number;
- /** 杀boss数量 */
- bossNum: number;
- /** 杀精英数量 */
- eliteNum: number;
- }
- /** 闯关结束 */
- export interface adventureEndRsp {
- /** 错误码 */
- errno: number;
- }
- /** 开始波次 */
- export interface adventureLayer {
- /** 波次 */
- layer: number;
- /** 费用 */
- cost: number;
- /** 杀怪数量 */
- monsterNum: number;
- /** 杀boss数量 */
- bossNum: number;
- /** 杀精英数量 */
- eliteNum: number;
- }
- /** 开始波次 */
- export interface adventureLayerRsp {
- /** 错误码 */
- errno: number;
- }
- /** 扫荡 */
- export interface adventureSweep {
- /** 关卡id */
- id: number;
- /** 冒险关卡类型 */
- type: number;
- }
- /** 扫荡 */
- export interface adventureSweepRsp {
- /** 错误码 */
- errno: number;
- }
- /** 领取通关奖励 */
- export interface adventurePassAward {
- /** 关卡id */
- id: number;
- /** 冒险关卡类型 */
- type: number;
- }
- /** 领取通关奖励 */
- export interface adventurePassAwardRsp {
- /** 错误码 */
- errno: number;
- /** 关卡id */
- id: number;
- /** 冒险关卡类型 */
- type: number;
- }
- /** 冒险广告奖励 */
- export interface adventureAdAward {
- }
- /** 冒险广告奖励 */
- export interface adventureAdAwardRsp {
- /** 错误码 */
- errno: number;
- }
- /** 冒险试用英雄 */
- export interface adventureTrial {
- }
- /** 冒险试用英雄 */
- export interface adventureTrialRsp {
- /** 错误码 */
- errno: number;
- }
- /** 获取邮件数据 */
- export interface getMail {
- }
- /** 获取邮件数据 */
- export interface getMailRsp {
- /** 错误码 */
- errno: number;
- /** 邮件数据 */
- list: mail[];
- }
- /** 获取邮件奖励 */
- export interface getMailGoods {
- /** 需要取出的id */
- list: string[];
- /** 是否一键领取 */
- bonekey: boolean;
- }
- /** 获取邮件奖励 */
- export interface getMailGoodsRsp {
- /** 错误码 */
- errno: number;
- /** 取出的id */
- list: string[];
- }
- /** 删除邮件 */
- export interface delMail {
- /** 需要删除的id */
- list: string[];
- }
- /** 删除邮件 */
- export interface delMailRsp {
- /** 错误码 */
- errno: number;
- /** 删除的id */
- list: string[];
- }
- /** 标记为已读 */
- export interface flagMail {
- /** 需要标记的id */
- list: string[];
- }
- /** 标记为已读 */
- export interface flagMailRsp {
- /** 错误码 */
- errno: number;
- }
- /** 发送邮件sc */
- export interface sendMail {
- /** 邮件数据 */
- list: mail[];
- }
- /** 简单的邮件数据 */
- export interface simpleMail {
- /** 邮件的数量 */
- num: number;
- /** 未读邮件数量 */
- noread: number;
- /** 有奖励的邮件(可能已经读过但没领取奖励) */
- needread: number;
- }
- /** 上阵数据 */
- export interface embattleGetData {
- }
- /** 上阵数据 */
- export interface embattleGetDataRsp {
- /** 错误码 */
- errno: number;
- /** 角色位置信息 */
- list: sidPos[];
- /** 卡牌位置信息 */
- cardList: sidPos[];
- }
- /** 角色上阵 */
- export interface embattleBattle {
- /** ture 是技能 */
- skill: boolean;
- /** 角色唯一id(为空时,检查下阵逻辑) */
- sid: string;
- /** 从1开始 */
- pos: number;
- }
- /** 角色上阵 */
- export interface embattleBattleRsp {
- /** 错误码 */
- errno: number;
- /** 角色位置信息 */
- list: sidPos[];
- /** 卡牌位置信息 */
- cardList: sidPos[];
- }
- /** 角色背包数据 */
- export interface heroGetData {
- }
- /** 角色背包数据 */
- export interface heroGetDataRsp {
- /** 错误码 */
- errno: number;
- /** 角色数据 */
- list: hero[];
- }
- /** 角色升级 */
- export interface heroUpgrade {
- /** 角色唯一id */
- sid: string;
- /** 升几级 */
- num: number;
- }
- /** 角色升级 */
- export interface heroUpgradeRsp {
- /** 错误码 */
- errno: number;
- /** 角色数据 */
- data: hero | undefined;
- }
- /** 角色突破 */
- export interface heroUpgradeStar {
- /** 角色唯一id */
- sid: string;
- /** 同名卡唯一id */
- same: string[];
- /** 非同名卡唯一id */
- other: string[];
- /** 替代品货币 */
- currency: idNum | undefined;
- }
- /** 角色突破 */
- export interface heroUpgradeStarRsp {
- /** 错误码 */
- errno: number;
- /** 角色数据 */
- data:
- | hero
- | undefined;
- /** 同名卡唯一id */
- same: string[];
- /** 非同名卡唯一id */
- other: string[];
- /** 替代品货币 */
- currency: idNum | undefined;
- }
- /** 一键突破 */
- export interface heroOnekeyUpgradeStar {
- }
- /** 一键突破 */
- export interface heroOnekeyUpgradeStarRsp {
- /** 错误码 */
- errno: number;
- /** 删除的角色 */
- delList: string[];
- /** 变化的角色 */
- changeList: hero[];
- }
- /** 角色重置 */
- export interface heroReset {
- /** 是否重置等级 */
- level: boolean;
- /** 重置角色唯一id */
- sid: string;
- }
- /** 角色重置 */
- export interface heroResetRsp {
- /** 错误码 */
- errno: number;
- /** 角色数据 */
- data: hero | undefined;
- }
- /** 角色穿戴 */
- export interface heroWearEquip {
- /** 角色sid */
- sid: string;
- /** 装备信息 */
- list: string[];
- }
- /** 角色穿戴 */
- export interface heroWearEquipRsp {
- /** 错误码 */
- errno: number;
- /** 装备信息 */
- list: string[];
- /** 角色数据 */
- data: hero | undefined;
- }
- /** 角色穿戴 */
- export interface heroChangeNty {
- /** 英雄信息 */
- list: hero[];
- }
- /** 技能卡牌数据 */
- export interface skillCardGetData {
- }
- /** 技能卡牌数据 */
- export interface skillCardGetDataRsp {
- /** 错误码 */
- errno: number;
- /** 技能卡牌数据 */
- list: card[];
- }
- /** 技能卡牌升级 */
- export interface skillCardUpgrade {
- /** 技能卡牌唯一id */
- sid: string;
- /** 升几级 */
- num: number;
- }
- /** 技能卡牌升级 */
- export interface skillCardUpgradeRsp {
- /** 错误码 */
- errno: number;
- /** 技能卡牌数据 */
- data: card | undefined;
- }
- /** 技能卡牌突破 */
- export interface skillCardUpgradeStar {
- /** 技能卡牌唯一id */
- sid: string;
- }
- /** 技能卡牌突破 */
- export interface skillCardUpgradeStarRsp {
- /** 错误码 */
- errno: number;
- /** 技能卡牌数据 */
- data: card | undefined;
- }
- /** 队伍数据 */
- export interface roleGetData {
- }
- /** 队伍数据 */
- export interface roleGetDataRsp {
- /** 错误码 */
- errno: number;
- /** 等级 */
- level: number;
- /** 经验 */
- exp: number;
- }
- /** 队伍等级提升 */
- export interface roleUpgrade {
- }
- /** 队伍等级提升 */
- export interface roleUpgradeRsp {
- /** 错误码 */
- errno: number;
- /** 等级 */
- level: number;
- /** 经验 */
- exp: number;
- }
- /** 改名 */
- export interface roleRename {
- /** 名字 */
- name: string;
- }
- /** 改名 */
- export interface roleRenameRsp {
- /** 错误码 */
- errno: number;
- /** 名字 */
- name: string;
- /** 重置姓名的时间 */
- time: number;
- }
- /** 碎片背包数据 */
- export interface debrisGetData {
- }
- /** 碎片背包数据 */
- export interface debrisGetDataRsp {
- /** 错误码 */
- errno: number;
- /** 数据 */
- list: idNum[];
- }
- /** 碎片合成 */
- export interface debrisMerge {
- /** 碎片id */
- id: number;
- }
- /** 碎片合成 */
- export interface debrisMergeRsp {
- /** 错误码 */
- errno: number;
- }
- /** 装备背包数据 */
- export interface equipGetData {
- }
- /** 装备背包数据 */
- export interface equipGetDataRsp {
- /** 错误码 */
- errno: number;
- /** 装备数据 */
- list: equip[];
- }
- /** 装备升级 */
- export interface equipUpgrade {
- /** 装备唯一id */
- sid: string;
- /** 升几级 */
- num: number;
- }
- /** 装备升级 */
- export interface equipUpgradeRsp {
- /** 错误码 */
- errno: number;
- /** 装备数据 */
- data: equip | undefined;
- }
- /** 装备突破 */
- export interface equipUpgradeStar {
- /** 装备唯一id */
- sid: string;
- /** 同名卡唯一id */
- same: string[];
- /** 非同名卡唯一id */
- other: string[];
- /** 替代品货币 */
- currency: idNum | undefined;
- }
- /** 装备突破 */
- export interface equipUpgradeStarRsp {
- /** 错误码 */
- errno: number;
- /** 装备数据 */
- data:
- | equip
- | undefined;
- /** 同名卡唯一id */
- same: string[];
- /** 非同名卡唯一id */
- other: string[];
- /** 替代品货币 */
- currency: idNum | undefined;
- }
- /** 一键突破 */
- export interface equipOnekeyUpgradeStar {
- }
- /** 一键突破 */
- export interface equipOnekeyUpgradeStarRsp {
- /** 错误码 */
- errno: number;
- /** 删除的装备 */
- delList: string[];
- /** 变化的装备 */
- changeList: equip[];
- }
- /** 装备重置 */
- export interface equipReset {
- /** 是否重置等级 */
- level: boolean;
- /** 重置装备唯一id */
- sid: string;
- }
- /** 装备重置 */
- export interface equipResetRsp {
- /** 错误码 */
- errno: number;
- /** 装备数据 */
- data: equip | undefined;
- }
- /** 装备重置 */
- export interface equipChangeNty {
- /** 英雄信息 */
- list: equip[];
- }
- /** 天赋数据 */
- export interface talentGetData {
- }
- /** 天赋数据 */
- export interface talentGetDataRsp {
- /** 错误码 */
- errno: number;
- /** 天赋1 */
- id1: number;
- /** 天赋2 */
- id2: number;
- }
- /** 天赋激活 */
- export interface talentActivate {
- /** 激活id */
- id: number;
- }
- /** 天赋激活 */
- export interface talentActivateRsp {
- /** 错误码 */
- errno: number;
- /** 激活id */
- id: number;
- }
- /** 签到数据 */
- export interface signInGetData {
- }
- /** 签到数据 */
- export interface signInGetDataRsp {
- /** 错误码 */
- errno: number;
- }
- /** 签到奖励 */
- export interface signInAward {
- /** 第几天 */
- day: number;
- }
- /** 签到奖励 */
- export interface signInAwardRsp {
- /** 错误码 */
- errno: number;
- /** 第几天 */
- day: number;
- /** 领奖数据 */
- award: number;
- }
- /** 新一轮签到数据 */
- export interface signInNty {
- /** 是否开启 */
- open: boolean;
- /** 第几天 */
- day: number;
- /** 领奖数据 */
- award: number;
- /** 当前轮次 */
- round: number;
- }
- /** 任务数据 */
- export interface questGetData {
- }
- /** 任务数据 */
- export interface questGetDataRsp {
- /** 错误码 */
- errno: number;
- /** 日常刷新时等级 */
- dlv: number;
- /** 周常刷新时等级 */
- wlv: number;
- /** 日常活跃领取 */
- daward: number;
- /** 周常活跃领取 */
- waward: number;
- /** 日常任务 */
- daily: quest[];
- /** 周常任务 */
- weekly: quest[];
- /** 成就任务 */
- achievement: quest[];
- /** 主线任务 */
- mainQuest: quest | undefined;
- }
- /** 领取任务奖励 */
- export interface questGetAward {
- /** 任务id */
- id: number;
- }
- /** 领取任务奖励 */
- export interface questGetAwardRsp {
- /** 错误码 */
- errno: number;
- /** 任务id */
- id: number;
- /** 任务数据变化(成就任务这里会变为下个成就任务) */
- data: quest | undefined;
- }
- /** 领取活跃奖励 */
- export interface questActiveAward {
- /** 1日常任务 2周常任务 */
- type: number;
- }
- /** 领取活跃奖励 */
- export interface questActiveAwardRsp {
- /** 错误码 */
- errno: number;
- /** 1日常任务 2周常任务 */
- type: number;
- /** 已领取的活跃奖励 */
- award: number;
- }
- /** 任务 */
- export interface questCmplateNotify {
- /** 任务数据变化(成就任务这里会变为下个成就任务) */
- data: quest | undefined;
- }
- /** 战令数据 */
- export interface manualGetData {
- /** 模块id */
- moduleid: number;
- }
- /** 战令数据 */
- export interface manualGetDataRsp {
- /** 错误码 */
- errno: number;
- /** 是否开启 */
- open: boolean;
- /** 开启时间 */
- openTime: number;
- /** 等级 */
- level: number;
- /** 经验 */
- exp: number;
- /** 轮次 */
- round: number;
- /** 战令数据 */
- list: manual[];
- /** 模块id */
- moduleid: number;
- }
- /** 战令购买经验 */
- export interface manualBuyExp {
- /** 模块id */
- moduleid: number;
- }
- /** 战令购买经验 */
- export interface manualBuyExpRsp {
- /** 错误码 */
- errno: number;
- /** 等级 */
- level: number;
- /** 经验 */
- exp: number;
- /** 模块id */
- moduleid: number;
- }
- /** 战令领取奖励 */
- export interface manualGetAward {
- /** 模块id */
- moduleid: number;
- }
- /** 战令领取奖励 */
- export interface manualGetAwardRsp {
- /** 错误码 */
- errno: number;
- /** 已领取的奖励 */
- award: number;
- /** 模块id */
- moduleid: number;
- }
- /** 战令通知 */
- export interface manualNotify {
- /** 是否开启 */
- open: boolean;
- /** 开启时间 */
- openTime: number;
- /** 等级 */
- level: number;
- /** 经验 */
- exp: number;
- /** 轮次 */
- round: number;
- /** 战令数据 */
- list: manual[];
- /** 模块id */
- moduleid: number;
- }
- /** 购买战令 */
- export interface manualBuy {
- /** 礼包id */
- giftid: number;
- /** 模块id */
- moduleid: number;
- }
- /** 购买战令 */
- export interface manualBuyRsp {
- /** 错误码 */
- errno: number;
- /** 模块id */
- moduleid: number;
- }
- /** 抽奖 */
- export interface draw {
- /** 抽奖类型 1高级英雄 2普通英雄 3装备 */
- drawType: number;
- /** 抽奖付费方式 1免费 2召唤卷 3其它货币 */
- payType: number;
- /** 数量 */
- num: number;
- }
- /** 抽奖 */
- export interface drawRsp {
- /** 错误码 */
- errno: number;
- /** 抽奖类型 */
- drawType: number;
- /** 每天抽奖次数 */
- daily: number;
- /** 已免费次数 */
- free: number;
- /** 剩余多少次出特殊奖励列表 */
- list: number[];
- /** 抽奖数据 */
- awardList: drawAwardInfo[];
- }
- /** 抽奖数据 */
- export interface drawGetData {
- }
- /** 抽奖数据 */
- export interface drawGetDataRsp {
- /** 错误码 */
- errno: number;
- /** 高级英雄抽奖数据 */
- hero:
- | drawInfo
- | undefined;
- /** 普通英雄抽奖数据 */
- hero2:
- | drawInfo
- | undefined;
- /** 装备锻造数据 */
- equip: drawInfo | undefined;
- }
- /** 商店数据 */
- export interface shopData {
- }
- /** 商店数据 */
- export interface shopDataRsp {
- /** 错误码 */
- errno: number;
- /** 商店数据 */
- list: shopInfo[];
- }
- /** 商店购买 */
- export interface shopBuy {
- /** 商店类型 */
- type: number;
- /** 商品id */
- id: number;
- /** 商品数量 */
- num: number;
- }
- /** 商店购买 */
- export interface shopBuyRsp {
- /** 错误码 */
- errno: number;
- }
- /** 商店购买 */
- export interface shopNotify {
- /** 商店类型 */
- type: number;
- /** 商品id */
- id: number;
- /** 已购买数量 */
- num: number;
- }
- /** 排行榜数据 */
- export interface rankingData {
- /** 排行类型 1冒险排行 2战力排行 */
- type: number;
- }
- /** 排行榜数据 */
- export interface rankingDataRsp {
- /** 错误码 */
- errno: number;
- /** 排行类型 1冒险排行 2战力排行 */
- type: number;
- /** 排行数据 */
- list: rankingInfo[];
- /** 自己的数据(没有就是未上榜) */
- myslef: rankingInfo | undefined;
- }
- /** 杂货店数据 */
- export interface groceryData {
- /** 1体力购买 2金币购买 */
- type: number;
- }
- /** 杂货店数据 */
- export interface groceryDataRsp {
- /** 错误码 */
- errno: number;
- /** 杂货店数据 */
- data: groceryInfo | undefined;
- }
- /** 杂货店购买 */
- export interface groceryBuy {
- /** 1体力购买 2金币购买 */
- type: number;
- /** 免费还是付费 */
- free: boolean;
- }
- /** 杂货店购买 */
- export interface groceryBuyRsp {
- /** 错误码 */
- errno: number;
- /** 杂货店数据 */
- data: groceryInfo | undefined;
- }
- /** 祭坛数据 */
- export interface altarData {
- }
- /** 祭坛数据 */
- export interface altarDataRsp {
- /** 错误码 */
- errno: number;
- /** 前5英雄id */
- baseList: string[];
- /** 上阵英雄数据 */
- list: altarInfo[];
- /** 购买的格子数量 */
- buyNum: number;
- /** 可免费置换次数 */
- equipFree: number;
- /** 可免费置换次数 */
- heroFree: number;
- }
- /** 祭坛上阵 */
- export interface altarBattle {
- /** 上阵位置 */
- pos: number;
- /** 上阵英雄唯一id */
- sid: string;
- }
- /** 祭坛上阵 */
- export interface altarBattleRsp {
- /** 错误码 */
- errno: number;
- /** 上阵位置 */
- pos: number;
- /** 上阵位置信息 */
- data: altarInfo | undefined;
- }
- /** 祭坛置换 */
- export interface altarExchange {
- /** 1英雄置换 2装备置换 */
- type: number;
- /** 唯一id */
- sid: string;
- }
- /** 祭坛置换 */
- export interface altarExchangeRsp {
- /** 错误码 */
- errno: number;
- /** 1英雄置换 2装备置换 */
- type: number;
- /** 唯一id */
- sid: string;
- /** 置换后的模板id */
- id: number;
- }
- /** 祭坛置换确认 */
- export interface altarExchangeConfirm {
- /** 1英雄置换 2装备置换 */
- type: number;
- /** 唯一id */
- sid: string;
- /** 是否置换 */
- change: boolean;
- }
- /** 祭坛置换确认 */
- export interface altarExchangeConfirmRsp {
- /** 错误码 */
- errno: number;
- }
- /** 祭坛购买上阵位 */
- export interface altarBuyBattleSpace {
- }
- /** 祭坛购买上阵位 */
- export interface altarBuyBattleSpaceRsp {
- /** 错误码 */
- errno: number;
- /** 上阵位置 */
- pos: number;
- /** 上阵位置信息 */
- data: altarInfo | undefined;
- }
- /** 祭坛重置上阵位时间 */
- export interface altarResetCd {
- /** 上阵位置 */
- pos: number;
- }
- /** 祭坛重置上阵位时间 */
- export interface altarResetCdRsp {
- /** 错误码 */
- errno: number;
- /** 上阵位置 */
- pos: number;
- /** 上阵位置信息 */
- data: altarInfo | undefined;
- }
- /** 遗迹数据 */
- export interface relicData {
- }
- /** 遗迹数据 */
- export interface relicDataRsp {
- /** 错误码 */
- errno: number;
- }
- /** 遗迹前往下个位置 */
- export interface relicNextPos {
- pos: number;
- }
- /** 遗迹前往下个位置 */
- export interface relicNextPosRsp {
- /** 错误码 */
- errno: number;
- }
- /** 遗迹前往下一层 */
- export interface relicNextLayer {
- }
- /** 遗迹前往下一层 */
- export interface relicNextLayerRsp {
- /** 错误码 */
- errno: number;
- }
- /** 遗迹选择buff */
- export interface relicSelectBuff {
- }
- /** 遗迹选择buff */
- export interface relicSelectBuffRsp {
- /** 错误码 */
- errno: number;
- }
- /** 遗迹重置 */
- export interface relicReset {
- difficulty: number;
- }
- /** 遗迹重置 */
- export interface relicResetRsp {
- /** 错误码 */
- errno: number;
- }
- /** 遗迹事件选择 */
- export interface relicEventSelect {
- /** 事件类型 2战斗 3温泉 4buff选择 */
- type: number;
- /** 战斗是否胜利 */
- win: boolean;
- /** 战斗消耗费用 */
- cost: number;
- /** 选择 */
- select: number;
- }
- /** 遗迹事件选择 */
- export interface relicEventSelectRsp {
- /** 错误码 */
- errno: number;
- }
- /** 遗迹数据推送 */
- export interface relicDataNty {
- /** 历史最高难度 */
- maxDiff: number;
- /** 当前难度 */
- curDiff: number;
- /** 已选buff */
- buffList: number[];
- /** 所在层级 */
- layer: number;
- /** 当前位置 */
- pos: number;
- /** 当前状态 */
- cost: number;
- /** 状态 0 结束 1选择buff */
- state: number;
- /** 可重置的时间 */
- resetTime: number;
- /** 历史路径 */
- posList: number[];
- /** 驻军关卡关卡id */
- battleInfo: number[];
- /** 增加的费用 */
- addCost: number;
- }
- /** 遗迹事件推送 */
- export interface relicEventNty {
- /** 事件类型 2战斗 3温泉 4buff选择 */
- type: number;
- /** 挑战id */
- battleId: number;
- /** 挑战类型 1普通 2精英 3boss 7驻军 */
- battleType: number;
- /** 可选择的buff */
- selectBuff: number[];
- }
- /** 活动时间 */
- export interface activityTimeListNty {
- /** 活动时间列表 */
- list: activityTimeInfo[];
- }
- /** 活动配置 */
- export interface activityGetConfList {
- list: string[];
- }
- /** 活动配置 */
- export interface activityGetConfListRsp {
- /** 错误码 */
- errno: number;
- list: activityConfInfo[];
- }
- export interface activityGetConfNty {
- list: number[];
- }
- /** 特权卡数据 */
- export interface privilegeCardData {
- }
- /** 特权卡数据 */
- export interface privilegeCardDataRsp {
- /** 错误码 */
- errno: number;
- /** 特权卡数据 */
- list: privilegeCardInfo[];
- }
- /** 特权卡购买 */
- export interface privilegeCardBuy {
- /** 模块id */
- moduleid: number;
- }
- /** 特权卡购买 */
- export interface privilegeCardBuyRsp {
- /** 错误码 */
- errno: number;
- }
- /** 特权卡解锁 */
- export interface privilegeCardUnlockNty {
- /** 解锁特权卡数据 */
- data: privilegeCardInfo | undefined;
- }
- /** 特权卡奖励 */
- export interface privilegeCardAward {
- /** 模块id */
- moduleid: number;
- }
- /** 特权卡奖励 */
- export interface privilegeCardAwardRsp {
- /** 模块id */
- errno: number;
- /** 模块id */
- moduleid: number;
- /** 模块id */
- award: boolean;
- }
- /** 宝箱奖励 */
- export interface boxGetAward {
- /** 奖励宝箱id */
- id: number;
- /** 奖励id */
- select: number;
- /** 宝箱类型 */
- type: number;
- /** 数量 */
- num: number;
- }
- /** 宝箱奖励 */
- export interface boxGetAwardRsp {
- /** 模块id */
- errno: number;
- /** 宝箱类型 */
- type: number;
- }
- export interface firstRechargeData {
- /** 模块id */
- moduleid: number;
- }
- /** 首充礼包数据 */
- export interface firstRechargeDataRsp {
- /** 错误码 */
- errno: number;
- /** 模块id */
- moduleid: number;
- /** 是否购买 */
- state: boolean;
- /** 当前第几天 */
- day: number;
- /** 奖励领取数据按位 */
- award: number;
- }
- /** 首充礼包购买 */
- export interface firstRechargeBuy {
- /** 模块id */
- moduleid: number;
- }
- /** 首充礼包购买 */
- export interface firstRechargeBuyRsp {
- /** 错误码 */
- errno: number;
- /** 模块id */
- moduleid: number;
- }
- /** 首充礼包奖励 */
- export interface firstRechargeAward {
- /** 模块id */
- moduleid: number;
- /** 领取第天的奖励 */
- day: number;
- }
- /** 首充礼包奖励 */
- export interface firstRechargeAwardRsp {
- /** 错误码 */
- errno: number;
- /** 模块id */
- moduleid: number;
- /** 领奖数据 */
- award: number;
- }
- /** 首充礼包推送 */
- export interface firstRechargeNty {
- /** 模块id */
- moduleid: number;
- /** 是否购买 */
- state: boolean;
- /** 当前第几天 */
- day: number;
- /** 奖励领取数据按位 */
- award: number;
- }
- /** 日常副本数据 */
- export interface dailyDungeonsData {
- }
- /** 日常副本数据 */
- export interface dailyDungeonsDataRsp {
- /** 错误码 */
- errno: number;
- /** 日常副本数据 */
- list: dailyDungeonsInfo[];
- }
- /** 日常副本战斗开始 */
- export interface dailyDungeonsStart {
- type: number;
- diff: number;
- }
- /** 日常副本战斗开始 */
- export interface dailyDungeonsStartRsp {
- /** 错误码 */
- errno: number;
- awardList: idNum[];
- }
- /** 日常副本战斗结束 */
- export interface dailyDungeonsEnd {
- /** 是否胜利 */
- win: boolean;
- /** 杀怪数量 */
- monsterNum: number;
- /** 杀boss数量 */
- bossNum: number;
- /** 杀精英数量 */
- eliteNum: number;
- }
- /** 日常副本战斗结束 */
- export interface dailyDungeonsEndRsp {
- /** 错误码 */
- errno: number;
- /** 副本数据 */
- data: dailyDungeonsInfo | undefined;
- }
- /** 日常副本扫荡 */
- export interface dailyDungeonsSweep {
- type: number;
- diff: number;
- }
- /** 日常副本扫荡 */
- export interface dailyDungeonsSweepRsp {
- /** 错误码 */
- errno: number;
- /** 副本数据 */
- data: dailyDungeonsInfo | undefined;
- }
- /** 冒险礼包数据 */
- export interface advGiftData {
- }
- /** 冒险礼包数据 */
- export interface advGiftDataRsp {
- /** 错误码 */
- errno: number;
- }
- /** 冒险礼包购买 */
- export interface advGiftBuy {
- /** 礼包id */
- id: number;
- }
- /** 冒险礼包购买 */
- export interface advGiftBuyRsp {
- /** 错误码 */
- errno: number;
- }
- /** 冒险礼包推送 */
- export interface advGiftNty {
- /** 已购买的礼包数据 */
- list: idNum[];
- }
- /** 弹窗礼包数据 */
- export interface popGiftData {
- }
- /** 弹窗礼包数据 */
- export interface popGiftDataRsp {
- /** 错误码 */
- errno: number;
- /** 弹窗礼包数据 */
- list: popGiftInfo[];
- }
- /** 弹窗礼包购买 */
- export interface popGiftBuy {
- /** 礼包id */
- id: number;
- }
- /** 弹窗礼包购买 */
- export interface popGiftBuyRsp {
- /** 错误码 */
- errno: number;
- }
- /** 弹窗礼包推送 */
- export interface popGiftNty {
- /** 弹窗礼包数据 */
- data: popGiftInfo | undefined;
- }
- /** 弹窗礼包数据变化 */
- export interface popGiftChangeNty {
- /** 弹窗礼包数据 */
- data: popGiftInfo | undefined;
- }
- /** 基金数据 */
- export interface fundData {
- /** 模块id */
- moduleid: number;
- }
- /** 基金数据 */
- export interface fundDataRsp {
- /** 错误码 */
- errno: number;
- /** 模块id */
- moduleid: number;
- /** 是否购买 */
- state: boolean;
- /** 领奖数据 */
- award: number;
- /** 领奖数据 */
- freeAward: number;
- /** 当前进度 */
- progress: number;
- }
- /** 基金购买 */
- export interface fundBuy {
- /** 模块id */
- moduleid: number;
- }
- /** 基金购买 */
- export interface fundBuyRsp {
- /** 错误码 */
- errno: number;
- /** 模块id */
- moduleid: number;
- }
- /** 基金奖励 */
- export interface fundAward {
- /** 模块id */
- moduleid: number;
- }
- /** 基金奖励 */
- export interface fundAwardRsp {
- /** 错误码 */
- errno: number;
- /** 模块id */
- moduleid: number;
- /** 领奖数据 */
- award: number;
- /** 领奖数据 */
- freeAward: number;
- }
- /** 基金推送 */
- export interface fundNty {
- /** 模块id */
- moduleid: number;
- /** 是否购买 */
- state: boolean;
- /** 领奖数据 */
- award: number;
- /** 领奖数据 */
- freeAward: number;
- /** 当前进度 */
- progress: number;
- }
- /** 连续充值数据 */
- export interface keepRechargeData {
- }
- /** 连续充值数据 */
- export interface keepRechargeDataRsp {
- /** 错误码 */
- errno: number;
- /** 连续充值天数 */
- day: number;
- /** 当天充值数量 */
- num: number;
- /** 领取奖励信息(按位存) */
- award: number;
- }
- /** 连续充值奖励 */
- export interface keepRechargeAward {
- /** 领取奖励的天数 */
- day: number;
- }
- /** 连续充值奖励 */
- export interface keepRechargeAwardRsp {
- /** 错误码 */
- errno: number;
- /** 领取奖励信息(按位存) */
- award: number;
- }
- /** 红点数据 */
- export interface getRedPointList {
- }
- /** 红点数据 */
- export interface getRedPointListRsp {
- /** 错误码 */
- errno: number;
- /** 红点数据 */
- list: redPointInfo[];
- }
- /** 充值结果 */
- export interface rechargeResult {
- /** 服务器订单号 */
- orderId: string;
- /** 支付平台返回的订单号 */
- payOrderId: string;
- /** 支付平台返回的purchaseToken */
- purchaseToken: string;
- /** 支付方式 */
- payType: string;
- /** 计费点 */
- cfgId: number;
- }
- /** 充值结果 */
- export interface rechargeResultRsp {
- /** 错误码 */
- errno: number;
- }
- /** 充值回调成功消息 */
- export interface rechargeSuccess {
- /** 订单号 */
- id: string;
- }
- /** 领取在线奖励 */
- export interface onlineAwardGetAward {
- /** 领取第几个在线奖励 */
- pos: number;
- }
- /** 领取在线奖励 */
- export interface onlineAwardGetAwardRsp {
- /** 错误码 */
- errno: number;
- /** 领取奖励数据 */
- award: number;
- }
- /** 在线奖励数据 */
- export interface onlineAwardGetData {
- }
- /** 在线奖励数据 */
- export interface onlineAwardGetDataRsp {
- /** 错误码 */
- errno: number;
- }
- /** 在线奖励数据推送 */
- export interface onlineAwardNty {
- /** 是否开启 */
- open: boolean;
- /** 在线时长 */
- time: number;
- /** 领取奖励数据 */
- award: number;
- }
- /** 战斗加速数据 */
- export interface speedUpData {
- }
- /** 战斗加速数据 */
- export interface speedUpDataRsp {
- /** 错误码 */
- errno: number;
- /** 剩余加速时间 */
- time: number;
- }
- /** 战斗加速时间购买 */
- export interface speedUpBuy {
- /** 是否广告观看 */
- free: boolean;
- }
- /** 战斗加速时间购买 */
- export interface speedUpBuyRsp {
- /** 错误码 */
- errno: number;
- /** 剩余加速时间 */
- time: number;
- }
- /** 主城技能升级 */
- export interface citySkillUpgrade {
- /** 技能id */
- id: number;
- }
- /** 主城技能升级 */
- export interface citySkillUpgradeRsp {
- /** 错误码 */
- errno: number;
- /** 技能id */
- id: number;
- }
- /** 主城技能上阵 */
- export interface citySkillBattle {
- /** 技能id */
- id: number;
- }
- /** 主城技能上阵 */
- export interface citySkillBattleRsp {
- /** 错误码 */
- errno: number;
- /** 技能id */
- id: number;
- }
- /** 建筑探索 */
- export interface buildingExplore {
- /** 建筑id */
- id: number;
- }
- /** 建筑探索 */
- export interface buildingExploreRsp {
- /** 错误码 */
- errno: number;
- /** 建筑数据 */
- data: building | undefined;
- }
- /** 领取自动探索奖励 */
- export interface buildingAutoExploreAward {
- /** 建筑id */
- id: number;
- }
- /** 领取自动探索奖励 */
- export interface buildingAutoExploreAwardRsp {
- /** 错误码 */
- errno: number;
- /** 建筑数据 */
- data: building | undefined;
- }
- /** 建筑探索上阵 */
- export interface buildingExploreBattle {
- /** 建筑id */
- id: number;
- /** 上阵数据 */
- list: string[];
- }
- /** 建筑探索上阵 */
- export interface buildingExploreBattleRsp {
- /** 错误码 */
- errno: number;
- /** 建筑数据 */
- data: building | undefined;
- }
- /** 建筑自动探索设置 */
- export interface buildingAutoExploreOption {
- /** 建筑id */
- id: number;
- /** 是否开启 */
- open: boolean;
- }
- /** 建筑自动探索设置 */
- export interface buildingAutoExploreOptionRsp {
- /** 错误码 */
- errno: number;
- /** 建筑数据 */
- data: building | undefined;
- }
- /** 等级礼包数据 */
- export interface levelGiftData {
- }
- /** 等级礼包数据 */
- export interface levelGiftDataRsp {
- /** 错误码 */
- errno: number;
- }
- /** 等级礼包购买 */
- export interface levelGiftBuy {
- /** 礼包id */
- id: number;
- }
- /** 等级礼包购买 */
- export interface levelGiftBuyRsp {
- /** 错误码 */
- errno: number;
- }
- /** 等级礼包推送 */
- export interface levelGiftNty {
- /** 已购买的礼包数据 */
- list: idNum[];
- }
- /** 等级礼包取消红点 */
- export interface levelGiftDelRedPoint {
- }
- /** 等级礼包取消红点 */
- export interface levelGiftDelRedPointRsp {
- /** 错误码 */
- errno: number;
- }
- /** 千抽活动数据 */
- export interface lotteryData {
- }
- /** 千抽活动数据 */
- export interface lotteryDataRsp {
- /** 错误码 */
- errno: number;
- }
- /** 千抽活动奖励 */
- export interface lotteryAward {
- /** 是否为免费奖励 */
- free: boolean;
- }
- /** 千抽活动奖励 */
- export interface lotteryAwardRsp {
- /** 错误码 */
- errno: number;
- /** 是否为免费奖励 */
- free: boolean;
- /** 领取进度 */
- award: number;
- }
- /** 千抽活动购买 */
- export interface lotteryBuy {
- }
- /** 千抽活动购买 */
- export interface lotteryBuyRsp {
- /** 错误码 */
- errno: number;
- }
- /** 千抽活动推送 */
- export interface lotteryNty {
- /** 状态0未开启 1开启 2关闭 */
- state: number;
- /** 免费奖励领取进度 */
- free: number;
- /** 付费奖励领取进度-1为未解锁. */
- award: number;
- /** 第几天 */
- day: number;
- }
- /** 开服排行活动数据 */
- export interface actRankData {
- /** 排行活动id */
- id: number;
- }
- /** 开服排行活动数据 */
- export interface actRankDataRsp {
- /** 错误码 */
- errno: number;
- /** 排行数据 */
- list: rankingInfo[];
- }
- /** 开服宝藏活动数据 */
- export interface treasureGetData {
- }
- /** 开服宝藏活动数据 */
- export interface treasureGetDataRsp {
- /** 错误码 */
- errno: number;
- /** 购买次数 */
- buy: number;
- /** 签到进度 */
- sign: number;
- /** 已抽到数据 */
- list: number[];
- /** 是否抽到大奖 */
- treasure: boolean;
- }
- /** 开服宝藏活动抽奖 */
- export interface treasureDraw {
- }
- /** 开服宝藏活动抽奖 */
- export interface treasureDrawRsp {
- /** 错误码 */
- errno: number;
- /** 0为大奖 */
- pos: number;
- }
- /** 开服宝藏活动签到 */
- export interface treasureSign {
- }
- /** 开服宝藏活动签到 */
- export interface treasureSignRsp {
- /** 错误码 */
- errno: number;
- /** 签到进度 */
- sign: number;
- }
- /** 开服宝藏活动购买 */
- export interface treasureBuy {
- }
- /** 开服宝藏活动购买 */
- export interface treasureBuyRsp {
- /** 错误码 */
- errno: number;
- /** 购买次数 */
- buy: number;
- }
- /** pvp数据 */
- export interface pvpData {
- }
- /** pvp数据 */
- export interface pvpDataRsp {
- /** 错误码 */
- errno: number;
- /** 阵容数据 */
- embattleList: embattleInfo[];
- /** 排名数据 */
- rankingList: rankingInfo[];
- }
- /** pvp匹配战斗 */
- export interface pvpMatch {
- }
- /** pvp匹配战斗 */
- export interface pvpMatchRsp {
- errno: number;
- /** 阵容数据 */
- embattleList: embattleInfo[];
- /** 英雄数据 */
- heroList: hero[];
- /** 卡牌数据 */
- cardList: card[];
- /** 装备数据 */
- equipList: equip[];
- /** 天赋数据 */
- talentData: talentInfo | undefined;
- }
- /** pvp战斗结果 */
- export interface pvpReslut {
- /** 胜利次数 */
- win: number;
- }
- /** pvp战斗结果 */
- export interface pvpReslutRsp {
- errno: number;
- }
- /** 布阵 */
- export interface pvpEmbattle {
- data: embattleInfo | undefined;
- }
- /** 布阵 */
- export interface pvpEmbattleRsp {
- errno: number;
- }
- /** 宝箱数据 */
- export interface timeBoxData {
- }
- /** 宝箱数据 */
- export interface timeBoxDataRsp {
- errno: number;
- list: timeBox[];
- }
- /** 宝箱解锁 */
- export interface timeBoxUnlock {
- /** 宝箱位置 */
- pos: number;
- }
- /** 宝箱解锁 */
- export interface timeBoxUnlockRsp {
- errno: number;
- data: timeBox | undefined;
- }
- /** 宝箱奖励 */
- export interface timeBoxGetAward {
- /** 宝箱位置 */
- pos: number;
- }
- /** 宝箱奖励 */
- export interface timeBoxGetAwardRsp {
- errno: number;
- /** 宝箱位置 */
- pos: number;
- }
- function createBaseping(): ping {
- return {};
- }
- export const ping = {
- fromJSON(_: any): ping {
- return {};
- },
- toJSON(_: ping): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<ping>, I>>(base?: I): ping {
- return ping.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<ping>, I>>(_: I): ping {
- const message = createBaseping();
- return message;
- },
- };
- function createBasepingRsp(): pingRsp {
- return { time: 0 };
- }
- export const pingRsp = {
- fromJSON(object: any): pingRsp {
- return { time: isSet(object.time) ? globalThis.Number(object.time) : 0 };
- },
- toJSON(message: pingRsp): unknown {
- const obj: any = {};
- if (message.time !== 0) {
- obj.time = Math.round(message.time);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<pingRsp>, I>>(base?: I): pingRsp {
- return pingRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<pingRsp>, I>>(object: I): pingRsp {
- const message = createBasepingRsp();
- message.time = object.time ?? 0;
- return message;
- },
- };
- function createBaselogin(): login {
- return { sid: 0, account: "", channel: "", token: "", extension: "" };
- }
- export const login = {
- fromJSON(object: any): login {
- return {
- sid: isSet(object.sid) ? globalThis.Number(object.sid) : 0,
- account: isSet(object.account) ? globalThis.String(object.account) : "",
- channel: isSet(object.channel) ? globalThis.String(object.channel) : "",
- token: isSet(object.token) ? globalThis.String(object.token) : "",
- extension: isSet(object.extension) ? globalThis.String(object.extension) : "",
- };
- },
- toJSON(message: login): unknown {
- const obj: any = {};
- if (message.sid !== 0) {
- obj.sid = Math.round(message.sid);
- }
- if (message.account !== "") {
- obj.account = message.account;
- }
- if (message.channel !== "") {
- obj.channel = message.channel;
- }
- if (message.token !== "") {
- obj.token = message.token;
- }
- if (message.extension !== "") {
- obj.extension = message.extension;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<login>, I>>(base?: I): login {
- return login.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<login>, I>>(object: I): login {
- const message = createBaselogin();
- message.sid = object.sid ?? 0;
- message.account = object.account ?? "";
- message.channel = object.channel ?? "";
- message.token = object.token ?? "";
- message.extension = object.extension ?? "";
- return message;
- },
- };
- function createBaseloginRsp(): loginRsp {
- return { errno: 0 };
- }
- export const loginRsp = {
- fromJSON(object: any): loginRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: loginRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<loginRsp>, I>>(base?: I): loginRsp {
- return loginRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<loginRsp>, I>>(object: I): loginRsp {
- const message = createBaseloginRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBasecreate(): create {
- return { nickname: "" };
- }
- export const create = {
- fromJSON(object: any): create {
- return { nickname: isSet(object.nickname) ? globalThis.String(object.nickname) : "" };
- },
- toJSON(message: create): unknown {
- const obj: any = {};
- if (message.nickname !== "") {
- obj.nickname = message.nickname;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<create>, I>>(base?: I): create {
- return create.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<create>, I>>(object: I): create {
- const message = createBasecreate();
- message.nickname = object.nickname ?? "";
- return message;
- },
- };
- function createBasecreateRsp(): createRsp {
- return { errno: 0 };
- }
- export const createRsp = {
- fromJSON(object: any): createRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: createRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<createRsp>, I>>(base?: I): createRsp {
- return createRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<createRsp>, I>>(object: I): createRsp {
- const message = createBasecreateRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaseuser(): user {
- return {
- uid: "",
- nickname: "",
- level: 0,
- exp: 0,
- avatar: 0,
- svrtime: 0,
- renameTime: 0,
- createtime: 0,
- sid: 0,
- bfirst: false,
- currency: [],
- };
- }
- export const user = {
- fromJSON(object: any): user {
- return {
- uid: isSet(object.uid) ? globalThis.String(object.uid) : "",
- nickname: isSet(object.nickname) ? globalThis.String(object.nickname) : "",
- level: isSet(object.level) ? globalThis.Number(object.level) : 0,
- exp: isSet(object.exp) ? globalThis.Number(object.exp) : 0,
- avatar: isSet(object.avatar) ? globalThis.Number(object.avatar) : 0,
- svrtime: isSet(object.svrtime) ? globalThis.Number(object.svrtime) : 0,
- renameTime: isSet(object.renameTime) ? globalThis.Number(object.renameTime) : 0,
- createtime: isSet(object.createtime) ? globalThis.Number(object.createtime) : 0,
- sid: isSet(object.sid) ? globalThis.Number(object.sid) : 0,
- bfirst: isSet(object.bfirst) ? globalThis.Boolean(object.bfirst) : false,
- currency: globalThis.Array.isArray(object?.currency) ? object.currency.map((e: any) => idNum.fromJSON(e)) : [],
- };
- },
- toJSON(message: user): unknown {
- const obj: any = {};
- if (message.uid !== "") {
- obj.uid = message.uid;
- }
- if (message.nickname !== "") {
- obj.nickname = message.nickname;
- }
- if (message.level !== 0) {
- obj.level = Math.round(message.level);
- }
- if (message.exp !== 0) {
- obj.exp = Math.round(message.exp);
- }
- if (message.avatar !== 0) {
- obj.avatar = Math.round(message.avatar);
- }
- if (message.svrtime !== 0) {
- obj.svrtime = Math.round(message.svrtime);
- }
- if (message.renameTime !== 0) {
- obj.renameTime = Math.round(message.renameTime);
- }
- if (message.createtime !== 0) {
- obj.createtime = Math.round(message.createtime);
- }
- if (message.sid !== 0) {
- obj.sid = Math.round(message.sid);
- }
- if (message.bfirst !== false) {
- obj.bfirst = message.bfirst;
- }
- if (message.currency?.length) {
- obj.currency = message.currency.map((e) => idNum.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<user>, I>>(base?: I): user {
- return user.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<user>, I>>(object: I): user {
- const message = createBaseuser();
- message.uid = object.uid ?? "";
- message.nickname = object.nickname ?? "";
- message.level = object.level ?? 0;
- message.exp = object.exp ?? 0;
- message.avatar = object.avatar ?? 0;
- message.svrtime = object.svrtime ?? 0;
- message.renameTime = object.renameTime ?? 0;
- message.createtime = object.createtime ?? 0;
- message.sid = object.sid ?? 0;
- message.bfirst = object.bfirst ?? false;
- message.currency = object.currency?.map((e) => idNum.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaserewardInfo(): rewardInfo {
- return { flags: "", added: undefined };
- }
- export const rewardInfo = {
- fromJSON(object: any): rewardInfo {
- return {
- flags: isSet(object.flags) ? globalThis.String(object.flags) : "",
- added: isSet(object.added) ? reward.fromJSON(object.added) : undefined,
- };
- },
- toJSON(message: rewardInfo): unknown {
- const obj: any = {};
- if (message.flags !== "") {
- obj.flags = message.flags;
- }
- if (message.added !== undefined) {
- obj.added = reward.toJSON(message.added);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<rewardInfo>, I>>(base?: I): rewardInfo {
- return rewardInfo.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<rewardInfo>, I>>(object: I): rewardInfo {
- const message = createBaserewardInfo();
- message.flags = object.flags ?? "";
- message.added = (object.added !== undefined && object.added !== null)
- ? reward.fromPartial(object.added)
- : undefined;
- return message;
- },
- };
- function createBasecityChange(): cityChange {
- return { currency: undefined, time: 0 };
- }
- export const cityChange = {
- fromJSON(object: any): cityChange {
- return {
- currency: isSet(object.currency) ? idNum.fromJSON(object.currency) : undefined,
- time: isSet(object.time) ? globalThis.Number(object.time) : 0,
- };
- },
- toJSON(message: cityChange): unknown {
- const obj: any = {};
- if (message.currency !== undefined) {
- obj.currency = idNum.toJSON(message.currency);
- }
- if (message.time !== 0) {
- obj.time = Math.round(message.time);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<cityChange>, I>>(base?: I): cityChange {
- return cityChange.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<cityChange>, I>>(object: I): cityChange {
- const message = createBasecityChange();
- message.currency = (object.currency !== undefined && object.currency !== null)
- ? idNum.fromPartial(object.currency)
- : undefined;
- message.time = object.time ?? 0;
- return message;
- },
- };
- function createBasepayCurrency(): payCurrency {
- return { now: [], pay: [] };
- }
- export const payCurrency = {
- fromJSON(object: any): payCurrency {
- return {
- now: globalThis.Array.isArray(object?.now) ? object.now.map((e: any) => idNum.fromJSON(e)) : [],
- pay: globalThis.Array.isArray(object?.pay) ? object.pay.map((e: any) => idNum.fromJSON(e)) : [],
- };
- },
- toJSON(message: payCurrency): unknown {
- const obj: any = {};
- if (message.now?.length) {
- obj.now = message.now.map((e) => idNum.toJSON(e));
- }
- if (message.pay?.length) {
- obj.pay = message.pay.map((e) => idNum.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<payCurrency>, I>>(base?: I): payCurrency {
- return payCurrency.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<payCurrency>, I>>(object: I): payCurrency {
- const message = createBasepayCurrency();
- message.now = object.now?.map((e) => idNum.fromPartial(e)) || [];
- message.pay = object.pay?.map((e) => idNum.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasepayDebrisNty(): payDebrisNty {
- return { list: [] };
- }
- export const payDebrisNty = {
- fromJSON(object: any): payDebrisNty {
- return { list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => idNum.fromJSON(e)) : [] };
- },
- toJSON(message: payDebrisNty): unknown {
- const obj: any = {};
- if (message.list?.length) {
- obj.list = message.list.map((e) => idNum.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<payDebrisNty>, I>>(base?: I): payDebrisNty {
- return payDebrisNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<payDebrisNty>, I>>(object: I): payDebrisNty {
- const message = createBasepayDebrisNty();
- message.list = object.list?.map((e) => idNum.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseexceptionNty(): exceptionNty {
- return { errno: 0 };
- }
- export const exceptionNty = {
- fromJSON(object: any): exceptionNty {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: exceptionNty): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<exceptionNty>, I>>(base?: I): exceptionNty {
- return exceptionNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<exceptionNty>, I>>(object: I): exceptionNty {
- const message = createBaseexceptionNty();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBasecreateOrderNty(): createOrderNty {
- return { id: "", cfid: 0, sign: "", time: 0 };
- }
- export const createOrderNty = {
- fromJSON(object: any): createOrderNty {
- return {
- id: isSet(object.id) ? globalThis.String(object.id) : "",
- cfid: isSet(object.cfid) ? globalThis.Number(object.cfid) : 0,
- sign: isSet(object.sign) ? globalThis.String(object.sign) : "",
- time: isSet(object.time) ? globalThis.Number(object.time) : 0,
- };
- },
- toJSON(message: createOrderNty): unknown {
- const obj: any = {};
- if (message.id !== "") {
- obj.id = message.id;
- }
- if (message.cfid !== 0) {
- obj.cfid = Math.round(message.cfid);
- }
- if (message.sign !== "") {
- obj.sign = message.sign;
- }
- if (message.time !== 0) {
- obj.time = Math.round(message.time);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<createOrderNty>, I>>(base?: I): createOrderNty {
- return createOrderNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<createOrderNty>, I>>(object: I): createOrderNty {
- const message = createBasecreateOrderNty();
- message.id = object.id ?? "";
- message.cfid = object.cfid ?? 0;
- message.sign = object.sign ?? "";
- message.time = object.time ?? 0;
- return message;
- },
- };
- function createBasecityData(): cityData {
- return {};
- }
- export const cityData = {
- fromJSON(_: any): cityData {
- return {};
- },
- toJSON(_: cityData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<cityData>, I>>(base?: I): cityData {
- return cityData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<cityData>, I>>(_: I): cityData {
- const message = createBasecityData();
- return message;
- },
- };
- function createBasecityDataRsp(): cityDataRsp {
- return { errno: 0, time: 0, list: [], skillList: [], skillid: 0 };
- }
- export const cityDataRsp = {
- fromJSON(object: any): cityDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- time: isSet(object.time) ? globalThis.Number(object.time) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => building.fromJSON(e)) : [],
- skillList: globalThis.Array.isArray(object?.skillList)
- ? object.skillList.map((e: any) => globalThis.Number(e))
- : [],
- skillid: isSet(object.skillid) ? globalThis.Number(object.skillid) : 0,
- };
- },
- toJSON(message: cityDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.time !== 0) {
- obj.time = Math.round(message.time);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => building.toJSON(e));
- }
- if (message.skillList?.length) {
- obj.skillList = message.skillList.map((e) => Math.round(e));
- }
- if (message.skillid !== 0) {
- obj.skillid = Math.round(message.skillid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<cityDataRsp>, I>>(base?: I): cityDataRsp {
- return cityDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<cityDataRsp>, I>>(object: I): cityDataRsp {
- const message = createBasecityDataRsp();
- message.errno = object.errno ?? 0;
- message.time = object.time ?? 0;
- message.list = object.list?.map((e) => building.fromPartial(e)) || [];
- message.skillList = object.skillList?.map((e) => e) || [];
- message.skillid = object.skillid ?? 0;
- return message;
- },
- };
- function createBasecityDataSend(): cityDataSend {
- return { time: 0, list: [] };
- }
- export const cityDataSend = {
- fromJSON(object: any): cityDataSend {
- return {
- time: isSet(object.time) ? globalThis.Number(object.time) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => building.fromJSON(e)) : [],
- };
- },
- toJSON(message: cityDataSend): unknown {
- const obj: any = {};
- if (message.time !== 0) {
- obj.time = Math.round(message.time);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => building.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<cityDataSend>, I>>(base?: I): cityDataSend {
- return cityDataSend.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<cityDataSend>, I>>(object: I): cityDataSend {
- const message = createBasecityDataSend();
- message.time = object.time ?? 0;
- message.list = object.list?.map((e) => building.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasebuildingUpgrade(): buildingUpgrade {
- return { id: 0 };
- }
- export const buildingUpgrade = {
- fromJSON(object: any): buildingUpgrade {
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
- },
- toJSON(message: buildingUpgrade): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<buildingUpgrade>, I>>(base?: I): buildingUpgrade {
- return buildingUpgrade.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<buildingUpgrade>, I>>(object: I): buildingUpgrade {
- const message = createBasebuildingUpgrade();
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasebuildingUpgradeRsp(): buildingUpgradeRsp {
- return { errno: 0, data: undefined };
- }
- export const buildingUpgradeRsp = {
- fromJSON(object: any): buildingUpgradeRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? building.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: buildingUpgradeRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = building.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<buildingUpgradeRsp>, I>>(base?: I): buildingUpgradeRsp {
- return buildingUpgradeRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<buildingUpgradeRsp>, I>>(object: I): buildingUpgradeRsp {
- const message = createBasebuildingUpgradeRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? building.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBasebuildingOneKey(): buildingOneKey {
- return {};
- }
- export const buildingOneKey = {
- fromJSON(_: any): buildingOneKey {
- return {};
- },
- toJSON(_: buildingOneKey): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<buildingOneKey>, I>>(base?: I): buildingOneKey {
- return buildingOneKey.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<buildingOneKey>, I>>(_: I): buildingOneKey {
- const message = createBasebuildingOneKey();
- return message;
- },
- };
- function createBasebuildingOneKeyRsp(): buildingOneKeyRsp {
- return { errno: 0, list: [] };
- }
- export const buildingOneKeyRsp = {
- fromJSON(object: any): buildingOneKeyRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => building.fromJSON(e)) : [],
- };
- },
- toJSON(message: buildingOneKeyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => building.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<buildingOneKeyRsp>, I>>(base?: I): buildingOneKeyRsp {
- return buildingOneKeyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<buildingOneKeyRsp>, I>>(object: I): buildingOneKeyRsp {
- const message = createBasebuildingOneKeyRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => building.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseadventureData(): adventureData {
- return {};
- }
- export const adventureData = {
- fromJSON(_: any): adventureData {
- return {};
- },
- toJSON(_: adventureData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureData>, I>>(base?: I): adventureData {
- return adventureData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureData>, I>>(_: I): adventureData {
- const message = createBaseadventureData();
- return message;
- },
- };
- function createBaseadventureDataRsp(): adventureDataRsp {
- return { errno: 0, id1: 0, award1: [], id2: 0, award2: [], type: 0, layer: 0, cost: 0 };
- }
- export const adventureDataRsp = {
- fromJSON(object: any): adventureDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- id1: isSet(object.id1) ? globalThis.Number(object.id1) : 0,
- award1: globalThis.Array.isArray(object?.award1) ? object.award1.map((e: any) => globalThis.Number(e)) : [],
- id2: isSet(object.id2) ? globalThis.Number(object.id2) : 0,
- award2: globalThis.Array.isArray(object?.award2) ? object.award2.map((e: any) => globalThis.Number(e)) : [],
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- layer: isSet(object.layer) ? globalThis.Number(object.layer) : 0,
- cost: isSet(object.cost) ? globalThis.Number(object.cost) : 0,
- };
- },
- toJSON(message: adventureDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.id1 !== 0) {
- obj.id1 = Math.round(message.id1);
- }
- if (message.award1?.length) {
- obj.award1 = message.award1.map((e) => Math.round(e));
- }
- if (message.id2 !== 0) {
- obj.id2 = Math.round(message.id2);
- }
- if (message.award2?.length) {
- obj.award2 = message.award2.map((e) => Math.round(e));
- }
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.layer !== 0) {
- obj.layer = Math.round(message.layer);
- }
- if (message.cost !== 0) {
- obj.cost = Math.round(message.cost);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureDataRsp>, I>>(base?: I): adventureDataRsp {
- return adventureDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureDataRsp>, I>>(object: I): adventureDataRsp {
- const message = createBaseadventureDataRsp();
- message.errno = object.errno ?? 0;
- message.id1 = object.id1 ?? 0;
- message.award1 = object.award1?.map((e) => e) || [];
- message.id2 = object.id2 ?? 0;
- message.award2 = object.award2?.map((e) => e) || [];
- message.type = object.type ?? 0;
- message.layer = object.layer ?? 0;
- message.cost = object.cost ?? 0;
- return message;
- },
- };
- function createBaseadventureStart(): adventureStart {
- return { id: 0, type: 0 };
- }
- export const adventureStart = {
- fromJSON(object: any): adventureStart {
- return {
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- };
- },
- toJSON(message: adventureStart): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureStart>, I>>(base?: I): adventureStart {
- return adventureStart.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureStart>, I>>(object: I): adventureStart {
- const message = createBaseadventureStart();
- message.id = object.id ?? 0;
- message.type = object.type ?? 0;
- return message;
- },
- };
- function createBaseadventureStartRsp(): adventureStartRsp {
- return { errno: 0, btrial: false, trialId: 0, trialNum: 0 };
- }
- export const adventureStartRsp = {
- fromJSON(object: any): adventureStartRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- btrial: isSet(object.btrial) ? globalThis.Boolean(object.btrial) : false,
- trialId: isSet(object.trialId) ? globalThis.Number(object.trialId) : 0,
- trialNum: isSet(object.trialNum) ? globalThis.Number(object.trialNum) : 0,
- };
- },
- toJSON(message: adventureStartRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.btrial !== false) {
- obj.btrial = message.btrial;
- }
- if (message.trialId !== 0) {
- obj.trialId = Math.round(message.trialId);
- }
- if (message.trialNum !== 0) {
- obj.trialNum = Math.round(message.trialNum);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureStartRsp>, I>>(base?: I): adventureStartRsp {
- return adventureStartRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureStartRsp>, I>>(object: I): adventureStartRsp {
- const message = createBaseadventureStartRsp();
- message.errno = object.errno ?? 0;
- message.btrial = object.btrial ?? false;
- message.trialId = object.trialId ?? 0;
- message.trialNum = object.trialNum ?? 0;
- return message;
- },
- };
- function createBaseadventureEnd(): adventureEnd {
- return { win: false, monsterNum: 0, bossNum: 0, eliteNum: 0 };
- }
- export const adventureEnd = {
- fromJSON(object: any): adventureEnd {
- return {
- win: isSet(object.win) ? globalThis.Boolean(object.win) : false,
- monsterNum: isSet(object.monsterNum) ? globalThis.Number(object.monsterNum) : 0,
- bossNum: isSet(object.bossNum) ? globalThis.Number(object.bossNum) : 0,
- eliteNum: isSet(object.eliteNum) ? globalThis.Number(object.eliteNum) : 0,
- };
- },
- toJSON(message: adventureEnd): unknown {
- const obj: any = {};
- if (message.win !== false) {
- obj.win = message.win;
- }
- if (message.monsterNum !== 0) {
- obj.monsterNum = Math.round(message.monsterNum);
- }
- if (message.bossNum !== 0) {
- obj.bossNum = Math.round(message.bossNum);
- }
- if (message.eliteNum !== 0) {
- obj.eliteNum = Math.round(message.eliteNum);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureEnd>, I>>(base?: I): adventureEnd {
- return adventureEnd.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureEnd>, I>>(object: I): adventureEnd {
- const message = createBaseadventureEnd();
- message.win = object.win ?? false;
- message.monsterNum = object.monsterNum ?? 0;
- message.bossNum = object.bossNum ?? 0;
- message.eliteNum = object.eliteNum ?? 0;
- return message;
- },
- };
- function createBaseadventureEndRsp(): adventureEndRsp {
- return { errno: 0 };
- }
- export const adventureEndRsp = {
- fromJSON(object: any): adventureEndRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: adventureEndRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureEndRsp>, I>>(base?: I): adventureEndRsp {
- return adventureEndRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureEndRsp>, I>>(object: I): adventureEndRsp {
- const message = createBaseadventureEndRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaseadventureLayer(): adventureLayer {
- return { layer: 0, cost: 0, monsterNum: 0, bossNum: 0, eliteNum: 0 };
- }
- export const adventureLayer = {
- fromJSON(object: any): adventureLayer {
- return {
- layer: isSet(object.layer) ? globalThis.Number(object.layer) : 0,
- cost: isSet(object.cost) ? globalThis.Number(object.cost) : 0,
- monsterNum: isSet(object.monsterNum) ? globalThis.Number(object.monsterNum) : 0,
- bossNum: isSet(object.bossNum) ? globalThis.Number(object.bossNum) : 0,
- eliteNum: isSet(object.eliteNum) ? globalThis.Number(object.eliteNum) : 0,
- };
- },
- toJSON(message: adventureLayer): unknown {
- const obj: any = {};
- if (message.layer !== 0) {
- obj.layer = Math.round(message.layer);
- }
- if (message.cost !== 0) {
- obj.cost = Math.round(message.cost);
- }
- if (message.monsterNum !== 0) {
- obj.monsterNum = Math.round(message.monsterNum);
- }
- if (message.bossNum !== 0) {
- obj.bossNum = Math.round(message.bossNum);
- }
- if (message.eliteNum !== 0) {
- obj.eliteNum = Math.round(message.eliteNum);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureLayer>, I>>(base?: I): adventureLayer {
- return adventureLayer.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureLayer>, I>>(object: I): adventureLayer {
- const message = createBaseadventureLayer();
- message.layer = object.layer ?? 0;
- message.cost = object.cost ?? 0;
- message.monsterNum = object.monsterNum ?? 0;
- message.bossNum = object.bossNum ?? 0;
- message.eliteNum = object.eliteNum ?? 0;
- return message;
- },
- };
- function createBaseadventureLayerRsp(): adventureLayerRsp {
- return { errno: 0 };
- }
- export const adventureLayerRsp = {
- fromJSON(object: any): adventureLayerRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: adventureLayerRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureLayerRsp>, I>>(base?: I): adventureLayerRsp {
- return adventureLayerRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureLayerRsp>, I>>(object: I): adventureLayerRsp {
- const message = createBaseadventureLayerRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaseadventureSweep(): adventureSweep {
- return { id: 0, type: 0 };
- }
- export const adventureSweep = {
- fromJSON(object: any): adventureSweep {
- return {
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- };
- },
- toJSON(message: adventureSweep): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureSweep>, I>>(base?: I): adventureSweep {
- return adventureSweep.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureSweep>, I>>(object: I): adventureSweep {
- const message = createBaseadventureSweep();
- message.id = object.id ?? 0;
- message.type = object.type ?? 0;
- return message;
- },
- };
- function createBaseadventureSweepRsp(): adventureSweepRsp {
- return { errno: 0 };
- }
- export const adventureSweepRsp = {
- fromJSON(object: any): adventureSweepRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: adventureSweepRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureSweepRsp>, I>>(base?: I): adventureSweepRsp {
- return adventureSweepRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureSweepRsp>, I>>(object: I): adventureSweepRsp {
- const message = createBaseadventureSweepRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaseadventurePassAward(): adventurePassAward {
- return { id: 0, type: 0 };
- }
- export const adventurePassAward = {
- fromJSON(object: any): adventurePassAward {
- return {
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- };
- },
- toJSON(message: adventurePassAward): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventurePassAward>, I>>(base?: I): adventurePassAward {
- return adventurePassAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventurePassAward>, I>>(object: I): adventurePassAward {
- const message = createBaseadventurePassAward();
- message.id = object.id ?? 0;
- message.type = object.type ?? 0;
- return message;
- },
- };
- function createBaseadventurePassAwardRsp(): adventurePassAwardRsp {
- return { errno: 0, id: 0, type: 0 };
- }
- export const adventurePassAwardRsp = {
- fromJSON(object: any): adventurePassAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- };
- },
- toJSON(message: adventurePassAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventurePassAwardRsp>, I>>(base?: I): adventurePassAwardRsp {
- return adventurePassAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventurePassAwardRsp>, I>>(object: I): adventurePassAwardRsp {
- const message = createBaseadventurePassAwardRsp();
- message.errno = object.errno ?? 0;
- message.id = object.id ?? 0;
- message.type = object.type ?? 0;
- return message;
- },
- };
- function createBaseadventureAdAward(): adventureAdAward {
- return {};
- }
- export const adventureAdAward = {
- fromJSON(_: any): adventureAdAward {
- return {};
- },
- toJSON(_: adventureAdAward): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureAdAward>, I>>(base?: I): adventureAdAward {
- return adventureAdAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureAdAward>, I>>(_: I): adventureAdAward {
- const message = createBaseadventureAdAward();
- return message;
- },
- };
- function createBaseadventureAdAwardRsp(): adventureAdAwardRsp {
- return { errno: 0 };
- }
- export const adventureAdAwardRsp = {
- fromJSON(object: any): adventureAdAwardRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: adventureAdAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureAdAwardRsp>, I>>(base?: I): adventureAdAwardRsp {
- return adventureAdAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureAdAwardRsp>, I>>(object: I): adventureAdAwardRsp {
- const message = createBaseadventureAdAwardRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaseadventureTrial(): adventureTrial {
- return {};
- }
- export const adventureTrial = {
- fromJSON(_: any): adventureTrial {
- return {};
- },
- toJSON(_: adventureTrial): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureTrial>, I>>(base?: I): adventureTrial {
- return adventureTrial.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureTrial>, I>>(_: I): adventureTrial {
- const message = createBaseadventureTrial();
- return message;
- },
- };
- function createBaseadventureTrialRsp(): adventureTrialRsp {
- return { errno: 0 };
- }
- export const adventureTrialRsp = {
- fromJSON(object: any): adventureTrialRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: adventureTrialRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<adventureTrialRsp>, I>>(base?: I): adventureTrialRsp {
- return adventureTrialRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<adventureTrialRsp>, I>>(object: I): adventureTrialRsp {
- const message = createBaseadventureTrialRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBasegetMail(): getMail {
- return {};
- }
- export const getMail = {
- fromJSON(_: any): getMail {
- return {};
- },
- toJSON(_: getMail): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<getMail>, I>>(base?: I): getMail {
- return getMail.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<getMail>, I>>(_: I): getMail {
- const message = createBasegetMail();
- return message;
- },
- };
- function createBasegetMailRsp(): getMailRsp {
- return { errno: 0, list: [] };
- }
- export const getMailRsp = {
- fromJSON(object: any): getMailRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => mail.fromJSON(e)) : [],
- };
- },
- toJSON(message: getMailRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => mail.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<getMailRsp>, I>>(base?: I): getMailRsp {
- return getMailRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<getMailRsp>, I>>(object: I): getMailRsp {
- const message = createBasegetMailRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => mail.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasegetMailGoods(): getMailGoods {
- return { list: [], bonekey: false };
- }
- export const getMailGoods = {
- fromJSON(object: any): getMailGoods {
- return {
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => globalThis.String(e)) : [],
- bonekey: isSet(object.bonekey) ? globalThis.Boolean(object.bonekey) : false,
- };
- },
- toJSON(message: getMailGoods): unknown {
- const obj: any = {};
- if (message.list?.length) {
- obj.list = message.list;
- }
- if (message.bonekey !== false) {
- obj.bonekey = message.bonekey;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<getMailGoods>, I>>(base?: I): getMailGoods {
- return getMailGoods.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<getMailGoods>, I>>(object: I): getMailGoods {
- const message = createBasegetMailGoods();
- message.list = object.list?.map((e) => e) || [];
- message.bonekey = object.bonekey ?? false;
- return message;
- },
- };
- function createBasegetMailGoodsRsp(): getMailGoodsRsp {
- return { errno: 0, list: [] };
- }
- export const getMailGoodsRsp = {
- fromJSON(object: any): getMailGoodsRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => globalThis.String(e)) : [],
- };
- },
- toJSON(message: getMailGoodsRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<getMailGoodsRsp>, I>>(base?: I): getMailGoodsRsp {
- return getMailGoodsRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<getMailGoodsRsp>, I>>(object: I): getMailGoodsRsp {
- const message = createBasegetMailGoodsRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => e) || [];
- return message;
- },
- };
- function createBasedelMail(): delMail {
- return { list: [] };
- }
- export const delMail = {
- fromJSON(object: any): delMail {
- return { list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => globalThis.String(e)) : [] };
- },
- toJSON(message: delMail): unknown {
- const obj: any = {};
- if (message.list?.length) {
- obj.list = message.list;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<delMail>, I>>(base?: I): delMail {
- return delMail.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<delMail>, I>>(object: I): delMail {
- const message = createBasedelMail();
- message.list = object.list?.map((e) => e) || [];
- return message;
- },
- };
- function createBasedelMailRsp(): delMailRsp {
- return { errno: 0, list: [] };
- }
- export const delMailRsp = {
- fromJSON(object: any): delMailRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => globalThis.String(e)) : [],
- };
- },
- toJSON(message: delMailRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<delMailRsp>, I>>(base?: I): delMailRsp {
- return delMailRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<delMailRsp>, I>>(object: I): delMailRsp {
- const message = createBasedelMailRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => e) || [];
- return message;
- },
- };
- function createBaseflagMail(): flagMail {
- return { list: [] };
- }
- export const flagMail = {
- fromJSON(object: any): flagMail {
- return { list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => globalThis.String(e)) : [] };
- },
- toJSON(message: flagMail): unknown {
- const obj: any = {};
- if (message.list?.length) {
- obj.list = message.list;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<flagMail>, I>>(base?: I): flagMail {
- return flagMail.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<flagMail>, I>>(object: I): flagMail {
- const message = createBaseflagMail();
- message.list = object.list?.map((e) => e) || [];
- return message;
- },
- };
- function createBaseflagMailRsp(): flagMailRsp {
- return { errno: 0 };
- }
- export const flagMailRsp = {
- fromJSON(object: any): flagMailRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: flagMailRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<flagMailRsp>, I>>(base?: I): flagMailRsp {
- return flagMailRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<flagMailRsp>, I>>(object: I): flagMailRsp {
- const message = createBaseflagMailRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBasesendMail(): sendMail {
- return { list: [] };
- }
- export const sendMail = {
- fromJSON(object: any): sendMail {
- return { list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => mail.fromJSON(e)) : [] };
- },
- toJSON(message: sendMail): unknown {
- const obj: any = {};
- if (message.list?.length) {
- obj.list = message.list.map((e) => mail.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<sendMail>, I>>(base?: I): sendMail {
- return sendMail.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<sendMail>, I>>(object: I): sendMail {
- const message = createBasesendMail();
- message.list = object.list?.map((e) => mail.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasesimpleMail(): simpleMail {
- return { num: 0, noread: 0, needread: 0 };
- }
- export const simpleMail = {
- fromJSON(object: any): simpleMail {
- return {
- num: isSet(object.num) ? globalThis.Number(object.num) : 0,
- noread: isSet(object.noread) ? globalThis.Number(object.noread) : 0,
- needread: isSet(object.needread) ? globalThis.Number(object.needread) : 0,
- };
- },
- toJSON(message: simpleMail): unknown {
- const obj: any = {};
- if (message.num !== 0) {
- obj.num = Math.round(message.num);
- }
- if (message.noread !== 0) {
- obj.noread = Math.round(message.noread);
- }
- if (message.needread !== 0) {
- obj.needread = Math.round(message.needread);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<simpleMail>, I>>(base?: I): simpleMail {
- return simpleMail.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<simpleMail>, I>>(object: I): simpleMail {
- const message = createBasesimpleMail();
- message.num = object.num ?? 0;
- message.noread = object.noread ?? 0;
- message.needread = object.needread ?? 0;
- return message;
- },
- };
- function createBaseembattleGetData(): embattleGetData {
- return {};
- }
- export const embattleGetData = {
- fromJSON(_: any): embattleGetData {
- return {};
- },
- toJSON(_: embattleGetData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<embattleGetData>, I>>(base?: I): embattleGetData {
- return embattleGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<embattleGetData>, I>>(_: I): embattleGetData {
- const message = createBaseembattleGetData();
- return message;
- },
- };
- function createBaseembattleGetDataRsp(): embattleGetDataRsp {
- return { errno: 0, list: [], cardList: [] };
- }
- export const embattleGetDataRsp = {
- fromJSON(object: any): embattleGetDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => sidPos.fromJSON(e)) : [],
- cardList: globalThis.Array.isArray(object?.cardList) ? object.cardList.map((e: any) => sidPos.fromJSON(e)) : [],
- };
- },
- toJSON(message: embattleGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => sidPos.toJSON(e));
- }
- if (message.cardList?.length) {
- obj.cardList = message.cardList.map((e) => sidPos.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<embattleGetDataRsp>, I>>(base?: I): embattleGetDataRsp {
- return embattleGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<embattleGetDataRsp>, I>>(object: I): embattleGetDataRsp {
- const message = createBaseembattleGetDataRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => sidPos.fromPartial(e)) || [];
- message.cardList = object.cardList?.map((e) => sidPos.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseembattleBattle(): embattleBattle {
- return { skill: false, sid: "", pos: 0 };
- }
- export const embattleBattle = {
- fromJSON(object: any): embattleBattle {
- return {
- skill: isSet(object.skill) ? globalThis.Boolean(object.skill) : false,
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0,
- };
- },
- toJSON(message: embattleBattle): unknown {
- const obj: any = {};
- if (message.skill !== false) {
- obj.skill = message.skill;
- }
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<embattleBattle>, I>>(base?: I): embattleBattle {
- return embattleBattle.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<embattleBattle>, I>>(object: I): embattleBattle {
- const message = createBaseembattleBattle();
- message.skill = object.skill ?? false;
- message.sid = object.sid ?? "";
- message.pos = object.pos ?? 0;
- return message;
- },
- };
- function createBaseembattleBattleRsp(): embattleBattleRsp {
- return { errno: 0, list: [], cardList: [] };
- }
- export const embattleBattleRsp = {
- fromJSON(object: any): embattleBattleRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => sidPos.fromJSON(e)) : [],
- cardList: globalThis.Array.isArray(object?.cardList) ? object.cardList.map((e: any) => sidPos.fromJSON(e)) : [],
- };
- },
- toJSON(message: embattleBattleRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => sidPos.toJSON(e));
- }
- if (message.cardList?.length) {
- obj.cardList = message.cardList.map((e) => sidPos.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<embattleBattleRsp>, I>>(base?: I): embattleBattleRsp {
- return embattleBattleRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<embattleBattleRsp>, I>>(object: I): embattleBattleRsp {
- const message = createBaseembattleBattleRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => sidPos.fromPartial(e)) || [];
- message.cardList = object.cardList?.map((e) => sidPos.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseheroGetData(): heroGetData {
- return {};
- }
- export const heroGetData = {
- fromJSON(_: any): heroGetData {
- return {};
- },
- toJSON(_: heroGetData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<heroGetData>, I>>(base?: I): heroGetData {
- return heroGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroGetData>, I>>(_: I): heroGetData {
- const message = createBaseheroGetData();
- return message;
- },
- };
- function createBaseheroGetDataRsp(): heroGetDataRsp {
- return { errno: 0, list: [] };
- }
- export const heroGetDataRsp = {
- fromJSON(object: any): heroGetDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => hero.fromJSON(e)) : [],
- };
- },
- toJSON(message: heroGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => hero.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<heroGetDataRsp>, I>>(base?: I): heroGetDataRsp {
- return heroGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroGetDataRsp>, I>>(object: I): heroGetDataRsp {
- const message = createBaseheroGetDataRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => hero.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseheroUpgrade(): heroUpgrade {
- return { sid: "", num: 0 };
- }
- export const heroUpgrade = {
- fromJSON(object: any): heroUpgrade {
- return {
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- num: isSet(object.num) ? globalThis.Number(object.num) : 0,
- };
- },
- toJSON(message: heroUpgrade): unknown {
- const obj: any = {};
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- if (message.num !== 0) {
- obj.num = Math.round(message.num);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<heroUpgrade>, I>>(base?: I): heroUpgrade {
- return heroUpgrade.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroUpgrade>, I>>(object: I): heroUpgrade {
- const message = createBaseheroUpgrade();
- message.sid = object.sid ?? "";
- message.num = object.num ?? 0;
- return message;
- },
- };
- function createBaseheroUpgradeRsp(): heroUpgradeRsp {
- return { errno: 0, data: undefined };
- }
- export const heroUpgradeRsp = {
- fromJSON(object: any): heroUpgradeRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? hero.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: heroUpgradeRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = hero.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<heroUpgradeRsp>, I>>(base?: I): heroUpgradeRsp {
- return heroUpgradeRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroUpgradeRsp>, I>>(object: I): heroUpgradeRsp {
- const message = createBaseheroUpgradeRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? hero.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBaseheroUpgradeStar(): heroUpgradeStar {
- return { sid: "", same: [], other: [], currency: undefined };
- }
- export const heroUpgradeStar = {
- fromJSON(object: any): heroUpgradeStar {
- return {
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- same: globalThis.Array.isArray(object?.same) ? object.same.map((e: any) => globalThis.String(e)) : [],
- other: globalThis.Array.isArray(object?.other) ? object.other.map((e: any) => globalThis.String(e)) : [],
- currency: isSet(object.currency) ? idNum.fromJSON(object.currency) : undefined,
- };
- },
- toJSON(message: heroUpgradeStar): unknown {
- const obj: any = {};
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- if (message.same?.length) {
- obj.same = message.same;
- }
- if (message.other?.length) {
- obj.other = message.other;
- }
- if (message.currency !== undefined) {
- obj.currency = idNum.toJSON(message.currency);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<heroUpgradeStar>, I>>(base?: I): heroUpgradeStar {
- return heroUpgradeStar.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroUpgradeStar>, I>>(object: I): heroUpgradeStar {
- const message = createBaseheroUpgradeStar();
- message.sid = object.sid ?? "";
- message.same = object.same?.map((e) => e) || [];
- message.other = object.other?.map((e) => e) || [];
- message.currency = (object.currency !== undefined && object.currency !== null)
- ? idNum.fromPartial(object.currency)
- : undefined;
- return message;
- },
- };
- function createBaseheroUpgradeStarRsp(): heroUpgradeStarRsp {
- return { errno: 0, data: undefined, same: [], other: [], currency: undefined };
- }
- export const heroUpgradeStarRsp = {
- fromJSON(object: any): heroUpgradeStarRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? hero.fromJSON(object.data) : undefined,
- same: globalThis.Array.isArray(object?.same) ? object.same.map((e: any) => globalThis.String(e)) : [],
- other: globalThis.Array.isArray(object?.other) ? object.other.map((e: any) => globalThis.String(e)) : [],
- currency: isSet(object.currency) ? idNum.fromJSON(object.currency) : undefined,
- };
- },
- toJSON(message: heroUpgradeStarRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = hero.toJSON(message.data);
- }
- if (message.same?.length) {
- obj.same = message.same;
- }
- if (message.other?.length) {
- obj.other = message.other;
- }
- if (message.currency !== undefined) {
- obj.currency = idNum.toJSON(message.currency);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<heroUpgradeStarRsp>, I>>(base?: I): heroUpgradeStarRsp {
- return heroUpgradeStarRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroUpgradeStarRsp>, I>>(object: I): heroUpgradeStarRsp {
- const message = createBaseheroUpgradeStarRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? hero.fromPartial(object.data) : undefined;
- message.same = object.same?.map((e) => e) || [];
- message.other = object.other?.map((e) => e) || [];
- message.currency = (object.currency !== undefined && object.currency !== null)
- ? idNum.fromPartial(object.currency)
- : undefined;
- return message;
- },
- };
- function createBaseheroOnekeyUpgradeStar(): heroOnekeyUpgradeStar {
- return {};
- }
- export const heroOnekeyUpgradeStar = {
- fromJSON(_: any): heroOnekeyUpgradeStar {
- return {};
- },
- toJSON(_: heroOnekeyUpgradeStar): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<heroOnekeyUpgradeStar>, I>>(base?: I): heroOnekeyUpgradeStar {
- return heroOnekeyUpgradeStar.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroOnekeyUpgradeStar>, I>>(_: I): heroOnekeyUpgradeStar {
- const message = createBaseheroOnekeyUpgradeStar();
- return message;
- },
- };
- function createBaseheroOnekeyUpgradeStarRsp(): heroOnekeyUpgradeStarRsp {
- return { errno: 0, delList: [], changeList: [] };
- }
- export const heroOnekeyUpgradeStarRsp = {
- fromJSON(object: any): heroOnekeyUpgradeStarRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- delList: globalThis.Array.isArray(object?.delList) ? object.delList.map((e: any) => globalThis.String(e)) : [],
- changeList: globalThis.Array.isArray(object?.changeList)
- ? object.changeList.map((e: any) => hero.fromJSON(e))
- : [],
- };
- },
- toJSON(message: heroOnekeyUpgradeStarRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.delList?.length) {
- obj.delList = message.delList;
- }
- if (message.changeList?.length) {
- obj.changeList = message.changeList.map((e) => hero.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<heroOnekeyUpgradeStarRsp>, I>>(base?: I): heroOnekeyUpgradeStarRsp {
- return heroOnekeyUpgradeStarRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroOnekeyUpgradeStarRsp>, I>>(object: I): heroOnekeyUpgradeStarRsp {
- const message = createBaseheroOnekeyUpgradeStarRsp();
- message.errno = object.errno ?? 0;
- message.delList = object.delList?.map((e) => e) || [];
- message.changeList = object.changeList?.map((e) => hero.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseheroReset(): heroReset {
- return { level: false, sid: "" };
- }
- export const heroReset = {
- fromJSON(object: any): heroReset {
- return {
- level: isSet(object.level) ? globalThis.Boolean(object.level) : false,
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- };
- },
- toJSON(message: heroReset): unknown {
- const obj: any = {};
- if (message.level !== false) {
- obj.level = message.level;
- }
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<heroReset>, I>>(base?: I): heroReset {
- return heroReset.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroReset>, I>>(object: I): heroReset {
- const message = createBaseheroReset();
- message.level = object.level ?? false;
- message.sid = object.sid ?? "";
- return message;
- },
- };
- function createBaseheroResetRsp(): heroResetRsp {
- return { errno: 0, data: undefined };
- }
- export const heroResetRsp = {
- fromJSON(object: any): heroResetRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? hero.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: heroResetRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = hero.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<heroResetRsp>, I>>(base?: I): heroResetRsp {
- return heroResetRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroResetRsp>, I>>(object: I): heroResetRsp {
- const message = createBaseheroResetRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? hero.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBaseheroWearEquip(): heroWearEquip {
- return { sid: "", list: [] };
- }
- export const heroWearEquip = {
- fromJSON(object: any): heroWearEquip {
- return {
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => globalThis.String(e)) : [],
- };
- },
- toJSON(message: heroWearEquip): unknown {
- const obj: any = {};
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- if (message.list?.length) {
- obj.list = message.list;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<heroWearEquip>, I>>(base?: I): heroWearEquip {
- return heroWearEquip.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroWearEquip>, I>>(object: I): heroWearEquip {
- const message = createBaseheroWearEquip();
- message.sid = object.sid ?? "";
- message.list = object.list?.map((e) => e) || [];
- return message;
- },
- };
- function createBaseheroWearEquipRsp(): heroWearEquipRsp {
- return { errno: 0, list: [], data: undefined };
- }
- export const heroWearEquipRsp = {
- fromJSON(object: any): heroWearEquipRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => globalThis.String(e)) : [],
- data: isSet(object.data) ? hero.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: heroWearEquipRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list;
- }
- if (message.data !== undefined) {
- obj.data = hero.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<heroWearEquipRsp>, I>>(base?: I): heroWearEquipRsp {
- return heroWearEquipRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroWearEquipRsp>, I>>(object: I): heroWearEquipRsp {
- const message = createBaseheroWearEquipRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => e) || [];
- message.data = (object.data !== undefined && object.data !== null) ? hero.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBaseheroChangeNty(): heroChangeNty {
- return { list: [] };
- }
- export const heroChangeNty = {
- fromJSON(object: any): heroChangeNty {
- return { list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => hero.fromJSON(e)) : [] };
- },
- toJSON(message: heroChangeNty): unknown {
- const obj: any = {};
- if (message.list?.length) {
- obj.list = message.list.map((e) => hero.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<heroChangeNty>, I>>(base?: I): heroChangeNty {
- return heroChangeNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<heroChangeNty>, I>>(object: I): heroChangeNty {
- const message = createBaseheroChangeNty();
- message.list = object.list?.map((e) => hero.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseskillCardGetData(): skillCardGetData {
- return {};
- }
- export const skillCardGetData = {
- fromJSON(_: any): skillCardGetData {
- return {};
- },
- toJSON(_: skillCardGetData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<skillCardGetData>, I>>(base?: I): skillCardGetData {
- return skillCardGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<skillCardGetData>, I>>(_: I): skillCardGetData {
- const message = createBaseskillCardGetData();
- return message;
- },
- };
- function createBaseskillCardGetDataRsp(): skillCardGetDataRsp {
- return { errno: 0, list: [] };
- }
- export const skillCardGetDataRsp = {
- fromJSON(object: any): skillCardGetDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => card.fromJSON(e)) : [],
- };
- },
- toJSON(message: skillCardGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => card.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<skillCardGetDataRsp>, I>>(base?: I): skillCardGetDataRsp {
- return skillCardGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<skillCardGetDataRsp>, I>>(object: I): skillCardGetDataRsp {
- const message = createBaseskillCardGetDataRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => card.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseskillCardUpgrade(): skillCardUpgrade {
- return { sid: "", num: 0 };
- }
- export const skillCardUpgrade = {
- fromJSON(object: any): skillCardUpgrade {
- return {
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- num: isSet(object.num) ? globalThis.Number(object.num) : 0,
- };
- },
- toJSON(message: skillCardUpgrade): unknown {
- const obj: any = {};
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- if (message.num !== 0) {
- obj.num = Math.round(message.num);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<skillCardUpgrade>, I>>(base?: I): skillCardUpgrade {
- return skillCardUpgrade.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<skillCardUpgrade>, I>>(object: I): skillCardUpgrade {
- const message = createBaseskillCardUpgrade();
- message.sid = object.sid ?? "";
- message.num = object.num ?? 0;
- return message;
- },
- };
- function createBaseskillCardUpgradeRsp(): skillCardUpgradeRsp {
- return { errno: 0, data: undefined };
- }
- export const skillCardUpgradeRsp = {
- fromJSON(object: any): skillCardUpgradeRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? card.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: skillCardUpgradeRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = card.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<skillCardUpgradeRsp>, I>>(base?: I): skillCardUpgradeRsp {
- return skillCardUpgradeRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<skillCardUpgradeRsp>, I>>(object: I): skillCardUpgradeRsp {
- const message = createBaseskillCardUpgradeRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? card.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBaseskillCardUpgradeStar(): skillCardUpgradeStar {
- return { sid: "" };
- }
- export const skillCardUpgradeStar = {
- fromJSON(object: any): skillCardUpgradeStar {
- return { sid: isSet(object.sid) ? globalThis.String(object.sid) : "" };
- },
- toJSON(message: skillCardUpgradeStar): unknown {
- const obj: any = {};
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<skillCardUpgradeStar>, I>>(base?: I): skillCardUpgradeStar {
- return skillCardUpgradeStar.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<skillCardUpgradeStar>, I>>(object: I): skillCardUpgradeStar {
- const message = createBaseskillCardUpgradeStar();
- message.sid = object.sid ?? "";
- return message;
- },
- };
- function createBaseskillCardUpgradeStarRsp(): skillCardUpgradeStarRsp {
- return { errno: 0, data: undefined };
- }
- export const skillCardUpgradeStarRsp = {
- fromJSON(object: any): skillCardUpgradeStarRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? card.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: skillCardUpgradeStarRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = card.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<skillCardUpgradeStarRsp>, I>>(base?: I): skillCardUpgradeStarRsp {
- return skillCardUpgradeStarRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<skillCardUpgradeStarRsp>, I>>(object: I): skillCardUpgradeStarRsp {
- const message = createBaseskillCardUpgradeStarRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? card.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBaseroleGetData(): roleGetData {
- return {};
- }
- export const roleGetData = {
- fromJSON(_: any): roleGetData {
- return {};
- },
- toJSON(_: roleGetData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<roleGetData>, I>>(base?: I): roleGetData {
- return roleGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<roleGetData>, I>>(_: I): roleGetData {
- const message = createBaseroleGetData();
- return message;
- },
- };
- function createBaseroleGetDataRsp(): roleGetDataRsp {
- return { errno: 0, level: 0, exp: 0 };
- }
- export const roleGetDataRsp = {
- fromJSON(object: any): roleGetDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- level: isSet(object.level) ? globalThis.Number(object.level) : 0,
- exp: isSet(object.exp) ? globalThis.Number(object.exp) : 0,
- };
- },
- toJSON(message: roleGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.level !== 0) {
- obj.level = Math.round(message.level);
- }
- if (message.exp !== 0) {
- obj.exp = Math.round(message.exp);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<roleGetDataRsp>, I>>(base?: I): roleGetDataRsp {
- return roleGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<roleGetDataRsp>, I>>(object: I): roleGetDataRsp {
- const message = createBaseroleGetDataRsp();
- message.errno = object.errno ?? 0;
- message.level = object.level ?? 0;
- message.exp = object.exp ?? 0;
- return message;
- },
- };
- function createBaseroleUpgrade(): roleUpgrade {
- return {};
- }
- export const roleUpgrade = {
- fromJSON(_: any): roleUpgrade {
- return {};
- },
- toJSON(_: roleUpgrade): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<roleUpgrade>, I>>(base?: I): roleUpgrade {
- return roleUpgrade.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<roleUpgrade>, I>>(_: I): roleUpgrade {
- const message = createBaseroleUpgrade();
- return message;
- },
- };
- function createBaseroleUpgradeRsp(): roleUpgradeRsp {
- return { errno: 0, level: 0, exp: 0 };
- }
- export const roleUpgradeRsp = {
- fromJSON(object: any): roleUpgradeRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- level: isSet(object.level) ? globalThis.Number(object.level) : 0,
- exp: isSet(object.exp) ? globalThis.Number(object.exp) : 0,
- };
- },
- toJSON(message: roleUpgradeRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.level !== 0) {
- obj.level = Math.round(message.level);
- }
- if (message.exp !== 0) {
- obj.exp = Math.round(message.exp);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<roleUpgradeRsp>, I>>(base?: I): roleUpgradeRsp {
- return roleUpgradeRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<roleUpgradeRsp>, I>>(object: I): roleUpgradeRsp {
- const message = createBaseroleUpgradeRsp();
- message.errno = object.errno ?? 0;
- message.level = object.level ?? 0;
- message.exp = object.exp ?? 0;
- return message;
- },
- };
- function createBaseroleRename(): roleRename {
- return { name: "" };
- }
- export const roleRename = {
- fromJSON(object: any): roleRename {
- return { name: isSet(object.name) ? globalThis.String(object.name) : "" };
- },
- toJSON(message: roleRename): unknown {
- const obj: any = {};
- if (message.name !== "") {
- obj.name = message.name;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<roleRename>, I>>(base?: I): roleRename {
- return roleRename.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<roleRename>, I>>(object: I): roleRename {
- const message = createBaseroleRename();
- message.name = object.name ?? "";
- return message;
- },
- };
- function createBaseroleRenameRsp(): roleRenameRsp {
- return { errno: 0, name: "", time: 0 };
- }
- export const roleRenameRsp = {
- fromJSON(object: any): roleRenameRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- name: isSet(object.name) ? globalThis.String(object.name) : "",
- time: isSet(object.time) ? globalThis.Number(object.time) : 0,
- };
- },
- toJSON(message: roleRenameRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.name !== "") {
- obj.name = message.name;
- }
- if (message.time !== 0) {
- obj.time = Math.round(message.time);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<roleRenameRsp>, I>>(base?: I): roleRenameRsp {
- return roleRenameRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<roleRenameRsp>, I>>(object: I): roleRenameRsp {
- const message = createBaseroleRenameRsp();
- message.errno = object.errno ?? 0;
- message.name = object.name ?? "";
- message.time = object.time ?? 0;
- return message;
- },
- };
- function createBasedebrisGetData(): debrisGetData {
- return {};
- }
- export const debrisGetData = {
- fromJSON(_: any): debrisGetData {
- return {};
- },
- toJSON(_: debrisGetData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<debrisGetData>, I>>(base?: I): debrisGetData {
- return debrisGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<debrisGetData>, I>>(_: I): debrisGetData {
- const message = createBasedebrisGetData();
- return message;
- },
- };
- function createBasedebrisGetDataRsp(): debrisGetDataRsp {
- return { errno: 0, list: [] };
- }
- export const debrisGetDataRsp = {
- fromJSON(object: any): debrisGetDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => idNum.fromJSON(e)) : [],
- };
- },
- toJSON(message: debrisGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => idNum.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<debrisGetDataRsp>, I>>(base?: I): debrisGetDataRsp {
- return debrisGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<debrisGetDataRsp>, I>>(object: I): debrisGetDataRsp {
- const message = createBasedebrisGetDataRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => idNum.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasedebrisMerge(): debrisMerge {
- return { id: 0 };
- }
- export const debrisMerge = {
- fromJSON(object: any): debrisMerge {
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
- },
- toJSON(message: debrisMerge): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<debrisMerge>, I>>(base?: I): debrisMerge {
- return debrisMerge.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<debrisMerge>, I>>(object: I): debrisMerge {
- const message = createBasedebrisMerge();
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasedebrisMergeRsp(): debrisMergeRsp {
- return { errno: 0 };
- }
- export const debrisMergeRsp = {
- fromJSON(object: any): debrisMergeRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: debrisMergeRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<debrisMergeRsp>, I>>(base?: I): debrisMergeRsp {
- return debrisMergeRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<debrisMergeRsp>, I>>(object: I): debrisMergeRsp {
- const message = createBasedebrisMergeRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaseequipGetData(): equipGetData {
- return {};
- }
- export const equipGetData = {
- fromJSON(_: any): equipGetData {
- return {};
- },
- toJSON(_: equipGetData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<equipGetData>, I>>(base?: I): equipGetData {
- return equipGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<equipGetData>, I>>(_: I): equipGetData {
- const message = createBaseequipGetData();
- return message;
- },
- };
- function createBaseequipGetDataRsp(): equipGetDataRsp {
- return { errno: 0, list: [] };
- }
- export const equipGetDataRsp = {
- fromJSON(object: any): equipGetDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => equip.fromJSON(e)) : [],
- };
- },
- toJSON(message: equipGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => equip.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<equipGetDataRsp>, I>>(base?: I): equipGetDataRsp {
- return equipGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<equipGetDataRsp>, I>>(object: I): equipGetDataRsp {
- const message = createBaseequipGetDataRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => equip.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseequipUpgrade(): equipUpgrade {
- return { sid: "", num: 0 };
- }
- export const equipUpgrade = {
- fromJSON(object: any): equipUpgrade {
- return {
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- num: isSet(object.num) ? globalThis.Number(object.num) : 0,
- };
- },
- toJSON(message: equipUpgrade): unknown {
- const obj: any = {};
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- if (message.num !== 0) {
- obj.num = Math.round(message.num);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<equipUpgrade>, I>>(base?: I): equipUpgrade {
- return equipUpgrade.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<equipUpgrade>, I>>(object: I): equipUpgrade {
- const message = createBaseequipUpgrade();
- message.sid = object.sid ?? "";
- message.num = object.num ?? 0;
- return message;
- },
- };
- function createBaseequipUpgradeRsp(): equipUpgradeRsp {
- return { errno: 0, data: undefined };
- }
- export const equipUpgradeRsp = {
- fromJSON(object: any): equipUpgradeRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? equip.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: equipUpgradeRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = equip.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<equipUpgradeRsp>, I>>(base?: I): equipUpgradeRsp {
- return equipUpgradeRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<equipUpgradeRsp>, I>>(object: I): equipUpgradeRsp {
- const message = createBaseequipUpgradeRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? equip.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBaseequipUpgradeStar(): equipUpgradeStar {
- return { sid: "", same: [], other: [], currency: undefined };
- }
- export const equipUpgradeStar = {
- fromJSON(object: any): equipUpgradeStar {
- return {
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- same: globalThis.Array.isArray(object?.same) ? object.same.map((e: any) => globalThis.String(e)) : [],
- other: globalThis.Array.isArray(object?.other) ? object.other.map((e: any) => globalThis.String(e)) : [],
- currency: isSet(object.currency) ? idNum.fromJSON(object.currency) : undefined,
- };
- },
- toJSON(message: equipUpgradeStar): unknown {
- const obj: any = {};
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- if (message.same?.length) {
- obj.same = message.same;
- }
- if (message.other?.length) {
- obj.other = message.other;
- }
- if (message.currency !== undefined) {
- obj.currency = idNum.toJSON(message.currency);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<equipUpgradeStar>, I>>(base?: I): equipUpgradeStar {
- return equipUpgradeStar.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<equipUpgradeStar>, I>>(object: I): equipUpgradeStar {
- const message = createBaseequipUpgradeStar();
- message.sid = object.sid ?? "";
- message.same = object.same?.map((e) => e) || [];
- message.other = object.other?.map((e) => e) || [];
- message.currency = (object.currency !== undefined && object.currency !== null)
- ? idNum.fromPartial(object.currency)
- : undefined;
- return message;
- },
- };
- function createBaseequipUpgradeStarRsp(): equipUpgradeStarRsp {
- return { errno: 0, data: undefined, same: [], other: [], currency: undefined };
- }
- export const equipUpgradeStarRsp = {
- fromJSON(object: any): equipUpgradeStarRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? equip.fromJSON(object.data) : undefined,
- same: globalThis.Array.isArray(object?.same) ? object.same.map((e: any) => globalThis.String(e)) : [],
- other: globalThis.Array.isArray(object?.other) ? object.other.map((e: any) => globalThis.String(e)) : [],
- currency: isSet(object.currency) ? idNum.fromJSON(object.currency) : undefined,
- };
- },
- toJSON(message: equipUpgradeStarRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = equip.toJSON(message.data);
- }
- if (message.same?.length) {
- obj.same = message.same;
- }
- if (message.other?.length) {
- obj.other = message.other;
- }
- if (message.currency !== undefined) {
- obj.currency = idNum.toJSON(message.currency);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<equipUpgradeStarRsp>, I>>(base?: I): equipUpgradeStarRsp {
- return equipUpgradeStarRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<equipUpgradeStarRsp>, I>>(object: I): equipUpgradeStarRsp {
- const message = createBaseequipUpgradeStarRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? equip.fromPartial(object.data) : undefined;
- message.same = object.same?.map((e) => e) || [];
- message.other = object.other?.map((e) => e) || [];
- message.currency = (object.currency !== undefined && object.currency !== null)
- ? idNum.fromPartial(object.currency)
- : undefined;
- return message;
- },
- };
- function createBaseequipOnekeyUpgradeStar(): equipOnekeyUpgradeStar {
- return {};
- }
- export const equipOnekeyUpgradeStar = {
- fromJSON(_: any): equipOnekeyUpgradeStar {
- return {};
- },
- toJSON(_: equipOnekeyUpgradeStar): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<equipOnekeyUpgradeStar>, I>>(base?: I): equipOnekeyUpgradeStar {
- return equipOnekeyUpgradeStar.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<equipOnekeyUpgradeStar>, I>>(_: I): equipOnekeyUpgradeStar {
- const message = createBaseequipOnekeyUpgradeStar();
- return message;
- },
- };
- function createBaseequipOnekeyUpgradeStarRsp(): equipOnekeyUpgradeStarRsp {
- return { errno: 0, delList: [], changeList: [] };
- }
- export const equipOnekeyUpgradeStarRsp = {
- fromJSON(object: any): equipOnekeyUpgradeStarRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- delList: globalThis.Array.isArray(object?.delList) ? object.delList.map((e: any) => globalThis.String(e)) : [],
- changeList: globalThis.Array.isArray(object?.changeList)
- ? object.changeList.map((e: any) => equip.fromJSON(e))
- : [],
- };
- },
- toJSON(message: equipOnekeyUpgradeStarRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.delList?.length) {
- obj.delList = message.delList;
- }
- if (message.changeList?.length) {
- obj.changeList = message.changeList.map((e) => equip.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<equipOnekeyUpgradeStarRsp>, I>>(base?: I): equipOnekeyUpgradeStarRsp {
- return equipOnekeyUpgradeStarRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<equipOnekeyUpgradeStarRsp>, I>>(object: I): equipOnekeyUpgradeStarRsp {
- const message = createBaseequipOnekeyUpgradeStarRsp();
- message.errno = object.errno ?? 0;
- message.delList = object.delList?.map((e) => e) || [];
- message.changeList = object.changeList?.map((e) => equip.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseequipReset(): equipReset {
- return { level: false, sid: "" };
- }
- export const equipReset = {
- fromJSON(object: any): equipReset {
- return {
- level: isSet(object.level) ? globalThis.Boolean(object.level) : false,
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- };
- },
- toJSON(message: equipReset): unknown {
- const obj: any = {};
- if (message.level !== false) {
- obj.level = message.level;
- }
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<equipReset>, I>>(base?: I): equipReset {
- return equipReset.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<equipReset>, I>>(object: I): equipReset {
- const message = createBaseequipReset();
- message.level = object.level ?? false;
- message.sid = object.sid ?? "";
- return message;
- },
- };
- function createBaseequipResetRsp(): equipResetRsp {
- return { errno: 0, data: undefined };
- }
- export const equipResetRsp = {
- fromJSON(object: any): equipResetRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? equip.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: equipResetRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = equip.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<equipResetRsp>, I>>(base?: I): equipResetRsp {
- return equipResetRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<equipResetRsp>, I>>(object: I): equipResetRsp {
- const message = createBaseequipResetRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? equip.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBaseequipChangeNty(): equipChangeNty {
- return { list: [] };
- }
- export const equipChangeNty = {
- fromJSON(object: any): equipChangeNty {
- return { list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => equip.fromJSON(e)) : [] };
- },
- toJSON(message: equipChangeNty): unknown {
- const obj: any = {};
- if (message.list?.length) {
- obj.list = message.list.map((e) => equip.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<equipChangeNty>, I>>(base?: I): equipChangeNty {
- return equipChangeNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<equipChangeNty>, I>>(object: I): equipChangeNty {
- const message = createBaseequipChangeNty();
- message.list = object.list?.map((e) => equip.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasetalentGetData(): talentGetData {
- return {};
- }
- export const talentGetData = {
- fromJSON(_: any): talentGetData {
- return {};
- },
- toJSON(_: talentGetData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<talentGetData>, I>>(base?: I): talentGetData {
- return talentGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<talentGetData>, I>>(_: I): talentGetData {
- const message = createBasetalentGetData();
- return message;
- },
- };
- function createBasetalentGetDataRsp(): talentGetDataRsp {
- return { errno: 0, id1: 0, id2: 0 };
- }
- export const talentGetDataRsp = {
- fromJSON(object: any): talentGetDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- id1: isSet(object.id1) ? globalThis.Number(object.id1) : 0,
- id2: isSet(object.id2) ? globalThis.Number(object.id2) : 0,
- };
- },
- toJSON(message: talentGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.id1 !== 0) {
- obj.id1 = Math.round(message.id1);
- }
- if (message.id2 !== 0) {
- obj.id2 = Math.round(message.id2);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<talentGetDataRsp>, I>>(base?: I): talentGetDataRsp {
- return talentGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<talentGetDataRsp>, I>>(object: I): talentGetDataRsp {
- const message = createBasetalentGetDataRsp();
- message.errno = object.errno ?? 0;
- message.id1 = object.id1 ?? 0;
- message.id2 = object.id2 ?? 0;
- return message;
- },
- };
- function createBasetalentActivate(): talentActivate {
- return { id: 0 };
- }
- export const talentActivate = {
- fromJSON(object: any): talentActivate {
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
- },
- toJSON(message: talentActivate): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<talentActivate>, I>>(base?: I): talentActivate {
- return talentActivate.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<talentActivate>, I>>(object: I): talentActivate {
- const message = createBasetalentActivate();
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasetalentActivateRsp(): talentActivateRsp {
- return { errno: 0, id: 0 };
- }
- export const talentActivateRsp = {
- fromJSON(object: any): talentActivateRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- };
- },
- toJSON(message: talentActivateRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<talentActivateRsp>, I>>(base?: I): talentActivateRsp {
- return talentActivateRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<talentActivateRsp>, I>>(object: I): talentActivateRsp {
- const message = createBasetalentActivateRsp();
- message.errno = object.errno ?? 0;
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasesignInGetData(): signInGetData {
- return {};
- }
- export const signInGetData = {
- fromJSON(_: any): signInGetData {
- return {};
- },
- toJSON(_: signInGetData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<signInGetData>, I>>(base?: I): signInGetData {
- return signInGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<signInGetData>, I>>(_: I): signInGetData {
- const message = createBasesignInGetData();
- return message;
- },
- };
- function createBasesignInGetDataRsp(): signInGetDataRsp {
- return { errno: 0 };
- }
- export const signInGetDataRsp = {
- fromJSON(object: any): signInGetDataRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: signInGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<signInGetDataRsp>, I>>(base?: I): signInGetDataRsp {
- return signInGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<signInGetDataRsp>, I>>(object: I): signInGetDataRsp {
- const message = createBasesignInGetDataRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBasesignInAward(): signInAward {
- return { day: 0 };
- }
- export const signInAward = {
- fromJSON(object: any): signInAward {
- return { day: isSet(object.day) ? globalThis.Number(object.day) : 0 };
- },
- toJSON(message: signInAward): unknown {
- const obj: any = {};
- if (message.day !== 0) {
- obj.day = Math.round(message.day);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<signInAward>, I>>(base?: I): signInAward {
- return signInAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<signInAward>, I>>(object: I): signInAward {
- const message = createBasesignInAward();
- message.day = object.day ?? 0;
- return message;
- },
- };
- function createBasesignInAwardRsp(): signInAwardRsp {
- return { errno: 0, day: 0, award: 0 };
- }
- export const signInAwardRsp = {
- fromJSON(object: any): signInAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- day: isSet(object.day) ? globalThis.Number(object.day) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- };
- },
- toJSON(message: signInAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.day !== 0) {
- obj.day = Math.round(message.day);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<signInAwardRsp>, I>>(base?: I): signInAwardRsp {
- return signInAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<signInAwardRsp>, I>>(object: I): signInAwardRsp {
- const message = createBasesignInAwardRsp();
- message.errno = object.errno ?? 0;
- message.day = object.day ?? 0;
- message.award = object.award ?? 0;
- return message;
- },
- };
- function createBasesignInNty(): signInNty {
- return { open: false, day: 0, award: 0, round: 0 };
- }
- export const signInNty = {
- fromJSON(object: any): signInNty {
- return {
- open: isSet(object.open) ? globalThis.Boolean(object.open) : false,
- day: isSet(object.day) ? globalThis.Number(object.day) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- round: isSet(object.round) ? globalThis.Number(object.round) : 0,
- };
- },
- toJSON(message: signInNty): unknown {
- const obj: any = {};
- if (message.open !== false) {
- obj.open = message.open;
- }
- if (message.day !== 0) {
- obj.day = Math.round(message.day);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- if (message.round !== 0) {
- obj.round = Math.round(message.round);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<signInNty>, I>>(base?: I): signInNty {
- return signInNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<signInNty>, I>>(object: I): signInNty {
- const message = createBasesignInNty();
- message.open = object.open ?? false;
- message.day = object.day ?? 0;
- message.award = object.award ?? 0;
- message.round = object.round ?? 0;
- return message;
- },
- };
- function createBasequestGetData(): questGetData {
- return {};
- }
- export const questGetData = {
- fromJSON(_: any): questGetData {
- return {};
- },
- toJSON(_: questGetData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<questGetData>, I>>(base?: I): questGetData {
- return questGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<questGetData>, I>>(_: I): questGetData {
- const message = createBasequestGetData();
- return message;
- },
- };
- function createBasequestGetDataRsp(): questGetDataRsp {
- return {
- errno: 0,
- dlv: 0,
- wlv: 0,
- daward: 0,
- waward: 0,
- daily: [],
- weekly: [],
- achievement: [],
- mainQuest: undefined,
- };
- }
- export const questGetDataRsp = {
- fromJSON(object: any): questGetDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- dlv: isSet(object.dlv) ? globalThis.Number(object.dlv) : 0,
- wlv: isSet(object.wlv) ? globalThis.Number(object.wlv) : 0,
- daward: isSet(object.daward) ? globalThis.Number(object.daward) : 0,
- waward: isSet(object.waward) ? globalThis.Number(object.waward) : 0,
- daily: globalThis.Array.isArray(object?.daily) ? object.daily.map((e: any) => quest.fromJSON(e)) : [],
- weekly: globalThis.Array.isArray(object?.weekly) ? object.weekly.map((e: any) => quest.fromJSON(e)) : [],
- achievement: globalThis.Array.isArray(object?.achievement)
- ? object.achievement.map((e: any) => quest.fromJSON(e))
- : [],
- mainQuest: isSet(object.mainQuest) ? quest.fromJSON(object.mainQuest) : undefined,
- };
- },
- toJSON(message: questGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.dlv !== 0) {
- obj.dlv = Math.round(message.dlv);
- }
- if (message.wlv !== 0) {
- obj.wlv = Math.round(message.wlv);
- }
- if (message.daward !== 0) {
- obj.daward = Math.round(message.daward);
- }
- if (message.waward !== 0) {
- obj.waward = Math.round(message.waward);
- }
- if (message.daily?.length) {
- obj.daily = message.daily.map((e) => quest.toJSON(e));
- }
- if (message.weekly?.length) {
- obj.weekly = message.weekly.map((e) => quest.toJSON(e));
- }
- if (message.achievement?.length) {
- obj.achievement = message.achievement.map((e) => quest.toJSON(e));
- }
- if (message.mainQuest !== undefined) {
- obj.mainQuest = quest.toJSON(message.mainQuest);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<questGetDataRsp>, I>>(base?: I): questGetDataRsp {
- return questGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<questGetDataRsp>, I>>(object: I): questGetDataRsp {
- const message = createBasequestGetDataRsp();
- message.errno = object.errno ?? 0;
- message.dlv = object.dlv ?? 0;
- message.wlv = object.wlv ?? 0;
- message.daward = object.daward ?? 0;
- message.waward = object.waward ?? 0;
- message.daily = object.daily?.map((e) => quest.fromPartial(e)) || [];
- message.weekly = object.weekly?.map((e) => quest.fromPartial(e)) || [];
- message.achievement = object.achievement?.map((e) => quest.fromPartial(e)) || [];
- message.mainQuest = (object.mainQuest !== undefined && object.mainQuest !== null)
- ? quest.fromPartial(object.mainQuest)
- : undefined;
- return message;
- },
- };
- function createBasequestGetAward(): questGetAward {
- return { id: 0 };
- }
- export const questGetAward = {
- fromJSON(object: any): questGetAward {
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
- },
- toJSON(message: questGetAward): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<questGetAward>, I>>(base?: I): questGetAward {
- return questGetAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<questGetAward>, I>>(object: I): questGetAward {
- const message = createBasequestGetAward();
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasequestGetAwardRsp(): questGetAwardRsp {
- return { errno: 0, id: 0, data: undefined };
- }
- export const questGetAwardRsp = {
- fromJSON(object: any): questGetAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- data: isSet(object.data) ? quest.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: questGetAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- if (message.data !== undefined) {
- obj.data = quest.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<questGetAwardRsp>, I>>(base?: I): questGetAwardRsp {
- return questGetAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<questGetAwardRsp>, I>>(object: I): questGetAwardRsp {
- const message = createBasequestGetAwardRsp();
- message.errno = object.errno ?? 0;
- message.id = object.id ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? quest.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBasequestActiveAward(): questActiveAward {
- return { type: 0 };
- }
- export const questActiveAward = {
- fromJSON(object: any): questActiveAward {
- return { type: isSet(object.type) ? globalThis.Number(object.type) : 0 };
- },
- toJSON(message: questActiveAward): unknown {
- const obj: any = {};
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<questActiveAward>, I>>(base?: I): questActiveAward {
- return questActiveAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<questActiveAward>, I>>(object: I): questActiveAward {
- const message = createBasequestActiveAward();
- message.type = object.type ?? 0;
- return message;
- },
- };
- function createBasequestActiveAwardRsp(): questActiveAwardRsp {
- return { errno: 0, type: 0, award: 0 };
- }
- export const questActiveAwardRsp = {
- fromJSON(object: any): questActiveAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- };
- },
- toJSON(message: questActiveAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<questActiveAwardRsp>, I>>(base?: I): questActiveAwardRsp {
- return questActiveAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<questActiveAwardRsp>, I>>(object: I): questActiveAwardRsp {
- const message = createBasequestActiveAwardRsp();
- message.errno = object.errno ?? 0;
- message.type = object.type ?? 0;
- message.award = object.award ?? 0;
- return message;
- },
- };
- function createBasequestCmplateNotify(): questCmplateNotify {
- return { data: undefined };
- }
- export const questCmplateNotify = {
- fromJSON(object: any): questCmplateNotify {
- return { data: isSet(object.data) ? quest.fromJSON(object.data) : undefined };
- },
- toJSON(message: questCmplateNotify): unknown {
- const obj: any = {};
- if (message.data !== undefined) {
- obj.data = quest.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<questCmplateNotify>, I>>(base?: I): questCmplateNotify {
- return questCmplateNotify.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<questCmplateNotify>, I>>(object: I): questCmplateNotify {
- const message = createBasequestCmplateNotify();
- message.data = (object.data !== undefined && object.data !== null) ? quest.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBasemanualGetData(): manualGetData {
- return { moduleid: 0 };
- }
- export const manualGetData = {
- fromJSON(object: any): manualGetData {
- return { moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0 };
- },
- toJSON(message: manualGetData): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<manualGetData>, I>>(base?: I): manualGetData {
- return manualGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<manualGetData>, I>>(object: I): manualGetData {
- const message = createBasemanualGetData();
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasemanualGetDataRsp(): manualGetDataRsp {
- return { errno: 0, open: false, openTime: 0, level: 0, exp: 0, round: 0, list: [], moduleid: 0 };
- }
- export const manualGetDataRsp = {
- fromJSON(object: any): manualGetDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- open: isSet(object.open) ? globalThis.Boolean(object.open) : false,
- openTime: isSet(object.openTime) ? globalThis.Number(object.openTime) : 0,
- level: isSet(object.level) ? globalThis.Number(object.level) : 0,
- exp: isSet(object.exp) ? globalThis.Number(object.exp) : 0,
- round: isSet(object.round) ? globalThis.Number(object.round) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => manual.fromJSON(e)) : [],
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- };
- },
- toJSON(message: manualGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.open !== false) {
- obj.open = message.open;
- }
- if (message.openTime !== 0) {
- obj.openTime = Math.round(message.openTime);
- }
- if (message.level !== 0) {
- obj.level = Math.round(message.level);
- }
- if (message.exp !== 0) {
- obj.exp = Math.round(message.exp);
- }
- if (message.round !== 0) {
- obj.round = Math.round(message.round);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => manual.toJSON(e));
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<manualGetDataRsp>, I>>(base?: I): manualGetDataRsp {
- return manualGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<manualGetDataRsp>, I>>(object: I): manualGetDataRsp {
- const message = createBasemanualGetDataRsp();
- message.errno = object.errno ?? 0;
- message.open = object.open ?? false;
- message.openTime = object.openTime ?? 0;
- message.level = object.level ?? 0;
- message.exp = object.exp ?? 0;
- message.round = object.round ?? 0;
- message.list = object.list?.map((e) => manual.fromPartial(e)) || [];
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasemanualBuyExp(): manualBuyExp {
- return { moduleid: 0 };
- }
- export const manualBuyExp = {
- fromJSON(object: any): manualBuyExp {
- return { moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0 };
- },
- toJSON(message: manualBuyExp): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<manualBuyExp>, I>>(base?: I): manualBuyExp {
- return manualBuyExp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<manualBuyExp>, I>>(object: I): manualBuyExp {
- const message = createBasemanualBuyExp();
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasemanualBuyExpRsp(): manualBuyExpRsp {
- return { errno: 0, level: 0, exp: 0, moduleid: 0 };
- }
- export const manualBuyExpRsp = {
- fromJSON(object: any): manualBuyExpRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- level: isSet(object.level) ? globalThis.Number(object.level) : 0,
- exp: isSet(object.exp) ? globalThis.Number(object.exp) : 0,
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- };
- },
- toJSON(message: manualBuyExpRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.level !== 0) {
- obj.level = Math.round(message.level);
- }
- if (message.exp !== 0) {
- obj.exp = Math.round(message.exp);
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<manualBuyExpRsp>, I>>(base?: I): manualBuyExpRsp {
- return manualBuyExpRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<manualBuyExpRsp>, I>>(object: I): manualBuyExpRsp {
- const message = createBasemanualBuyExpRsp();
- message.errno = object.errno ?? 0;
- message.level = object.level ?? 0;
- message.exp = object.exp ?? 0;
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasemanualGetAward(): manualGetAward {
- return { moduleid: 0 };
- }
- export const manualGetAward = {
- fromJSON(object: any): manualGetAward {
- return { moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0 };
- },
- toJSON(message: manualGetAward): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<manualGetAward>, I>>(base?: I): manualGetAward {
- return manualGetAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<manualGetAward>, I>>(object: I): manualGetAward {
- const message = createBasemanualGetAward();
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasemanualGetAwardRsp(): manualGetAwardRsp {
- return { errno: 0, award: 0, moduleid: 0 };
- }
- export const manualGetAwardRsp = {
- fromJSON(object: any): manualGetAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- };
- },
- toJSON(message: manualGetAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<manualGetAwardRsp>, I>>(base?: I): manualGetAwardRsp {
- return manualGetAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<manualGetAwardRsp>, I>>(object: I): manualGetAwardRsp {
- const message = createBasemanualGetAwardRsp();
- message.errno = object.errno ?? 0;
- message.award = object.award ?? 0;
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasemanualNotify(): manualNotify {
- return { open: false, openTime: 0, level: 0, exp: 0, round: 0, list: [], moduleid: 0 };
- }
- export const manualNotify = {
- fromJSON(object: any): manualNotify {
- return {
- open: isSet(object.open) ? globalThis.Boolean(object.open) : false,
- openTime: isSet(object.openTime) ? globalThis.Number(object.openTime) : 0,
- level: isSet(object.level) ? globalThis.Number(object.level) : 0,
- exp: isSet(object.exp) ? globalThis.Number(object.exp) : 0,
- round: isSet(object.round) ? globalThis.Number(object.round) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => manual.fromJSON(e)) : [],
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- };
- },
- toJSON(message: manualNotify): unknown {
- const obj: any = {};
- if (message.open !== false) {
- obj.open = message.open;
- }
- if (message.openTime !== 0) {
- obj.openTime = Math.round(message.openTime);
- }
- if (message.level !== 0) {
- obj.level = Math.round(message.level);
- }
- if (message.exp !== 0) {
- obj.exp = Math.round(message.exp);
- }
- if (message.round !== 0) {
- obj.round = Math.round(message.round);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => manual.toJSON(e));
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<manualNotify>, I>>(base?: I): manualNotify {
- return manualNotify.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<manualNotify>, I>>(object: I): manualNotify {
- const message = createBasemanualNotify();
- message.open = object.open ?? false;
- message.openTime = object.openTime ?? 0;
- message.level = object.level ?? 0;
- message.exp = object.exp ?? 0;
- message.round = object.round ?? 0;
- message.list = object.list?.map((e) => manual.fromPartial(e)) || [];
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasemanualBuy(): manualBuy {
- return { giftid: 0, moduleid: 0 };
- }
- export const manualBuy = {
- fromJSON(object: any): manualBuy {
- return {
- giftid: isSet(object.giftid) ? globalThis.Number(object.giftid) : 0,
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- };
- },
- toJSON(message: manualBuy): unknown {
- const obj: any = {};
- if (message.giftid !== 0) {
- obj.giftid = Math.round(message.giftid);
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<manualBuy>, I>>(base?: I): manualBuy {
- return manualBuy.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<manualBuy>, I>>(object: I): manualBuy {
- const message = createBasemanualBuy();
- message.giftid = object.giftid ?? 0;
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasemanualBuyRsp(): manualBuyRsp {
- return { errno: 0, moduleid: 0 };
- }
- export const manualBuyRsp = {
- fromJSON(object: any): manualBuyRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- };
- },
- toJSON(message: manualBuyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<manualBuyRsp>, I>>(base?: I): manualBuyRsp {
- return manualBuyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<manualBuyRsp>, I>>(object: I): manualBuyRsp {
- const message = createBasemanualBuyRsp();
- message.errno = object.errno ?? 0;
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasedraw(): draw {
- return { drawType: 0, payType: 0, num: 0 };
- }
- export const draw = {
- fromJSON(object: any): draw {
- return {
- drawType: isSet(object.drawType) ? globalThis.Number(object.drawType) : 0,
- payType: isSet(object.payType) ? globalThis.Number(object.payType) : 0,
- num: isSet(object.num) ? globalThis.Number(object.num) : 0,
- };
- },
- toJSON(message: draw): unknown {
- const obj: any = {};
- if (message.drawType !== 0) {
- obj.drawType = Math.round(message.drawType);
- }
- if (message.payType !== 0) {
- obj.payType = Math.round(message.payType);
- }
- if (message.num !== 0) {
- obj.num = Math.round(message.num);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<draw>, I>>(base?: I): draw {
- return draw.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<draw>, I>>(object: I): draw {
- const message = createBasedraw();
- message.drawType = object.drawType ?? 0;
- message.payType = object.payType ?? 0;
- message.num = object.num ?? 0;
- return message;
- },
- };
- function createBasedrawRsp(): drawRsp {
- return { errno: 0, drawType: 0, daily: 0, free: 0, list: [], awardList: [] };
- }
- export const drawRsp = {
- fromJSON(object: any): drawRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- drawType: isSet(object.drawType) ? globalThis.Number(object.drawType) : 0,
- daily: isSet(object.daily) ? globalThis.Number(object.daily) : 0,
- free: isSet(object.free) ? globalThis.Number(object.free) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => globalThis.Number(e)) : [],
- awardList: globalThis.Array.isArray(object?.awardList)
- ? object.awardList.map((e: any) => drawAwardInfo.fromJSON(e))
- : [],
- };
- },
- toJSON(message: drawRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.drawType !== 0) {
- obj.drawType = Math.round(message.drawType);
- }
- if (message.daily !== 0) {
- obj.daily = Math.round(message.daily);
- }
- if (message.free !== 0) {
- obj.free = Math.round(message.free);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => Math.round(e));
- }
- if (message.awardList?.length) {
- obj.awardList = message.awardList.map((e) => drawAwardInfo.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<drawRsp>, I>>(base?: I): drawRsp {
- return drawRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<drawRsp>, I>>(object: I): drawRsp {
- const message = createBasedrawRsp();
- message.errno = object.errno ?? 0;
- message.drawType = object.drawType ?? 0;
- message.daily = object.daily ?? 0;
- message.free = object.free ?? 0;
- message.list = object.list?.map((e) => e) || [];
- message.awardList = object.awardList?.map((e) => drawAwardInfo.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasedrawGetData(): drawGetData {
- return {};
- }
- export const drawGetData = {
- fromJSON(_: any): drawGetData {
- return {};
- },
- toJSON(_: drawGetData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<drawGetData>, I>>(base?: I): drawGetData {
- return drawGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<drawGetData>, I>>(_: I): drawGetData {
- const message = createBasedrawGetData();
- return message;
- },
- };
- function createBasedrawGetDataRsp(): drawGetDataRsp {
- return { errno: 0, hero: undefined, hero2: undefined, equip: undefined };
- }
- export const drawGetDataRsp = {
- fromJSON(object: any): drawGetDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- hero: isSet(object.hero) ? drawInfo.fromJSON(object.hero) : undefined,
- hero2: isSet(object.hero2) ? drawInfo.fromJSON(object.hero2) : undefined,
- equip: isSet(object.equip) ? drawInfo.fromJSON(object.equip) : undefined,
- };
- },
- toJSON(message: drawGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.hero !== undefined) {
- obj.hero = drawInfo.toJSON(message.hero);
- }
- if (message.hero2 !== undefined) {
- obj.hero2 = drawInfo.toJSON(message.hero2);
- }
- if (message.equip !== undefined) {
- obj.equip = drawInfo.toJSON(message.equip);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<drawGetDataRsp>, I>>(base?: I): drawGetDataRsp {
- return drawGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<drawGetDataRsp>, I>>(object: I): drawGetDataRsp {
- const message = createBasedrawGetDataRsp();
- message.errno = object.errno ?? 0;
- message.hero = (object.hero !== undefined && object.hero !== null) ? drawInfo.fromPartial(object.hero) : undefined;
- message.hero2 = (object.hero2 !== undefined && object.hero2 !== null)
- ? drawInfo.fromPartial(object.hero2)
- : undefined;
- message.equip = (object.equip !== undefined && object.equip !== null)
- ? drawInfo.fromPartial(object.equip)
- : undefined;
- return message;
- },
- };
- function createBaseshopData(): shopData {
- return {};
- }
- export const shopData = {
- fromJSON(_: any): shopData {
- return {};
- },
- toJSON(_: shopData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<shopData>, I>>(base?: I): shopData {
- return shopData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<shopData>, I>>(_: I): shopData {
- const message = createBaseshopData();
- return message;
- },
- };
- function createBaseshopDataRsp(): shopDataRsp {
- return { errno: 0, list: [] };
- }
- export const shopDataRsp = {
- fromJSON(object: any): shopDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => shopInfo.fromJSON(e)) : [],
- };
- },
- toJSON(message: shopDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => shopInfo.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<shopDataRsp>, I>>(base?: I): shopDataRsp {
- return shopDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<shopDataRsp>, I>>(object: I): shopDataRsp {
- const message = createBaseshopDataRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => shopInfo.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseshopBuy(): shopBuy {
- return { type: 0, id: 0, num: 0 };
- }
- export const shopBuy = {
- fromJSON(object: any): shopBuy {
- return {
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- num: isSet(object.num) ? globalThis.Number(object.num) : 0,
- };
- },
- toJSON(message: shopBuy): unknown {
- const obj: any = {};
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- if (message.num !== 0) {
- obj.num = Math.round(message.num);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<shopBuy>, I>>(base?: I): shopBuy {
- return shopBuy.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<shopBuy>, I>>(object: I): shopBuy {
- const message = createBaseshopBuy();
- message.type = object.type ?? 0;
- message.id = object.id ?? 0;
- message.num = object.num ?? 0;
- return message;
- },
- };
- function createBaseshopBuyRsp(): shopBuyRsp {
- return { errno: 0 };
- }
- export const shopBuyRsp = {
- fromJSON(object: any): shopBuyRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: shopBuyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<shopBuyRsp>, I>>(base?: I): shopBuyRsp {
- return shopBuyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<shopBuyRsp>, I>>(object: I): shopBuyRsp {
- const message = createBaseshopBuyRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaseshopNotify(): shopNotify {
- return { type: 0, id: 0, num: 0 };
- }
- export const shopNotify = {
- fromJSON(object: any): shopNotify {
- return {
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- num: isSet(object.num) ? globalThis.Number(object.num) : 0,
- };
- },
- toJSON(message: shopNotify): unknown {
- const obj: any = {};
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- if (message.num !== 0) {
- obj.num = Math.round(message.num);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<shopNotify>, I>>(base?: I): shopNotify {
- return shopNotify.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<shopNotify>, I>>(object: I): shopNotify {
- const message = createBaseshopNotify();
- message.type = object.type ?? 0;
- message.id = object.id ?? 0;
- message.num = object.num ?? 0;
- return message;
- },
- };
- function createBaserankingData(): rankingData {
- return { type: 0 };
- }
- export const rankingData = {
- fromJSON(object: any): rankingData {
- return { type: isSet(object.type) ? globalThis.Number(object.type) : 0 };
- },
- toJSON(message: rankingData): unknown {
- const obj: any = {};
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<rankingData>, I>>(base?: I): rankingData {
- return rankingData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<rankingData>, I>>(object: I): rankingData {
- const message = createBaserankingData();
- message.type = object.type ?? 0;
- return message;
- },
- };
- function createBaserankingDataRsp(): rankingDataRsp {
- return { errno: 0, type: 0, list: [], myslef: undefined };
- }
- export const rankingDataRsp = {
- fromJSON(object: any): rankingDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => rankingInfo.fromJSON(e)) : [],
- myslef: isSet(object.myslef) ? rankingInfo.fromJSON(object.myslef) : undefined,
- };
- },
- toJSON(message: rankingDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => rankingInfo.toJSON(e));
- }
- if (message.myslef !== undefined) {
- obj.myslef = rankingInfo.toJSON(message.myslef);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<rankingDataRsp>, I>>(base?: I): rankingDataRsp {
- return rankingDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<rankingDataRsp>, I>>(object: I): rankingDataRsp {
- const message = createBaserankingDataRsp();
- message.errno = object.errno ?? 0;
- message.type = object.type ?? 0;
- message.list = object.list?.map((e) => rankingInfo.fromPartial(e)) || [];
- message.myslef = (object.myslef !== undefined && object.myslef !== null)
- ? rankingInfo.fromPartial(object.myslef)
- : undefined;
- return message;
- },
- };
- function createBasegroceryData(): groceryData {
- return { type: 0 };
- }
- export const groceryData = {
- fromJSON(object: any): groceryData {
- return { type: isSet(object.type) ? globalThis.Number(object.type) : 0 };
- },
- toJSON(message: groceryData): unknown {
- const obj: any = {};
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<groceryData>, I>>(base?: I): groceryData {
- return groceryData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<groceryData>, I>>(object: I): groceryData {
- const message = createBasegroceryData();
- message.type = object.type ?? 0;
- return message;
- },
- };
- function createBasegroceryDataRsp(): groceryDataRsp {
- return { errno: 0, data: undefined };
- }
- export const groceryDataRsp = {
- fromJSON(object: any): groceryDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? groceryInfo.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: groceryDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = groceryInfo.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<groceryDataRsp>, I>>(base?: I): groceryDataRsp {
- return groceryDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<groceryDataRsp>, I>>(object: I): groceryDataRsp {
- const message = createBasegroceryDataRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null)
- ? groceryInfo.fromPartial(object.data)
- : undefined;
- return message;
- },
- };
- function createBasegroceryBuy(): groceryBuy {
- return { type: 0, free: false };
- }
- export const groceryBuy = {
- fromJSON(object: any): groceryBuy {
- return {
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- free: isSet(object.free) ? globalThis.Boolean(object.free) : false,
- };
- },
- toJSON(message: groceryBuy): unknown {
- const obj: any = {};
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.free !== false) {
- obj.free = message.free;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<groceryBuy>, I>>(base?: I): groceryBuy {
- return groceryBuy.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<groceryBuy>, I>>(object: I): groceryBuy {
- const message = createBasegroceryBuy();
- message.type = object.type ?? 0;
- message.free = object.free ?? false;
- return message;
- },
- };
- function createBasegroceryBuyRsp(): groceryBuyRsp {
- return { errno: 0, data: undefined };
- }
- export const groceryBuyRsp = {
- fromJSON(object: any): groceryBuyRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? groceryInfo.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: groceryBuyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = groceryInfo.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<groceryBuyRsp>, I>>(base?: I): groceryBuyRsp {
- return groceryBuyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<groceryBuyRsp>, I>>(object: I): groceryBuyRsp {
- const message = createBasegroceryBuyRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null)
- ? groceryInfo.fromPartial(object.data)
- : undefined;
- return message;
- },
- };
- function createBasealtarData(): altarData {
- return {};
- }
- export const altarData = {
- fromJSON(_: any): altarData {
- return {};
- },
- toJSON(_: altarData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<altarData>, I>>(base?: I): altarData {
- return altarData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<altarData>, I>>(_: I): altarData {
- const message = createBasealtarData();
- return message;
- },
- };
- function createBasealtarDataRsp(): altarDataRsp {
- return { errno: 0, baseList: [], list: [], buyNum: 0, equipFree: 0, heroFree: 0 };
- }
- export const altarDataRsp = {
- fromJSON(object: any): altarDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- baseList: globalThis.Array.isArray(object?.baseList) ? object.baseList.map((e: any) => globalThis.String(e)) : [],
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => altarInfo.fromJSON(e)) : [],
- buyNum: isSet(object.buyNum) ? globalThis.Number(object.buyNum) : 0,
- equipFree: isSet(object.equipFree) ? globalThis.Number(object.equipFree) : 0,
- heroFree: isSet(object.heroFree) ? globalThis.Number(object.heroFree) : 0,
- };
- },
- toJSON(message: altarDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.baseList?.length) {
- obj.baseList = message.baseList;
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => altarInfo.toJSON(e));
- }
- if (message.buyNum !== 0) {
- obj.buyNum = Math.round(message.buyNum);
- }
- if (message.equipFree !== 0) {
- obj.equipFree = Math.round(message.equipFree);
- }
- if (message.heroFree !== 0) {
- obj.heroFree = Math.round(message.heroFree);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<altarDataRsp>, I>>(base?: I): altarDataRsp {
- return altarDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<altarDataRsp>, I>>(object: I): altarDataRsp {
- const message = createBasealtarDataRsp();
- message.errno = object.errno ?? 0;
- message.baseList = object.baseList?.map((e) => e) || [];
- message.list = object.list?.map((e) => altarInfo.fromPartial(e)) || [];
- message.buyNum = object.buyNum ?? 0;
- message.equipFree = object.equipFree ?? 0;
- message.heroFree = object.heroFree ?? 0;
- return message;
- },
- };
- function createBasealtarBattle(): altarBattle {
- return { pos: 0, sid: "" };
- }
- export const altarBattle = {
- fromJSON(object: any): altarBattle {
- return {
- pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0,
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- };
- },
- toJSON(message: altarBattle): unknown {
- const obj: any = {};
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<altarBattle>, I>>(base?: I): altarBattle {
- return altarBattle.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<altarBattle>, I>>(object: I): altarBattle {
- const message = createBasealtarBattle();
- message.pos = object.pos ?? 0;
- message.sid = object.sid ?? "";
- return message;
- },
- };
- function createBasealtarBattleRsp(): altarBattleRsp {
- return { errno: 0, pos: 0, data: undefined };
- }
- export const altarBattleRsp = {
- fromJSON(object: any): altarBattleRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0,
- data: isSet(object.data) ? altarInfo.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: altarBattleRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- if (message.data !== undefined) {
- obj.data = altarInfo.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<altarBattleRsp>, I>>(base?: I): altarBattleRsp {
- return altarBattleRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<altarBattleRsp>, I>>(object: I): altarBattleRsp {
- const message = createBasealtarBattleRsp();
- message.errno = object.errno ?? 0;
- message.pos = object.pos ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? altarInfo.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBasealtarExchange(): altarExchange {
- return { type: 0, sid: "" };
- }
- export const altarExchange = {
- fromJSON(object: any): altarExchange {
- return {
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- };
- },
- toJSON(message: altarExchange): unknown {
- const obj: any = {};
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<altarExchange>, I>>(base?: I): altarExchange {
- return altarExchange.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<altarExchange>, I>>(object: I): altarExchange {
- const message = createBasealtarExchange();
- message.type = object.type ?? 0;
- message.sid = object.sid ?? "";
- return message;
- },
- };
- function createBasealtarExchangeRsp(): altarExchangeRsp {
- return { errno: 0, type: 0, sid: "", id: 0 };
- }
- export const altarExchangeRsp = {
- fromJSON(object: any): altarExchangeRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- };
- },
- toJSON(message: altarExchangeRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<altarExchangeRsp>, I>>(base?: I): altarExchangeRsp {
- return altarExchangeRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<altarExchangeRsp>, I>>(object: I): altarExchangeRsp {
- const message = createBasealtarExchangeRsp();
- message.errno = object.errno ?? 0;
- message.type = object.type ?? 0;
- message.sid = object.sid ?? "";
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasealtarExchangeConfirm(): altarExchangeConfirm {
- return { type: 0, sid: "", change: false };
- }
- export const altarExchangeConfirm = {
- fromJSON(object: any): altarExchangeConfirm {
- return {
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
- change: isSet(object.change) ? globalThis.Boolean(object.change) : false,
- };
- },
- toJSON(message: altarExchangeConfirm): unknown {
- const obj: any = {};
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.sid !== "") {
- obj.sid = message.sid;
- }
- if (message.change !== false) {
- obj.change = message.change;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<altarExchangeConfirm>, I>>(base?: I): altarExchangeConfirm {
- return altarExchangeConfirm.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<altarExchangeConfirm>, I>>(object: I): altarExchangeConfirm {
- const message = createBasealtarExchangeConfirm();
- message.type = object.type ?? 0;
- message.sid = object.sid ?? "";
- message.change = object.change ?? false;
- return message;
- },
- };
- function createBasealtarExchangeConfirmRsp(): altarExchangeConfirmRsp {
- return { errno: 0 };
- }
- export const altarExchangeConfirmRsp = {
- fromJSON(object: any): altarExchangeConfirmRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: altarExchangeConfirmRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<altarExchangeConfirmRsp>, I>>(base?: I): altarExchangeConfirmRsp {
- return altarExchangeConfirmRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<altarExchangeConfirmRsp>, I>>(object: I): altarExchangeConfirmRsp {
- const message = createBasealtarExchangeConfirmRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBasealtarBuyBattleSpace(): altarBuyBattleSpace {
- return {};
- }
- export const altarBuyBattleSpace = {
- fromJSON(_: any): altarBuyBattleSpace {
- return {};
- },
- toJSON(_: altarBuyBattleSpace): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<altarBuyBattleSpace>, I>>(base?: I): altarBuyBattleSpace {
- return altarBuyBattleSpace.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<altarBuyBattleSpace>, I>>(_: I): altarBuyBattleSpace {
- const message = createBasealtarBuyBattleSpace();
- return message;
- },
- };
- function createBasealtarBuyBattleSpaceRsp(): altarBuyBattleSpaceRsp {
- return { errno: 0, pos: 0, data: undefined };
- }
- export const altarBuyBattleSpaceRsp = {
- fromJSON(object: any): altarBuyBattleSpaceRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0,
- data: isSet(object.data) ? altarInfo.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: altarBuyBattleSpaceRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- if (message.data !== undefined) {
- obj.data = altarInfo.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<altarBuyBattleSpaceRsp>, I>>(base?: I): altarBuyBattleSpaceRsp {
- return altarBuyBattleSpaceRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<altarBuyBattleSpaceRsp>, I>>(object: I): altarBuyBattleSpaceRsp {
- const message = createBasealtarBuyBattleSpaceRsp();
- message.errno = object.errno ?? 0;
- message.pos = object.pos ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? altarInfo.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBasealtarResetCd(): altarResetCd {
- return { pos: 0 };
- }
- export const altarResetCd = {
- fromJSON(object: any): altarResetCd {
- return { pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0 };
- },
- toJSON(message: altarResetCd): unknown {
- const obj: any = {};
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<altarResetCd>, I>>(base?: I): altarResetCd {
- return altarResetCd.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<altarResetCd>, I>>(object: I): altarResetCd {
- const message = createBasealtarResetCd();
- message.pos = object.pos ?? 0;
- return message;
- },
- };
- function createBasealtarResetCdRsp(): altarResetCdRsp {
- return { errno: 0, pos: 0, data: undefined };
- }
- export const altarResetCdRsp = {
- fromJSON(object: any): altarResetCdRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0,
- data: isSet(object.data) ? altarInfo.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: altarResetCdRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- if (message.data !== undefined) {
- obj.data = altarInfo.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<altarResetCdRsp>, I>>(base?: I): altarResetCdRsp {
- return altarResetCdRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<altarResetCdRsp>, I>>(object: I): altarResetCdRsp {
- const message = createBasealtarResetCdRsp();
- message.errno = object.errno ?? 0;
- message.pos = object.pos ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? altarInfo.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBaserelicData(): relicData {
- return {};
- }
- export const relicData = {
- fromJSON(_: any): relicData {
- return {};
- },
- toJSON(_: relicData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<relicData>, I>>(base?: I): relicData {
- return relicData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicData>, I>>(_: I): relicData {
- const message = createBaserelicData();
- return message;
- },
- };
- function createBaserelicDataRsp(): relicDataRsp {
- return { errno: 0 };
- }
- export const relicDataRsp = {
- fromJSON(object: any): relicDataRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: relicDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<relicDataRsp>, I>>(base?: I): relicDataRsp {
- return relicDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicDataRsp>, I>>(object: I): relicDataRsp {
- const message = createBaserelicDataRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaserelicNextPos(): relicNextPos {
- return { pos: 0 };
- }
- export const relicNextPos = {
- fromJSON(object: any): relicNextPos {
- return { pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0 };
- },
- toJSON(message: relicNextPos): unknown {
- const obj: any = {};
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<relicNextPos>, I>>(base?: I): relicNextPos {
- return relicNextPos.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicNextPos>, I>>(object: I): relicNextPos {
- const message = createBaserelicNextPos();
- message.pos = object.pos ?? 0;
- return message;
- },
- };
- function createBaserelicNextPosRsp(): relicNextPosRsp {
- return { errno: 0 };
- }
- export const relicNextPosRsp = {
- fromJSON(object: any): relicNextPosRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: relicNextPosRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<relicNextPosRsp>, I>>(base?: I): relicNextPosRsp {
- return relicNextPosRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicNextPosRsp>, I>>(object: I): relicNextPosRsp {
- const message = createBaserelicNextPosRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaserelicNextLayer(): relicNextLayer {
- return {};
- }
- export const relicNextLayer = {
- fromJSON(_: any): relicNextLayer {
- return {};
- },
- toJSON(_: relicNextLayer): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<relicNextLayer>, I>>(base?: I): relicNextLayer {
- return relicNextLayer.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicNextLayer>, I>>(_: I): relicNextLayer {
- const message = createBaserelicNextLayer();
- return message;
- },
- };
- function createBaserelicNextLayerRsp(): relicNextLayerRsp {
- return { errno: 0 };
- }
- export const relicNextLayerRsp = {
- fromJSON(object: any): relicNextLayerRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: relicNextLayerRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<relicNextLayerRsp>, I>>(base?: I): relicNextLayerRsp {
- return relicNextLayerRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicNextLayerRsp>, I>>(object: I): relicNextLayerRsp {
- const message = createBaserelicNextLayerRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaserelicSelectBuff(): relicSelectBuff {
- return {};
- }
- export const relicSelectBuff = {
- fromJSON(_: any): relicSelectBuff {
- return {};
- },
- toJSON(_: relicSelectBuff): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<relicSelectBuff>, I>>(base?: I): relicSelectBuff {
- return relicSelectBuff.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicSelectBuff>, I>>(_: I): relicSelectBuff {
- const message = createBaserelicSelectBuff();
- return message;
- },
- };
- function createBaserelicSelectBuffRsp(): relicSelectBuffRsp {
- return { errno: 0 };
- }
- export const relicSelectBuffRsp = {
- fromJSON(object: any): relicSelectBuffRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: relicSelectBuffRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<relicSelectBuffRsp>, I>>(base?: I): relicSelectBuffRsp {
- return relicSelectBuffRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicSelectBuffRsp>, I>>(object: I): relicSelectBuffRsp {
- const message = createBaserelicSelectBuffRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaserelicReset(): relicReset {
- return { difficulty: 0 };
- }
- export const relicReset = {
- fromJSON(object: any): relicReset {
- return { difficulty: isSet(object.difficulty) ? globalThis.Number(object.difficulty) : 0 };
- },
- toJSON(message: relicReset): unknown {
- const obj: any = {};
- if (message.difficulty !== 0) {
- obj.difficulty = Math.round(message.difficulty);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<relicReset>, I>>(base?: I): relicReset {
- return relicReset.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicReset>, I>>(object: I): relicReset {
- const message = createBaserelicReset();
- message.difficulty = object.difficulty ?? 0;
- return message;
- },
- };
- function createBaserelicResetRsp(): relicResetRsp {
- return { errno: 0 };
- }
- export const relicResetRsp = {
- fromJSON(object: any): relicResetRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: relicResetRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<relicResetRsp>, I>>(base?: I): relicResetRsp {
- return relicResetRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicResetRsp>, I>>(object: I): relicResetRsp {
- const message = createBaserelicResetRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaserelicEventSelect(): relicEventSelect {
- return { type: 0, win: false, cost: 0, select: 0 };
- }
- export const relicEventSelect = {
- fromJSON(object: any): relicEventSelect {
- return {
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- win: isSet(object.win) ? globalThis.Boolean(object.win) : false,
- cost: isSet(object.cost) ? globalThis.Number(object.cost) : 0,
- select: isSet(object.select) ? globalThis.Number(object.select) : 0,
- };
- },
- toJSON(message: relicEventSelect): unknown {
- const obj: any = {};
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.win !== false) {
- obj.win = message.win;
- }
- if (message.cost !== 0) {
- obj.cost = Math.round(message.cost);
- }
- if (message.select !== 0) {
- obj.select = Math.round(message.select);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<relicEventSelect>, I>>(base?: I): relicEventSelect {
- return relicEventSelect.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicEventSelect>, I>>(object: I): relicEventSelect {
- const message = createBaserelicEventSelect();
- message.type = object.type ?? 0;
- message.win = object.win ?? false;
- message.cost = object.cost ?? 0;
- message.select = object.select ?? 0;
- return message;
- },
- };
- function createBaserelicEventSelectRsp(): relicEventSelectRsp {
- return { errno: 0 };
- }
- export const relicEventSelectRsp = {
- fromJSON(object: any): relicEventSelectRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: relicEventSelectRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<relicEventSelectRsp>, I>>(base?: I): relicEventSelectRsp {
- return relicEventSelectRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicEventSelectRsp>, I>>(object: I): relicEventSelectRsp {
- const message = createBaserelicEventSelectRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaserelicDataNty(): relicDataNty {
- return {
- maxDiff: 0,
- curDiff: 0,
- buffList: [],
- layer: 0,
- pos: 0,
- cost: 0,
- state: 0,
- resetTime: 0,
- posList: [],
- battleInfo: [],
- addCost: 0,
- };
- }
- export const relicDataNty = {
- fromJSON(object: any): relicDataNty {
- return {
- maxDiff: isSet(object.maxDiff) ? globalThis.Number(object.maxDiff) : 0,
- curDiff: isSet(object.curDiff) ? globalThis.Number(object.curDiff) : 0,
- buffList: globalThis.Array.isArray(object?.buffList) ? object.buffList.map((e: any) => globalThis.Number(e)) : [],
- layer: isSet(object.layer) ? globalThis.Number(object.layer) : 0,
- pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0,
- cost: isSet(object.cost) ? globalThis.Number(object.cost) : 0,
- state: isSet(object.state) ? globalThis.Number(object.state) : 0,
- resetTime: isSet(object.resetTime) ? globalThis.Number(object.resetTime) : 0,
- posList: globalThis.Array.isArray(object?.posList) ? object.posList.map((e: any) => globalThis.Number(e)) : [],
- battleInfo: globalThis.Array.isArray(object?.battleInfo)
- ? object.battleInfo.map((e: any) => globalThis.Number(e))
- : [],
- addCost: isSet(object.addCost) ? globalThis.Number(object.addCost) : 0,
- };
- },
- toJSON(message: relicDataNty): unknown {
- const obj: any = {};
- if (message.maxDiff !== 0) {
- obj.maxDiff = Math.round(message.maxDiff);
- }
- if (message.curDiff !== 0) {
- obj.curDiff = Math.round(message.curDiff);
- }
- if (message.buffList?.length) {
- obj.buffList = message.buffList.map((e) => Math.round(e));
- }
- if (message.layer !== 0) {
- obj.layer = Math.round(message.layer);
- }
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- if (message.cost !== 0) {
- obj.cost = Math.round(message.cost);
- }
- if (message.state !== 0) {
- obj.state = Math.round(message.state);
- }
- if (message.resetTime !== 0) {
- obj.resetTime = Math.round(message.resetTime);
- }
- if (message.posList?.length) {
- obj.posList = message.posList.map((e) => Math.round(e));
- }
- if (message.battleInfo?.length) {
- obj.battleInfo = message.battleInfo.map((e) => Math.round(e));
- }
- if (message.addCost !== 0) {
- obj.addCost = Math.round(message.addCost);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<relicDataNty>, I>>(base?: I): relicDataNty {
- return relicDataNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicDataNty>, I>>(object: I): relicDataNty {
- const message = createBaserelicDataNty();
- message.maxDiff = object.maxDiff ?? 0;
- message.curDiff = object.curDiff ?? 0;
- message.buffList = object.buffList?.map((e) => e) || [];
- message.layer = object.layer ?? 0;
- message.pos = object.pos ?? 0;
- message.cost = object.cost ?? 0;
- message.state = object.state ?? 0;
- message.resetTime = object.resetTime ?? 0;
- message.posList = object.posList?.map((e) => e) || [];
- message.battleInfo = object.battleInfo?.map((e) => e) || [];
- message.addCost = object.addCost ?? 0;
- return message;
- },
- };
- function createBaserelicEventNty(): relicEventNty {
- return { type: 0, battleId: 0, battleType: 0, selectBuff: [] };
- }
- export const relicEventNty = {
- fromJSON(object: any): relicEventNty {
- return {
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- battleId: isSet(object.battleId) ? globalThis.Number(object.battleId) : 0,
- battleType: isSet(object.battleType) ? globalThis.Number(object.battleType) : 0,
- selectBuff: globalThis.Array.isArray(object?.selectBuff)
- ? object.selectBuff.map((e: any) => globalThis.Number(e))
- : [],
- };
- },
- toJSON(message: relicEventNty): unknown {
- const obj: any = {};
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.battleId !== 0) {
- obj.battleId = Math.round(message.battleId);
- }
- if (message.battleType !== 0) {
- obj.battleType = Math.round(message.battleType);
- }
- if (message.selectBuff?.length) {
- obj.selectBuff = message.selectBuff.map((e) => Math.round(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<relicEventNty>, I>>(base?: I): relicEventNty {
- return relicEventNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<relicEventNty>, I>>(object: I): relicEventNty {
- const message = createBaserelicEventNty();
- message.type = object.type ?? 0;
- message.battleId = object.battleId ?? 0;
- message.battleType = object.battleType ?? 0;
- message.selectBuff = object.selectBuff?.map((e) => e) || [];
- return message;
- },
- };
- function createBaseactivityTimeListNty(): activityTimeListNty {
- return { list: [] };
- }
- export const activityTimeListNty = {
- fromJSON(object: any): activityTimeListNty {
- return {
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => activityTimeInfo.fromJSON(e)) : [],
- };
- },
- toJSON(message: activityTimeListNty): unknown {
- const obj: any = {};
- if (message.list?.length) {
- obj.list = message.list.map((e) => activityTimeInfo.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<activityTimeListNty>, I>>(base?: I): activityTimeListNty {
- return activityTimeListNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<activityTimeListNty>, I>>(object: I): activityTimeListNty {
- const message = createBaseactivityTimeListNty();
- message.list = object.list?.map((e) => activityTimeInfo.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseactivityGetConfList(): activityGetConfList {
- return { list: [] };
- }
- export const activityGetConfList = {
- fromJSON(object: any): activityGetConfList {
- return { list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => globalThis.String(e)) : [] };
- },
- toJSON(message: activityGetConfList): unknown {
- const obj: any = {};
- if (message.list?.length) {
- obj.list = message.list;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<activityGetConfList>, I>>(base?: I): activityGetConfList {
- return activityGetConfList.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<activityGetConfList>, I>>(object: I): activityGetConfList {
- const message = createBaseactivityGetConfList();
- message.list = object.list?.map((e) => e) || [];
- return message;
- },
- };
- function createBaseactivityGetConfListRsp(): activityGetConfListRsp {
- return { errno: 0, list: [] };
- }
- export const activityGetConfListRsp = {
- fromJSON(object: any): activityGetConfListRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => activityConfInfo.fromJSON(e)) : [],
- };
- },
- toJSON(message: activityGetConfListRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => activityConfInfo.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<activityGetConfListRsp>, I>>(base?: I): activityGetConfListRsp {
- return activityGetConfListRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<activityGetConfListRsp>, I>>(object: I): activityGetConfListRsp {
- const message = createBaseactivityGetConfListRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => activityConfInfo.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseactivityGetConfNty(): activityGetConfNty {
- return { list: [] };
- }
- export const activityGetConfNty = {
- fromJSON(object: any): activityGetConfNty {
- return { list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => globalThis.Number(e)) : [] };
- },
- toJSON(message: activityGetConfNty): unknown {
- const obj: any = {};
- if (message.list?.length) {
- obj.list = message.list.map((e) => Math.round(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<activityGetConfNty>, I>>(base?: I): activityGetConfNty {
- return activityGetConfNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<activityGetConfNty>, I>>(object: I): activityGetConfNty {
- const message = createBaseactivityGetConfNty();
- message.list = object.list?.map((e) => e) || [];
- return message;
- },
- };
- function createBaseprivilegeCardData(): privilegeCardData {
- return {};
- }
- export const privilegeCardData = {
- fromJSON(_: any): privilegeCardData {
- return {};
- },
- toJSON(_: privilegeCardData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<privilegeCardData>, I>>(base?: I): privilegeCardData {
- return privilegeCardData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<privilegeCardData>, I>>(_: I): privilegeCardData {
- const message = createBaseprivilegeCardData();
- return message;
- },
- };
- function createBaseprivilegeCardDataRsp(): privilegeCardDataRsp {
- return { errno: 0, list: [] };
- }
- export const privilegeCardDataRsp = {
- fromJSON(object: any): privilegeCardDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => privilegeCardInfo.fromJSON(e)) : [],
- };
- },
- toJSON(message: privilegeCardDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => privilegeCardInfo.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<privilegeCardDataRsp>, I>>(base?: I): privilegeCardDataRsp {
- return privilegeCardDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<privilegeCardDataRsp>, I>>(object: I): privilegeCardDataRsp {
- const message = createBaseprivilegeCardDataRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => privilegeCardInfo.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaseprivilegeCardBuy(): privilegeCardBuy {
- return { moduleid: 0 };
- }
- export const privilegeCardBuy = {
- fromJSON(object: any): privilegeCardBuy {
- return { moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0 };
- },
- toJSON(message: privilegeCardBuy): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<privilegeCardBuy>, I>>(base?: I): privilegeCardBuy {
- return privilegeCardBuy.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<privilegeCardBuy>, I>>(object: I): privilegeCardBuy {
- const message = createBaseprivilegeCardBuy();
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBaseprivilegeCardBuyRsp(): privilegeCardBuyRsp {
- return { errno: 0 };
- }
- export const privilegeCardBuyRsp = {
- fromJSON(object: any): privilegeCardBuyRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: privilegeCardBuyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<privilegeCardBuyRsp>, I>>(base?: I): privilegeCardBuyRsp {
- return privilegeCardBuyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<privilegeCardBuyRsp>, I>>(object: I): privilegeCardBuyRsp {
- const message = createBaseprivilegeCardBuyRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaseprivilegeCardUnlockNty(): privilegeCardUnlockNty {
- return { data: undefined };
- }
- export const privilegeCardUnlockNty = {
- fromJSON(object: any): privilegeCardUnlockNty {
- return { data: isSet(object.data) ? privilegeCardInfo.fromJSON(object.data) : undefined };
- },
- toJSON(message: privilegeCardUnlockNty): unknown {
- const obj: any = {};
- if (message.data !== undefined) {
- obj.data = privilegeCardInfo.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<privilegeCardUnlockNty>, I>>(base?: I): privilegeCardUnlockNty {
- return privilegeCardUnlockNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<privilegeCardUnlockNty>, I>>(object: I): privilegeCardUnlockNty {
- const message = createBaseprivilegeCardUnlockNty();
- message.data = (object.data !== undefined && object.data !== null)
- ? privilegeCardInfo.fromPartial(object.data)
- : undefined;
- return message;
- },
- };
- function createBaseprivilegeCardAward(): privilegeCardAward {
- return { moduleid: 0 };
- }
- export const privilegeCardAward = {
- fromJSON(object: any): privilegeCardAward {
- return { moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0 };
- },
- toJSON(message: privilegeCardAward): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<privilegeCardAward>, I>>(base?: I): privilegeCardAward {
- return privilegeCardAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<privilegeCardAward>, I>>(object: I): privilegeCardAward {
- const message = createBaseprivilegeCardAward();
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBaseprivilegeCardAwardRsp(): privilegeCardAwardRsp {
- return { errno: 0, moduleid: 0, award: false };
- }
- export const privilegeCardAwardRsp = {
- fromJSON(object: any): privilegeCardAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- award: isSet(object.award) ? globalThis.Boolean(object.award) : false,
- };
- },
- toJSON(message: privilegeCardAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- if (message.award !== false) {
- obj.award = message.award;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<privilegeCardAwardRsp>, I>>(base?: I): privilegeCardAwardRsp {
- return privilegeCardAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<privilegeCardAwardRsp>, I>>(object: I): privilegeCardAwardRsp {
- const message = createBaseprivilegeCardAwardRsp();
- message.errno = object.errno ?? 0;
- message.moduleid = object.moduleid ?? 0;
- message.award = object.award ?? false;
- return message;
- },
- };
- function createBaseboxGetAward(): boxGetAward {
- return { id: 0, select: 0, type: 0, num: 0 };
- }
- export const boxGetAward = {
- fromJSON(object: any): boxGetAward {
- return {
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- select: isSet(object.select) ? globalThis.Number(object.select) : 0,
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- num: isSet(object.num) ? globalThis.Number(object.num) : 0,
- };
- },
- toJSON(message: boxGetAward): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- if (message.select !== 0) {
- obj.select = Math.round(message.select);
- }
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.num !== 0) {
- obj.num = Math.round(message.num);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<boxGetAward>, I>>(base?: I): boxGetAward {
- return boxGetAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<boxGetAward>, I>>(object: I): boxGetAward {
- const message = createBaseboxGetAward();
- message.id = object.id ?? 0;
- message.select = object.select ?? 0;
- message.type = object.type ?? 0;
- message.num = object.num ?? 0;
- return message;
- },
- };
- function createBaseboxGetAwardRsp(): boxGetAwardRsp {
- return { errno: 0, type: 0 };
- }
- export const boxGetAwardRsp = {
- fromJSON(object: any): boxGetAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- };
- },
- toJSON(message: boxGetAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<boxGetAwardRsp>, I>>(base?: I): boxGetAwardRsp {
- return boxGetAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<boxGetAwardRsp>, I>>(object: I): boxGetAwardRsp {
- const message = createBaseboxGetAwardRsp();
- message.errno = object.errno ?? 0;
- message.type = object.type ?? 0;
- return message;
- },
- };
- function createBasefirstRechargeData(): firstRechargeData {
- return { moduleid: 0 };
- }
- export const firstRechargeData = {
- fromJSON(object: any): firstRechargeData {
- return { moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0 };
- },
- toJSON(message: firstRechargeData): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<firstRechargeData>, I>>(base?: I): firstRechargeData {
- return firstRechargeData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<firstRechargeData>, I>>(object: I): firstRechargeData {
- const message = createBasefirstRechargeData();
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasefirstRechargeDataRsp(): firstRechargeDataRsp {
- return { errno: 0, moduleid: 0, state: false, day: 0, award: 0 };
- }
- export const firstRechargeDataRsp = {
- fromJSON(object: any): firstRechargeDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- state: isSet(object.state) ? globalThis.Boolean(object.state) : false,
- day: isSet(object.day) ? globalThis.Number(object.day) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- };
- },
- toJSON(message: firstRechargeDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- if (message.state !== false) {
- obj.state = message.state;
- }
- if (message.day !== 0) {
- obj.day = Math.round(message.day);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<firstRechargeDataRsp>, I>>(base?: I): firstRechargeDataRsp {
- return firstRechargeDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<firstRechargeDataRsp>, I>>(object: I): firstRechargeDataRsp {
- const message = createBasefirstRechargeDataRsp();
- message.errno = object.errno ?? 0;
- message.moduleid = object.moduleid ?? 0;
- message.state = object.state ?? false;
- message.day = object.day ?? 0;
- message.award = object.award ?? 0;
- return message;
- },
- };
- function createBasefirstRechargeBuy(): firstRechargeBuy {
- return { moduleid: 0 };
- }
- export const firstRechargeBuy = {
- fromJSON(object: any): firstRechargeBuy {
- return { moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0 };
- },
- toJSON(message: firstRechargeBuy): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<firstRechargeBuy>, I>>(base?: I): firstRechargeBuy {
- return firstRechargeBuy.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<firstRechargeBuy>, I>>(object: I): firstRechargeBuy {
- const message = createBasefirstRechargeBuy();
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasefirstRechargeBuyRsp(): firstRechargeBuyRsp {
- return { errno: 0, moduleid: 0 };
- }
- export const firstRechargeBuyRsp = {
- fromJSON(object: any): firstRechargeBuyRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- };
- },
- toJSON(message: firstRechargeBuyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<firstRechargeBuyRsp>, I>>(base?: I): firstRechargeBuyRsp {
- return firstRechargeBuyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<firstRechargeBuyRsp>, I>>(object: I): firstRechargeBuyRsp {
- const message = createBasefirstRechargeBuyRsp();
- message.errno = object.errno ?? 0;
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasefirstRechargeAward(): firstRechargeAward {
- return { moduleid: 0, day: 0 };
- }
- export const firstRechargeAward = {
- fromJSON(object: any): firstRechargeAward {
- return {
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- day: isSet(object.day) ? globalThis.Number(object.day) : 0,
- };
- },
- toJSON(message: firstRechargeAward): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- if (message.day !== 0) {
- obj.day = Math.round(message.day);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<firstRechargeAward>, I>>(base?: I): firstRechargeAward {
- return firstRechargeAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<firstRechargeAward>, I>>(object: I): firstRechargeAward {
- const message = createBasefirstRechargeAward();
- message.moduleid = object.moduleid ?? 0;
- message.day = object.day ?? 0;
- return message;
- },
- };
- function createBasefirstRechargeAwardRsp(): firstRechargeAwardRsp {
- return { errno: 0, moduleid: 0, award: 0 };
- }
- export const firstRechargeAwardRsp = {
- fromJSON(object: any): firstRechargeAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- };
- },
- toJSON(message: firstRechargeAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<firstRechargeAwardRsp>, I>>(base?: I): firstRechargeAwardRsp {
- return firstRechargeAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<firstRechargeAwardRsp>, I>>(object: I): firstRechargeAwardRsp {
- const message = createBasefirstRechargeAwardRsp();
- message.errno = object.errno ?? 0;
- message.moduleid = object.moduleid ?? 0;
- message.award = object.award ?? 0;
- return message;
- },
- };
- function createBasefirstRechargeNty(): firstRechargeNty {
- return { moduleid: 0, state: false, day: 0, award: 0 };
- }
- export const firstRechargeNty = {
- fromJSON(object: any): firstRechargeNty {
- return {
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- state: isSet(object.state) ? globalThis.Boolean(object.state) : false,
- day: isSet(object.day) ? globalThis.Number(object.day) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- };
- },
- toJSON(message: firstRechargeNty): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- if (message.state !== false) {
- obj.state = message.state;
- }
- if (message.day !== 0) {
- obj.day = Math.round(message.day);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<firstRechargeNty>, I>>(base?: I): firstRechargeNty {
- return firstRechargeNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<firstRechargeNty>, I>>(object: I): firstRechargeNty {
- const message = createBasefirstRechargeNty();
- message.moduleid = object.moduleid ?? 0;
- message.state = object.state ?? false;
- message.day = object.day ?? 0;
- message.award = object.award ?? 0;
- return message;
- },
- };
- function createBasedailyDungeonsData(): dailyDungeonsData {
- return {};
- }
- export const dailyDungeonsData = {
- fromJSON(_: any): dailyDungeonsData {
- return {};
- },
- toJSON(_: dailyDungeonsData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<dailyDungeonsData>, I>>(base?: I): dailyDungeonsData {
- return dailyDungeonsData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<dailyDungeonsData>, I>>(_: I): dailyDungeonsData {
- const message = createBasedailyDungeonsData();
- return message;
- },
- };
- function createBasedailyDungeonsDataRsp(): dailyDungeonsDataRsp {
- return { errno: 0, list: [] };
- }
- export const dailyDungeonsDataRsp = {
- fromJSON(object: any): dailyDungeonsDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => dailyDungeonsInfo.fromJSON(e)) : [],
- };
- },
- toJSON(message: dailyDungeonsDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => dailyDungeonsInfo.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<dailyDungeonsDataRsp>, I>>(base?: I): dailyDungeonsDataRsp {
- return dailyDungeonsDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<dailyDungeonsDataRsp>, I>>(object: I): dailyDungeonsDataRsp {
- const message = createBasedailyDungeonsDataRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => dailyDungeonsInfo.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasedailyDungeonsStart(): dailyDungeonsStart {
- return { type: 0, diff: 0 };
- }
- export const dailyDungeonsStart = {
- fromJSON(object: any): dailyDungeonsStart {
- return {
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- diff: isSet(object.diff) ? globalThis.Number(object.diff) : 0,
- };
- },
- toJSON(message: dailyDungeonsStart): unknown {
- const obj: any = {};
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.diff !== 0) {
- obj.diff = Math.round(message.diff);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<dailyDungeonsStart>, I>>(base?: I): dailyDungeonsStart {
- return dailyDungeonsStart.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<dailyDungeonsStart>, I>>(object: I): dailyDungeonsStart {
- const message = createBasedailyDungeonsStart();
- message.type = object.type ?? 0;
- message.diff = object.diff ?? 0;
- return message;
- },
- };
- function createBasedailyDungeonsStartRsp(): dailyDungeonsStartRsp {
- return { errno: 0, awardList: [] };
- }
- export const dailyDungeonsStartRsp = {
- fromJSON(object: any): dailyDungeonsStartRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- awardList: globalThis.Array.isArray(object?.awardList) ? object.awardList.map((e: any) => idNum.fromJSON(e)) : [],
- };
- },
- toJSON(message: dailyDungeonsStartRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.awardList?.length) {
- obj.awardList = message.awardList.map((e) => idNum.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<dailyDungeonsStartRsp>, I>>(base?: I): dailyDungeonsStartRsp {
- return dailyDungeonsStartRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<dailyDungeonsStartRsp>, I>>(object: I): dailyDungeonsStartRsp {
- const message = createBasedailyDungeonsStartRsp();
- message.errno = object.errno ?? 0;
- message.awardList = object.awardList?.map((e) => idNum.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasedailyDungeonsEnd(): dailyDungeonsEnd {
- return { win: false, monsterNum: 0, bossNum: 0, eliteNum: 0 };
- }
- export const dailyDungeonsEnd = {
- fromJSON(object: any): dailyDungeonsEnd {
- return {
- win: isSet(object.win) ? globalThis.Boolean(object.win) : false,
- monsterNum: isSet(object.monsterNum) ? globalThis.Number(object.monsterNum) : 0,
- bossNum: isSet(object.bossNum) ? globalThis.Number(object.bossNum) : 0,
- eliteNum: isSet(object.eliteNum) ? globalThis.Number(object.eliteNum) : 0,
- };
- },
- toJSON(message: dailyDungeonsEnd): unknown {
- const obj: any = {};
- if (message.win !== false) {
- obj.win = message.win;
- }
- if (message.monsterNum !== 0) {
- obj.monsterNum = Math.round(message.monsterNum);
- }
- if (message.bossNum !== 0) {
- obj.bossNum = Math.round(message.bossNum);
- }
- if (message.eliteNum !== 0) {
- obj.eliteNum = Math.round(message.eliteNum);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<dailyDungeonsEnd>, I>>(base?: I): dailyDungeonsEnd {
- return dailyDungeonsEnd.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<dailyDungeonsEnd>, I>>(object: I): dailyDungeonsEnd {
- const message = createBasedailyDungeonsEnd();
- message.win = object.win ?? false;
- message.monsterNum = object.monsterNum ?? 0;
- message.bossNum = object.bossNum ?? 0;
- message.eliteNum = object.eliteNum ?? 0;
- return message;
- },
- };
- function createBasedailyDungeonsEndRsp(): dailyDungeonsEndRsp {
- return { errno: 0, data: undefined };
- }
- export const dailyDungeonsEndRsp = {
- fromJSON(object: any): dailyDungeonsEndRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? dailyDungeonsInfo.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: dailyDungeonsEndRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = dailyDungeonsInfo.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<dailyDungeonsEndRsp>, I>>(base?: I): dailyDungeonsEndRsp {
- return dailyDungeonsEndRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<dailyDungeonsEndRsp>, I>>(object: I): dailyDungeonsEndRsp {
- const message = createBasedailyDungeonsEndRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null)
- ? dailyDungeonsInfo.fromPartial(object.data)
- : undefined;
- return message;
- },
- };
- function createBasedailyDungeonsSweep(): dailyDungeonsSweep {
- return { type: 0, diff: 0 };
- }
- export const dailyDungeonsSweep = {
- fromJSON(object: any): dailyDungeonsSweep {
- return {
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
- diff: isSet(object.diff) ? globalThis.Number(object.diff) : 0,
- };
- },
- toJSON(message: dailyDungeonsSweep): unknown {
- const obj: any = {};
- if (message.type !== 0) {
- obj.type = Math.round(message.type);
- }
- if (message.diff !== 0) {
- obj.diff = Math.round(message.diff);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<dailyDungeonsSweep>, I>>(base?: I): dailyDungeonsSweep {
- return dailyDungeonsSweep.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<dailyDungeonsSweep>, I>>(object: I): dailyDungeonsSweep {
- const message = createBasedailyDungeonsSweep();
- message.type = object.type ?? 0;
- message.diff = object.diff ?? 0;
- return message;
- },
- };
- function createBasedailyDungeonsSweepRsp(): dailyDungeonsSweepRsp {
- return { errno: 0, data: undefined };
- }
- export const dailyDungeonsSweepRsp = {
- fromJSON(object: any): dailyDungeonsSweepRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? dailyDungeonsInfo.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: dailyDungeonsSweepRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = dailyDungeonsInfo.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<dailyDungeonsSweepRsp>, I>>(base?: I): dailyDungeonsSweepRsp {
- return dailyDungeonsSweepRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<dailyDungeonsSweepRsp>, I>>(object: I): dailyDungeonsSweepRsp {
- const message = createBasedailyDungeonsSweepRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null)
- ? dailyDungeonsInfo.fromPartial(object.data)
- : undefined;
- return message;
- },
- };
- function createBaseadvGiftData(): advGiftData {
- return {};
- }
- export const advGiftData = {
- fromJSON(_: any): advGiftData {
- return {};
- },
- toJSON(_: advGiftData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<advGiftData>, I>>(base?: I): advGiftData {
- return advGiftData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<advGiftData>, I>>(_: I): advGiftData {
- const message = createBaseadvGiftData();
- return message;
- },
- };
- function createBaseadvGiftDataRsp(): advGiftDataRsp {
- return { errno: 0 };
- }
- export const advGiftDataRsp = {
- fromJSON(object: any): advGiftDataRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: advGiftDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<advGiftDataRsp>, I>>(base?: I): advGiftDataRsp {
- return advGiftDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<advGiftDataRsp>, I>>(object: I): advGiftDataRsp {
- const message = createBaseadvGiftDataRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaseadvGiftBuy(): advGiftBuy {
- return { id: 0 };
- }
- export const advGiftBuy = {
- fromJSON(object: any): advGiftBuy {
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
- },
- toJSON(message: advGiftBuy): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<advGiftBuy>, I>>(base?: I): advGiftBuy {
- return advGiftBuy.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<advGiftBuy>, I>>(object: I): advGiftBuy {
- const message = createBaseadvGiftBuy();
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBaseadvGiftBuyRsp(): advGiftBuyRsp {
- return { errno: 0 };
- }
- export const advGiftBuyRsp = {
- fromJSON(object: any): advGiftBuyRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: advGiftBuyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<advGiftBuyRsp>, I>>(base?: I): advGiftBuyRsp {
- return advGiftBuyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<advGiftBuyRsp>, I>>(object: I): advGiftBuyRsp {
- const message = createBaseadvGiftBuyRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaseadvGiftNty(): advGiftNty {
- return { list: [] };
- }
- export const advGiftNty = {
- fromJSON(object: any): advGiftNty {
- return { list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => idNum.fromJSON(e)) : [] };
- },
- toJSON(message: advGiftNty): unknown {
- const obj: any = {};
- if (message.list?.length) {
- obj.list = message.list.map((e) => idNum.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<advGiftNty>, I>>(base?: I): advGiftNty {
- return advGiftNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<advGiftNty>, I>>(object: I): advGiftNty {
- const message = createBaseadvGiftNty();
- message.list = object.list?.map((e) => idNum.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasepopGiftData(): popGiftData {
- return {};
- }
- export const popGiftData = {
- fromJSON(_: any): popGiftData {
- return {};
- },
- toJSON(_: popGiftData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<popGiftData>, I>>(base?: I): popGiftData {
- return popGiftData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<popGiftData>, I>>(_: I): popGiftData {
- const message = createBasepopGiftData();
- return message;
- },
- };
- function createBasepopGiftDataRsp(): popGiftDataRsp {
- return { errno: 0, list: [] };
- }
- export const popGiftDataRsp = {
- fromJSON(object: any): popGiftDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => popGiftInfo.fromJSON(e)) : [],
- };
- },
- toJSON(message: popGiftDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => popGiftInfo.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<popGiftDataRsp>, I>>(base?: I): popGiftDataRsp {
- return popGiftDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<popGiftDataRsp>, I>>(object: I): popGiftDataRsp {
- const message = createBasepopGiftDataRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => popGiftInfo.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasepopGiftBuy(): popGiftBuy {
- return { id: 0 };
- }
- export const popGiftBuy = {
- fromJSON(object: any): popGiftBuy {
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
- },
- toJSON(message: popGiftBuy): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<popGiftBuy>, I>>(base?: I): popGiftBuy {
- return popGiftBuy.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<popGiftBuy>, I>>(object: I): popGiftBuy {
- const message = createBasepopGiftBuy();
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasepopGiftBuyRsp(): popGiftBuyRsp {
- return { errno: 0 };
- }
- export const popGiftBuyRsp = {
- fromJSON(object: any): popGiftBuyRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: popGiftBuyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<popGiftBuyRsp>, I>>(base?: I): popGiftBuyRsp {
- return popGiftBuyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<popGiftBuyRsp>, I>>(object: I): popGiftBuyRsp {
- const message = createBasepopGiftBuyRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBasepopGiftNty(): popGiftNty {
- return { data: undefined };
- }
- export const popGiftNty = {
- fromJSON(object: any): popGiftNty {
- return { data: isSet(object.data) ? popGiftInfo.fromJSON(object.data) : undefined };
- },
- toJSON(message: popGiftNty): unknown {
- const obj: any = {};
- if (message.data !== undefined) {
- obj.data = popGiftInfo.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<popGiftNty>, I>>(base?: I): popGiftNty {
- return popGiftNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<popGiftNty>, I>>(object: I): popGiftNty {
- const message = createBasepopGiftNty();
- message.data = (object.data !== undefined && object.data !== null)
- ? popGiftInfo.fromPartial(object.data)
- : undefined;
- return message;
- },
- };
- function createBasepopGiftChangeNty(): popGiftChangeNty {
- return { data: undefined };
- }
- export const popGiftChangeNty = {
- fromJSON(object: any): popGiftChangeNty {
- return { data: isSet(object.data) ? popGiftInfo.fromJSON(object.data) : undefined };
- },
- toJSON(message: popGiftChangeNty): unknown {
- const obj: any = {};
- if (message.data !== undefined) {
- obj.data = popGiftInfo.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<popGiftChangeNty>, I>>(base?: I): popGiftChangeNty {
- return popGiftChangeNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<popGiftChangeNty>, I>>(object: I): popGiftChangeNty {
- const message = createBasepopGiftChangeNty();
- message.data = (object.data !== undefined && object.data !== null)
- ? popGiftInfo.fromPartial(object.data)
- : undefined;
- return message;
- },
- };
- function createBasefundData(): fundData {
- return { moduleid: 0 };
- }
- export const fundData = {
- fromJSON(object: any): fundData {
- return { moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0 };
- },
- toJSON(message: fundData): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<fundData>, I>>(base?: I): fundData {
- return fundData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<fundData>, I>>(object: I): fundData {
- const message = createBasefundData();
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasefundDataRsp(): fundDataRsp {
- return { errno: 0, moduleid: 0, state: false, award: 0, freeAward: 0, progress: 0 };
- }
- export const fundDataRsp = {
- fromJSON(object: any): fundDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- state: isSet(object.state) ? globalThis.Boolean(object.state) : false,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- freeAward: isSet(object.freeAward) ? globalThis.Number(object.freeAward) : 0,
- progress: isSet(object.progress) ? globalThis.Number(object.progress) : 0,
- };
- },
- toJSON(message: fundDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- if (message.state !== false) {
- obj.state = message.state;
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- if (message.freeAward !== 0) {
- obj.freeAward = Math.round(message.freeAward);
- }
- if (message.progress !== 0) {
- obj.progress = Math.round(message.progress);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<fundDataRsp>, I>>(base?: I): fundDataRsp {
- return fundDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<fundDataRsp>, I>>(object: I): fundDataRsp {
- const message = createBasefundDataRsp();
- message.errno = object.errno ?? 0;
- message.moduleid = object.moduleid ?? 0;
- message.state = object.state ?? false;
- message.award = object.award ?? 0;
- message.freeAward = object.freeAward ?? 0;
- message.progress = object.progress ?? 0;
- return message;
- },
- };
- function createBasefundBuy(): fundBuy {
- return { moduleid: 0 };
- }
- export const fundBuy = {
- fromJSON(object: any): fundBuy {
- return { moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0 };
- },
- toJSON(message: fundBuy): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<fundBuy>, I>>(base?: I): fundBuy {
- return fundBuy.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<fundBuy>, I>>(object: I): fundBuy {
- const message = createBasefundBuy();
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasefundBuyRsp(): fundBuyRsp {
- return { errno: 0, moduleid: 0 };
- }
- export const fundBuyRsp = {
- fromJSON(object: any): fundBuyRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- };
- },
- toJSON(message: fundBuyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<fundBuyRsp>, I>>(base?: I): fundBuyRsp {
- return fundBuyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<fundBuyRsp>, I>>(object: I): fundBuyRsp {
- const message = createBasefundBuyRsp();
- message.errno = object.errno ?? 0;
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasefundAward(): fundAward {
- return { moduleid: 0 };
- }
- export const fundAward = {
- fromJSON(object: any): fundAward {
- return { moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0 };
- },
- toJSON(message: fundAward): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<fundAward>, I>>(base?: I): fundAward {
- return fundAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<fundAward>, I>>(object: I): fundAward {
- const message = createBasefundAward();
- message.moduleid = object.moduleid ?? 0;
- return message;
- },
- };
- function createBasefundAwardRsp(): fundAwardRsp {
- return { errno: 0, moduleid: 0, award: 0, freeAward: 0 };
- }
- export const fundAwardRsp = {
- fromJSON(object: any): fundAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- freeAward: isSet(object.freeAward) ? globalThis.Number(object.freeAward) : 0,
- };
- },
- toJSON(message: fundAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- if (message.freeAward !== 0) {
- obj.freeAward = Math.round(message.freeAward);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<fundAwardRsp>, I>>(base?: I): fundAwardRsp {
- return fundAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<fundAwardRsp>, I>>(object: I): fundAwardRsp {
- const message = createBasefundAwardRsp();
- message.errno = object.errno ?? 0;
- message.moduleid = object.moduleid ?? 0;
- message.award = object.award ?? 0;
- message.freeAward = object.freeAward ?? 0;
- return message;
- },
- };
- function createBasefundNty(): fundNty {
- return { moduleid: 0, state: false, award: 0, freeAward: 0, progress: 0 };
- }
- export const fundNty = {
- fromJSON(object: any): fundNty {
- return {
- moduleid: isSet(object.moduleid) ? globalThis.Number(object.moduleid) : 0,
- state: isSet(object.state) ? globalThis.Boolean(object.state) : false,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- freeAward: isSet(object.freeAward) ? globalThis.Number(object.freeAward) : 0,
- progress: isSet(object.progress) ? globalThis.Number(object.progress) : 0,
- };
- },
- toJSON(message: fundNty): unknown {
- const obj: any = {};
- if (message.moduleid !== 0) {
- obj.moduleid = Math.round(message.moduleid);
- }
- if (message.state !== false) {
- obj.state = message.state;
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- if (message.freeAward !== 0) {
- obj.freeAward = Math.round(message.freeAward);
- }
- if (message.progress !== 0) {
- obj.progress = Math.round(message.progress);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<fundNty>, I>>(base?: I): fundNty {
- return fundNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<fundNty>, I>>(object: I): fundNty {
- const message = createBasefundNty();
- message.moduleid = object.moduleid ?? 0;
- message.state = object.state ?? false;
- message.award = object.award ?? 0;
- message.freeAward = object.freeAward ?? 0;
- message.progress = object.progress ?? 0;
- return message;
- },
- };
- function createBasekeepRechargeData(): keepRechargeData {
- return {};
- }
- export const keepRechargeData = {
- fromJSON(_: any): keepRechargeData {
- return {};
- },
- toJSON(_: keepRechargeData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<keepRechargeData>, I>>(base?: I): keepRechargeData {
- return keepRechargeData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<keepRechargeData>, I>>(_: I): keepRechargeData {
- const message = createBasekeepRechargeData();
- return message;
- },
- };
- function createBasekeepRechargeDataRsp(): keepRechargeDataRsp {
- return { errno: 0, day: 0, num: 0, award: 0 };
- }
- export const keepRechargeDataRsp = {
- fromJSON(object: any): keepRechargeDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- day: isSet(object.day) ? globalThis.Number(object.day) : 0,
- num: isSet(object.num) ? globalThis.Number(object.num) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- };
- },
- toJSON(message: keepRechargeDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.day !== 0) {
- obj.day = Math.round(message.day);
- }
- if (message.num !== 0) {
- obj.num = Math.round(message.num);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<keepRechargeDataRsp>, I>>(base?: I): keepRechargeDataRsp {
- return keepRechargeDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<keepRechargeDataRsp>, I>>(object: I): keepRechargeDataRsp {
- const message = createBasekeepRechargeDataRsp();
- message.errno = object.errno ?? 0;
- message.day = object.day ?? 0;
- message.num = object.num ?? 0;
- message.award = object.award ?? 0;
- return message;
- },
- };
- function createBasekeepRechargeAward(): keepRechargeAward {
- return { day: 0 };
- }
- export const keepRechargeAward = {
- fromJSON(object: any): keepRechargeAward {
- return { day: isSet(object.day) ? globalThis.Number(object.day) : 0 };
- },
- toJSON(message: keepRechargeAward): unknown {
- const obj: any = {};
- if (message.day !== 0) {
- obj.day = Math.round(message.day);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<keepRechargeAward>, I>>(base?: I): keepRechargeAward {
- return keepRechargeAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<keepRechargeAward>, I>>(object: I): keepRechargeAward {
- const message = createBasekeepRechargeAward();
- message.day = object.day ?? 0;
- return message;
- },
- };
- function createBasekeepRechargeAwardRsp(): keepRechargeAwardRsp {
- return { errno: 0, award: 0 };
- }
- export const keepRechargeAwardRsp = {
- fromJSON(object: any): keepRechargeAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- };
- },
- toJSON(message: keepRechargeAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<keepRechargeAwardRsp>, I>>(base?: I): keepRechargeAwardRsp {
- return keepRechargeAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<keepRechargeAwardRsp>, I>>(object: I): keepRechargeAwardRsp {
- const message = createBasekeepRechargeAwardRsp();
- message.errno = object.errno ?? 0;
- message.award = object.award ?? 0;
- return message;
- },
- };
- function createBasegetRedPointList(): getRedPointList {
- return {};
- }
- export const getRedPointList = {
- fromJSON(_: any): getRedPointList {
- return {};
- },
- toJSON(_: getRedPointList): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<getRedPointList>, I>>(base?: I): getRedPointList {
- return getRedPointList.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<getRedPointList>, I>>(_: I): getRedPointList {
- const message = createBasegetRedPointList();
- return message;
- },
- };
- function createBasegetRedPointListRsp(): getRedPointListRsp {
- return { errno: 0, list: [] };
- }
- export const getRedPointListRsp = {
- fromJSON(object: any): getRedPointListRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => redPointInfo.fromJSON(e)) : [],
- };
- },
- toJSON(message: getRedPointListRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => redPointInfo.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<getRedPointListRsp>, I>>(base?: I): getRedPointListRsp {
- return getRedPointListRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<getRedPointListRsp>, I>>(object: I): getRedPointListRsp {
- const message = createBasegetRedPointListRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => redPointInfo.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaserechargeResult(): rechargeResult {
- return { orderId: "", payOrderId: "", purchaseToken: "", payType: "", cfgId: 0 };
- }
- export const rechargeResult = {
- fromJSON(object: any): rechargeResult {
- return {
- orderId: isSet(object.orderId) ? globalThis.String(object.orderId) : "",
- payOrderId: isSet(object.payOrderId) ? globalThis.String(object.payOrderId) : "",
- purchaseToken: isSet(object.purchaseToken) ? globalThis.String(object.purchaseToken) : "",
- payType: isSet(object.payType) ? globalThis.String(object.payType) : "",
- cfgId: isSet(object.cfgId) ? globalThis.Number(object.cfgId) : 0,
- };
- },
- toJSON(message: rechargeResult): unknown {
- const obj: any = {};
- if (message.orderId !== "") {
- obj.orderId = message.orderId;
- }
- if (message.payOrderId !== "") {
- obj.payOrderId = message.payOrderId;
- }
- if (message.purchaseToken !== "") {
- obj.purchaseToken = message.purchaseToken;
- }
- if (message.payType !== "") {
- obj.payType = message.payType;
- }
- if (message.cfgId !== 0) {
- obj.cfgId = Math.round(message.cfgId);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<rechargeResult>, I>>(base?: I): rechargeResult {
- return rechargeResult.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<rechargeResult>, I>>(object: I): rechargeResult {
- const message = createBaserechargeResult();
- message.orderId = object.orderId ?? "";
- message.payOrderId = object.payOrderId ?? "";
- message.purchaseToken = object.purchaseToken ?? "";
- message.payType = object.payType ?? "";
- message.cfgId = object.cfgId ?? 0;
- return message;
- },
- };
- function createBaserechargeResultRsp(): rechargeResultRsp {
- return { errno: 0 };
- }
- export const rechargeResultRsp = {
- fromJSON(object: any): rechargeResultRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: rechargeResultRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<rechargeResultRsp>, I>>(base?: I): rechargeResultRsp {
- return rechargeResultRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<rechargeResultRsp>, I>>(object: I): rechargeResultRsp {
- const message = createBaserechargeResultRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaserechargeSuccess(): rechargeSuccess {
- return { id: "" };
- }
- export const rechargeSuccess = {
- fromJSON(object: any): rechargeSuccess {
- return { id: isSet(object.id) ? globalThis.String(object.id) : "" };
- },
- toJSON(message: rechargeSuccess): unknown {
- const obj: any = {};
- if (message.id !== "") {
- obj.id = message.id;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<rechargeSuccess>, I>>(base?: I): rechargeSuccess {
- return rechargeSuccess.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<rechargeSuccess>, I>>(object: I): rechargeSuccess {
- const message = createBaserechargeSuccess();
- message.id = object.id ?? "";
- return message;
- },
- };
- function createBaseonlineAwardGetAward(): onlineAwardGetAward {
- return { pos: 0 };
- }
- export const onlineAwardGetAward = {
- fromJSON(object: any): onlineAwardGetAward {
- return { pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0 };
- },
- toJSON(message: onlineAwardGetAward): unknown {
- const obj: any = {};
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<onlineAwardGetAward>, I>>(base?: I): onlineAwardGetAward {
- return onlineAwardGetAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<onlineAwardGetAward>, I>>(object: I): onlineAwardGetAward {
- const message = createBaseonlineAwardGetAward();
- message.pos = object.pos ?? 0;
- return message;
- },
- };
- function createBaseonlineAwardGetAwardRsp(): onlineAwardGetAwardRsp {
- return { errno: 0, award: 0 };
- }
- export const onlineAwardGetAwardRsp = {
- fromJSON(object: any): onlineAwardGetAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- };
- },
- toJSON(message: onlineAwardGetAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<onlineAwardGetAwardRsp>, I>>(base?: I): onlineAwardGetAwardRsp {
- return onlineAwardGetAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<onlineAwardGetAwardRsp>, I>>(object: I): onlineAwardGetAwardRsp {
- const message = createBaseonlineAwardGetAwardRsp();
- message.errno = object.errno ?? 0;
- message.award = object.award ?? 0;
- return message;
- },
- };
- function createBaseonlineAwardGetData(): onlineAwardGetData {
- return {};
- }
- export const onlineAwardGetData = {
- fromJSON(_: any): onlineAwardGetData {
- return {};
- },
- toJSON(_: onlineAwardGetData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<onlineAwardGetData>, I>>(base?: I): onlineAwardGetData {
- return onlineAwardGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<onlineAwardGetData>, I>>(_: I): onlineAwardGetData {
- const message = createBaseonlineAwardGetData();
- return message;
- },
- };
- function createBaseonlineAwardGetDataRsp(): onlineAwardGetDataRsp {
- return { errno: 0 };
- }
- export const onlineAwardGetDataRsp = {
- fromJSON(object: any): onlineAwardGetDataRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: onlineAwardGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<onlineAwardGetDataRsp>, I>>(base?: I): onlineAwardGetDataRsp {
- return onlineAwardGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<onlineAwardGetDataRsp>, I>>(object: I): onlineAwardGetDataRsp {
- const message = createBaseonlineAwardGetDataRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaseonlineAwardNty(): onlineAwardNty {
- return { open: false, time: 0, award: 0 };
- }
- export const onlineAwardNty = {
- fromJSON(object: any): onlineAwardNty {
- return {
- open: isSet(object.open) ? globalThis.Boolean(object.open) : false,
- time: isSet(object.time) ? globalThis.Number(object.time) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- };
- },
- toJSON(message: onlineAwardNty): unknown {
- const obj: any = {};
- if (message.open !== false) {
- obj.open = message.open;
- }
- if (message.time !== 0) {
- obj.time = Math.round(message.time);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<onlineAwardNty>, I>>(base?: I): onlineAwardNty {
- return onlineAwardNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<onlineAwardNty>, I>>(object: I): onlineAwardNty {
- const message = createBaseonlineAwardNty();
- message.open = object.open ?? false;
- message.time = object.time ?? 0;
- message.award = object.award ?? 0;
- return message;
- },
- };
- function createBasespeedUpData(): speedUpData {
- return {};
- }
- export const speedUpData = {
- fromJSON(_: any): speedUpData {
- return {};
- },
- toJSON(_: speedUpData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<speedUpData>, I>>(base?: I): speedUpData {
- return speedUpData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<speedUpData>, I>>(_: I): speedUpData {
- const message = createBasespeedUpData();
- return message;
- },
- };
- function createBasespeedUpDataRsp(): speedUpDataRsp {
- return { errno: 0, time: 0 };
- }
- export const speedUpDataRsp = {
- fromJSON(object: any): speedUpDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- time: isSet(object.time) ? globalThis.Number(object.time) : 0,
- };
- },
- toJSON(message: speedUpDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.time !== 0) {
- obj.time = Math.round(message.time);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<speedUpDataRsp>, I>>(base?: I): speedUpDataRsp {
- return speedUpDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<speedUpDataRsp>, I>>(object: I): speedUpDataRsp {
- const message = createBasespeedUpDataRsp();
- message.errno = object.errno ?? 0;
- message.time = object.time ?? 0;
- return message;
- },
- };
- function createBasespeedUpBuy(): speedUpBuy {
- return { free: false };
- }
- export const speedUpBuy = {
- fromJSON(object: any): speedUpBuy {
- return { free: isSet(object.free) ? globalThis.Boolean(object.free) : false };
- },
- toJSON(message: speedUpBuy): unknown {
- const obj: any = {};
- if (message.free !== false) {
- obj.free = message.free;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<speedUpBuy>, I>>(base?: I): speedUpBuy {
- return speedUpBuy.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<speedUpBuy>, I>>(object: I): speedUpBuy {
- const message = createBasespeedUpBuy();
- message.free = object.free ?? false;
- return message;
- },
- };
- function createBasespeedUpBuyRsp(): speedUpBuyRsp {
- return { errno: 0, time: 0 };
- }
- export const speedUpBuyRsp = {
- fromJSON(object: any): speedUpBuyRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- time: isSet(object.time) ? globalThis.Number(object.time) : 0,
- };
- },
- toJSON(message: speedUpBuyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.time !== 0) {
- obj.time = Math.round(message.time);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<speedUpBuyRsp>, I>>(base?: I): speedUpBuyRsp {
- return speedUpBuyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<speedUpBuyRsp>, I>>(object: I): speedUpBuyRsp {
- const message = createBasespeedUpBuyRsp();
- message.errno = object.errno ?? 0;
- message.time = object.time ?? 0;
- return message;
- },
- };
- function createBasecitySkillUpgrade(): citySkillUpgrade {
- return { id: 0 };
- }
- export const citySkillUpgrade = {
- fromJSON(object: any): citySkillUpgrade {
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
- },
- toJSON(message: citySkillUpgrade): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<citySkillUpgrade>, I>>(base?: I): citySkillUpgrade {
- return citySkillUpgrade.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<citySkillUpgrade>, I>>(object: I): citySkillUpgrade {
- const message = createBasecitySkillUpgrade();
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasecitySkillUpgradeRsp(): citySkillUpgradeRsp {
- return { errno: 0, id: 0 };
- }
- export const citySkillUpgradeRsp = {
- fromJSON(object: any): citySkillUpgradeRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- };
- },
- toJSON(message: citySkillUpgradeRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<citySkillUpgradeRsp>, I>>(base?: I): citySkillUpgradeRsp {
- return citySkillUpgradeRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<citySkillUpgradeRsp>, I>>(object: I): citySkillUpgradeRsp {
- const message = createBasecitySkillUpgradeRsp();
- message.errno = object.errno ?? 0;
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasecitySkillBattle(): citySkillBattle {
- return { id: 0 };
- }
- export const citySkillBattle = {
- fromJSON(object: any): citySkillBattle {
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
- },
- toJSON(message: citySkillBattle): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<citySkillBattle>, I>>(base?: I): citySkillBattle {
- return citySkillBattle.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<citySkillBattle>, I>>(object: I): citySkillBattle {
- const message = createBasecitySkillBattle();
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasecitySkillBattleRsp(): citySkillBattleRsp {
- return { errno: 0, id: 0 };
- }
- export const citySkillBattleRsp = {
- fromJSON(object: any): citySkillBattleRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- };
- },
- toJSON(message: citySkillBattleRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<citySkillBattleRsp>, I>>(base?: I): citySkillBattleRsp {
- return citySkillBattleRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<citySkillBattleRsp>, I>>(object: I): citySkillBattleRsp {
- const message = createBasecitySkillBattleRsp();
- message.errno = object.errno ?? 0;
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasebuildingExplore(): buildingExplore {
- return { id: 0 };
- }
- export const buildingExplore = {
- fromJSON(object: any): buildingExplore {
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
- },
- toJSON(message: buildingExplore): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<buildingExplore>, I>>(base?: I): buildingExplore {
- return buildingExplore.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<buildingExplore>, I>>(object: I): buildingExplore {
- const message = createBasebuildingExplore();
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasebuildingExploreRsp(): buildingExploreRsp {
- return { errno: 0, data: undefined };
- }
- export const buildingExploreRsp = {
- fromJSON(object: any): buildingExploreRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? building.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: buildingExploreRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = building.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<buildingExploreRsp>, I>>(base?: I): buildingExploreRsp {
- return buildingExploreRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<buildingExploreRsp>, I>>(object: I): buildingExploreRsp {
- const message = createBasebuildingExploreRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? building.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBasebuildingAutoExploreAward(): buildingAutoExploreAward {
- return { id: 0 };
- }
- export const buildingAutoExploreAward = {
- fromJSON(object: any): buildingAutoExploreAward {
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
- },
- toJSON(message: buildingAutoExploreAward): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<buildingAutoExploreAward>, I>>(base?: I): buildingAutoExploreAward {
- return buildingAutoExploreAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<buildingAutoExploreAward>, I>>(object: I): buildingAutoExploreAward {
- const message = createBasebuildingAutoExploreAward();
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBasebuildingAutoExploreAwardRsp(): buildingAutoExploreAwardRsp {
- return { errno: 0, data: undefined };
- }
- export const buildingAutoExploreAwardRsp = {
- fromJSON(object: any): buildingAutoExploreAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? building.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: buildingAutoExploreAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = building.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<buildingAutoExploreAwardRsp>, I>>(base?: I): buildingAutoExploreAwardRsp {
- return buildingAutoExploreAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<buildingAutoExploreAwardRsp>, I>>(object: I): buildingAutoExploreAwardRsp {
- const message = createBasebuildingAutoExploreAwardRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? building.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBasebuildingExploreBattle(): buildingExploreBattle {
- return { id: 0, list: [] };
- }
- export const buildingExploreBattle = {
- fromJSON(object: any): buildingExploreBattle {
- return {
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => globalThis.String(e)) : [],
- };
- },
- toJSON(message: buildingExploreBattle): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- if (message.list?.length) {
- obj.list = message.list;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<buildingExploreBattle>, I>>(base?: I): buildingExploreBattle {
- return buildingExploreBattle.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<buildingExploreBattle>, I>>(object: I): buildingExploreBattle {
- const message = createBasebuildingExploreBattle();
- message.id = object.id ?? 0;
- message.list = object.list?.map((e) => e) || [];
- return message;
- },
- };
- function createBasebuildingExploreBattleRsp(): buildingExploreBattleRsp {
- return { errno: 0, data: undefined };
- }
- export const buildingExploreBattleRsp = {
- fromJSON(object: any): buildingExploreBattleRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? building.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: buildingExploreBattleRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = building.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<buildingExploreBattleRsp>, I>>(base?: I): buildingExploreBattleRsp {
- return buildingExploreBattleRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<buildingExploreBattleRsp>, I>>(object: I): buildingExploreBattleRsp {
- const message = createBasebuildingExploreBattleRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? building.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBasebuildingAutoExploreOption(): buildingAutoExploreOption {
- return { id: 0, open: false };
- }
- export const buildingAutoExploreOption = {
- fromJSON(object: any): buildingAutoExploreOption {
- return {
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
- open: isSet(object.open) ? globalThis.Boolean(object.open) : false,
- };
- },
- toJSON(message: buildingAutoExploreOption): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- if (message.open !== false) {
- obj.open = message.open;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<buildingAutoExploreOption>, I>>(base?: I): buildingAutoExploreOption {
- return buildingAutoExploreOption.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<buildingAutoExploreOption>, I>>(object: I): buildingAutoExploreOption {
- const message = createBasebuildingAutoExploreOption();
- message.id = object.id ?? 0;
- message.open = object.open ?? false;
- return message;
- },
- };
- function createBasebuildingAutoExploreOptionRsp(): buildingAutoExploreOptionRsp {
- return { errno: 0, data: undefined };
- }
- export const buildingAutoExploreOptionRsp = {
- fromJSON(object: any): buildingAutoExploreOptionRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? building.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: buildingAutoExploreOptionRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = building.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<buildingAutoExploreOptionRsp>, I>>(base?: I): buildingAutoExploreOptionRsp {
- return buildingAutoExploreOptionRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<buildingAutoExploreOptionRsp>, I>>(object: I): buildingAutoExploreOptionRsp {
- const message = createBasebuildingAutoExploreOptionRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? building.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBaselevelGiftData(): levelGiftData {
- return {};
- }
- export const levelGiftData = {
- fromJSON(_: any): levelGiftData {
- return {};
- },
- toJSON(_: levelGiftData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<levelGiftData>, I>>(base?: I): levelGiftData {
- return levelGiftData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<levelGiftData>, I>>(_: I): levelGiftData {
- const message = createBaselevelGiftData();
- return message;
- },
- };
- function createBaselevelGiftDataRsp(): levelGiftDataRsp {
- return { errno: 0 };
- }
- export const levelGiftDataRsp = {
- fromJSON(object: any): levelGiftDataRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: levelGiftDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<levelGiftDataRsp>, I>>(base?: I): levelGiftDataRsp {
- return levelGiftDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<levelGiftDataRsp>, I>>(object: I): levelGiftDataRsp {
- const message = createBaselevelGiftDataRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaselevelGiftBuy(): levelGiftBuy {
- return { id: 0 };
- }
- export const levelGiftBuy = {
- fromJSON(object: any): levelGiftBuy {
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
- },
- toJSON(message: levelGiftBuy): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<levelGiftBuy>, I>>(base?: I): levelGiftBuy {
- return levelGiftBuy.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<levelGiftBuy>, I>>(object: I): levelGiftBuy {
- const message = createBaselevelGiftBuy();
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBaselevelGiftBuyRsp(): levelGiftBuyRsp {
- return { errno: 0 };
- }
- export const levelGiftBuyRsp = {
- fromJSON(object: any): levelGiftBuyRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: levelGiftBuyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<levelGiftBuyRsp>, I>>(base?: I): levelGiftBuyRsp {
- return levelGiftBuyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<levelGiftBuyRsp>, I>>(object: I): levelGiftBuyRsp {
- const message = createBaselevelGiftBuyRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaselevelGiftNty(): levelGiftNty {
- return { list: [] };
- }
- export const levelGiftNty = {
- fromJSON(object: any): levelGiftNty {
- return { list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => idNum.fromJSON(e)) : [] };
- },
- toJSON(message: levelGiftNty): unknown {
- const obj: any = {};
- if (message.list?.length) {
- obj.list = message.list.map((e) => idNum.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<levelGiftNty>, I>>(base?: I): levelGiftNty {
- return levelGiftNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<levelGiftNty>, I>>(object: I): levelGiftNty {
- const message = createBaselevelGiftNty();
- message.list = object.list?.map((e) => idNum.fromPartial(e)) || [];
- return message;
- },
- };
- function createBaselevelGiftDelRedPoint(): levelGiftDelRedPoint {
- return {};
- }
- export const levelGiftDelRedPoint = {
- fromJSON(_: any): levelGiftDelRedPoint {
- return {};
- },
- toJSON(_: levelGiftDelRedPoint): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<levelGiftDelRedPoint>, I>>(base?: I): levelGiftDelRedPoint {
- return levelGiftDelRedPoint.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<levelGiftDelRedPoint>, I>>(_: I): levelGiftDelRedPoint {
- const message = createBaselevelGiftDelRedPoint();
- return message;
- },
- };
- function createBaselevelGiftDelRedPointRsp(): levelGiftDelRedPointRsp {
- return { errno: 0 };
- }
- export const levelGiftDelRedPointRsp = {
- fromJSON(object: any): levelGiftDelRedPointRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: levelGiftDelRedPointRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<levelGiftDelRedPointRsp>, I>>(base?: I): levelGiftDelRedPointRsp {
- return levelGiftDelRedPointRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<levelGiftDelRedPointRsp>, I>>(object: I): levelGiftDelRedPointRsp {
- const message = createBaselevelGiftDelRedPointRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaselotteryData(): lotteryData {
- return {};
- }
- export const lotteryData = {
- fromJSON(_: any): lotteryData {
- return {};
- },
- toJSON(_: lotteryData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<lotteryData>, I>>(base?: I): lotteryData {
- return lotteryData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<lotteryData>, I>>(_: I): lotteryData {
- const message = createBaselotteryData();
- return message;
- },
- };
- function createBaselotteryDataRsp(): lotteryDataRsp {
- return { errno: 0 };
- }
- export const lotteryDataRsp = {
- fromJSON(object: any): lotteryDataRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: lotteryDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<lotteryDataRsp>, I>>(base?: I): lotteryDataRsp {
- return lotteryDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<lotteryDataRsp>, I>>(object: I): lotteryDataRsp {
- const message = createBaselotteryDataRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaselotteryAward(): lotteryAward {
- return { free: false };
- }
- export const lotteryAward = {
- fromJSON(object: any): lotteryAward {
- return { free: isSet(object.free) ? globalThis.Boolean(object.free) : false };
- },
- toJSON(message: lotteryAward): unknown {
- const obj: any = {};
- if (message.free !== false) {
- obj.free = message.free;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<lotteryAward>, I>>(base?: I): lotteryAward {
- return lotteryAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<lotteryAward>, I>>(object: I): lotteryAward {
- const message = createBaselotteryAward();
- message.free = object.free ?? false;
- return message;
- },
- };
- function createBaselotteryAwardRsp(): lotteryAwardRsp {
- return { errno: 0, free: false, award: 0 };
- }
- export const lotteryAwardRsp = {
- fromJSON(object: any): lotteryAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- free: isSet(object.free) ? globalThis.Boolean(object.free) : false,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- };
- },
- toJSON(message: lotteryAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.free !== false) {
- obj.free = message.free;
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<lotteryAwardRsp>, I>>(base?: I): lotteryAwardRsp {
- return lotteryAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<lotteryAwardRsp>, I>>(object: I): lotteryAwardRsp {
- const message = createBaselotteryAwardRsp();
- message.errno = object.errno ?? 0;
- message.free = object.free ?? false;
- message.award = object.award ?? 0;
- return message;
- },
- };
- function createBaselotteryBuy(): lotteryBuy {
- return {};
- }
- export const lotteryBuy = {
- fromJSON(_: any): lotteryBuy {
- return {};
- },
- toJSON(_: lotteryBuy): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<lotteryBuy>, I>>(base?: I): lotteryBuy {
- return lotteryBuy.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<lotteryBuy>, I>>(_: I): lotteryBuy {
- const message = createBaselotteryBuy();
- return message;
- },
- };
- function createBaselotteryBuyRsp(): lotteryBuyRsp {
- return { errno: 0 };
- }
- export const lotteryBuyRsp = {
- fromJSON(object: any): lotteryBuyRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: lotteryBuyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<lotteryBuyRsp>, I>>(base?: I): lotteryBuyRsp {
- return lotteryBuyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<lotteryBuyRsp>, I>>(object: I): lotteryBuyRsp {
- const message = createBaselotteryBuyRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBaselotteryNty(): lotteryNty {
- return { state: 0, free: 0, award: 0, day: 0 };
- }
- export const lotteryNty = {
- fromJSON(object: any): lotteryNty {
- return {
- state: isSet(object.state) ? globalThis.Number(object.state) : 0,
- free: isSet(object.free) ? globalThis.Number(object.free) : 0,
- award: isSet(object.award) ? globalThis.Number(object.award) : 0,
- day: isSet(object.day) ? globalThis.Number(object.day) : 0,
- };
- },
- toJSON(message: lotteryNty): unknown {
- const obj: any = {};
- if (message.state !== 0) {
- obj.state = Math.round(message.state);
- }
- if (message.free !== 0) {
- obj.free = Math.round(message.free);
- }
- if (message.award !== 0) {
- obj.award = Math.round(message.award);
- }
- if (message.day !== 0) {
- obj.day = Math.round(message.day);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<lotteryNty>, I>>(base?: I): lotteryNty {
- return lotteryNty.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<lotteryNty>, I>>(object: I): lotteryNty {
- const message = createBaselotteryNty();
- message.state = object.state ?? 0;
- message.free = object.free ?? 0;
- message.award = object.award ?? 0;
- message.day = object.day ?? 0;
- return message;
- },
- };
- function createBaseactRankData(): actRankData {
- return { id: 0 };
- }
- export const actRankData = {
- fromJSON(object: any): actRankData {
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
- },
- toJSON(message: actRankData): unknown {
- const obj: any = {};
- if (message.id !== 0) {
- obj.id = Math.round(message.id);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<actRankData>, I>>(base?: I): actRankData {
- return actRankData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<actRankData>, I>>(object: I): actRankData {
- const message = createBaseactRankData();
- message.id = object.id ?? 0;
- return message;
- },
- };
- function createBaseactRankDataRsp(): actRankDataRsp {
- return { errno: 0, list: [] };
- }
- export const actRankDataRsp = {
- fromJSON(object: any): actRankDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => rankingInfo.fromJSON(e)) : [],
- };
- },
- toJSON(message: actRankDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => rankingInfo.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<actRankDataRsp>, I>>(base?: I): actRankDataRsp {
- return actRankDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<actRankDataRsp>, I>>(object: I): actRankDataRsp {
- const message = createBaseactRankDataRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => rankingInfo.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasetreasureGetData(): treasureGetData {
- return {};
- }
- export const treasureGetData = {
- fromJSON(_: any): treasureGetData {
- return {};
- },
- toJSON(_: treasureGetData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<treasureGetData>, I>>(base?: I): treasureGetData {
- return treasureGetData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<treasureGetData>, I>>(_: I): treasureGetData {
- const message = createBasetreasureGetData();
- return message;
- },
- };
- function createBasetreasureGetDataRsp(): treasureGetDataRsp {
- return { errno: 0, buy: 0, sign: 0, list: [], treasure: false };
- }
- export const treasureGetDataRsp = {
- fromJSON(object: any): treasureGetDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- buy: isSet(object.buy) ? globalThis.Number(object.buy) : 0,
- sign: isSet(object.sign) ? globalThis.Number(object.sign) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => globalThis.Number(e)) : [],
- treasure: isSet(object.treasure) ? globalThis.Boolean(object.treasure) : false,
- };
- },
- toJSON(message: treasureGetDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.buy !== 0) {
- obj.buy = Math.round(message.buy);
- }
- if (message.sign !== 0) {
- obj.sign = Math.round(message.sign);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => Math.round(e));
- }
- if (message.treasure !== false) {
- obj.treasure = message.treasure;
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<treasureGetDataRsp>, I>>(base?: I): treasureGetDataRsp {
- return treasureGetDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<treasureGetDataRsp>, I>>(object: I): treasureGetDataRsp {
- const message = createBasetreasureGetDataRsp();
- message.errno = object.errno ?? 0;
- message.buy = object.buy ?? 0;
- message.sign = object.sign ?? 0;
- message.list = object.list?.map((e) => e) || [];
- message.treasure = object.treasure ?? false;
- return message;
- },
- };
- function createBasetreasureDraw(): treasureDraw {
- return {};
- }
- export const treasureDraw = {
- fromJSON(_: any): treasureDraw {
- return {};
- },
- toJSON(_: treasureDraw): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<treasureDraw>, I>>(base?: I): treasureDraw {
- return treasureDraw.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<treasureDraw>, I>>(_: I): treasureDraw {
- const message = createBasetreasureDraw();
- return message;
- },
- };
- function createBasetreasureDrawRsp(): treasureDrawRsp {
- return { errno: 0, pos: 0 };
- }
- export const treasureDrawRsp = {
- fromJSON(object: any): treasureDrawRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0,
- };
- },
- toJSON(message: treasureDrawRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<treasureDrawRsp>, I>>(base?: I): treasureDrawRsp {
- return treasureDrawRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<treasureDrawRsp>, I>>(object: I): treasureDrawRsp {
- const message = createBasetreasureDrawRsp();
- message.errno = object.errno ?? 0;
- message.pos = object.pos ?? 0;
- return message;
- },
- };
- function createBasetreasureSign(): treasureSign {
- return {};
- }
- export const treasureSign = {
- fromJSON(_: any): treasureSign {
- return {};
- },
- toJSON(_: treasureSign): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<treasureSign>, I>>(base?: I): treasureSign {
- return treasureSign.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<treasureSign>, I>>(_: I): treasureSign {
- const message = createBasetreasureSign();
- return message;
- },
- };
- function createBasetreasureSignRsp(): treasureSignRsp {
- return { errno: 0, sign: 0 };
- }
- export const treasureSignRsp = {
- fromJSON(object: any): treasureSignRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- sign: isSet(object.sign) ? globalThis.Number(object.sign) : 0,
- };
- },
- toJSON(message: treasureSignRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.sign !== 0) {
- obj.sign = Math.round(message.sign);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<treasureSignRsp>, I>>(base?: I): treasureSignRsp {
- return treasureSignRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<treasureSignRsp>, I>>(object: I): treasureSignRsp {
- const message = createBasetreasureSignRsp();
- message.errno = object.errno ?? 0;
- message.sign = object.sign ?? 0;
- return message;
- },
- };
- function createBasetreasureBuy(): treasureBuy {
- return {};
- }
- export const treasureBuy = {
- fromJSON(_: any): treasureBuy {
- return {};
- },
- toJSON(_: treasureBuy): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<treasureBuy>, I>>(base?: I): treasureBuy {
- return treasureBuy.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<treasureBuy>, I>>(_: I): treasureBuy {
- const message = createBasetreasureBuy();
- return message;
- },
- };
- function createBasetreasureBuyRsp(): treasureBuyRsp {
- return { errno: 0, buy: 0 };
- }
- export const treasureBuyRsp = {
- fromJSON(object: any): treasureBuyRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- buy: isSet(object.buy) ? globalThis.Number(object.buy) : 0,
- };
- },
- toJSON(message: treasureBuyRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.buy !== 0) {
- obj.buy = Math.round(message.buy);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<treasureBuyRsp>, I>>(base?: I): treasureBuyRsp {
- return treasureBuyRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<treasureBuyRsp>, I>>(object: I): treasureBuyRsp {
- const message = createBasetreasureBuyRsp();
- message.errno = object.errno ?? 0;
- message.buy = object.buy ?? 0;
- return message;
- },
- };
- function createBasepvpData(): pvpData {
- return {};
- }
- export const pvpData = {
- fromJSON(_: any): pvpData {
- return {};
- },
- toJSON(_: pvpData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<pvpData>, I>>(base?: I): pvpData {
- return pvpData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<pvpData>, I>>(_: I): pvpData {
- const message = createBasepvpData();
- return message;
- },
- };
- function createBasepvpDataRsp(): pvpDataRsp {
- return { errno: 0, embattleList: [], rankingList: [] };
- }
- export const pvpDataRsp = {
- fromJSON(object: any): pvpDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- embattleList: globalThis.Array.isArray(object?.embattleList)
- ? object.embattleList.map((e: any) => embattleInfo.fromJSON(e))
- : [],
- rankingList: globalThis.Array.isArray(object?.rankingList)
- ? object.rankingList.map((e: any) => rankingInfo.fromJSON(e))
- : [],
- };
- },
- toJSON(message: pvpDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.embattleList?.length) {
- obj.embattleList = message.embattleList.map((e) => embattleInfo.toJSON(e));
- }
- if (message.rankingList?.length) {
- obj.rankingList = message.rankingList.map((e) => rankingInfo.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<pvpDataRsp>, I>>(base?: I): pvpDataRsp {
- return pvpDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<pvpDataRsp>, I>>(object: I): pvpDataRsp {
- const message = createBasepvpDataRsp();
- message.errno = object.errno ?? 0;
- message.embattleList = object.embattleList?.map((e) => embattleInfo.fromPartial(e)) || [];
- message.rankingList = object.rankingList?.map((e) => rankingInfo.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasepvpMatch(): pvpMatch {
- return {};
- }
- export const pvpMatch = {
- fromJSON(_: any): pvpMatch {
- return {};
- },
- toJSON(_: pvpMatch): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<pvpMatch>, I>>(base?: I): pvpMatch {
- return pvpMatch.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<pvpMatch>, I>>(_: I): pvpMatch {
- const message = createBasepvpMatch();
- return message;
- },
- };
- function createBasepvpMatchRsp(): pvpMatchRsp {
- return { errno: 0, embattleList: [], heroList: [], cardList: [], equipList: [], talentData: undefined };
- }
- export const pvpMatchRsp = {
- fromJSON(object: any): pvpMatchRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- embattleList: globalThis.Array.isArray(object?.embattleList)
- ? object.embattleList.map((e: any) => embattleInfo.fromJSON(e))
- : [],
- heroList: globalThis.Array.isArray(object?.heroList)
- ? object.heroList.map((e: any) => hero.fromJSON(e))
- : [],
- cardList: globalThis.Array.isArray(object?.cardList) ? object.cardList.map((e: any) => card.fromJSON(e)) : [],
- equipList: globalThis.Array.isArray(object?.equipList) ? object.equipList.map((e: any) => equip.fromJSON(e)) : [],
- talentData: isSet(object.talentData) ? talentInfo.fromJSON(object.talentData) : undefined,
- };
- },
- toJSON(message: pvpMatchRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.embattleList?.length) {
- obj.embattleList = message.embattleList.map((e) => embattleInfo.toJSON(e));
- }
- if (message.heroList?.length) {
- obj.heroList = message.heroList.map((e) => hero.toJSON(e));
- }
- if (message.cardList?.length) {
- obj.cardList = message.cardList.map((e) => card.toJSON(e));
- }
- if (message.equipList?.length) {
- obj.equipList = message.equipList.map((e) => equip.toJSON(e));
- }
- if (message.talentData !== undefined) {
- obj.talentData = talentInfo.toJSON(message.talentData);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<pvpMatchRsp>, I>>(base?: I): pvpMatchRsp {
- return pvpMatchRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<pvpMatchRsp>, I>>(object: I): pvpMatchRsp {
- const message = createBasepvpMatchRsp();
- message.errno = object.errno ?? 0;
- message.embattleList = object.embattleList?.map((e) => embattleInfo.fromPartial(e)) || [];
- message.heroList = object.heroList?.map((e) => hero.fromPartial(e)) || [];
- message.cardList = object.cardList?.map((e) => card.fromPartial(e)) || [];
- message.equipList = object.equipList?.map((e) => equip.fromPartial(e)) || [];
- message.talentData = (object.talentData !== undefined && object.talentData !== null)
- ? talentInfo.fromPartial(object.talentData)
- : undefined;
- return message;
- },
- };
- function createBasepvpReslut(): pvpReslut {
- return { win: 0 };
- }
- export const pvpReslut = {
- fromJSON(object: any): pvpReslut {
- return { win: isSet(object.win) ? globalThis.Number(object.win) : 0 };
- },
- toJSON(message: pvpReslut): unknown {
- const obj: any = {};
- if (message.win !== 0) {
- obj.win = Math.round(message.win);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<pvpReslut>, I>>(base?: I): pvpReslut {
- return pvpReslut.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<pvpReslut>, I>>(object: I): pvpReslut {
- const message = createBasepvpReslut();
- message.win = object.win ?? 0;
- return message;
- },
- };
- function createBasepvpReslutRsp(): pvpReslutRsp {
- return { errno: 0 };
- }
- export const pvpReslutRsp = {
- fromJSON(object: any): pvpReslutRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: pvpReslutRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<pvpReslutRsp>, I>>(base?: I): pvpReslutRsp {
- return pvpReslutRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<pvpReslutRsp>, I>>(object: I): pvpReslutRsp {
- const message = createBasepvpReslutRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBasepvpEmbattle(): pvpEmbattle {
- return { data: undefined };
- }
- export const pvpEmbattle = {
- fromJSON(object: any): pvpEmbattle {
- return { data: isSet(object.data) ? embattleInfo.fromJSON(object.data) : undefined };
- },
- toJSON(message: pvpEmbattle): unknown {
- const obj: any = {};
- if (message.data !== undefined) {
- obj.data = embattleInfo.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<pvpEmbattle>, I>>(base?: I): pvpEmbattle {
- return pvpEmbattle.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<pvpEmbattle>, I>>(object: I): pvpEmbattle {
- const message = createBasepvpEmbattle();
- message.data = (object.data !== undefined && object.data !== null)
- ? embattleInfo.fromPartial(object.data)
- : undefined;
- return message;
- },
- };
- function createBasepvpEmbattleRsp(): pvpEmbattleRsp {
- return { errno: 0 };
- }
- export const pvpEmbattleRsp = {
- fromJSON(object: any): pvpEmbattleRsp {
- return { errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0 };
- },
- toJSON(message: pvpEmbattleRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<pvpEmbattleRsp>, I>>(base?: I): pvpEmbattleRsp {
- return pvpEmbattleRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<pvpEmbattleRsp>, I>>(object: I): pvpEmbattleRsp {
- const message = createBasepvpEmbattleRsp();
- message.errno = object.errno ?? 0;
- return message;
- },
- };
- function createBasetimeBoxData(): timeBoxData {
- return {};
- }
- export const timeBoxData = {
- fromJSON(_: any): timeBoxData {
- return {};
- },
- toJSON(_: timeBoxData): unknown {
- const obj: any = {};
- return obj;
- },
- create<I extends Exact<DeepPartial<timeBoxData>, I>>(base?: I): timeBoxData {
- return timeBoxData.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<timeBoxData>, I>>(_: I): timeBoxData {
- const message = createBasetimeBoxData();
- return message;
- },
- };
- function createBasetimeBoxDataRsp(): timeBoxDataRsp {
- return { errno: 0, list: [] };
- }
- export const timeBoxDataRsp = {
- fromJSON(object: any): timeBoxDataRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e: any) => timeBox.fromJSON(e)) : [],
- };
- },
- toJSON(message: timeBoxDataRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.list?.length) {
- obj.list = message.list.map((e) => timeBox.toJSON(e));
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<timeBoxDataRsp>, I>>(base?: I): timeBoxDataRsp {
- return timeBoxDataRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<timeBoxDataRsp>, I>>(object: I): timeBoxDataRsp {
- const message = createBasetimeBoxDataRsp();
- message.errno = object.errno ?? 0;
- message.list = object.list?.map((e) => timeBox.fromPartial(e)) || [];
- return message;
- },
- };
- function createBasetimeBoxUnlock(): timeBoxUnlock {
- return { pos: 0 };
- }
- export const timeBoxUnlock = {
- fromJSON(object: any): timeBoxUnlock {
- return { pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0 };
- },
- toJSON(message: timeBoxUnlock): unknown {
- const obj: any = {};
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<timeBoxUnlock>, I>>(base?: I): timeBoxUnlock {
- return timeBoxUnlock.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<timeBoxUnlock>, I>>(object: I): timeBoxUnlock {
- const message = createBasetimeBoxUnlock();
- message.pos = object.pos ?? 0;
- return message;
- },
- };
- function createBasetimeBoxUnlockRsp(): timeBoxUnlockRsp {
- return { errno: 0, data: undefined };
- }
- export const timeBoxUnlockRsp = {
- fromJSON(object: any): timeBoxUnlockRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- data: isSet(object.data) ? timeBox.fromJSON(object.data) : undefined,
- };
- },
- toJSON(message: timeBoxUnlockRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.data !== undefined) {
- obj.data = timeBox.toJSON(message.data);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<timeBoxUnlockRsp>, I>>(base?: I): timeBoxUnlockRsp {
- return timeBoxUnlockRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<timeBoxUnlockRsp>, I>>(object: I): timeBoxUnlockRsp {
- const message = createBasetimeBoxUnlockRsp();
- message.errno = object.errno ?? 0;
- message.data = (object.data !== undefined && object.data !== null) ? timeBox.fromPartial(object.data) : undefined;
- return message;
- },
- };
- function createBasetimeBoxGetAward(): timeBoxGetAward {
- return { pos: 0 };
- }
- export const timeBoxGetAward = {
- fromJSON(object: any): timeBoxGetAward {
- return { pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0 };
- },
- toJSON(message: timeBoxGetAward): unknown {
- const obj: any = {};
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<timeBoxGetAward>, I>>(base?: I): timeBoxGetAward {
- return timeBoxGetAward.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<timeBoxGetAward>, I>>(object: I): timeBoxGetAward {
- const message = createBasetimeBoxGetAward();
- message.pos = object.pos ?? 0;
- return message;
- },
- };
- function createBasetimeBoxGetAwardRsp(): timeBoxGetAwardRsp {
- return { errno: 0, pos: 0 };
- }
- export const timeBoxGetAwardRsp = {
- fromJSON(object: any): timeBoxGetAwardRsp {
- return {
- errno: isSet(object.errno) ? globalThis.Number(object.errno) : 0,
- pos: isSet(object.pos) ? globalThis.Number(object.pos) : 0,
- };
- },
- toJSON(message: timeBoxGetAwardRsp): unknown {
- const obj: any = {};
- if (message.errno !== 0) {
- obj.errno = Math.round(message.errno);
- }
- if (message.pos !== 0) {
- obj.pos = Math.round(message.pos);
- }
- return obj;
- },
- create<I extends Exact<DeepPartial<timeBoxGetAwardRsp>, I>>(base?: I): timeBoxGetAwardRsp {
- return timeBoxGetAwardRsp.fromPartial(base ?? ({} as any));
- },
- fromPartial<I extends Exact<DeepPartial<timeBoxGetAwardRsp>, I>>(object: I): timeBoxGetAwardRsp {
- const message = createBasetimeBoxGetAwardRsp();
- message.errno = object.errno ?? 0;
- message.pos = object.pos ?? 0;
- return message;
- },
- };
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
- export type DeepPartial<T> = T extends Builtin ? T
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
- : Partial<T>;
- type KeysOfUnion<T> = T extends T ? keyof T : never;
- export type Exact<P, I extends P> = P extends Builtin ? P
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
- function isSet(value: any): boolean {
- return value !== null && value !== undefined;
- }
|