| @@ -26,7 +26,7 @@ namespace protobuf | |||
| ::_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_.life_)*/ 0, /*decltype(_impl_.time_until_skill_available_)*/ 0, /*decltype(_impl_.hanged_time_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.prop_)*/ 0, /*decltype(_impl_.human_type_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.chair_time_)*/ 0, /*decltype(_impl_.on_chair_)*/ false, /*decltype(_impl_.on_ground_)*/ false, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.ground_time_)*/ 0, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} | |||
| /*decltype(_impl_.buff_)*/ {}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_.life_)*/ 0, /*decltype(_impl_.time_until_skill_available_)*/ 0, /*decltype(_impl_.hanged_time_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.prop_)*/ 0, /*decltype(_impl_.human_type_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.chair_time_)*/ 0, /*decltype(_impl_.state_)*/ 0, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.ground_time_)*/ 0, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}} | |||
| { | |||
| } | |||
| struct MessageOfHumanDefaultTypeInternal | |||
| @@ -264,9 +264,8 @@ const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_V | |||
| PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, _impl_.prop_), | |||
| PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, _impl_.human_type_), | |||
| PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, _impl_.guid_), | |||
| PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, _impl_.on_chair_), | |||
| PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, _impl_.state_), | |||
| PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, _impl_.chair_time_), | |||
| PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, _impl_.on_ground_), | |||
| PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, _impl_.ground_time_), | |||
| PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, _impl_.player_id_), | |||
| PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, _impl_.view_range_), | |||
| @@ -369,15 +368,15 @@ const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_V | |||
| }; | |||
| static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { | |||
| {0, -1, -1, sizeof(::protobuf::MessageOfHuman)}, | |||
| {24, -1, -1, sizeof(::protobuf::MessageOfButcher)}, | |||
| {44, -1, -1, sizeof(::protobuf::MessageOfProp)}, | |||
| {58, -1, -1, sizeof(::protobuf::MessageOfPickedProp)}, | |||
| {69, -1, -1, sizeof(::protobuf::MessageOfMap_Row)}, | |||
| {76, -1, -1, sizeof(::protobuf::MessageOfMap)}, | |||
| {83, -1, -1, sizeof(::protobuf::MessageToClient)}, | |||
| {93, -1, -1, sizeof(::protobuf::MoveRes)}, | |||
| {102, -1, -1, sizeof(::protobuf::BoolRes)}, | |||
| {109, -1, -1, sizeof(::protobuf::MsgRes)}, | |||
| {23, -1, -1, sizeof(::protobuf::MessageOfButcher)}, | |||
| {43, -1, -1, sizeof(::protobuf::MessageOfProp)}, | |||
| {57, -1, -1, sizeof(::protobuf::MessageOfPickedProp)}, | |||
| {68, -1, -1, sizeof(::protobuf::MessageOfMap_Row)}, | |||
| {75, -1, -1, sizeof(::protobuf::MessageOfMap)}, | |||
| {82, -1, -1, sizeof(::protobuf::MessageToClient)}, | |||
| {92, -1, -1, sizeof(::protobuf::MoveRes)}, | |||
| {101, -1, -1, sizeof(::protobuf::BoolRes)}, | |||
| {108, -1, -1, sizeof(::protobuf::MsgRes)}, | |||
| }; | |||
| static const ::_pb::Message* const file_default_instances[] = { | |||
| @@ -401,9 +400,9 @@ const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_ | |||
| "ill_available\030\006 \001(\001\022\"\n\005place\030\007 \001(\0162\023.pro" | |||
| "tobuf.PlaceType\022 \n\004prop\030\010 \001(\0162\022.protobuf" | |||
| ".PropType\022\'\n\nhuman_type\030\t \001(\0162\023.protobuf" | |||
| ".HumanType\022\014\n\004guid\030\n \001(\003\022\020\n\010on_chair\030\013 \001" | |||
| "(\010\022\022\n\nchair_time\030\014 \001(\001\022\021\n\ton_ground\030\r \001(" | |||
| "\010\022\023\n\013ground_time\030\016 \001(\001\022\021\n\tplayer_id\030\017 \001(" | |||
| ".HumanType\022\014\n\004guid\030\n \001(\003\022#\n\005state\030\013 \001(\0162" | |||
| "\024.protobuf.HumanState\022\022\n\nchair_time\030\014 \001(" | |||
| "\001\022\023\n\013ground_time\030\016 \001(\001\022\021\n\tplayer_id\030\017 \001(" | |||
| "\003\022\022\n\nview_range\030\020 \001(\005\022\016\n\006radius\030\021 \001(\005\022%\n" | |||
| "\004buff\030\022 \003(\0162\027.protobuf.HumanBuffType\"\335\002\n" | |||
| "\020MessageOfButcher\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022" | |||
| @@ -486,7 +485,7 @@ namespace protobuf | |||
| MessageOfHuman* 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_.life_){}, decltype(_impl_.time_until_skill_available_){}, decltype(_impl_.hanged_time_){}, decltype(_impl_.place_){}, decltype(_impl_.prop_){}, decltype(_impl_.human_type_){}, decltype(_impl_.guid_){}, decltype(_impl_.chair_time_){}, decltype(_impl_.on_chair_){}, decltype(_impl_.on_ground_){}, decltype(_impl_.view_range_){}, decltype(_impl_.ground_time_){}, decltype(_impl_.player_id_){}, decltype(_impl_.radius_){}, /*decltype(_impl_._cached_size_)*/ {}}; | |||
| decltype(_impl_.buff_){from._impl_.buff_}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.speed_){}, decltype(_impl_.life_){}, decltype(_impl_.time_until_skill_available_){}, decltype(_impl_.hanged_time_){}, decltype(_impl_.place_){}, decltype(_impl_.prop_){}, decltype(_impl_.human_type_){}, decltype(_impl_.guid_){}, decltype(_impl_.chair_time_){}, decltype(_impl_.state_){}, decltype(_impl_.view_range_){}, decltype(_impl_.ground_time_){}, decltype(_impl_.player_id_){}, 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_)); | |||
| @@ -500,7 +499,7 @@ namespace protobuf | |||
| (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_.life_){0}, decltype(_impl_.time_until_skill_available_){0}, decltype(_impl_.hanged_time_){0}, decltype(_impl_.place_){0}, decltype(_impl_.prop_){0}, decltype(_impl_.human_type_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.chair_time_){0}, decltype(_impl_.on_chair_){false}, decltype(_impl_.on_ground_){false}, decltype(_impl_.view_range_){0}, decltype(_impl_.ground_time_){0}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.radius_){0}, /*decltype(_impl_._cached_size_)*/ {}}; | |||
| 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_.life_){0}, decltype(_impl_.time_until_skill_available_){0}, decltype(_impl_.hanged_time_){0}, decltype(_impl_.place_){0}, decltype(_impl_.prop_){0}, decltype(_impl_.human_type_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.chair_time_){0}, decltype(_impl_.state_){0}, decltype(_impl_.view_range_){0}, decltype(_impl_.ground_time_){0}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.radius_){0}, /*decltype(_impl_._cached_size_)*/ {}}; | |||
| } | |||
| MessageOfHuman::~MessageOfHuman() | |||
| @@ -651,12 +650,13 @@ namespace protobuf | |||
| else | |||
| goto handle_unusual; | |||
| continue; | |||
| // bool on_chair = 11; | |||
| // .protobuf.HumanState state = 11; | |||
| case 11: | |||
| if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) | |||
| { | |||
| _impl_.on_chair_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); | |||
| uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); | |||
| CHK_(ptr); | |||
| _internal_set_state(static_cast<::protobuf::HumanState>(val)); | |||
| } | |||
| else | |||
| goto handle_unusual; | |||
| @@ -671,16 +671,6 @@ namespace protobuf | |||
| else | |||
| goto handle_unusual; | |||
| continue; | |||
| // bool on_ground = 13; | |||
| case 13: | |||
| if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) | |||
| { | |||
| _impl_.on_ground_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); | |||
| CHK_(ptr); | |||
| } | |||
| else | |||
| goto handle_unusual; | |||
| continue; | |||
| // double ground_time = 14; | |||
| case 14: | |||
| if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 113)) | |||
| @@ -851,11 +841,13 @@ namespace protobuf | |||
| target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target); | |||
| } | |||
| // bool on_chair = 11; | |||
| if (this->_internal_on_chair() != 0) | |||
| // .protobuf.HumanState state = 11; | |||
| if (this->_internal_state() != 0) | |||
| { | |||
| target = stream->EnsureSpace(target); | |||
| target = ::_pbi::WireFormatLite::WriteBoolToArray(11, this->_internal_on_chair(), target); | |||
| target = ::_pbi::WireFormatLite::WriteEnumToArray( | |||
| 11, this->_internal_state(), target | |||
| ); | |||
| } | |||
| // double chair_time = 12; | |||
| @@ -869,13 +861,6 @@ namespace protobuf | |||
| target = ::_pbi::WireFormatLite::WriteDoubleToArray(12, this->_internal_chair_time(), target); | |||
| } | |||
| // bool on_ground = 13; | |||
| if (this->_internal_on_ground() != 0) | |||
| { | |||
| target = stream->EnsureSpace(target); | |||
| target = ::_pbi::WireFormatLite::WriteBoolToArray(13, this->_internal_on_ground(), target); | |||
| } | |||
| // double ground_time = 14; | |||
| static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); | |||
| double tmp_ground_time = this->_internal_ground_time(); | |||
| @@ -1035,16 +1020,11 @@ namespace protobuf | |||
| total_size += 1 + 8; | |||
| } | |||
| // bool on_chair = 11; | |||
| if (this->_internal_on_chair() != 0) | |||
| // .protobuf.HumanState state = 11; | |||
| if (this->_internal_state() != 0) | |||
| { | |||
| total_size += 1 + 1; | |||
| } | |||
| // bool on_ground = 13; | |||
| if (this->_internal_on_ground() != 0) | |||
| { | |||
| total_size += 1 + 1; | |||
| total_size += 1 + | |||
| ::_pbi::WireFormatLite::EnumSize(this->_internal_state()); | |||
| } | |||
| // int32 view_range = 16; | |||
| @@ -1154,13 +1134,9 @@ namespace protobuf | |||
| { | |||
| _this->_internal_set_chair_time(from._internal_chair_time()); | |||
| } | |||
| if (from._internal_on_chair() != 0) | |||
| { | |||
| _this->_internal_set_on_chair(from._internal_on_chair()); | |||
| } | |||
| if (from._internal_on_ground() != 0) | |||
| if (from._internal_state() != 0) | |||
| { | |||
| _this->_internal_set_on_ground(from._internal_on_ground()); | |||
| _this->_internal_set_state(from._internal_state()); | |||
| } | |||
| if (from._internal_view_range() != 0) | |||
| { | |||
| @@ -277,8 +277,7 @@ namespace protobuf | |||
| kHumanTypeFieldNumber = 9, | |||
| kGuidFieldNumber = 10, | |||
| kChairTimeFieldNumber = 12, | |||
| kOnChairFieldNumber = 11, | |||
| kOnGroundFieldNumber = 13, | |||
| kStateFieldNumber = 11, | |||
| kViewRangeFieldNumber = 16, | |||
| kGroundTimeFieldNumber = 14, | |||
| kPlayerIdFieldNumber = 15, | |||
| @@ -415,24 +414,14 @@ namespace protobuf | |||
| void _internal_set_chair_time(double value); | |||
| public: | |||
| // bool on_chair = 11; | |||
| void clear_on_chair(); | |||
| bool on_chair() const; | |||
| void set_on_chair(bool value); | |||
| // .protobuf.HumanState state = 11; | |||
| void clear_state(); | |||
| ::protobuf::HumanState state() const; | |||
| void set_state(::protobuf::HumanState value); | |||
| private: | |||
| bool _internal_on_chair() const; | |||
| void _internal_set_on_chair(bool value); | |||
| public: | |||
| // bool on_ground = 13; | |||
| void clear_on_ground(); | |||
| bool on_ground() const; | |||
| void set_on_ground(bool value); | |||
| private: | |||
| bool _internal_on_ground() const; | |||
| void _internal_set_on_ground(bool value); | |||
| ::protobuf::HumanState _internal_state() const; | |||
| void _internal_set_state(::protobuf::HumanState value); | |||
| public: | |||
| // int32 view_range = 16; | |||
| @@ -499,8 +488,7 @@ namespace protobuf | |||
| int human_type_; | |||
| int64_t guid_; | |||
| double chair_time_; | |||
| bool on_chair_; | |||
| bool on_ground_; | |||
| int state_; | |||
| int32_t view_range_; | |||
| double ground_time_; | |||
| int64_t player_id_; | |||
| @@ -2955,28 +2943,28 @@ namespace protobuf | |||
| // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.guid) | |||
| } | |||
| // bool on_chair = 11; | |||
| inline void MessageOfHuman::clear_on_chair() | |||
| // .protobuf.HumanState state = 11; | |||
| inline void MessageOfHuman::clear_state() | |||
| { | |||
| _impl_.on_chair_ = false; | |||
| _impl_.state_ = 0; | |||
| } | |||
| inline bool MessageOfHuman::_internal_on_chair() const | |||
| inline ::protobuf::HumanState MessageOfHuman::_internal_state() const | |||
| { | |||
| return _impl_.on_chair_; | |||
| return static_cast<::protobuf::HumanState>(_impl_.state_); | |||
| } | |||
| inline bool MessageOfHuman::on_chair() const | |||
| inline ::protobuf::HumanState MessageOfHuman::state() const | |||
| { | |||
| // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.on_chair) | |||
| return _internal_on_chair(); | |||
| // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.state) | |||
| return _internal_state(); | |||
| } | |||
| inline void MessageOfHuman::_internal_set_on_chair(bool value) | |||
| inline void MessageOfHuman::_internal_set_state(::protobuf::HumanState value) | |||
| { | |||
| _impl_.on_chair_ = value; | |||
| _impl_.state_ = value; | |||
| } | |||
| inline void MessageOfHuman::set_on_chair(bool value) | |||
| inline void MessageOfHuman::set_state(::protobuf::HumanState value) | |||
| { | |||
| _internal_set_on_chair(value); | |||
| // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.on_chair) | |||
| _internal_set_state(value); | |||
| // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.state) | |||
| } | |||
| // double chair_time = 12; | |||
| @@ -3003,30 +2991,6 @@ namespace protobuf | |||
| // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.chair_time) | |||
| } | |||
| // bool on_ground = 13; | |||
| inline void MessageOfHuman::clear_on_ground() | |||
| { | |||
| _impl_.on_ground_ = false; | |||
| } | |||
| inline bool MessageOfHuman::_internal_on_ground() const | |||
| { | |||
| return _impl_.on_ground_; | |||
| } | |||
| inline bool MessageOfHuman::on_ground() const | |||
| { | |||
| // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.on_ground) | |||
| return _internal_on_ground(); | |||
| } | |||
| inline void MessageOfHuman::_internal_set_on_ground(bool value) | |||
| { | |||
| _impl_.on_ground_ = value; | |||
| } | |||
| inline void MessageOfHuman::set_on_ground(bool value) | |||
| { | |||
| _internal_set_on_ground(value); | |||
| // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.on_ground) | |||
| } | |||
| // double ground_time = 14; | |||
| inline void MessageOfHuman::clear_ground_time() | |||
| { | |||
| @@ -23,7 +23,7 @@ namespace _pbi = _pb::internal; | |||
| namespace protobuf | |||
| { | |||
| } // namespace protobuf | |||
| static const ::_pb::EnumDescriptor* file_level_enum_descriptors_MessageType_2eproto[8]; | |||
| static const ::_pb::EnumDescriptor* file_level_enum_descriptors_MessageType_2eproto[9]; | |||
| static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_MessageType_2eproto = nullptr; | |||
| const uint32_t TableStruct_MessageType_2eproto::offsets[1] = {}; | |||
| static constexpr ::_pbi::MigrationSchema* schemas = nullptr; | |||
| @@ -39,22 +39,24 @@ const char descriptor_table_protodef_MessageType_2eproto[] PROTOBUF_SECTION_VARI | |||
| "PTYPE2\020\002\022\n\n\006PTYPE3\020\003\022\n\n\006PTYPE4\020\004*d\n\rHuma" | |||
| "nBuffType\022\023\n\017NULL_HBUFF_TYPE\020\000\022\016\n\nHBUFFT" | |||
| "YPE1\020\001\022\016\n\nHBUFFTYPE2\020\002\022\016\n\nHBUFFTYPE3\020\003\022\016" | |||
| "\n\nHBUFFTYPE4\020\004*f\n\017ButcherBuffType\022\023\n\017NUL" | |||
| "L_BBUFF_TYPE\020\000\022\016\n\nBBUFFTYPE1\020\001\022\016\n\nBBUFFT" | |||
| "YPE2\020\002\022\016\n\nBBUFFTYPE3\020\003\022\016\n\nBBUFFTYPE4\020\004*H" | |||
| "\n\nPlayerType\022\024\n\020NULL_PLAYER_TYPE\020\000\022\020\n\014HU" | |||
| "MAN_PLAYER\020\001\022\022\n\016BUTCHER_PLAYER\020\002*`\n\tHuma" | |||
| "nType\022\023\n\017NULL_HUMAN_TYPE\020\000\022\016\n\nHUMANTYPE1" | |||
| "\020\001\022\016\n\nHUMANTYPE2\020\002\022\016\n\nHUMANTYPE3\020\003\022\016\n\nHU" | |||
| "MANTYPE4\020\004*l\n\013ButcherType\022\025\n\021NULL_BUTCHE" | |||
| "R_TYPE\020\000\022\020\n\014BUTCHERTYPE1\020\001\022\020\n\014BUTCHERTYP" | |||
| "E2\020\002\022\020\n\014BUTCHERTYPE3\020\003\022\020\n\014BUTCHERTYPE4\020\004" | |||
| "b\006proto3"; | |||
| "\n\nHBUFFTYPE4\020\004*V\n\nHumanState\022\017\n\013NULL_STA" | |||
| "TUS\020\000\022\010\n\004IDLE\020\001\022\n\n\006FIXING\020\002\022\t\n\005DYING\020\003\022\014" | |||
| "\n\010ON_CHAIR\020\004\022\010\n\004DEAD\020\005*f\n\017ButcherBuffTyp" | |||
| "e\022\023\n\017NULL_BBUFF_TYPE\020\000\022\016\n\nBBUFFTYPE1\020\001\022\016" | |||
| "\n\nBBUFFTYPE2\020\002\022\016\n\nBBUFFTYPE3\020\003\022\016\n\nBBUFFT" | |||
| "YPE4\020\004*H\n\nPlayerType\022\024\n\020NULL_PLAYER_TYPE" | |||
| "\020\000\022\020\n\014HUMAN_PLAYER\020\001\022\022\n\016BUTCHER_PLAYER\020\002" | |||
| "*`\n\tHumanType\022\023\n\017NULL_HUMAN_TYPE\020\000\022\016\n\nHU" | |||
| "MANTYPE1\020\001\022\016\n\nHUMANTYPE2\020\002\022\016\n\nHUMANTYPE3" | |||
| "\020\003\022\016\n\nHUMANTYPE4\020\004*l\n\013ButcherType\022\025\n\021NUL" | |||
| "L_BUTCHER_TYPE\020\000\022\020\n\014BUTCHERTYPE1\020\001\022\020\n\014BU" | |||
| "TCHERTYPE2\020\002\022\020\n\014BUTCHERTYPE3\020\003\022\020\n\014BUTCHE" | |||
| "RTYPE4\020\004b\006proto3"; | |||
| static ::_pbi::once_flag descriptor_table_MessageType_2eproto_once; | |||
| const ::_pbi::DescriptorTable descriptor_table_MessageType_2eproto = { | |||
| false, | |||
| false, | |||
| 768, | |||
| 856, | |||
| descriptor_table_protodef_MessageType_2eproto, | |||
| "MessageType.proto", | |||
| &descriptor_table_MessageType_2eproto_once, | |||
| @@ -157,11 +159,32 @@ namespace protobuf | |||
| } | |||
| } | |||
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButcherBuffType_descriptor() | |||
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HumanState_descriptor() | |||
| { | |||
| ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); | |||
| return file_level_enum_descriptors_MessageType_2eproto[4]; | |||
| } | |||
| bool HumanState_IsValid(int value) | |||
| { | |||
| switch (value) | |||
| { | |||
| case 0: | |||
| case 1: | |||
| case 2: | |||
| case 3: | |||
| case 4: | |||
| case 5: | |||
| return true; | |||
| default: | |||
| return false; | |||
| } | |||
| } | |||
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButcherBuffType_descriptor() | |||
| { | |||
| ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); | |||
| return file_level_enum_descriptors_MessageType_2eproto[5]; | |||
| } | |||
| bool ButcherBuffType_IsValid(int value) | |||
| { | |||
| switch (value) | |||
| @@ -180,7 +203,7 @@ namespace protobuf | |||
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlayerType_descriptor() | |||
| { | |||
| ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); | |||
| return file_level_enum_descriptors_MessageType_2eproto[5]; | |||
| return file_level_enum_descriptors_MessageType_2eproto[6]; | |||
| } | |||
| bool PlayerType_IsValid(int value) | |||
| { | |||
| @@ -198,7 +221,7 @@ namespace protobuf | |||
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HumanType_descriptor() | |||
| { | |||
| ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); | |||
| return file_level_enum_descriptors_MessageType_2eproto[6]; | |||
| return file_level_enum_descriptors_MessageType_2eproto[7]; | |||
| } | |||
| bool HumanType_IsValid(int value) | |||
| { | |||
| @@ -218,7 +241,7 @@ namespace protobuf | |||
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButcherType_descriptor() | |||
| { | |||
| ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); | |||
| return file_level_enum_descriptors_MessageType_2eproto[7]; | |||
| return file_level_enum_descriptors_MessageType_2eproto[8]; | |||
| } | |||
| bool ButcherType_IsValid(int value) | |||
| { | |||
| @@ -178,6 +178,39 @@ namespace protobuf | |||
| HumanBuffType_descriptor(), name, value | |||
| ); | |||
| } | |||
| enum HumanState : int | |||
| { | |||
| NULL_STATUS = 0, | |||
| IDLE = 1, | |||
| FIXING = 2, | |||
| DYING = 3, | |||
| ON_CHAIR = 4, | |||
| DEAD = 5, | |||
| HumanState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(), | |||
| HumanState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max() | |||
| }; | |||
| bool HumanState_IsValid(int value); | |||
| constexpr HumanState HumanState_MIN = NULL_STATUS; | |||
| constexpr HumanState HumanState_MAX = DEAD; | |||
| constexpr int HumanState_ARRAYSIZE = HumanState_MAX + 1; | |||
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HumanState_descriptor(); | |||
| template<typename T> | |||
| inline const std::string& HumanState_Name(T enum_t_value) | |||
| { | |||
| static_assert(::std::is_same<T, HumanState>::value || ::std::is_integral<T>::value, "Incorrect type passed to function HumanState_Name."); | |||
| return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( | |||
| HumanState_descriptor(), enum_t_value | |||
| ); | |||
| } | |||
| inline bool HumanState_Parse( | |||
| ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, HumanState* value | |||
| ) | |||
| { | |||
| return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<HumanState>( | |||
| HumanState_descriptor(), name, value | |||
| ); | |||
| } | |||
| enum ButcherBuffType : int | |||
| { | |||
| NULL_BBUFF_TYPE = 0, | |||
| @@ -361,6 +394,15 @@ inline const EnumDescriptor* GetEnumDescriptor<::protobuf::HumanBuffType>() | |||
| return ::protobuf::HumanBuffType_descriptor(); | |||
| } | |||
| template<> | |||
| struct is_proto_enum<::protobuf::HumanState> : ::std::true_type | |||
| { | |||
| }; | |||
| template<> | |||
| inline const EnumDescriptor* GetEnumDescriptor<::protobuf::HumanState>() | |||
| { | |||
| return ::protobuf::HumanState_descriptor(); | |||
| } | |||
| template<> | |||
| struct is_proto_enum<::protobuf::ButcherBuffType> : ::std::true_type | |||
| { | |||
| }; | |||
| @@ -32,8 +32,10 @@ namespace protobuf | |||
| "/protobuf.AvailableService/SendMessage", | |||
| "/protobuf.AvailableService/HaveMessage", | |||
| "/protobuf.AvailableService/GetMessage", | |||
| "/protobuf.AvailableService/FixMachine", | |||
| "/protobuf.AvailableService/StartFixMachine", | |||
| "/protobuf.AvailableService/EndFixMachine", | |||
| "/protobuf.AvailableService/SaveHuman", | |||
| "/protobuf.AvailableService/EndSaveHuman", | |||
| "/protobuf.AvailableService/Attack", | |||
| "/protobuf.AvailableService/CarryHuman", | |||
| "/protobuf.AvailableService/ReleaseHuman", | |||
| @@ -59,13 +61,15 @@ namespace protobuf | |||
| rpcmethod_SendMessage_(AvailableService_method_names[6], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_HaveMessage_(AvailableService_method_names[7], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_GetMessage_(AvailableService_method_names[8], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_FixMachine_(AvailableService_method_names[9], options.suffix_for_stats(), ::grpc::internal::RpcMethod::BIDI_STREAMING, channel), | |||
| rpcmethod_SaveHuman_(AvailableService_method_names[10], options.suffix_for_stats(), ::grpc::internal::RpcMethod::BIDI_STREAMING, channel), | |||
| rpcmethod_Attack_(AvailableService_method_names[11], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_CarryHuman_(AvailableService_method_names[12], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_ReleaseHuman_(AvailableService_method_names[13], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_HangHuman_(AvailableService_method_names[14], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_Escape_(AvailableService_method_names[15], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel) | |||
| rpcmethod_StartFixMachine_(AvailableService_method_names[9], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_EndFixMachine_(AvailableService_method_names[10], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_SaveHuman_(AvailableService_method_names[11], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_EndSaveHuman_(AvailableService_method_names[12], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_Attack_(AvailableService_method_names[13], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_CarryHuman_(AvailableService_method_names[14], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_ReleaseHuman_(AvailableService_method_names[15], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_HangHuman_(AvailableService_method_names[16], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), | |||
| rpcmethod_Escape_(AvailableService_method_names[17], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel) | |||
| { | |||
| } | |||
| @@ -313,44 +317,116 @@ namespace protobuf | |||
| return result; | |||
| } | |||
| ::grpc::ClientReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>* AvailableService::Stub::FixMachineRaw(::grpc::ClientContext* context) | |||
| ::grpc::Status AvailableService::Stub::StartFixMachine(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) | |||
| { | |||
| return ::grpc::internal::ClientReaderWriterFactory<::protobuf::IDMsg, ::protobuf::BoolRes>::Create(channel_.get(), rpcmethod_FixMachine_, context); | |||
| return ::grpc::internal::BlockingUnaryCall<::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_StartFixMachine_, context, request, response); | |||
| } | |||
| void AvailableService::Stub::async::FixMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor<::protobuf::IDMsg, ::protobuf::BoolRes>* reactor) | |||
| void AvailableService::Stub::async::StartFixMachine(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)> f) | |||
| { | |||
| ::grpc::internal::ClientCallbackReaderWriterFactory<::protobuf::IDMsg, ::protobuf::BoolRes>::Create(stub_->channel_.get(), stub_->rpcmethod_FixMachine_, context, reactor); | |||
| ::grpc::internal::CallbackUnaryCall<::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_StartFixMachine_, context, request, response, std::move(f)); | |||
| } | |||
| ::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>* AvailableService::Stub::AsyncFixMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) | |||
| void AvailableService::Stub::async::StartFixMachine(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) | |||
| { | |||
| return ::grpc::internal::ClientAsyncReaderWriterFactory<::protobuf::IDMsg, ::protobuf::BoolRes>::Create(channel_.get(), cq, rpcmethod_FixMachine_, context, true, tag); | |||
| ::grpc::internal::ClientCallbackUnaryFactory::Create<::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_StartFixMachine_, context, request, response, reactor); | |||
| } | |||
| ::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncFixMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) | |||
| ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncStartFixMachineRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) | |||
| { | |||
| return ::grpc::internal::ClientAsyncReaderWriterFactory<::protobuf::IDMsg, ::protobuf::BoolRes>::Create(channel_.get(), cq, rpcmethod_FixMachine_, context, false, nullptr); | |||
| return ::grpc::internal::ClientAsyncResponseReaderHelper::Create<::protobuf::BoolRes, ::protobuf::IDMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_StartFixMachine_, context, request); | |||
| } | |||
| ::grpc::ClientReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>* AvailableService::Stub::SaveHumanRaw(::grpc::ClientContext* context) | |||
| ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AvailableService::Stub::AsyncStartFixMachineRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) | |||
| { | |||
| return ::grpc::internal::ClientReaderWriterFactory<::protobuf::IDMsg, ::protobuf::BoolRes>::Create(channel_.get(), rpcmethod_SaveHuman_, context); | |||
| auto* result = | |||
| this->PrepareAsyncStartFixMachineRaw(context, request, cq); | |||
| result->StartCall(); | |||
| return result; | |||
| } | |||
| ::grpc::Status AvailableService::Stub::EndFixMachine(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) | |||
| { | |||
| return ::grpc::internal::BlockingUnaryCall<::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EndFixMachine_, context, request, response); | |||
| } | |||
| void AvailableService::Stub::async::EndFixMachine(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)> f) | |||
| { | |||
| ::grpc::internal::CallbackUnaryCall<::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EndFixMachine_, context, request, response, std::move(f)); | |||
| } | |||
| void AvailableService::Stub::async::SaveHuman(::grpc::ClientContext* context, ::grpc::ClientBidiReactor<::protobuf::IDMsg, ::protobuf::BoolRes>* reactor) | |||
| void AvailableService::Stub::async::EndFixMachine(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) | |||
| { | |||
| ::grpc::internal::ClientCallbackReaderWriterFactory<::protobuf::IDMsg, ::protobuf::BoolRes>::Create(stub_->channel_.get(), stub_->rpcmethod_SaveHuman_, context, reactor); | |||
| ::grpc::internal::ClientCallbackUnaryFactory::Create<::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EndFixMachine_, context, request, response, reactor); | |||
| } | |||
| ::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>* AvailableService::Stub::AsyncSaveHumanRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) | |||
| ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncEndFixMachineRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) | |||
| { | |||
| return ::grpc::internal::ClientAsyncReaderWriterFactory<::protobuf::IDMsg, ::protobuf::BoolRes>::Create(channel_.get(), cq, rpcmethod_SaveHuman_, context, true, tag); | |||
| return ::grpc::internal::ClientAsyncResponseReaderHelper::Create<::protobuf::BoolRes, ::protobuf::IDMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EndFixMachine_, context, request); | |||
| } | |||
| ::grpc::ClientAsyncReaderWriter<::protobuf::IDMsg, ::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncSaveHumanRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) | |||
| ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AvailableService::Stub::AsyncEndFixMachineRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) | |||
| { | |||
| return ::grpc::internal::ClientAsyncReaderWriterFactory<::protobuf::IDMsg, ::protobuf::BoolRes>::Create(channel_.get(), cq, rpcmethod_SaveHuman_, context, false, nullptr); | |||
| auto* result = | |||
| this->PrepareAsyncEndFixMachineRaw(context, request, cq); | |||
| result->StartCall(); | |||
| return result; | |||
| } | |||
| ::grpc::Status AvailableService::Stub::SaveHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) | |||
| { | |||
| return ::grpc::internal::BlockingUnaryCall<::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SaveHuman_, context, request, response); | |||
| } | |||
| void AvailableService::Stub::async::SaveHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)> f) | |||
| { | |||
| ::grpc::internal::CallbackUnaryCall<::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SaveHuman_, context, request, response, std::move(f)); | |||
| } | |||
| void AvailableService::Stub::async::SaveHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) | |||
| { | |||
| ::grpc::internal::ClientCallbackUnaryFactory::Create<::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SaveHuman_, context, request, response, reactor); | |||
| } | |||
| ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncSaveHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) | |||
| { | |||
| return ::grpc::internal::ClientAsyncResponseReaderHelper::Create<::protobuf::BoolRes, ::protobuf::IDMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SaveHuman_, context, request); | |||
| } | |||
| ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AvailableService::Stub::AsyncSaveHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) | |||
| { | |||
| auto* result = | |||
| this->PrepareAsyncSaveHumanRaw(context, request, cq); | |||
| result->StartCall(); | |||
| return result; | |||
| } | |||
| ::grpc::Status AvailableService::Stub::EndSaveHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) | |||
| { | |||
| return ::grpc::internal::BlockingUnaryCall<::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EndSaveHuman_, context, request, response); | |||
| } | |||
| void AvailableService::Stub::async::EndSaveHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)> f) | |||
| { | |||
| ::grpc::internal::CallbackUnaryCall<::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EndSaveHuman_, context, request, response, std::move(f)); | |||
| } | |||
| void AvailableService::Stub::async::EndSaveHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) | |||
| { | |||
| ::grpc::internal::ClientCallbackUnaryFactory::Create<::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EndSaveHuman_, context, request, response, reactor); | |||
| } | |||
| ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncEndSaveHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) | |||
| { | |||
| return ::grpc::internal::ClientAsyncResponseReaderHelper::Create<::protobuf::BoolRes, ::protobuf::IDMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EndSaveHuman_, context, request); | |||
| } | |||
| ::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AvailableService::Stub::AsyncEndSaveHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) | |||
| { | |||
| auto* result = | |||
| this->PrepareAsyncEndSaveHumanRaw(context, request, cq); | |||
| result->StartCall(); | |||
| return result; | |||
| } | |||
| ::grpc::Status AvailableService::Stub::Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::protobuf::BoolRes* response) | |||
| @@ -623,26 +699,28 @@ namespace protobuf | |||
| )); | |||
| AddMethod(new ::grpc::internal::RpcServiceMethod( | |||
| AvailableService_method_names[9], | |||
| ::grpc::internal::RpcMethod::BIDI_STREAMING, | |||
| new ::grpc::internal::BidiStreamingHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes>( | |||
| ::grpc::internal::RpcMethod::NORMAL_RPC, | |||
| new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( | |||
| [](AvailableService::Service* service, | |||
| ::grpc::ServerContext* ctx, | |||
| ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* stream) | |||
| const ::protobuf::IDMsg* req, | |||
| ::protobuf::BoolRes* resp) | |||
| { | |||
| return service->FixMachine(ctx, stream); | |||
| return service->StartFixMachine(ctx, req, resp); | |||
| }, | |||
| this | |||
| ) | |||
| )); | |||
| AddMethod(new ::grpc::internal::RpcServiceMethod( | |||
| AvailableService_method_names[10], | |||
| ::grpc::internal::RpcMethod::BIDI_STREAMING, | |||
| new ::grpc::internal::BidiStreamingHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes>( | |||
| ::grpc::internal::RpcMethod::NORMAL_RPC, | |||
| new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( | |||
| [](AvailableService::Service* service, | |||
| ::grpc::ServerContext* ctx, | |||
| ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* stream) | |||
| const ::protobuf::IDMsg* req, | |||
| ::protobuf::BoolRes* resp) | |||
| { | |||
| return service->SaveHuman(ctx, stream); | |||
| return service->EndFixMachine(ctx, req, resp); | |||
| }, | |||
| this | |||
| ) | |||
| @@ -650,6 +728,34 @@ namespace protobuf | |||
| AddMethod(new ::grpc::internal::RpcServiceMethod( | |||
| AvailableService_method_names[11], | |||
| ::grpc::internal::RpcMethod::NORMAL_RPC, | |||
| new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( | |||
| [](AvailableService::Service* service, | |||
| ::grpc::ServerContext* ctx, | |||
| const ::protobuf::IDMsg* req, | |||
| ::protobuf::BoolRes* resp) | |||
| { | |||
| return service->SaveHuman(ctx, req, resp); | |||
| }, | |||
| this | |||
| ) | |||
| )); | |||
| AddMethod(new ::grpc::internal::RpcServiceMethod( | |||
| AvailableService_method_names[12], | |||
| ::grpc::internal::RpcMethod::NORMAL_RPC, | |||
| new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( | |||
| [](AvailableService::Service* service, | |||
| ::grpc::ServerContext* ctx, | |||
| const ::protobuf::IDMsg* req, | |||
| ::protobuf::BoolRes* resp) | |||
| { | |||
| return service->EndSaveHuman(ctx, req, resp); | |||
| }, | |||
| this | |||
| ) | |||
| )); | |||
| AddMethod(new ::grpc::internal::RpcServiceMethod( | |||
| AvailableService_method_names[13], | |||
| ::grpc::internal::RpcMethod::NORMAL_RPC, | |||
| new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::AttackMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( | |||
| [](AvailableService::Service* service, | |||
| ::grpc::ServerContext* ctx, | |||
| @@ -662,7 +768,7 @@ namespace protobuf | |||
| ) | |||
| )); | |||
| AddMethod(new ::grpc::internal::RpcServiceMethod( | |||
| AvailableService_method_names[12], | |||
| AvailableService_method_names[14], | |||
| ::grpc::internal::RpcMethod::NORMAL_RPC, | |||
| new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( | |||
| [](AvailableService::Service* service, | |||
| @@ -676,7 +782,7 @@ namespace protobuf | |||
| ) | |||
| )); | |||
| AddMethod(new ::grpc::internal::RpcServiceMethod( | |||
| AvailableService_method_names[13], | |||
| AvailableService_method_names[15], | |||
| ::grpc::internal::RpcMethod::NORMAL_RPC, | |||
| new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( | |||
| [](AvailableService::Service* service, | |||
| @@ -690,7 +796,7 @@ namespace protobuf | |||
| ) | |||
| )); | |||
| AddMethod(new ::grpc::internal::RpcServiceMethod( | |||
| AvailableService_method_names[14], | |||
| AvailableService_method_names[16], | |||
| ::grpc::internal::RpcMethod::NORMAL_RPC, | |||
| new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( | |||
| [](AvailableService::Service* service, | |||
| @@ -704,7 +810,7 @@ namespace protobuf | |||
| ) | |||
| )); | |||
| AddMethod(new ::grpc::internal::RpcServiceMethod( | |||
| AvailableService_method_names[15], | |||
| AvailableService_method_names[17], | |||
| ::grpc::internal::RpcMethod::NORMAL_RPC, | |||
| new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( | |||
| [](AvailableService::Service* service, | |||
| @@ -795,17 +901,35 @@ namespace protobuf | |||
| return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); | |||
| } | |||
| ::grpc::Status AvailableService::Service::FixMachine(::grpc::ServerContext* context, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* stream) | |||
| ::grpc::Status AvailableService::Service::StartFixMachine(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) | |||
| { | |||
| (void)context; | |||
| (void)request; | |||
| (void)response; | |||
| return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); | |||
| } | |||
| ::grpc::Status AvailableService::Service::EndFixMachine(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) | |||
| { | |||
| (void)context; | |||
| (void)stream; | |||
| (void)request; | |||
| (void)response; | |||
| return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); | |||
| } | |||
| ::grpc::Status AvailableService::Service::SaveHuman(::grpc::ServerContext* context, ::grpc::ServerReaderWriter<::protobuf::BoolRes, ::protobuf::IDMsg>* stream) | |||
| ::grpc::Status AvailableService::Service::SaveHuman(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) | |||
| { | |||
| (void)context; | |||
| (void)stream; | |||
| (void)request; | |||
| (void)response; | |||
| return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); | |||
| } | |||
| ::grpc::Status AvailableService::Service::EndSaveHuman(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) | |||
| { | |||
| (void)context; | |||
| (void)request; | |||
| (void)response; | |||
| return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); | |||
| } | |||
| @@ -31,7 +31,7 @@ static constexpr ::_pb::Message* const* file_default_instances = nullptr; | |||
| const char descriptor_table_protodef_Services_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = | |||
| "\n\016Services.proto\022\010protobuf\032\025Message2Clie" | |||
| "nts.proto\032\024Message2Server.proto2\300\006\n\020Avai" | |||
| "nts.proto\032\024Message2Server.proto2\246\007\n\020Avai" | |||
| "lableService\0223\n\rTryConnection\022\017.protobuf" | |||
| ".IDMsg\032\021.protobuf.BoolRes\022=\n\tAddPlayer\022\023" | |||
| ".protobuf.PlayerMsg\032\031.protobuf.MessageTo" | |||
| @@ -43,16 +43,19 @@ const char descriptor_table_protodef_Services_2eproto[] PROTOBUF_SECTION_VARIABL | |||
| "3\n\013SendMessage\022\021.protobuf.SendMsg\032\021.prot" | |||
| "obuf.BoolRes\0221\n\013HaveMessage\022\017.protobuf.I" | |||
| "DMsg\032\021.protobuf.BoolRes\022/\n\nGetMessage\022\017." | |||
| "protobuf.IDMsg\032\020.protobuf.MsgRes\0224\n\nFixM" | |||
| "achine\022\017.protobuf.IDMsg\032\021.protobuf.BoolR" | |||
| "es(\0010\001\0223\n\tSaveHuman\022\017.protobuf.IDMsg\032\021.p" | |||
| "rotobuf.BoolRes(\0010\001\0220\n\006Attack\022\023.protobuf" | |||
| ".AttackMsg\032\021.protobuf.BoolRes\0220\n\nCarryHu" | |||
| "man\022\017.protobuf.IDMsg\032\021.protobuf.BoolRes\022" | |||
| "2\n\014ReleaseHuman\022\017.protobuf.IDMsg\032\021.proto" | |||
| "buf.BoolRes\022/\n\tHangHuman\022\017.protobuf.IDMs" | |||
| "g\032\021.protobuf.BoolRes\022,\n\006Escape\022\017.protobu" | |||
| "f.IDMsg\032\021.protobuf.BoolResb\006proto3"; | |||
| "protobuf.IDMsg\032\020.protobuf.MsgRes\0225\n\017Star" | |||
| "tFixMachine\022\017.protobuf.IDMsg\032\021.protobuf." | |||
| "BoolRes\0223\n\rEndFixMachine\022\017.protobuf.IDMs" | |||
| "g\032\021.protobuf.BoolRes\022/\n\tSaveHuman\022\017.prot" | |||
| "obuf.IDMsg\032\021.protobuf.BoolRes\0222\n\014EndSave" | |||
| "Human\022\017.protobuf.IDMsg\032\021.protobuf.BoolRe" | |||
| "s\0220\n\006Attack\022\023.protobuf.AttackMsg\032\021.proto" | |||
| "buf.BoolRes\0220\n\nCarryHuman\022\017.protobuf.IDM" | |||
| "sg\032\021.protobuf.BoolRes\0222\n\014ReleaseHuman\022\017." | |||
| "protobuf.IDMsg\032\021.protobuf.BoolRes\022/\n\tHan" | |||
| "gHuman\022\017.protobuf.IDMsg\032\021.protobuf.BoolR" | |||
| "es\022,\n\006Escape\022\017.protobuf.IDMsg\032\021.protobuf" | |||
| ".BoolResb\006proto3"; | |||
| static const ::_pbi::DescriptorTable* const descriptor_table_Services_2eproto_deps[2] = { | |||
| &::descriptor_table_Message2Clients_2eproto, | |||
| &::descriptor_table_Message2Server_2eproto, | |||
| @@ -61,7 +64,7 @@ static ::_pbi::once_flag descriptor_table_Services_2eproto_once; | |||
| const ::_pbi::DescriptorTable descriptor_table_Services_2eproto = { | |||
| false, | |||
| false, | |||
| 914, | |||
| 1016, | |||
| descriptor_table_protodef_Services_2eproto, | |||
| "Services.proto", | |||
| &descriptor_table_Services_2eproto_once, | |||
| @@ -16,9 +16,8 @@ message MessageOfHuman | |||
| PropType prop = 8; | |||
| HumanType human_type = 9; | |||
| int64 guid = 10; | |||
| bool on_chair = 11; // 是否被挂 | |||
| HumanState state = 11; | |||
| double chair_time = 12; // 被挂的时间 | |||
| bool on_ground = 13; // 是否倒地 | |||
| double ground_time = 14; // 倒地时间 | |||
| int64 player_id = 15; | |||
| int32 view_range = 16; // 视野距离 | |||
| @@ -43,6 +43,16 @@ enum HumanBuffType // 人类可用的增益效果类型 | |||
| HBUFFTYPE4 = 4; | |||
| } | |||
| enum HumanState | |||
| { | |||
| NULL_STATUS = 0; | |||
| IDLE = 1; // 正常状态 | |||
| FIXING = 2; // 修理状态 | |||
| DYING = 3; // 濒死状态 | |||
| ON_CHAIR = 4; // 被挂 | |||
| DEAD = 5; // 死亡状态 | |||
| } | |||
| enum ButcherBuffType // 屠夫可用的增益效果类型 | |||
| { | |||
| NULL_BBUFF_TYPE = 0; | |||
| @@ -19,8 +19,10 @@ service AvailableService | |||
| rpc SendMessage(SendMsg) returns (BoolRes); | |||
| rpc HaveMessage(IDMsg) returns (BoolRes); | |||
| rpc GetMessage(IDMsg) returns (MsgRes); | |||
| rpc FixMachine(stream IDMsg) returns (stream BoolRes); // 若正常修复且未被打断则返回修复成功,位置错误/被打断则返回修复失败,下同 | |||
| rpc SaveHuman(stream IDMsg) returns (stream BoolRes); | |||
| rpc StartFixMachine(IDMsg) returns (BoolRes); // 开始修理机器 | |||
| rpc EndFixMachine(IDMsg) returns (BoolRes); // 主动停止修复 | |||
| rpc SaveHuman(IDMsg) returns (BoolRes); // 开始救人 | |||
| rpc EndSaveHuman(IDMsg) returns (BoolRes); // 主动停止救人 | |||
| rpc Attack (AttackMsg) returns (BoolRes); | |||
| rpc CarryHuman (IDMsg) returns (BoolRes); | |||
| rpc ReleaseHuman (IDMsg) returns (BoolRes); | |||