|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: Message2Clients.proto
-
- #include "Message2Clients.pb.h"
-
- #include <algorithm>
-
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/wire_format_lite.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
-
- PROTOBUF_PRAGMA_INIT_SEG
-
- namespace _pb = ::PROTOBUF_NAMESPACE_ID;
- namespace _pbi = _pb::internal;
-
- namespace protobuf
- {
- PROTOBUF_CONSTEXPR MessageOfStudent::MessageOfStudent(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.buff_)*/ {}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_.determination_)*/ 0, /*decltype(_impl_.time_until_skill_available_)*/ 0, /*decltype(_impl_.fail_num_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.prop_)*/ 0, /*decltype(_impl_.student_type_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.fail_time_)*/ 0, /*decltype(_impl_.state_)*/ 0, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.emo_time_)*/ 0, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_.damage_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfStudentDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfStudentDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfStudentDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfStudent _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfStudentDefaultTypeInternal _MessageOfStudent_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfTricker::MessageOfTricker(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.buff_)*/ {}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_.damage_)*/ 0, /*decltype(_impl_.time_until_skill_available_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.prop_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.tricker_type_)*/ 0, /*decltype(_impl_.movable_)*/ false, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfTrickerDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfTrickerDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfTrickerDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfTricker _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfTrickerDefaultTypeInternal _MessageOfTricker_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfBullet::MessageOfBullet(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.parent_team_id_)*/ int64_t{0}, /*decltype(_impl_.bomb_range_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfBulletDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfBulletDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfBulletDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfBullet _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBulletDefaultTypeInternal _MessageOfBullet_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfBombedBullet::MessageOfBombedBullet(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.mapping_id_)*/ int64_t{0}, /*decltype(_impl_.bomb_range_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfBombedBulletDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfBombedBulletDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfBombedBulletDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfBombedBullet _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBombedBulletDefaultTypeInternal _MessageOfBombedBullet_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfProp::MessageOfProp(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.size_)*/ 0, /*decltype(_impl_.is_moving_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfPropDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfPropDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfPropDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfProp _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfPickedProp::MessageOfPickedProp(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.mapping_id_)*/ int64_t{0}, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfPickedPropDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfPickedPropDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfPickedPropDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfPickedProp _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfMap_Row::MessageOfMap_Row(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.col_)*/ {}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfMap_RowDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfMap_RowDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfMap_RowDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfMap_Row _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfMap::MessageOfMap(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.row_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfMapDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfMapDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfMapDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfMap _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_;
- PROTOBUF_CONSTEXPR MessageToClient::MessageToClient(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.student_message_)*/ {}, /*decltype(_impl_.tricker_message_)*/ {}, /*decltype(_impl_.prop_message_)*/ {}, /*decltype(_impl_.map_message_)*/ nullptr, /*decltype(_impl_.game_state_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageToClientDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageToClientDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageToClientDefaultTypeInternal()
- {
- }
- union
- {
- MessageToClient _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToClientDefaultTypeInternal _MessageToClient_default_instance_;
- PROTOBUF_CONSTEXPR MoveRes::MoveRes(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.actual_speed_)*/ int64_t{0}, /*decltype(_impl_.actual_angle_)*/ 0, /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MoveResDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MoveResDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MoveResDefaultTypeInternal()
- {
- }
- union
- {
- MoveRes _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResDefaultTypeInternal _MoveRes_default_instance_;
- PROTOBUF_CONSTEXPR BoolRes::BoolRes(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct BoolResDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR BoolResDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~BoolResDefaultTypeInternal()
- {
- }
- union
- {
- BoolRes _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoolResDefaultTypeInternal _BoolRes_default_instance_;
- PROTOBUF_CONSTEXPR MsgRes::MsgRes(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.message_received_)*/ {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}, /*decltype(_impl_.from_player_id_)*/ int64_t{0}, /*decltype(_impl_.have_message_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MsgResDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MsgResDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MsgResDefaultTypeInternal()
- {
- }
- union
- {
- MsgRes _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MsgResDefaultTypeInternal _MsgRes_default_instance_;
- } // namespace protobuf
- static ::_pb::Metadata file_level_metadata_Message2Clients_2eproto[12];
- static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Message2Clients_2eproto = nullptr;
- static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Message2Clients_2eproto = nullptr;
-
- const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.speed_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.determination_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.fail_num_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.time_until_skill_available_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.place_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.prop_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.student_type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.guid_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.state_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.fail_time_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.emo_time_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.view_range_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.radius_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.damage_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.buff_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.speed_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.damage_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.time_until_skill_available_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.place_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.prop_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.tricker_type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.guid_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.movable_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.view_range_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.radius_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.buff_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.facing_direction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.guid_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.parent_team_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.place_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.bomb_range_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.facing_direction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.mapping_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.bomb_range_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.facing_direction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.guid_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.place_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.size_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.is_moving_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.facing_direction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.mapping_id_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _impl_.col_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _impl_.row_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.student_message_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.tricker_message_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.prop_message_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.map_message_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.game_state_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_speed_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_angle_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.act_success_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _impl_.act_success_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.have_message_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.from_player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.message_received_),
- };
- static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- {0, -1, -1, sizeof(::protobuf::MessageOfStudent)},
- {24, -1, -1, sizeof(::protobuf::MessageOfTricker)},
- {44, -1, -1, sizeof(::protobuf::MessageOfBullet)},
- {58, -1, -1, sizeof(::protobuf::MessageOfBombedBullet)},
- {70, -1, -1, sizeof(::protobuf::MessageOfProp)},
- {84, -1, -1, sizeof(::protobuf::MessageOfPickedProp)},
- {95, -1, -1, sizeof(::protobuf::MessageOfMap_Row)},
- {102, -1, -1, sizeof(::protobuf::MessageOfMap)},
- {109, -1, -1, sizeof(::protobuf::MessageToClient)},
- {120, -1, -1, sizeof(::protobuf::MoveRes)},
- {129, -1, -1, sizeof(::protobuf::BoolRes)},
- {136, -1, -1, sizeof(::protobuf::MsgRes)},
- };
-
- static const ::_pb::Message* const file_default_instances[] = {
- &::protobuf::_MessageOfStudent_default_instance_._instance,
- &::protobuf::_MessageOfTricker_default_instance_._instance,
- &::protobuf::_MessageOfBullet_default_instance_._instance,
- &::protobuf::_MessageOfBombedBullet_default_instance_._instance,
- &::protobuf::_MessageOfProp_default_instance_._instance,
- &::protobuf::_MessageOfPickedProp_default_instance_._instance,
- &::protobuf::_MessageOfMap_Row_default_instance_._instance,
- &::protobuf::_MessageOfMap_default_instance_._instance,
- &::protobuf::_MessageToClient_default_instance_._instance,
- &::protobuf::_MoveRes_default_instance_._instance,
- &::protobuf::_BoolRes_default_instance_._instance,
- &::protobuf::_MsgRes_default_instance_._instance,
- };
-
- const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
- "\n\025Message2Clients.proto\022\010protobuf\032\021Messa"
- "geType.proto\"\301\003\n\020MessageOfStudent\022\t\n\001x\030\001"
- " \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n\005speed\030\003 \001(\005\022\025\n\rdeterm"
- "ination\030\004 \001(\005\022\020\n\010fail_num\030\005 \001(\005\022\"\n\032time_"
- "until_skill_available\030\006 \001(\001\022\"\n\005place\030\007 \001"
- "(\0162\023.protobuf.PlaceType\022 \n\004prop\030\010 \001(\0162\022."
- "protobuf.PropType\022+\n\014student_type\030\t \001(\0162"
- "\025.protobuf.StudentType\022\014\n\004guid\030\n \001(\003\022%\n\005"
- "state\030\013 \001(\0162\026.protobuf.StudentState\022\021\n\tf"
- "ail_time\030\014 \001(\001\022\020\n\010emo_time\030\016 \001(\001\022\021\n\tplay"
- "er_id\030\017 \001(\003\022\022\n\nview_range\030\020 \001(\005\022\016\n\006radiu"
- "s\030\021 \001(\005\022\016\n\006damage\030\022 \001(\005\022\'\n\004buff\030\023 \003(\0162\031."
- "protobuf.StudentBuffType\"\335\002\n\020MessageOfTr"
- "icker\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n\005speed\030\003 \001"
- "(\005\022\016\n\006damage\030\004 \001(\005\022\"\n\032time_until_skill_a"
- "vailable\030\005 \001(\001\022\"\n\005place\030\006 \001(\0162\023.protobuf"
- ".PlaceType\022 \n\004prop\030\007 \001(\0162\022.protobuf.Prop"
- "Type\022+\n\014tricker_type\030\010 \001(\0162\025.protobuf.Tr"
- "ickerType\022\014\n\004guid\030\t \001(\003\022\017\n\007movable\030\n \001(\010"
- "\022\021\n\tplayer_id\030\013 \001(\003\022\022\n\nview_range\030\014 \001(\005\022"
- "\016\n\006radius\030\r \001(\005\022\'\n\004buff\030\016 \003(\0162\031.protobuf"
- ".TrickerBuffType\"\303\001\n\017MessageOfBullet\022\"\n\004"
- "type\030\001 \001(\0162\024.protobuf.BulletType\022\t\n\001x\030\002 "
- "\001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_direction\030\004 \001(\001"
- "\022\014\n\004guid\030\005 \001(\003\022\026\n\016parent_team_id\030\006 \001(\003\022\""
- "\n\005place\030\007 \001(\0162\023.protobuf.PlaceType\022\022\n\nbo"
- "mb_range\030\010 \001(\001\"\223\001\n\025MessageOfBombedBullet"
- "\022\"\n\004type\030\001 \001(\0162\024.protobuf.BulletType\022\t\n\001"
- "x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_direction\030\004"
- " \001(\001\022\022\n\nmapping_id\030\005 \001(\003\022\022\n\nbomb_range\030\006"
- " \001(\001\"\264\001\n\rMessageOfProp\022 \n\004type\030\001 \001(\0162\022.p"
- "rotobuf.PropType\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030"
- "\n\020facing_direction\030\004 \001(\001\022\014\n\004guid\030\005 \001(\003\022\""
- "\n\005place\030\006 \001(\0162\023.protobuf.PlaceType\022\014\n\004si"
- "ze\030\007 \001(\005\022\021\n\tis_moving\030\010 \001(\010\"{\n\023MessageOf"
- "PickedProp\022 \n\004type\030\001 \001(\0162\022.protobuf.Prop"
- "Type\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_dir"
- "ection\030\004 \001(\001\022\022\n\nmapping_id\030\005 \001(\003\"`\n\014Mess"
- "ageOfMap\022\'\n\003row\030\002 \003(\0132\032.protobuf.Message"
- "OfMap.Row\032\'\n\003Row\022 \n\003col\030\001 \003(\0162\023.protobuf"
- ".PlaceType\"\200\002\n\017MessageToClient\0223\n\017studen"
- "t_message\030\001 \003(\0132\032.protobuf.MessageOfStud"
- "ent\0223\n\017tricker_message\030\002 \003(\0132\032.protobuf."
- "MessageOfTricker\022-\n\014prop_message\030\003 \003(\0132\027"
- ".protobuf.MessageOfProp\022+\n\013map_message\030\004"
- " \001(\0132\026.protobuf.MessageOfMap\022\'\n\ngame_sta"
- "te\030\005 \001(\0162\023.protobuf.GameState\"J\n\007MoveRes"
- "\022\024\n\014actual_speed\030\001 \001(\003\022\024\n\014actual_angle\030\002"
- " \001(\001\022\023\n\013act_success\030\003 \001(\010\"\036\n\007BoolRes\022\023\n\013"
- "act_success\030\001 \001(\010\"P\n\006MsgRes\022\024\n\014have_mess"
- "age\030\001 \001(\010\022\026\n\016from_player_id\030\002 \001(\003\022\030\n\020mes"
- "sage_received\030\003 \001(\tb\006proto3";
- static const ::_pbi::DescriptorTable* const descriptor_table_Message2Clients_2eproto_deps[1] = {
- &::descriptor_table_MessageType_2eproto,
- };
- static ::_pbi::once_flag descriptor_table_Message2Clients_2eproto_once;
- const ::_pbi::DescriptorTable descriptor_table_Message2Clients_2eproto = {
- false,
- false,
- 2067,
- descriptor_table_protodef_Message2Clients_2eproto,
- "Message2Clients.proto",
- &descriptor_table_Message2Clients_2eproto_once,
- descriptor_table_Message2Clients_2eproto_deps,
- 1,
- 12,
- schemas,
- file_default_instances,
- TableStruct_Message2Clients_2eproto::offsets,
- file_level_metadata_Message2Clients_2eproto,
- file_level_enum_descriptors_Message2Clients_2eproto,
- file_level_service_descriptors_Message2Clients_2eproto,
- };
- PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Message2Clients_2eproto_getter()
- {
- return &descriptor_table_Message2Clients_2eproto;
- }
-
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Message2Clients_2eproto(&descriptor_table_Message2Clients_2eproto);
- namespace protobuf
- {
-
- // ===================================================================
-
- class MessageOfStudent::_Internal
- {
- public:
- };
-
- MessageOfStudent::MessageOfStudent(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfStudent)
- }
- MessageOfStudent::MessageOfStudent(const MessageOfStudent& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfStudent* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.buff_){from._impl_.buff_}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.speed_){}, decltype(_impl_.determination_){}, decltype(_impl_.time_until_skill_available_){}, decltype(_impl_.fail_num_){}, decltype(_impl_.place_){}, decltype(_impl_.prop_){}, decltype(_impl_.student_type_){}, decltype(_impl_.guid_){}, decltype(_impl_.fail_time_){}, decltype(_impl_.state_){}, decltype(_impl_.view_range_){}, decltype(_impl_.emo_time_){}, decltype(_impl_.player_id_){}, decltype(_impl_.radius_){}, decltype(_impl_.damage_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.damage_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.damage_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfStudent)
- }
-
- inline void MessageOfStudent::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.buff_){arena}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.speed_){0}, decltype(_impl_.determination_){0}, decltype(_impl_.time_until_skill_available_){0}, decltype(_impl_.fail_num_){0}, decltype(_impl_.place_){0}, decltype(_impl_.prop_){0}, decltype(_impl_.student_type_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.fail_time_){0}, decltype(_impl_.state_){0}, decltype(_impl_.view_range_){0}, decltype(_impl_.emo_time_){0}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.radius_){0}, decltype(_impl_.damage_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfStudent::~MessageOfStudent()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfStudent)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfStudent::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.buff_.~RepeatedField();
- }
-
- void MessageOfStudent::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfStudent::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfStudent)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.buff_.Clear();
- ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.damage_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.damage_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfStudent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int32 x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 speed = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 determination = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
- {
- _impl_.determination_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 fail_num = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- _impl_.fail_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double time_until_skill_available = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49))
- {
- _impl_.time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlaceType place = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_place(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PropType prop = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_prop(static_cast<::protobuf::PropType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.StudentType student_type = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_student_type(static_cast<::protobuf::StudentType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int64 guid = 10;
- case 10:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
- {
- _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.StudentState state = 11;
- case 11:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_state(static_cast<::protobuf::StudentState>(val));
- }
- else
- goto handle_unusual;
- continue;
- // double fail_time = 12;
- case 12:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 97))
- {
- _impl_.fail_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // double emo_time = 14;
- case 14:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 113))
- {
- _impl_.emo_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 player_id = 15;
- case 15:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120))
- {
- _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 view_range = 16;
- case 16:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128))
- {
- _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 radius = 17;
- case 17:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136))
- {
- _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 damage = 18;
- case 18:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144))
- {
- _impl_.damage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // repeated .protobuf.StudentBuffType buff = 19;
- case 19:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 154))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 152)
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_add_buff(static_cast<::protobuf::StudentBuffType>(val));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfStudent::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfStudent)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
- }
-
- // int32 speed = 3;
- if (this->_internal_speed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
- }
-
- // int32 determination = 4;
- if (this->_internal_determination() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_determination(), target);
- }
-
- // int32 fail_num = 5;
- if (this->_internal_fail_num() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_fail_num(), target);
- }
-
- // double time_until_skill_available = 6;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
- uint64_t raw_time_until_skill_available;
- memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
- if (raw_time_until_skill_available != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_time_until_skill_available(), target);
- }
-
- // .protobuf.PlaceType place = 7;
- if (this->_internal_place() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 7, this->_internal_place(), target
- );
- }
-
- // .protobuf.PropType prop = 8;
- if (this->_internal_prop() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 8, this->_internal_prop(), target
- );
- }
-
- // .protobuf.StudentType student_type = 9;
- if (this->_internal_student_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 9, this->_internal_student_type(), target
- );
- }
-
- // int64 guid = 10;
- if (this->_internal_guid() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target);
- }
-
- // .protobuf.StudentState state = 11;
- if (this->_internal_state() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 11, this->_internal_state(), target
- );
- }
-
- // double fail_time = 12;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_fail_time = this->_internal_fail_time();
- uint64_t raw_fail_time;
- memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
- if (raw_fail_time != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(12, this->_internal_fail_time(), target);
- }
-
- // double emo_time = 14;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_emo_time = this->_internal_emo_time();
- uint64_t raw_emo_time;
- memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
- if (raw_emo_time != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(14, this->_internal_emo_time(), target);
- }
-
- // int64 player_id = 15;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_player_id(), target);
- }
-
- // int32 view_range = 16;
- if (this->_internal_view_range() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(16, this->_internal_view_range(), target);
- }
-
- // int32 radius = 17;
- if (this->_internal_radius() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(17, this->_internal_radius(), target);
- }
-
- // int32 damage = 18;
- if (this->_internal_damage() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(18, this->_internal_damage(), target);
- }
-
- // repeated .protobuf.StudentBuffType buff = 19;
- {
- int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed);
- if (byte_size > 0)
- {
- target = stream->WriteEnumPacked(
- 19, _impl_.buff_, byte_size, target
- );
- }
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfStudent)
- return target;
- }
-
- size_t MessageOfStudent::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfStudent)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.StudentBuffType buff = 19;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
- for (unsigned int i = 0; i < count; i++)
- {
- data_size += ::_pbi::WireFormatLite::EnumSize(
- this->_internal_buff(static_cast<int>(i))
- );
- }
- if (data_size > 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
- }
- int cached_size = ::_pbi::ToCachedSize(data_size);
- _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
- total_size += data_size;
- }
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // int32 speed = 3;
- if (this->_internal_speed() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
- }
-
- // int32 determination = 4;
- if (this->_internal_determination() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_determination());
- }
-
- // double time_until_skill_available = 6;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
- uint64_t raw_time_until_skill_available;
- memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
- if (raw_time_until_skill_available != 0)
- {
- total_size += 1 + 8;
- }
-
- // int32 fail_num = 5;
- if (this->_internal_fail_num() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_fail_num());
- }
-
- // .protobuf.PlaceType place = 7;
- if (this->_internal_place() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
- }
-
- // .protobuf.PropType prop = 8;
- if (this->_internal_prop() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_prop());
- }
-
- // .protobuf.StudentType student_type = 9;
- if (this->_internal_student_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_student_type());
- }
-
- // int64 guid = 10;
- if (this->_internal_guid() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
- }
-
- // double fail_time = 12;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_fail_time = this->_internal_fail_time();
- uint64_t raw_fail_time;
- memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
- if (raw_fail_time != 0)
- {
- total_size += 1 + 8;
- }
-
- // .protobuf.StudentState state = 11;
- if (this->_internal_state() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_state());
- }
-
- // int32 view_range = 16;
- if (this->_internal_view_range() != 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::Int32Size(
- this->_internal_view_range()
- );
- }
-
- // double emo_time = 14;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_emo_time = this->_internal_emo_time();
- uint64_t raw_emo_time;
- memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
- if (raw_emo_time != 0)
- {
- total_size += 1 + 8;
- }
-
- // int64 player_id = 15;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- // int32 radius = 17;
- if (this->_internal_radius() != 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::Int32Size(
- this->_internal_radius()
- );
- }
-
- // int32 damage = 18;
- if (this->_internal_damage() != 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::Int32Size(
- this->_internal_damage()
- );
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfStudent::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfStudent::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfStudent::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfStudent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfStudent*>(&to_msg);
- auto& from = static_cast<const MessageOfStudent&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfStudent)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- _this->_impl_.buff_.MergeFrom(from._impl_.buff_);
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_speed() != 0)
- {
- _this->_internal_set_speed(from._internal_speed());
- }
- if (from._internal_determination() != 0)
- {
- _this->_internal_set_determination(from._internal_determination());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_time_until_skill_available = from._internal_time_until_skill_available();
- uint64_t raw_time_until_skill_available;
- memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
- if (raw_time_until_skill_available != 0)
- {
- _this->_internal_set_time_until_skill_available(from._internal_time_until_skill_available());
- }
- if (from._internal_fail_num() != 0)
- {
- _this->_internal_set_fail_num(from._internal_fail_num());
- }
- if (from._internal_place() != 0)
- {
- _this->_internal_set_place(from._internal_place());
- }
- if (from._internal_prop() != 0)
- {
- _this->_internal_set_prop(from._internal_prop());
- }
- if (from._internal_student_type() != 0)
- {
- _this->_internal_set_student_type(from._internal_student_type());
- }
- if (from._internal_guid() != 0)
- {
- _this->_internal_set_guid(from._internal_guid());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_fail_time = from._internal_fail_time();
- uint64_t raw_fail_time;
- memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
- if (raw_fail_time != 0)
- {
- _this->_internal_set_fail_time(from._internal_fail_time());
- }
- if (from._internal_state() != 0)
- {
- _this->_internal_set_state(from._internal_state());
- }
- if (from._internal_view_range() != 0)
- {
- _this->_internal_set_view_range(from._internal_view_range());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_emo_time = from._internal_emo_time();
- uint64_t raw_emo_time;
- memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
- if (raw_emo_time != 0)
- {
- _this->_internal_set_emo_time(from._internal_emo_time());
- }
- if (from._internal_player_id() != 0)
- {
- _this->_internal_set_player_id(from._internal_player_id());
- }
- if (from._internal_radius() != 0)
- {
- _this->_internal_set_radius(from._internal_radius());
- }
- if (from._internal_damage() != 0)
- {
- _this->_internal_set_damage(from._internal_damage());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfStudent::CopyFrom(const MessageOfStudent& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfStudent)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfStudent::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfStudent::InternalSwap(MessageOfStudent* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.buff_.InternalSwap(&other->_impl_.buff_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.damage_) + sizeof(MessageOfStudent::_impl_.damage_) - PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfStudent::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[0]
- );
- }
-
- // ===================================================================
-
- class MessageOfTricker::_Internal
- {
- public:
- };
-
- MessageOfTricker::MessageOfTricker(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfTricker)
- }
- MessageOfTricker::MessageOfTricker(const MessageOfTricker& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfTricker* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.buff_){from._impl_.buff_}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.speed_){}, decltype(_impl_.damage_){}, decltype(_impl_.time_until_skill_available_){}, decltype(_impl_.place_){}, decltype(_impl_.prop_){}, decltype(_impl_.guid_){}, decltype(_impl_.tricker_type_){}, decltype(_impl_.movable_){}, decltype(_impl_.player_id_){}, decltype(_impl_.view_range_){}, decltype(_impl_.radius_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.radius_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.radius_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfTricker)
- }
-
- inline void MessageOfTricker::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.buff_){arena}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.speed_){0}, decltype(_impl_.damage_){0}, decltype(_impl_.time_until_skill_available_){0}, decltype(_impl_.place_){0}, decltype(_impl_.prop_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.tricker_type_){0}, decltype(_impl_.movable_){false}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.view_range_){0}, decltype(_impl_.radius_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfTricker::~MessageOfTricker()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfTricker)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfTricker::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.buff_.~RepeatedField();
- }
-
- void MessageOfTricker::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfTricker::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfTricker)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.buff_.Clear();
- ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.radius_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.radius_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfTricker::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int32 x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 speed = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 damage = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
- {
- _impl_.damage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double time_until_skill_available = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 41))
- {
- _impl_.time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlaceType place = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_place(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PropType prop = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_prop(static_cast<::protobuf::PropType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.TrickerType tricker_type = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_tricker_type(static_cast<::protobuf::TrickerType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int64 guid = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
- {
- _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // bool movable = 10;
- case 10:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
- {
- _impl_.movable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int64 player_id = 11;
- case 11:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
- {
- _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 view_range = 12;
- case 12:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96))
- {
- _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 radius = 13;
- case 13:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104))
- {
- _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // repeated .protobuf.TrickerBuffType buff = 14;
- case 14:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 114))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 112)
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_add_buff(static_cast<::protobuf::TrickerBuffType>(val));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfTricker::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfTricker)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
- }
-
- // int32 speed = 3;
- if (this->_internal_speed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
- }
-
- // int32 damage = 4;
- if (this->_internal_damage() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_damage(), target);
- }
-
- // double time_until_skill_available = 5;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
- uint64_t raw_time_until_skill_available;
- memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
- if (raw_time_until_skill_available != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_time_until_skill_available(), target);
- }
-
- // .protobuf.PlaceType place = 6;
- if (this->_internal_place() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 6, this->_internal_place(), target
- );
- }
-
- // .protobuf.PropType prop = 7;
- if (this->_internal_prop() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 7, this->_internal_prop(), target
- );
- }
-
- // .protobuf.TrickerType tricker_type = 8;
- if (this->_internal_tricker_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 8, this->_internal_tricker_type(), target
- );
- }
-
- // int64 guid = 9;
- if (this->_internal_guid() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_guid(), target);
- }
-
- // bool movable = 10;
- if (this->_internal_movable() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(10, this->_internal_movable(), target);
- }
-
- // int64 player_id = 11;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(11, this->_internal_player_id(), target);
- }
-
- // int32 view_range = 12;
- if (this->_internal_view_range() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(12, this->_internal_view_range(), target);
- }
-
- // int32 radius = 13;
- if (this->_internal_radius() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(13, this->_internal_radius(), target);
- }
-
- // repeated .protobuf.TrickerBuffType buff = 14;
- {
- int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed);
- if (byte_size > 0)
- {
- target = stream->WriteEnumPacked(
- 14, _impl_.buff_, byte_size, target
- );
- }
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfTricker)
- return target;
- }
-
- size_t MessageOfTricker::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfTricker)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.TrickerBuffType buff = 14;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
- for (unsigned int i = 0; i < count; i++)
- {
- data_size += ::_pbi::WireFormatLite::EnumSize(
- this->_internal_buff(static_cast<int>(i))
- );
- }
- if (data_size > 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
- }
- int cached_size = ::_pbi::ToCachedSize(data_size);
- _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
- total_size += data_size;
- }
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // int32 speed = 3;
- if (this->_internal_speed() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
- }
-
- // int32 damage = 4;
- if (this->_internal_damage() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_damage());
- }
-
- // double time_until_skill_available = 5;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
- uint64_t raw_time_until_skill_available;
- memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
- if (raw_time_until_skill_available != 0)
- {
- total_size += 1 + 8;
- }
-
- // .protobuf.PlaceType place = 6;
- if (this->_internal_place() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
- }
-
- // .protobuf.PropType prop = 7;
- if (this->_internal_prop() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_prop());
- }
-
- // int64 guid = 9;
- if (this->_internal_guid() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
- }
-
- // .protobuf.TrickerType tricker_type = 8;
- if (this->_internal_tricker_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_tricker_type());
- }
-
- // bool movable = 10;
- if (this->_internal_movable() != 0)
- {
- total_size += 1 + 1;
- }
-
- // int64 player_id = 11;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- // int32 view_range = 12;
- if (this->_internal_view_range() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_view_range());
- }
-
- // int32 radius = 13;
- if (this->_internal_radius() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_radius());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfTricker::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfTricker::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfTricker::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfTricker::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfTricker*>(&to_msg);
- auto& from = static_cast<const MessageOfTricker&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfTricker)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- _this->_impl_.buff_.MergeFrom(from._impl_.buff_);
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_speed() != 0)
- {
- _this->_internal_set_speed(from._internal_speed());
- }
- if (from._internal_damage() != 0)
- {
- _this->_internal_set_damage(from._internal_damage());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_time_until_skill_available = from._internal_time_until_skill_available();
- uint64_t raw_time_until_skill_available;
- memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
- if (raw_time_until_skill_available != 0)
- {
- _this->_internal_set_time_until_skill_available(from._internal_time_until_skill_available());
- }
- if (from._internal_place() != 0)
- {
- _this->_internal_set_place(from._internal_place());
- }
- if (from._internal_prop() != 0)
- {
- _this->_internal_set_prop(from._internal_prop());
- }
- if (from._internal_guid() != 0)
- {
- _this->_internal_set_guid(from._internal_guid());
- }
- if (from._internal_tricker_type() != 0)
- {
- _this->_internal_set_tricker_type(from._internal_tricker_type());
- }
- if (from._internal_movable() != 0)
- {
- _this->_internal_set_movable(from._internal_movable());
- }
- if (from._internal_player_id() != 0)
- {
- _this->_internal_set_player_id(from._internal_player_id());
- }
- if (from._internal_view_range() != 0)
- {
- _this->_internal_set_view_range(from._internal_view_range());
- }
- if (from._internal_radius() != 0)
- {
- _this->_internal_set_radius(from._internal_radius());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfTricker::CopyFrom(const MessageOfTricker& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfTricker)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfTricker::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfTricker::InternalSwap(MessageOfTricker* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.buff_.InternalSwap(&other->_impl_.buff_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.radius_) + sizeof(MessageOfTricker::_impl_.radius_) - PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfTricker::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[1]
- );
- }
-
- // ===================================================================
-
- class MessageOfBullet::_Internal
- {
- public:
- };
-
- MessageOfBullet::MessageOfBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBullet)
- }
- MessageOfBullet::MessageOfBullet(const MessageOfBullet& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfBullet* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.guid_){}, decltype(_impl_.y_){}, decltype(_impl_.place_){}, decltype(_impl_.parent_team_id_){}, decltype(_impl_.bomb_range_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.bomb_range_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.bomb_range_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBullet)
- }
-
- inline void MessageOfBullet::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.y_){0}, decltype(_impl_.place_){0}, decltype(_impl_.parent_team_id_){int64_t{0}}, decltype(_impl_.bomb_range_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfBullet::~MessageOfBullet()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfBullet)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfBullet::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfBullet::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfBullet::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfBullet)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.bomb_range_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.bomb_range_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // .protobuf.BulletType type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_type(static_cast<::protobuf::BulletType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 x = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double facing_direction = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
- {
- _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 guid = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int64 parent_team_id = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
- {
- _impl_.parent_team_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlaceType place = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_place(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // double bomb_range = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 65))
- {
- _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfBullet::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfBullet)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // .protobuf.BulletType type = 1;
- if (this->_internal_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_type(), target
- );
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
- }
-
- // int64 guid = 5;
- if (this->_internal_guid() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target);
- }
-
- // int64 parent_team_id = 6;
- if (this->_internal_parent_team_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(6, this->_internal_parent_team_id(), target);
- }
-
- // .protobuf.PlaceType place = 7;
- if (this->_internal_place() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 7, this->_internal_place(), target
- );
- }
-
- // double bomb_range = 8;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_bomb_range = this->_internal_bomb_range();
- uint64_t raw_bomb_range;
- memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
- if (raw_bomb_range != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(8, this->_internal_bomb_range(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfBullet)
- return target;
- }
-
- size_t MessageOfBullet::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfBullet)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // .protobuf.BulletType type = 1;
- if (this->_internal_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- total_size += 1 + 8;
- }
-
- // int64 guid = 5;
- if (this->_internal_guid() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // .protobuf.PlaceType place = 7;
- if (this->_internal_place() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
- }
-
- // int64 parent_team_id = 6;
- if (this->_internal_parent_team_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_parent_team_id());
- }
-
- // double bomb_range = 8;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_bomb_range = this->_internal_bomb_range();
- uint64_t raw_bomb_range;
- memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
- if (raw_bomb_range != 0)
- {
- total_size += 1 + 8;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBullet::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfBullet::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBullet::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfBullet*>(&to_msg);
- auto& from = static_cast<const MessageOfBullet&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfBullet)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_type() != 0)
- {
- _this->_internal_set_type(from._internal_type());
- }
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = from._internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- _this->_internal_set_facing_direction(from._internal_facing_direction());
- }
- if (from._internal_guid() != 0)
- {
- _this->_internal_set_guid(from._internal_guid());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_place() != 0)
- {
- _this->_internal_set_place(from._internal_place());
- }
- if (from._internal_parent_team_id() != 0)
- {
- _this->_internal_set_parent_team_id(from._internal_parent_team_id());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_bomb_range = from._internal_bomb_range();
- uint64_t raw_bomb_range;
- memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
- if (raw_bomb_range != 0)
- {
- _this->_internal_set_bomb_range(from._internal_bomb_range());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfBullet::CopyFrom(const MessageOfBullet& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfBullet)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfBullet::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfBullet::InternalSwap(MessageOfBullet* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.bomb_range_) + sizeof(MessageOfBullet::_impl_.bomb_range_) - PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.type_)>(
- reinterpret_cast<char*>(&_impl_.type_),
- reinterpret_cast<char*>(&other->_impl_.type_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBullet::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[2]
- );
- }
-
- // ===================================================================
-
- class MessageOfBombedBullet::_Internal
- {
- public:
- };
-
- MessageOfBombedBullet::MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBombedBullet)
- }
- MessageOfBombedBullet::MessageOfBombedBullet(const MessageOfBombedBullet& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfBombedBullet* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.mapping_id_){}, decltype(_impl_.bomb_range_){}, decltype(_impl_.y_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBombedBullet)
- }
-
- inline void MessageOfBombedBullet::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.mapping_id_){int64_t{0}}, decltype(_impl_.bomb_range_){0}, decltype(_impl_.y_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfBombedBullet::~MessageOfBombedBullet()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfBombedBullet)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfBombedBullet::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfBombedBullet::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfBombedBullet::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfBombedBullet)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfBombedBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // .protobuf.BulletType type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_type(static_cast<::protobuf::BulletType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 x = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double facing_direction = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
- {
- _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 mapping_id = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double bomb_range = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49))
- {
- _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfBombedBullet::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfBombedBullet)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // .protobuf.BulletType type = 1;
- if (this->_internal_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_type(), target
- );
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
- }
-
- // int64 mapping_id = 5;
- if (this->_internal_mapping_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target);
- }
-
- // double bomb_range = 6;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_bomb_range = this->_internal_bomb_range();
- uint64_t raw_bomb_range;
- memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
- if (raw_bomb_range != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_bomb_range(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfBombedBullet)
- return target;
- }
-
- size_t MessageOfBombedBullet::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfBombedBullet)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // .protobuf.BulletType type = 1;
- if (this->_internal_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- total_size += 1 + 8;
- }
-
- // int64 mapping_id = 5;
- if (this->_internal_mapping_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id());
- }
-
- // double bomb_range = 6;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_bomb_range = this->_internal_bomb_range();
- uint64_t raw_bomb_range;
- memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
- if (raw_bomb_range != 0)
- {
- total_size += 1 + 8;
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBombedBullet::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfBombedBullet::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBombedBullet::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfBombedBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfBombedBullet*>(&to_msg);
- auto& from = static_cast<const MessageOfBombedBullet&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfBombedBullet)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_type() != 0)
- {
- _this->_internal_set_type(from._internal_type());
- }
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = from._internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- _this->_internal_set_facing_direction(from._internal_facing_direction());
- }
- if (from._internal_mapping_id() != 0)
- {
- _this->_internal_set_mapping_id(from._internal_mapping_id());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_bomb_range = from._internal_bomb_range();
- uint64_t raw_bomb_range;
- memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
- if (raw_bomb_range != 0)
- {
- _this->_internal_set_bomb_range(from._internal_bomb_range());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfBombedBullet::CopyFrom(const MessageOfBombedBullet& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfBombedBullet)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfBombedBullet::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfBombedBullet::InternalSwap(MessageOfBombedBullet* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.y_) + sizeof(MessageOfBombedBullet::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.type_)>(
- reinterpret_cast<char*>(&_impl_.type_),
- reinterpret_cast<char*>(&other->_impl_.type_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBombedBullet::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[3]
- );
- }
-
- // ===================================================================
-
- class MessageOfProp::_Internal
- {
- public:
- };
-
- MessageOfProp::MessageOfProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfProp)
- }
- MessageOfProp::MessageOfProp(const MessageOfProp& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfProp* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.y_){}, decltype(_impl_.place_){}, decltype(_impl_.guid_){}, decltype(_impl_.size_){}, decltype(_impl_.is_moving_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_moving_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.is_moving_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfProp)
- }
-
- inline void MessageOfProp::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.y_){0}, decltype(_impl_.place_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.size_){0}, decltype(_impl_.is_moving_){false}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfProp::~MessageOfProp()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfProp)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfProp::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfProp::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfProp::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfProp)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_moving_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.is_moving_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // .protobuf.PropType type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_type(static_cast<::protobuf::PropType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 x = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double facing_direction = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
- {
- _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 guid = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlaceType place = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_place(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 size = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
- {
- _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // bool is_moving = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
- {
- _impl_.is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfProp::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfProp)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // .protobuf.PropType type = 1;
- if (this->_internal_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_type(), target
- );
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
- }
-
- // int64 guid = 5;
- if (this->_internal_guid() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target);
- }
-
- // .protobuf.PlaceType place = 6;
- if (this->_internal_place() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 6, this->_internal_place(), target
- );
- }
-
- // int32 size = 7;
- if (this->_internal_size() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_size(), target);
- }
-
- // bool is_moving = 8;
- if (this->_internal_is_moving() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_is_moving(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfProp)
- return target;
- }
-
- size_t MessageOfProp::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfProp)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // .protobuf.PropType type = 1;
- if (this->_internal_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- total_size += 1 + 8;
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // .protobuf.PlaceType place = 6;
- if (this->_internal_place() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
- }
-
- // int64 guid = 5;
- if (this->_internal_guid() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
- }
-
- // int32 size = 7;
- if (this->_internal_size() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_size());
- }
-
- // bool is_moving = 8;
- if (this->_internal_is_moving() != 0)
- {
- total_size += 1 + 1;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfProp::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfProp::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfProp::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfProp*>(&to_msg);
- auto& from = static_cast<const MessageOfProp&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfProp)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_type() != 0)
- {
- _this->_internal_set_type(from._internal_type());
- }
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = from._internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- _this->_internal_set_facing_direction(from._internal_facing_direction());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_place() != 0)
- {
- _this->_internal_set_place(from._internal_place());
- }
- if (from._internal_guid() != 0)
- {
- _this->_internal_set_guid(from._internal_guid());
- }
- if (from._internal_size() != 0)
- {
- _this->_internal_set_size(from._internal_size());
- }
- if (from._internal_is_moving() != 0)
- {
- _this->_internal_set_is_moving(from._internal_is_moving());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfProp::CopyFrom(const MessageOfProp& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfProp)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfProp::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfProp::InternalSwap(MessageOfProp* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.is_moving_) + sizeof(MessageOfProp::_impl_.is_moving_) - PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.type_)>(
- reinterpret_cast<char*>(&_impl_.type_),
- reinterpret_cast<char*>(&other->_impl_.type_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfProp::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[4]
- );
- }
-
- // ===================================================================
-
- class MessageOfPickedProp::_Internal
- {
- public:
- };
-
- MessageOfPickedProp::MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfPickedProp)
- }
- MessageOfPickedProp::MessageOfPickedProp(const MessageOfPickedProp& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfPickedProp* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.mapping_id_){}, decltype(_impl_.y_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfPickedProp)
- }
-
- inline void MessageOfPickedProp::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.mapping_id_){int64_t{0}}, decltype(_impl_.y_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfPickedProp::~MessageOfPickedProp()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfPickedProp)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfPickedProp::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfPickedProp::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfPickedProp::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfPickedProp)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfPickedProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // .protobuf.PropType type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_type(static_cast<::protobuf::PropType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 x = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double facing_direction = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
- {
- _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 mapping_id = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfPickedProp::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfPickedProp)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // .protobuf.PropType type = 1;
- if (this->_internal_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_type(), target
- );
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
- }
-
- // int64 mapping_id = 5;
- if (this->_internal_mapping_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfPickedProp)
- return target;
- }
-
- size_t MessageOfPickedProp::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfPickedProp)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // .protobuf.PropType type = 1;
- if (this->_internal_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- total_size += 1 + 8;
- }
-
- // int64 mapping_id = 5;
- if (this->_internal_mapping_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id());
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfPickedProp::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfPickedProp::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfPickedProp::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfPickedProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfPickedProp*>(&to_msg);
- auto& from = static_cast<const MessageOfPickedProp&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfPickedProp)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_type() != 0)
- {
- _this->_internal_set_type(from._internal_type());
- }
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = from._internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- _this->_internal_set_facing_direction(from._internal_facing_direction());
- }
- if (from._internal_mapping_id() != 0)
- {
- _this->_internal_set_mapping_id(from._internal_mapping_id());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfPickedProp::CopyFrom(const MessageOfPickedProp& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfPickedProp)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfPickedProp::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfPickedProp::InternalSwap(MessageOfPickedProp* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.y_) + sizeof(MessageOfPickedProp::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.type_)>(
- reinterpret_cast<char*>(&_impl_.type_),
- reinterpret_cast<char*>(&other->_impl_.type_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfPickedProp::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[5]
- );
- }
-
- // ===================================================================
-
- class MessageOfMap_Row::_Internal
- {
- public:
- };
-
- MessageOfMap_Row::MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap.Row)
- }
- MessageOfMap_Row::MessageOfMap_Row(const MessageOfMap_Row& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfMap_Row* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.col_){from._impl_.col_}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap.Row)
- }
-
- inline void MessageOfMap_Row::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.col_){arena}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfMap_Row::~MessageOfMap_Row()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfMap.Row)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfMap_Row::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.col_.~RepeatedField();
- }
-
- void MessageOfMap_Row::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfMap_Row::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap.Row)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.col_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfMap_Row::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // repeated .protobuf.PlaceType col = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_col(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 8)
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_add_col(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfMap_Row::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap.Row)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // repeated .protobuf.PlaceType col = 1;
- {
- int byte_size = _impl_._col_cached_byte_size_.load(std::memory_order_relaxed);
- if (byte_size > 0)
- {
- target = stream->WriteEnumPacked(
- 1, _impl_.col_, byte_size, target
- );
- }
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap.Row)
- return target;
- }
-
- size_t MessageOfMap_Row::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap.Row)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.PlaceType col = 1;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->_internal_col_size());
- for (unsigned int i = 0; i < count; i++)
- {
- data_size += ::_pbi::WireFormatLite::EnumSize(
- this->_internal_col(static_cast<int>(i))
- );
- }
- if (data_size > 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
- }
- int cached_size = ::_pbi::ToCachedSize(data_size);
- _impl_._col_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
- total_size += data_size;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap_Row::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfMap_Row::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap_Row::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfMap_Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfMap_Row*>(&to_msg);
- auto& from = static_cast<const MessageOfMap_Row&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap.Row)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- _this->_impl_.col_.MergeFrom(from._impl_.col_);
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfMap_Row::CopyFrom(const MessageOfMap_Row& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap.Row)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfMap_Row::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfMap_Row::InternalSwap(MessageOfMap_Row* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.col_.InternalSwap(&other->_impl_.col_);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap_Row::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[6]
- );
- }
-
- // ===================================================================
-
- class MessageOfMap::_Internal
- {
- public:
- };
-
- MessageOfMap::MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap)
- }
- MessageOfMap::MessageOfMap(const MessageOfMap& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfMap* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.row_){from._impl_.row_}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap)
- }
-
- inline void MessageOfMap::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.row_){arena}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfMap::~MessageOfMap()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfMap)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfMap::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.row_.~RepeatedPtrField();
- }
-
- void MessageOfMap::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfMap::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.row_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfMap::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // repeated .protobuf.MessageOfMap.Row row = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
- {
- ptr -= 1;
- do
- {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_row(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr))
- break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfMap::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // repeated .protobuf.MessageOfMap.Row row = 2;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_row_size());
- i < n;
- i++)
- {
- const auto& repfield = this->_internal_row(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap)
- return target;
- }
-
- size_t MessageOfMap::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.MessageOfMap.Row row = 2;
- total_size += 1UL * this->_internal_row_size();
- for (const auto& msg : this->_impl_.row_)
- {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfMap::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfMap*>(&to_msg);
- auto& from = static_cast<const MessageOfMap&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- _this->_impl_.row_.MergeFrom(from._impl_.row_);
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfMap::CopyFrom(const MessageOfMap& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfMap::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfMap::InternalSwap(MessageOfMap* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.row_.InternalSwap(&other->_impl_.row_);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[7]
- );
- }
-
- // ===================================================================
-
- class MessageToClient::_Internal
- {
- public:
- static const ::protobuf::MessageOfMap& map_message(const MessageToClient* msg);
- };
-
- const ::protobuf::MessageOfMap&
- MessageToClient::_Internal::map_message(const MessageToClient* msg)
- {
- return *msg->_impl_.map_message_;
- }
- MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageToClient)
- }
- MessageToClient::MessageToClient(const MessageToClient& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageToClient* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.student_message_){from._impl_.student_message_}, decltype(_impl_.tricker_message_){from._impl_.tricker_message_}, decltype(_impl_.prop_message_){from._impl_.prop_message_}, decltype(_impl_.map_message_){nullptr}, decltype(_impl_.game_state_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if (from._internal_has_map_message())
- {
- _this->_impl_.map_message_ = new ::protobuf::MessageOfMap(*from._impl_.map_message_);
- }
- _this->_impl_.game_state_ = from._impl_.game_state_;
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageToClient)
- }
-
- inline void MessageToClient::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.student_message_){arena}, decltype(_impl_.tricker_message_){arena}, decltype(_impl_.prop_message_){arena}, decltype(_impl_.map_message_){nullptr}, decltype(_impl_.game_state_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageToClient::~MessageToClient()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageToClient)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageToClient::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.student_message_.~RepeatedPtrField();
- _impl_.tricker_message_.~RepeatedPtrField();
- _impl_.prop_message_.~RepeatedPtrField();
- if (this != internal_default_instance())
- delete _impl_.map_message_;
- }
-
- void MessageToClient::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageToClient::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageToClient)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.student_message_.Clear();
- _impl_.tricker_message_.Clear();
- _impl_.prop_message_.Clear();
- if (GetArenaForAllocation() == nullptr && _impl_.map_message_ != nullptr)
- {
- delete _impl_.map_message_;
- }
- _impl_.map_message_ = nullptr;
- _impl_.game_state_ = 0;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageToClient::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // repeated .protobuf.MessageOfStudent student_message = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
- {
- ptr -= 1;
- do
- {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_student_message(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr))
- break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
- }
- else
- goto handle_unusual;
- continue;
- // repeated .protobuf.MessageOfTricker tricker_message = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
- {
- ptr -= 1;
- do
- {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_tricker_message(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr))
- break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
- }
- else
- goto handle_unusual;
- continue;
- // repeated .protobuf.MessageOfProp prop_message = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
- {
- ptr -= 1;
- do
- {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_prop_message(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr))
- break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfMap map_message = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34))
- {
- ptr = ctx->ParseMessage(_internal_mutable_map_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.GameState game_state = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_game_state(static_cast<::protobuf::GameState>(val));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageToClient::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageToClient)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // repeated .protobuf.MessageOfStudent student_message = 1;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_student_message_size());
- i < n;
- i++)
- {
- const auto& repfield = this->_internal_student_message(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
- }
-
- // repeated .protobuf.MessageOfTricker tricker_message = 2;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_tricker_message_size());
- i < n;
- i++)
- {
- const auto& repfield = this->_internal_tricker_message(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
- }
-
- // repeated .protobuf.MessageOfProp prop_message = 3;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_prop_message_size());
- i < n;
- i++)
- {
- const auto& repfield = this->_internal_prop_message(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
- }
-
- // .protobuf.MessageOfMap map_message = 4;
- if (this->_internal_has_map_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(4, _Internal::map_message(this), _Internal::map_message(this).GetCachedSize(), target, stream);
- }
-
- // .protobuf.GameState game_state = 5;
- if (this->_internal_game_state() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 5, this->_internal_game_state(), target
- );
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageToClient)
- return target;
- }
-
- size_t MessageToClient::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageToClient)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.MessageOfStudent student_message = 1;
- total_size += 1UL * this->_internal_student_message_size();
- for (const auto& msg : this->_impl_.student_message_)
- {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
-
- // repeated .protobuf.MessageOfTricker tricker_message = 2;
- total_size += 1UL * this->_internal_tricker_message_size();
- for (const auto& msg : this->_impl_.tricker_message_)
- {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
-
- // repeated .protobuf.MessageOfProp prop_message = 3;
- total_size += 1UL * this->_internal_prop_message_size();
- for (const auto& msg : this->_impl_.prop_message_)
- {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
-
- // .protobuf.MessageOfMap map_message = 4;
- if (this->_internal_has_map_message())
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.map_message_
- );
- }
-
- // .protobuf.GameState game_state = 5;
- if (this->_internal_game_state() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_game_state());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClient::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageToClient::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageToClient::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageToClient*>(&to_msg);
- auto& from = static_cast<const MessageToClient&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageToClient)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- _this->_impl_.student_message_.MergeFrom(from._impl_.student_message_);
- _this->_impl_.tricker_message_.MergeFrom(from._impl_.tricker_message_);
- _this->_impl_.prop_message_.MergeFrom(from._impl_.prop_message_);
- if (from._internal_has_map_message())
- {
- _this->_internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom(
- from._internal_map_message()
- );
- }
- if (from._internal_game_state() != 0)
- {
- _this->_internal_set_game_state(from._internal_game_state());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageToClient::CopyFrom(const MessageToClient& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageToClient)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageToClient::IsInitialized() const
- {
- return true;
- }
-
- void MessageToClient::InternalSwap(MessageToClient* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.student_message_.InternalSwap(&other->_impl_.student_message_);
- _impl_.tricker_message_.InternalSwap(&other->_impl_.tricker_message_);
- _impl_.prop_message_.InternalSwap(&other->_impl_.prop_message_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.game_state_) + sizeof(MessageToClient::_impl_.game_state_) - PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.map_message_)>(
- reinterpret_cast<char*>(&_impl_.map_message_),
- reinterpret_cast<char*>(&other->_impl_.map_message_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[8]
- );
- }
-
- // ===================================================================
-
- class MoveRes::_Internal
- {
- public:
- };
-
- MoveRes::MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MoveRes)
- }
- MoveRes::MoveRes(const MoveRes& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MoveRes* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.actual_speed_){}, decltype(_impl_.actual_angle_){}, decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.actual_speed_, &from._impl_.actual_speed_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.act_success_) - reinterpret_cast<char*>(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MoveRes)
- }
-
- inline void MoveRes::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.actual_speed_){int64_t{0}}, decltype(_impl_.actual_angle_){0}, decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MoveRes::~MoveRes()
- {
- // @@protoc_insertion_point(destructor:protobuf.MoveRes)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MoveRes::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MoveRes::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MoveRes::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MoveRes)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.actual_speed_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.act_success_) - reinterpret_cast<char*>(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MoveRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int64 actual_speed = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double actual_angle = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
- {
- _impl_.actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // bool act_success = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MoveRes::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveRes)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int64 actual_speed = 1;
- if (this->_internal_actual_speed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_actual_speed(), target);
- }
-
- // double actual_angle = 2;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_actual_angle = this->_internal_actual_angle();
- uint64_t raw_actual_angle;
- memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
- if (raw_actual_angle != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_actual_angle(), target);
- }
-
- // bool act_success = 3;
- if (this->_internal_act_success() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_act_success(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveRes)
- return target;
- }
-
- size_t MoveRes::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MoveRes)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // int64 actual_speed = 1;
- if (this->_internal_actual_speed() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_actual_speed());
- }
-
- // double actual_angle = 2;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_actual_angle = this->_internal_actual_angle();
- uint64_t raw_actual_angle;
- memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
- if (raw_actual_angle != 0)
- {
- total_size += 1 + 8;
- }
-
- // bool act_success = 3;
- if (this->_internal_act_success() != 0)
- {
- total_size += 1 + 1;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRes::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MoveRes::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveRes::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MoveRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MoveRes*>(&to_msg);
- auto& from = static_cast<const MoveRes&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveRes)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_actual_speed() != 0)
- {
- _this->_internal_set_actual_speed(from._internal_actual_speed());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_actual_angle = from._internal_actual_angle();
- uint64_t raw_actual_angle;
- memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
- if (raw_actual_angle != 0)
- {
- _this->_internal_set_actual_angle(from._internal_actual_angle());
- }
- if (from._internal_act_success() != 0)
- {
- _this->_internal_set_act_success(from._internal_act_success());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MoveRes::CopyFrom(const MoveRes& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MoveRes)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MoveRes::IsInitialized() const
- {
- return true;
- }
-
- void MoveRes::InternalSwap(MoveRes* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.act_success_) + sizeof(MoveRes::_impl_.act_success_) - PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.actual_speed_)>(
- reinterpret_cast<char*>(&_impl_.actual_speed_),
- reinterpret_cast<char*>(&other->_impl_.actual_speed_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MoveRes::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[9]
- );
- }
-
- // ===================================================================
-
- class BoolRes::_Internal
- {
- public:
- };
-
- BoolRes::BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.BoolRes)
- }
- BoolRes::BoolRes(const BoolRes& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- BoolRes* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _this->_impl_.act_success_ = from._impl_.act_success_;
- // @@protoc_insertion_point(copy_constructor:protobuf.BoolRes)
- }
-
- inline void BoolRes::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- BoolRes::~BoolRes()
- {
- // @@protoc_insertion_point(destructor:protobuf.BoolRes)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void BoolRes::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void BoolRes::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void BoolRes::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.BoolRes)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.act_success_ = false;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* BoolRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // bool act_success = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* BoolRes::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.BoolRes)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // bool act_success = 1;
- if (this->_internal_act_success() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_act_success(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.BoolRes)
- return target;
- }
-
- size_t BoolRes::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.BoolRes)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // bool act_success = 1;
- if (this->_internal_act_success() != 0)
- {
- total_size += 1 + 1;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoolRes::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- BoolRes::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* BoolRes::GetClassData() const
- {
- return &_class_data_;
- }
-
- void BoolRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<BoolRes*>(&to_msg);
- auto& from = static_cast<const BoolRes&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.BoolRes)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_act_success() != 0)
- {
- _this->_internal_set_act_success(from._internal_act_success());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void BoolRes::CopyFrom(const BoolRes& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.BoolRes)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool BoolRes::IsInitialized() const
- {
- return true;
- }
-
- void BoolRes::InternalSwap(BoolRes* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.act_success_, other->_impl_.act_success_);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata BoolRes::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[10]
- );
- }
-
- // ===================================================================
-
- class MsgRes::_Internal
- {
- public:
- };
-
- MsgRes::MsgRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MsgRes)
- }
- MsgRes::MsgRes(const MsgRes& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MsgRes* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.message_received_){}, decltype(_impl_.from_player_id_){}, decltype(_impl_.have_message_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.message_received_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.message_received_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_message_received().empty())
- {
- _this->_impl_.message_received_.Set(from._internal_message_received(), _this->GetArenaForAllocation());
- }
- ::memcpy(&_impl_.from_player_id_, &from._impl_.from_player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.have_message_) - reinterpret_cast<char*>(&_impl_.from_player_id_)) + sizeof(_impl_.have_message_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MsgRes)
- }
-
- inline void MsgRes::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.message_received_){}, decltype(_impl_.from_player_id_){int64_t{0}}, decltype(_impl_.have_message_){false}, /*decltype(_impl_._cached_size_)*/ {}};
- _impl_.message_received_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.message_received_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
-
- MsgRes::~MsgRes()
- {
- // @@protoc_insertion_point(destructor:protobuf.MsgRes)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MsgRes::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.message_received_.Destroy();
- }
-
- void MsgRes::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MsgRes::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MsgRes)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.message_received_.ClearToEmpty();
- ::memset(&_impl_.from_player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.have_message_) - reinterpret_cast<char*>(&_impl_.from_player_id_)) + sizeof(_impl_.have_message_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MsgRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // bool have_message = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.have_message_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int64 from_player_id = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.from_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // string message_received = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
- {
- auto str = _internal_mutable_message_received();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "protobuf.MsgRes.message_received"));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MsgRes::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MsgRes)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // bool have_message = 1;
- if (this->_internal_have_message() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_have_message(), target);
- }
-
- // int64 from_player_id = 2;
- if (this->_internal_from_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_from_player_id(), target);
- }
-
- // string message_received = 3;
- if (!this->_internal_message_received().empty())
- {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_message_received().data(), static_cast<int>(this->_internal_message_received().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protobuf.MsgRes.message_received"
- );
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_message_received(), target
- );
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MsgRes)
- return target;
- }
-
- size_t MsgRes::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MsgRes)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // string message_received = 3;
- if (!this->_internal_message_received().empty())
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_message_received()
- );
- }
-
- // int64 from_player_id = 2;
- if (this->_internal_from_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_from_player_id());
- }
-
- // bool have_message = 1;
- if (this->_internal_have_message() != 0)
- {
- total_size += 1 + 1;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MsgRes::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MsgRes::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MsgRes::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MsgRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MsgRes*>(&to_msg);
- auto& from = static_cast<const MsgRes&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MsgRes)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (!from._internal_message_received().empty())
- {
- _this->_internal_set_message_received(from._internal_message_received());
- }
- if (from._internal_from_player_id() != 0)
- {
- _this->_internal_set_from_player_id(from._internal_from_player_id());
- }
- if (from._internal_have_message() != 0)
- {
- _this->_internal_set_have_message(from._internal_have_message());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MsgRes::CopyFrom(const MsgRes& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MsgRes)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MsgRes::IsInitialized() const
- {
- return true;
- }
-
- void MsgRes::InternalSwap(MsgRes* other)
- {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &_impl_.message_received_, lhs_arena, &other->_impl_.message_received_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MsgRes, _impl_.have_message_) + sizeof(MsgRes::_impl_.have_message_) - PROTOBUF_FIELD_OFFSET(MsgRes, _impl_.from_player_id_)>(
- reinterpret_cast<char*>(&_impl_.from_player_id_),
- reinterpret_cast<char*>(&other->_impl_.from_player_id_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MsgRes::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[11]
- );
- }
-
- // @@protoc_insertion_point(namespace_scope)
- } // namespace protobuf
- PROTOBUF_NAMESPACE_OPEN
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfStudent*
- Arena::CreateMaybeMessage<::protobuf::MessageOfStudent>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfStudent>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfTricker*
- Arena::CreateMaybeMessage<::protobuf::MessageOfTricker>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfTricker>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfBullet*
- Arena::CreateMaybeMessage<::protobuf::MessageOfBullet>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfBullet>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfBombedBullet*
- Arena::CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfBombedBullet>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfProp*
- Arena::CreateMaybeMessage<::protobuf::MessageOfProp>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfProp>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfPickedProp*
- Arena::CreateMaybeMessage<::protobuf::MessageOfPickedProp>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfPickedProp>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfMap_Row*
- Arena::CreateMaybeMessage<::protobuf::MessageOfMap_Row>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfMap_Row>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfMap*
- Arena::CreateMaybeMessage<::protobuf::MessageOfMap>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfMap>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageToClient*
- Arena::CreateMaybeMessage<::protobuf::MessageToClient>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageToClient>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MoveRes*
- Arena::CreateMaybeMessage<::protobuf::MoveRes>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MoveRes>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::BoolRes*
- Arena::CreateMaybeMessage<::protobuf::BoolRes>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::BoolRes>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MsgRes*
- Arena::CreateMaybeMessage<::protobuf::MsgRes>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MsgRes>(arena);
- }
- PROTOBUF_NAMESPACE_CLOSE
-
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
|