|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: Message2Server.proto
-
- #include "Message2Server.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 PlayerMsg::PlayerMsg(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.player_type_)*/ 0, /*decltype(_impl_.job_type_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}}
- {
- }
- struct PlayerMsgDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR PlayerMsgDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~PlayerMsgDefaultTypeInternal()
- {
- }
- union
- {
- PlayerMsg _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlayerMsgDefaultTypeInternal _PlayerMsg_default_instance_;
- PROTOBUF_CONSTEXPR MoveMsg::MoveMsg(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.angle_)*/ 0, /*decltype(_impl_.time_in_milliseconds_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MoveMsgDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MoveMsgDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MoveMsgDefaultTypeInternal()
- {
- }
- union
- {
- MoveMsg _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveMsgDefaultTypeInternal _MoveMsg_default_instance_;
- PROTOBUF_CONSTEXPR PropMsg::PropMsg(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.prop_type_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct PropMsgDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR PropMsgDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~PropMsgDefaultTypeInternal()
- {
- }
- union
- {
- PropMsg _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropMsgDefaultTypeInternal _PropMsg_default_instance_;
- PROTOBUF_CONSTEXPR SendMsg::SendMsg(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.message_)*/ {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.to_player_id_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct SendMsgDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR SendMsgDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~SendMsgDefaultTypeInternal()
- {
- }
- union
- {
- SendMsg _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendMsgDefaultTypeInternal _SendMsg_default_instance_;
- PROTOBUF_CONSTEXPR AttackMsg::AttackMsg(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.angle_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct AttackMsgDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR AttackMsgDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~AttackMsgDefaultTypeInternal()
- {
- }
- union
- {
- AttackMsg _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttackMsgDefaultTypeInternal _AttackMsg_default_instance_;
- PROTOBUF_CONSTEXPR IDMsg::IDMsg(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct IDMsgDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR IDMsgDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~IDMsgDefaultTypeInternal()
- {
- }
- union
- {
- IDMsg _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IDMsgDefaultTypeInternal _IDMsg_default_instance_;
- PROTOBUF_CONSTEXPR TreatAndRescueMsg::TreatAndRescueMsg(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.to_player_id_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct TreatAndRescueMsgDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR TreatAndRescueMsgDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~TreatAndRescueMsgDefaultTypeInternal()
- {
- }
- union
- {
- TreatAndRescueMsg _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TreatAndRescueMsgDefaultTypeInternal _TreatAndRescueMsg_default_instance_;
- PROTOBUF_CONSTEXPR SkillMsg::SkillMsg(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.skill_id_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct SkillMsgDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR SkillMsgDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~SkillMsgDefaultTypeInternal()
- {
- }
- union
- {
- SkillMsg _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SkillMsgDefaultTypeInternal _SkillMsg_default_instance_;
- } // namespace protobuf
- static ::_pb::Metadata file_level_metadata_Message2Server_2eproto[8];
- static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Message2Server_2eproto = nullptr;
- static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Message2Server_2eproto = nullptr;
-
- const uint32_t TableStruct_Message2Server_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _impl_._oneof_case_[0]),
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _impl_.player_id_),
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _impl_.player_type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _impl_.job_type_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _impl_.player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _impl_.angle_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _impl_.time_in_milliseconds_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, _impl_.player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, _impl_.prop_type_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_.player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_.to_player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_.message_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, _impl_.player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, _impl_.angle_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::IDMsg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::IDMsg, _impl_.player_id_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, _impl_.player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, _impl_.to_player_id_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, _impl_.player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, _impl_.skill_id_),
- };
- static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- {0, -1, -1, sizeof(::protobuf::PlayerMsg)},
- {11, -1, -1, sizeof(::protobuf::MoveMsg)},
- {20, -1, -1, sizeof(::protobuf::PropMsg)},
- {28, -1, -1, sizeof(::protobuf::SendMsg)},
- {37, -1, -1, sizeof(::protobuf::AttackMsg)},
- {45, -1, -1, sizeof(::protobuf::IDMsg)},
- {52, -1, -1, sizeof(::protobuf::TreatAndRescueMsg)},
- {60, -1, -1, sizeof(::protobuf::SkillMsg)},
- };
-
- static const ::_pb::Message* const file_default_instances[] = {
- &::protobuf::_PlayerMsg_default_instance_._instance,
- &::protobuf::_MoveMsg_default_instance_._instance,
- &::protobuf::_PropMsg_default_instance_._instance,
- &::protobuf::_SendMsg_default_instance_._instance,
- &::protobuf::_AttackMsg_default_instance_._instance,
- &::protobuf::_IDMsg_default_instance_._instance,
- &::protobuf::_TreatAndRescueMsg_default_instance_._instance,
- &::protobuf::_SkillMsg_default_instance_._instance,
- };
-
- const char descriptor_table_protodef_Message2Server_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
- "\n\024Message2Server.proto\022\010protobuf\032\021Messag"
- "eType.proto\"\263\001\n\tPlayerMsg\022\021\n\tplayer_id\030\001"
- " \001(\003\022-\n\014student_type\030\002 \001(\0162\025.protobuf.St"
- "udentTypeH\000\022-\n\014tricker_type\030\003 \001(\0162\025.prot"
- "obuf.TrickerTypeH\000\022)\n\013player_type\030\004 \001(\0162"
- "\024.protobuf.PlayerTypeB\n\n\010job_type\"I\n\007Mov"
- "eMsg\022\021\n\tplayer_id\030\001 \001(\003\022\r\n\005angle\030\002 \001(\001\022\034"
- "\n\024time_in_milliseconds\030\003 \001(\003\"C\n\007PropMsg\022"
- "\021\n\tplayer_id\030\001 \001(\003\022%\n\tprop_type\030\002 \001(\0162\022."
- "protobuf.PropType\"C\n\007SendMsg\022\021\n\tplayer_i"
- "d\030\001 \001(\003\022\024\n\014to_player_id\030\002 \001(\003\022\017\n\007message"
- "\030\003 \001(\t\"-\n\tAttackMsg\022\021\n\tplayer_id\030\001 \001(\003\022\r"
- "\n\005angle\030\002 \001(\001\"\032\n\005IDMsg\022\021\n\tplayer_id\030\001 \001("
- "\003\"<\n\021TreatAndRescueMsg\022\021\n\tplayer_id\030\001 \001("
- "\003\022\024\n\014to_player_id\030\002 \001(\003\"/\n\010SkillMsg\022\021\n\tp"
- "layer_id\030\001 \001(\003\022\020\n\010skill_id\030\002 \001(\005b\006proto3";
- static const ::_pbi::DescriptorTable* const descriptor_table_Message2Server_2eproto_deps[1] = {
- &::descriptor_table_MessageType_2eproto,
- };
- static ::_pbi::once_flag descriptor_table_Message2Server_2eproto_once;
- const ::_pbi::DescriptorTable descriptor_table_Message2Server_2eproto = {
- false,
- false,
- 640,
- descriptor_table_protodef_Message2Server_2eproto,
- "Message2Server.proto",
- &descriptor_table_Message2Server_2eproto_once,
- descriptor_table_Message2Server_2eproto_deps,
- 1,
- 8,
- schemas,
- file_default_instances,
- TableStruct_Message2Server_2eproto::offsets,
- file_level_metadata_Message2Server_2eproto,
- file_level_enum_descriptors_Message2Server_2eproto,
- file_level_service_descriptors_Message2Server_2eproto,
- };
- PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Message2Server_2eproto_getter()
- {
- return &descriptor_table_Message2Server_2eproto;
- }
-
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Message2Server_2eproto(&descriptor_table_Message2Server_2eproto);
- namespace protobuf
- {
-
- // ===================================================================
-
- class PlayerMsg::_Internal
- {
- public:
- };
-
- PlayerMsg::PlayerMsg(::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.PlayerMsg)
- }
- PlayerMsg::PlayerMsg(const PlayerMsg& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- PlayerMsg* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){}, decltype(_impl_.player_type_){}, decltype(_impl_.job_type_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.player_type_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.player_type_));
- clear_has_job_type();
- switch (from.job_type_case())
- {
- case kStudentType:
- {
- _this->_internal_set_student_type(from._internal_student_type());
- break;
- }
- case kTrickerType:
- {
- _this->_internal_set_tricker_type(from._internal_tricker_type());
- break;
- }
- case JOB_TYPE_NOT_SET:
- {
- break;
- }
- }
- // @@protoc_insertion_point(copy_constructor:protobuf.PlayerMsg)
- }
-
- inline void PlayerMsg::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.player_type_){0}, decltype(_impl_.job_type_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}};
- clear_has_job_type();
- }
-
- PlayerMsg::~PlayerMsg()
- {
- // @@protoc_insertion_point(destructor:protobuf.PlayerMsg)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void PlayerMsg::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- if (has_job_type())
- {
- clear_job_type();
- }
- }
-
- void PlayerMsg::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void PlayerMsg::clear_job_type()
- {
- // @@protoc_insertion_point(one_of_clear_start:protobuf.PlayerMsg)
- switch (job_type_case())
- {
- case kStudentType:
- {
- // No need to clear
- break;
- }
- case kTrickerType:
- {
- // No need to clear
- break;
- }
- case JOB_TYPE_NOT_SET:
- {
- break;
- }
- }
- _impl_._oneof_case_[0] = JOB_TYPE_NOT_SET;
- }
-
- void PlayerMsg::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.PlayerMsg)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.player_type_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.player_type_));
- clear_job_type();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* PlayerMsg::_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 player_id = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.StudentType student_type = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- 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;
- // .protobuf.TrickerType tricker_type = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- 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;
- // .protobuf.PlayerType player_type = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_player_type(static_cast<::protobuf::PlayerType>(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* PlayerMsg::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.PlayerMsg)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int64 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
- }
-
- // .protobuf.StudentType student_type = 2;
- if (_internal_has_student_type())
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 2, this->_internal_student_type(), target
- );
- }
-
- // .protobuf.TrickerType tricker_type = 3;
- if (_internal_has_tricker_type())
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 3, this->_internal_tricker_type(), target
- );
- }
-
- // .protobuf.PlayerType player_type = 4;
- if (this->_internal_player_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 4, this->_internal_player_type(), 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.PlayerMsg)
- return target;
- }
-
- size_t PlayerMsg::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.PlayerMsg)
- 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 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- // .protobuf.PlayerType player_type = 4;
- if (this->_internal_player_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_player_type());
- }
-
- switch (job_type_case())
- {
- // .protobuf.StudentType student_type = 2;
- case kStudentType:
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_student_type());
- break;
- }
- // .protobuf.TrickerType tricker_type = 3;
- case kTrickerType:
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_tricker_type());
- break;
- }
- case JOB_TYPE_NOT_SET:
- {
- break;
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlayerMsg::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- PlayerMsg::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* PlayerMsg::GetClassData() const
- {
- return &_class_data_;
- }
-
- void PlayerMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<PlayerMsg*>(&to_msg);
- auto& from = static_cast<const PlayerMsg&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.PlayerMsg)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_player_id() != 0)
- {
- _this->_internal_set_player_id(from._internal_player_id());
- }
- if (from._internal_player_type() != 0)
- {
- _this->_internal_set_player_type(from._internal_player_type());
- }
- switch (from.job_type_case())
- {
- case kStudentType:
- {
- _this->_internal_set_student_type(from._internal_student_type());
- break;
- }
- case kTrickerType:
- {
- _this->_internal_set_tricker_type(from._internal_tricker_type());
- break;
- }
- case JOB_TYPE_NOT_SET:
- {
- break;
- }
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void PlayerMsg::CopyFrom(const PlayerMsg& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.PlayerMsg)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool PlayerMsg::IsInitialized() const
- {
- return true;
- }
-
- void PlayerMsg::InternalSwap(PlayerMsg* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.player_type_) + sizeof(PlayerMsg::_impl_.player_type_) - PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.player_id_)>(
- reinterpret_cast<char*>(&_impl_.player_id_),
- reinterpret_cast<char*>(&other->_impl_.player_id_)
- );
- swap(_impl_.job_type_, other->_impl_.job_type_);
- swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata PlayerMsg::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[0]
- );
- }
-
- // ===================================================================
-
- class MoveMsg::_Internal
- {
- public:
- };
-
- MoveMsg::MoveMsg(::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.MoveMsg)
- }
- MoveMsg::MoveMsg(const MoveMsg& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MoveMsg* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){}, decltype(_impl_.angle_){}, decltype(_impl_.time_in_milliseconds_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.time_in_milliseconds_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.time_in_milliseconds_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MoveMsg)
- }
-
- inline void MoveMsg::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.angle_){0}, decltype(_impl_.time_in_milliseconds_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MoveMsg::~MoveMsg()
- {
- // @@protoc_insertion_point(destructor:protobuf.MoveMsg)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MoveMsg::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MoveMsg::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MoveMsg::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MoveMsg)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.time_in_milliseconds_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.time_in_milliseconds_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MoveMsg::_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 player_id = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double angle = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
- {
- _impl_.angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 time_in_milliseconds = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.time_in_milliseconds_ = ::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* MoveMsg::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveMsg)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int64 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
- }
-
- // double angle = 2;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_angle = this->_internal_angle();
- uint64_t raw_angle;
- memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
- if (raw_angle != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target);
- }
-
- // int64 time_in_milliseconds = 3;
- if (this->_internal_time_in_milliseconds() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_time_in_milliseconds(), 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.MoveMsg)
- return target;
- }
-
- size_t MoveMsg::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MoveMsg)
- 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 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- // double angle = 2;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_angle = this->_internal_angle();
- uint64_t raw_angle;
- memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
- if (raw_angle != 0)
- {
- total_size += 1 + 8;
- }
-
- // int64 time_in_milliseconds = 3;
- if (this->_internal_time_in_milliseconds() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_time_in_milliseconds());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveMsg::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MoveMsg::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveMsg::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MoveMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MoveMsg*>(&to_msg);
- auto& from = static_cast<const MoveMsg&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveMsg)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_player_id() != 0)
- {
- _this->_internal_set_player_id(from._internal_player_id());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_angle = from._internal_angle();
- uint64_t raw_angle;
- memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
- if (raw_angle != 0)
- {
- _this->_internal_set_angle(from._internal_angle());
- }
- if (from._internal_time_in_milliseconds() != 0)
- {
- _this->_internal_set_time_in_milliseconds(from._internal_time_in_milliseconds());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MoveMsg::CopyFrom(const MoveMsg& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MoveMsg)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MoveMsg::IsInitialized() const
- {
- return true;
- }
-
- void MoveMsg::InternalSwap(MoveMsg* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.time_in_milliseconds_) + sizeof(MoveMsg::_impl_.time_in_milliseconds_) - PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.player_id_)>(
- reinterpret_cast<char*>(&_impl_.player_id_),
- reinterpret_cast<char*>(&other->_impl_.player_id_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MoveMsg::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[1]
- );
- }
-
- // ===================================================================
-
- class PropMsg::_Internal
- {
- public:
- };
-
- PropMsg::PropMsg(::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.PropMsg)
- }
- PropMsg::PropMsg(const PropMsg& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- PropMsg* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){}, decltype(_impl_.prop_type_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.prop_type_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.prop_type_));
- // @@protoc_insertion_point(copy_constructor:protobuf.PropMsg)
- }
-
- inline void PropMsg::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.prop_type_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- PropMsg::~PropMsg()
- {
- // @@protoc_insertion_point(destructor:protobuf.PropMsg)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void PropMsg::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void PropMsg::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void PropMsg::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.PropMsg)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.prop_type_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.prop_type_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* PropMsg::_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 player_id = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PropType prop_type = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_prop_type(static_cast<::protobuf::PropType>(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* PropMsg::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.PropMsg)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int64 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
- }
-
- // .protobuf.PropType prop_type = 2;
- if (this->_internal_prop_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 2, this->_internal_prop_type(), 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.PropMsg)
- return target;
- }
-
- size_t PropMsg::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.PropMsg)
- 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 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- // .protobuf.PropType prop_type = 2;
- if (this->_internal_prop_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_prop_type());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PropMsg::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- PropMsg::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* PropMsg::GetClassData() const
- {
- return &_class_data_;
- }
-
- void PropMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<PropMsg*>(&to_msg);
- auto& from = static_cast<const PropMsg&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.PropMsg)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_player_id() != 0)
- {
- _this->_internal_set_player_id(from._internal_player_id());
- }
- if (from._internal_prop_type() != 0)
- {
- _this->_internal_set_prop_type(from._internal_prop_type());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void PropMsg::CopyFrom(const PropMsg& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.PropMsg)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool PropMsg::IsInitialized() const
- {
- return true;
- }
-
- void PropMsg::InternalSwap(PropMsg* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(PropMsg, _impl_.prop_type_) + sizeof(PropMsg::_impl_.prop_type_) - PROTOBUF_FIELD_OFFSET(PropMsg, _impl_.player_id_)>(
- reinterpret_cast<char*>(&_impl_.player_id_),
- reinterpret_cast<char*>(&other->_impl_.player_id_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata PropMsg::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[2]
- );
- }
-
- // ===================================================================
-
- class SendMsg::_Internal
- {
- public:
- };
-
- SendMsg::SendMsg(::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.SendMsg)
- }
- SendMsg::SendMsg(const SendMsg& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- SendMsg* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.message_){}, decltype(_impl_.player_id_){}, decltype(_impl_.to_player_id_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.message_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.message_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_message().empty())
- {
- _this->_impl_.message_.Set(from._internal_message(), _this->GetArenaForAllocation());
- }
- ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.to_player_id_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_));
- // @@protoc_insertion_point(copy_constructor:protobuf.SendMsg)
- }
-
- inline void SendMsg::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.message_){}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.to_player_id_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}};
- _impl_.message_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.message_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
-
- SendMsg::~SendMsg()
- {
- // @@protoc_insertion_point(destructor:protobuf.SendMsg)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void SendMsg::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.message_.Destroy();
- }
-
- void SendMsg::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void SendMsg::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.SendMsg)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.message_.ClearToEmpty();
- ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.to_player_id_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* SendMsg::_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 player_id = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int64 to_player_id = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // string message = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
- {
- auto str = _internal_mutable_message();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "protobuf.SendMsg.message"));
- }
- 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* SendMsg::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.SendMsg)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int64 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
- }
-
- // int64 to_player_id = 2;
- if (this->_internal_to_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target);
- }
-
- // string message = 3;
- if (!this->_internal_message().empty())
- {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_message().data(), static_cast<int>(this->_internal_message().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protobuf.SendMsg.message"
- );
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_message(), 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.SendMsg)
- return target;
- }
-
- size_t SendMsg::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.SendMsg)
- 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 = 3;
- if (!this->_internal_message().empty())
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_message()
- );
- }
-
- // int64 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- // int64 to_player_id = 2;
- if (this->_internal_to_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendMsg::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- SendMsg::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* SendMsg::GetClassData() const
- {
- return &_class_data_;
- }
-
- void SendMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<SendMsg*>(&to_msg);
- auto& from = static_cast<const SendMsg&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.SendMsg)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (!from._internal_message().empty())
- {
- _this->_internal_set_message(from._internal_message());
- }
- if (from._internal_player_id() != 0)
- {
- _this->_internal_set_player_id(from._internal_player_id());
- }
- if (from._internal_to_player_id() != 0)
- {
- _this->_internal_set_to_player_id(from._internal_to_player_id());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void SendMsg::CopyFrom(const SendMsg& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.SendMsg)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool SendMsg::IsInitialized() const
- {
- return true;
- }
-
- void SendMsg::InternalSwap(SendMsg* 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_, lhs_arena, &other->_impl_.message_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.to_player_id_) + sizeof(SendMsg::_impl_.to_player_id_) - PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.player_id_)>(
- reinterpret_cast<char*>(&_impl_.player_id_),
- reinterpret_cast<char*>(&other->_impl_.player_id_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata SendMsg::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[3]
- );
- }
-
- // ===================================================================
-
- class AttackMsg::_Internal
- {
- public:
- };
-
- AttackMsg::AttackMsg(::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.AttackMsg)
- }
- AttackMsg::AttackMsg(const AttackMsg& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- AttackMsg* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){}, decltype(_impl_.angle_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.angle_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.angle_));
- // @@protoc_insertion_point(copy_constructor:protobuf.AttackMsg)
- }
-
- inline void AttackMsg::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.angle_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- AttackMsg::~AttackMsg()
- {
- // @@protoc_insertion_point(destructor:protobuf.AttackMsg)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void AttackMsg::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void AttackMsg::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void AttackMsg::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.AttackMsg)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.angle_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.angle_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* AttackMsg::_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 player_id = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double angle = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
- {
- _impl_.angle_ = ::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* AttackMsg::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.AttackMsg)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int64 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
- }
-
- // double angle = 2;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_angle = this->_internal_angle();
- uint64_t raw_angle;
- memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
- if (raw_angle != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), 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.AttackMsg)
- return target;
- }
-
- size_t AttackMsg::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.AttackMsg)
- 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 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- // double angle = 2;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_angle = this->_internal_angle();
- uint64_t raw_angle;
- memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
- if (raw_angle != 0)
- {
- total_size += 1 + 8;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttackMsg::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- AttackMsg::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* AttackMsg::GetClassData() const
- {
- return &_class_data_;
- }
-
- void AttackMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<AttackMsg*>(&to_msg);
- auto& from = static_cast<const AttackMsg&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.AttackMsg)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_player_id() != 0)
- {
- _this->_internal_set_player_id(from._internal_player_id());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_angle = from._internal_angle();
- uint64_t raw_angle;
- memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
- if (raw_angle != 0)
- {
- _this->_internal_set_angle(from._internal_angle());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void AttackMsg::CopyFrom(const AttackMsg& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.AttackMsg)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool AttackMsg::IsInitialized() const
- {
- return true;
- }
-
- void AttackMsg::InternalSwap(AttackMsg* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.angle_) + sizeof(AttackMsg::_impl_.angle_) - PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.player_id_)>(
- reinterpret_cast<char*>(&_impl_.player_id_),
- reinterpret_cast<char*>(&other->_impl_.player_id_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata AttackMsg::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[4]
- );
- }
-
- // ===================================================================
-
- class IDMsg::_Internal
- {
- public:
- };
-
- IDMsg::IDMsg(::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.IDMsg)
- }
- IDMsg::IDMsg(const IDMsg& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- IDMsg* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _this->_impl_.player_id_ = from._impl_.player_id_;
- // @@protoc_insertion_point(copy_constructor:protobuf.IDMsg)
- }
-
- inline void IDMsg::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- IDMsg::~IDMsg()
- {
- // @@protoc_insertion_point(destructor:protobuf.IDMsg)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void IDMsg::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void IDMsg::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void IDMsg::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.IDMsg)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.player_id_ = int64_t{0};
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* IDMsg::_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 player_id = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.player_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* IDMsg::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.IDMsg)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int64 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_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.IDMsg)
- return target;
- }
-
- size_t IDMsg::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.IDMsg)
- 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 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IDMsg::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- IDMsg::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* IDMsg::GetClassData() const
- {
- return &_class_data_;
- }
-
- void IDMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<IDMsg*>(&to_msg);
- auto& from = static_cast<const IDMsg&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.IDMsg)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_player_id() != 0)
- {
- _this->_internal_set_player_id(from._internal_player_id());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void IDMsg::CopyFrom(const IDMsg& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.IDMsg)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool IDMsg::IsInitialized() const
- {
- return true;
- }
-
- void IDMsg::InternalSwap(IDMsg* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.player_id_, other->_impl_.player_id_);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata IDMsg::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[5]
- );
- }
-
- // ===================================================================
-
- class TreatAndRescueMsg::_Internal
- {
- public:
- };
-
- TreatAndRescueMsg::TreatAndRescueMsg(::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.TreatAndRescueMsg)
- }
- TreatAndRescueMsg::TreatAndRescueMsg(const TreatAndRescueMsg& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- TreatAndRescueMsg* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){}, decltype(_impl_.to_player_id_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.to_player_id_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_));
- // @@protoc_insertion_point(copy_constructor:protobuf.TreatAndRescueMsg)
- }
-
- inline void TreatAndRescueMsg::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.to_player_id_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- TreatAndRescueMsg::~TreatAndRescueMsg()
- {
- // @@protoc_insertion_point(destructor:protobuf.TreatAndRescueMsg)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void TreatAndRescueMsg::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void TreatAndRescueMsg::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void TreatAndRescueMsg::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.TreatAndRescueMsg)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.to_player_id_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* TreatAndRescueMsg::_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 player_id = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int64 to_player_id = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.to_player_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* TreatAndRescueMsg::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.TreatAndRescueMsg)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int64 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
- }
-
- // int64 to_player_id = 2;
- if (this->_internal_to_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_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.TreatAndRescueMsg)
- return target;
- }
-
- size_t TreatAndRescueMsg::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.TreatAndRescueMsg)
- 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 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- // int64 to_player_id = 2;
- if (this->_internal_to_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TreatAndRescueMsg::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- TreatAndRescueMsg::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* TreatAndRescueMsg::GetClassData() const
- {
- return &_class_data_;
- }
-
- void TreatAndRescueMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<TreatAndRescueMsg*>(&to_msg);
- auto& from = static_cast<const TreatAndRescueMsg&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.TreatAndRescueMsg)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_player_id() != 0)
- {
- _this->_internal_set_player_id(from._internal_player_id());
- }
- if (from._internal_to_player_id() != 0)
- {
- _this->_internal_set_to_player_id(from._internal_to_player_id());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void TreatAndRescueMsg::CopyFrom(const TreatAndRescueMsg& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.TreatAndRescueMsg)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool TreatAndRescueMsg::IsInitialized() const
- {
- return true;
- }
-
- void TreatAndRescueMsg::InternalSwap(TreatAndRescueMsg* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(TreatAndRescueMsg, _impl_.to_player_id_) + sizeof(TreatAndRescueMsg::_impl_.to_player_id_) - PROTOBUF_FIELD_OFFSET(TreatAndRescueMsg, _impl_.player_id_)>(
- reinterpret_cast<char*>(&_impl_.player_id_),
- reinterpret_cast<char*>(&other->_impl_.player_id_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata TreatAndRescueMsg::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[6]
- );
- }
-
- // ===================================================================
-
- class SkillMsg::_Internal
- {
- public:
- };
-
- SkillMsg::SkillMsg(::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.SkillMsg)
- }
- SkillMsg::SkillMsg(const SkillMsg& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- SkillMsg* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){}, decltype(_impl_.skill_id_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.skill_id_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.skill_id_));
- // @@protoc_insertion_point(copy_constructor:protobuf.SkillMsg)
- }
-
- inline void SkillMsg::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.skill_id_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- SkillMsg::~SkillMsg()
- {
- // @@protoc_insertion_point(destructor:protobuf.SkillMsg)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void SkillMsg::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void SkillMsg::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void SkillMsg::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.SkillMsg)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.skill_id_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.skill_id_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* SkillMsg::_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 player_id = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 skill_id = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.skill_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* SkillMsg::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.SkillMsg)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int64 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
- }
-
- // int32 skill_id = 2;
- if (this->_internal_skill_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_skill_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.SkillMsg)
- return target;
- }
-
- size_t SkillMsg::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.SkillMsg)
- 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 player_id = 1;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- // int32 skill_id = 2;
- if (this->_internal_skill_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_skill_id());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SkillMsg::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- SkillMsg::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* SkillMsg::GetClassData() const
- {
- return &_class_data_;
- }
-
- void SkillMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<SkillMsg*>(&to_msg);
- auto& from = static_cast<const SkillMsg&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.SkillMsg)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_player_id() != 0)
- {
- _this->_internal_set_player_id(from._internal_player_id());
- }
- if (from._internal_skill_id() != 0)
- {
- _this->_internal_set_skill_id(from._internal_skill_id());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void SkillMsg::CopyFrom(const SkillMsg& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.SkillMsg)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool SkillMsg::IsInitialized() const
- {
- return true;
- }
-
- void SkillMsg::InternalSwap(SkillMsg* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(SkillMsg, _impl_.skill_id_) + sizeof(SkillMsg::_impl_.skill_id_) - PROTOBUF_FIELD_OFFSET(SkillMsg, _impl_.player_id_)>(
- reinterpret_cast<char*>(&_impl_.player_id_),
- reinterpret_cast<char*>(&other->_impl_.player_id_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata SkillMsg::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[7]
- );
- }
-
- // @@protoc_insertion_point(namespace_scope)
- } // namespace protobuf
- PROTOBUF_NAMESPACE_OPEN
- template<>
- PROTOBUF_NOINLINE ::protobuf::PlayerMsg*
- Arena::CreateMaybeMessage<::protobuf::PlayerMsg>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::PlayerMsg>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MoveMsg*
- Arena::CreateMaybeMessage<::protobuf::MoveMsg>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MoveMsg>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::PropMsg*
- Arena::CreateMaybeMessage<::protobuf::PropMsg>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::PropMsg>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::SendMsg*
- Arena::CreateMaybeMessage<::protobuf::SendMsg>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::SendMsg>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::AttackMsg*
- Arena::CreateMaybeMessage<::protobuf::AttackMsg>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::AttackMsg>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::IDMsg*
- Arena::CreateMaybeMessage<::protobuf::IDMsg>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::IDMsg>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::TreatAndRescueMsg*
- Arena::CreateMaybeMessage<::protobuf::TreatAndRescueMsg>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::TreatAndRescueMsg>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::SkillMsg*
- Arena::CreateMaybeMessage<::protobuf::SkillMsg>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::SkillMsg>(arena);
- }
- PROTOBUF_NAMESPACE_CLOSE
-
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
|