From 6f2dff28f587b40f2258e6cf482a7cc399b806cb Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Wed, 5 Jun 2013 21:05:42 -0400 Subject: [PATCH] Updated protobufs. --HG-- extra : rebase_source : 33b658e2d314424a66e48aa987d13fae26bfeb24 --- public/engine/protobuf/netmessages.pb.cc | 5 +- public/engine/protobuf/netmessages.pb.h | 3 +- public/engine/protobuf/netmessages.proto | 1 - .../protobuf/dota_clientmessage_helpers.cpp | 1 + .../dota/protobuf/dota_clientmessages.pb.cc | 264 +++- .../dota/protobuf/dota_clientmessages.pb.h | 122 +- .../dota/protobuf/dota_clientmessages.proto | 6 + .../dota/protobuf/dota_commonmessages.pb.cc | 374 ++++- .../dota/protobuf/dota_commonmessages.pb.h | 233 +++ .../dota/protobuf/dota_commonmessages.proto | 14 + .../protobuf/dota_usermessage_helpers.cpp | 3 + .../dota/protobuf/dota_usermessages.pb.cc | 1335 +++++++++++++++-- .../dota/protobuf/dota_usermessages.pb.h | 734 ++++++++- .../dota/protobuf/dota_usermessages.proto | 24 + public/game/shared/protobuf/ai_activity.pb.cc | 45 +- public/game/shared/protobuf/ai_activity.pb.h | 27 +- public/game/shared/protobuf/ai_activity.proto | 23 + 17 files changed, 3031 insertions(+), 183 deletions(-) diff --git a/public/engine/protobuf/netmessages.pb.cc b/public/engine/protobuf/netmessages.pb.cc index 75cd4050..403550ff 100644 --- a/public/engine/protobuf/netmessages.pb.cc +++ b/public/engine/protobuf/netmessages.pb.cc @@ -1608,10 +1608,9 @@ void protobuf_AddDesc_netmessages_2eproto() { "\n\020svc_TempEntities\020\033\022\020\n\014svc_Prefetch\020\034\022\014" "\n\010svc_Menu\020\035\022\025\n\021svc_GameEventList\020\036\022\024\n\020s" "vc_GetCvarValue\020\037\022\026\n\022svc_PacketReliable\020" - " *u\n\027ESplitScreenMessageType\022\033\n\027MSG_SPLI" + " *V\n\027ESplitScreenMessageType\022\033\n\027MSG_SPLI" "TSCREEN_ADDUSER\020\000\022\036\n\032MSG_SPLITSCREEN_REM" - "OVEUSER\020\001\022\035\n\031MSG_SPLITSCREEN_TYPE_BITS\020\001" - "B\003\200\001\000", 6565); + "OVEUSER\020\001B\003\200\001\000", 6534); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "netmessages.proto", &protobuf_RegisterTypes); CMsgVector::default_instance_ = new CMsgVector(); diff --git a/public/engine/protobuf/netmessages.pb.h b/public/engine/protobuf/netmessages.pb.h index d1126079..ca118d31 100644 --- a/public/engine/protobuf/netmessages.pb.h +++ b/public/engine/protobuf/netmessages.pb.h @@ -229,8 +229,7 @@ inline bool SVC_Messages_Parse( } enum ESplitScreenMessageType { MSG_SPLITSCREEN_ADDUSER = 0, - MSG_SPLITSCREEN_REMOVEUSER = 1, - MSG_SPLITSCREEN_TYPE_BITS = 1 + MSG_SPLITSCREEN_REMOVEUSER = 1 }; bool ESplitScreenMessageType_IsValid(int value); const ESplitScreenMessageType ESplitScreenMessageType_MIN = MSG_SPLITSCREEN_ADDUSER; diff --git a/public/engine/protobuf/netmessages.proto b/public/engine/protobuf/netmessages.proto index 0e5d288a..6410ab42 100644 --- a/public/engine/protobuf/netmessages.proto +++ b/public/engine/protobuf/netmessages.proto @@ -420,7 +420,6 @@ enum ESplitScreenMessageType { MSG_SPLITSCREEN_ADDUSER = 0; MSG_SPLITSCREEN_REMOVEUSER = 1; - MSG_SPLITSCREEN_TYPE_BITS = 1; }; message CSVCMsg_SplitScreen diff --git a/public/game/shared/dota/protobuf/dota_clientmessage_helpers.cpp b/public/game/shared/dota/protobuf/dota_clientmessage_helpers.cpp index b368c298..ad44e9fa 100644 --- a/public/game/shared/dota/protobuf/dota_clientmessage_helpers.cpp +++ b/public/game/shared/dota/protobuf/dota_clientmessage_helpers.cpp @@ -30,6 +30,7 @@ CDotaClientMessageHelpers::CDotaClientMessageHelpers() SETUP_DOTA_MESSAGE( RequestGraphUpdate ); SETUP_DOTA_MESSAGE( ItemAlert ); SETUP_DOTA_MESSAGE( ChatWheel ); + SETUP_DOTA_MESSAGE( SendStatPopup ); } const google::protobuf::Message *CDotaClientMessageHelpers::GetPrototype( int index ) const diff --git a/public/game/shared/dota/protobuf/dota_clientmessages.pb.cc b/public/game/shared/dota/protobuf/dota_clientmessages.pb.cc index d3065646..902849b0 100644 --- a/public/game/shared/dota/protobuf/dota_clientmessages.pb.cc +++ b/public/game/shared/dota/protobuf/dota_clientmessages.pb.cc @@ -63,6 +63,9 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* CDOTAClientMsg_ChatWheel_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CDOTAClientMsg_ChatWheel_reflection_ = NULL; +const ::google::protobuf::Descriptor* CDOTAClientMsg_SendStatPopup_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CDOTAClientMsg_SendStatPopup_reflection_ = NULL; const ::google::protobuf::EnumDescriptor* EDotaClientMessages_descriptor_ = NULL; } // namespace @@ -314,6 +317,21 @@ void protobuf_AssignDesc_dota_5fclientmessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTAClientMsg_ChatWheel)); + CDOTAClientMsg_SendStatPopup_descriptor_ = file->message_type(16); + static const int CDOTAClientMsg_SendStatPopup_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAClientMsg_SendStatPopup, statpopup_), + }; + CDOTAClientMsg_SendStatPopup_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CDOTAClientMsg_SendStatPopup_descriptor_, + CDOTAClientMsg_SendStatPopup::default_instance_, + CDOTAClientMsg_SendStatPopup_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAClientMsg_SendStatPopup, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAClientMsg_SendStatPopup, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CDOTAClientMsg_SendStatPopup)); EDotaClientMessages_descriptor_ = file->enum_type(0); } @@ -359,6 +377,8 @@ void protobuf_RegisterTypes(const ::std::string&) { CDOTAClientMsg_RequestGraphUpdate_descriptor_, &CDOTAClientMsg_RequestGraphUpdate::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CDOTAClientMsg_ChatWheel_descriptor_, &CDOTAClientMsg_ChatWheel::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CDOTAClientMsg_SendStatPopup_descriptor_, &CDOTAClientMsg_SendStatPopup::default_instance()); } } // namespace @@ -396,6 +416,8 @@ void protobuf_ShutdownFile_dota_5fclientmessages_2eproto() { delete CDOTAClientMsg_RequestGraphUpdate_reflection_; delete CDOTAClientMsg_ChatWheel::default_instance_; delete CDOTAClientMsg_ChatWheel_reflection_; + delete CDOTAClientMsg_SendStatPopup::default_instance_; + delete CDOTAClientMsg_SendStatPopup_reflection_; } void protobuf_AddDesc_dota_5fclientmessages_2eproto() { @@ -432,18 +454,21 @@ void protobuf_AddDesc_dota_5fclientmessages_2eproto() { "line\030\001 \001(\0132\023.CDOTAMsg_WorldLine\"#\n!CDOTA" "ClientMsg_RequestGraphUpdate\"W\n\030CDOTACli" "entMsg_ChatWheel\022;\n\014chat_message\030\001 \001(\0162\026" - ".EDOTAChatWheelMessage:\rk_EDOTA_CW_Ok*\246\003" - "\n\023EDotaClientMessages\022\023\n\017DOTA_CM_MapLine" - "\020\001\022\027\n\023DOTA_CM_AspectRatio\020\002\022\023\n\017DOTA_CM_M" - "apPing\020\003\022\033\n\027DOTA_CM_UnitsAutoAttack\020\004\022\035\n" - "\031DOTA_CM_AutoPurchaseItems\020\005\022\025\n\021DOTA_CM_" - "TestItems\020\006\022\030\n\024DOTA_CM_SearchString\020\007\022\021\n" - "\rDOTA_CM_Pause\020\010\022\030\n\024DOTA_CM_ShopViewMode" - "\020\t\022\034\n\030DOTA_CM_SetUnitShareFlag\020\n\022\027\n\023DOTA" - "_CM_SwapRequest\020\013\022\026\n\022DOTA_CM_SwapAccept\020" - "\014\022\025\n\021DOTA_CM_WorldLine\020\r\022\036\n\032DOTA_CM_Requ" - "estGraphUpdate\020\016\022\025\n\021DOTA_CM_ItemAlert\020\017\022" - "\025\n\021DOTA_CM_ChatWheel\020\020B\005H\001\200\001\000", 1429); + ".EDOTAChatWheelMessage:\rk_EDOTA_CW_Ok\"J\n" + "\034CDOTAClientMsg_SendStatPopup\022*\n\tstatpop" + "up\030\001 \001(\0132\027.CDOTAMsg_SendStatPopup*\301\003\n\023ED" + "otaClientMessages\022\023\n\017DOTA_CM_MapLine\020\001\022\027" + "\n\023DOTA_CM_AspectRatio\020\002\022\023\n\017DOTA_CM_MapPi" + "ng\020\003\022\033\n\027DOTA_CM_UnitsAutoAttack\020\004\022\035\n\031DOT" + "A_CM_AutoPurchaseItems\020\005\022\025\n\021DOTA_CM_Test" + "Items\020\006\022\030\n\024DOTA_CM_SearchString\020\007\022\021\n\rDOT" + "A_CM_Pause\020\010\022\030\n\024DOTA_CM_ShopViewMode\020\t\022\034" + "\n\030DOTA_CM_SetUnitShareFlag\020\n\022\027\n\023DOTA_CM_" + "SwapRequest\020\013\022\026\n\022DOTA_CM_SwapAccept\020\014\022\025\n" + "\021DOTA_CM_WorldLine\020\r\022\036\n\032DOTA_CM_RequestG" + "raphUpdate\020\016\022\025\n\021DOTA_CM_ItemAlert\020\017\022\025\n\021D" + "OTA_CM_ChatWheel\020\020\022\031\n\025DOTA_CM_SendStatPo" + "pup\020\021B\005H\001\200\001\000", 1532); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "dota_clientmessages.proto", &protobuf_RegisterTypes); CDOTAClientMsg_MapPing::default_instance_ = new CDOTAClientMsg_MapPing(); @@ -462,6 +487,7 @@ void protobuf_AddDesc_dota_5fclientmessages_2eproto() { CDOTAClientMsg_WorldLine::default_instance_ = new CDOTAClientMsg_WorldLine(); CDOTAClientMsg_RequestGraphUpdate::default_instance_ = new CDOTAClientMsg_RequestGraphUpdate(); CDOTAClientMsg_ChatWheel::default_instance_ = new CDOTAClientMsg_ChatWheel(); + CDOTAClientMsg_SendStatPopup::default_instance_ = new CDOTAClientMsg_SendStatPopup(); CDOTAClientMsg_MapPing::default_instance_->InitAsDefaultInstance(); CDOTAClientMsg_ItemAlert::default_instance_->InitAsDefaultInstance(); CDOTAClientMsg_MapLine::default_instance_->InitAsDefaultInstance(); @@ -478,6 +504,7 @@ void protobuf_AddDesc_dota_5fclientmessages_2eproto() { CDOTAClientMsg_WorldLine::default_instance_->InitAsDefaultInstance(); CDOTAClientMsg_RequestGraphUpdate::default_instance_->InitAsDefaultInstance(); CDOTAClientMsg_ChatWheel::default_instance_->InitAsDefaultInstance(); + CDOTAClientMsg_SendStatPopup::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_dota_5fclientmessages_2eproto); } @@ -510,6 +537,7 @@ bool EDotaClientMessages_IsValid(int value) { case 14: case 15: case 16: + case 17: return true; default: return false; @@ -3857,6 +3885,218 @@ void CDOTAClientMsg_ChatWheel::Swap(CDOTAClientMsg_ChatWheel* other) { } +// =================================================================== + +#ifndef _MSC_VER +const int CDOTAClientMsg_SendStatPopup::kStatpopupFieldNumber; +#endif // !_MSC_VER + +CDOTAClientMsg_SendStatPopup::CDOTAClientMsg_SendStatPopup() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CDOTAClientMsg_SendStatPopup::InitAsDefaultInstance() { + statpopup_ = const_cast< ::CDOTAMsg_SendStatPopup*>(&::CDOTAMsg_SendStatPopup::default_instance()); +} + +CDOTAClientMsg_SendStatPopup::CDOTAClientMsg_SendStatPopup(const CDOTAClientMsg_SendStatPopup& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CDOTAClientMsg_SendStatPopup::SharedCtor() { + _cached_size_ = 0; + statpopup_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CDOTAClientMsg_SendStatPopup::~CDOTAClientMsg_SendStatPopup() { + SharedDtor(); +} + +void CDOTAClientMsg_SendStatPopup::SharedDtor() { + if (this != default_instance_) { + delete statpopup_; + } +} + +void CDOTAClientMsg_SendStatPopup::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CDOTAClientMsg_SendStatPopup::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CDOTAClientMsg_SendStatPopup_descriptor_; +} + +const CDOTAClientMsg_SendStatPopup& CDOTAClientMsg_SendStatPopup::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_dota_5fclientmessages_2eproto(); return *default_instance_; +} + +CDOTAClientMsg_SendStatPopup* CDOTAClientMsg_SendStatPopup::default_instance_ = NULL; + +CDOTAClientMsg_SendStatPopup* CDOTAClientMsg_SendStatPopup::New() const { + return new CDOTAClientMsg_SendStatPopup; +} + +void CDOTAClientMsg_SendStatPopup::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_statpopup()) { + if (statpopup_ != NULL) statpopup_->::CDOTAMsg_SendStatPopup::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CDOTAClientMsg_SendStatPopup::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .CDOTAMsg_SendStatPopup statpopup = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_statpopup())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CDOTAClientMsg_SendStatPopup::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .CDOTAMsg_SendStatPopup statpopup = 1; + if (has_statpopup()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->statpopup(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CDOTAClientMsg_SendStatPopup::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .CDOTAMsg_SendStatPopup statpopup = 1; + if (has_statpopup()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->statpopup(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CDOTAClientMsg_SendStatPopup::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .CDOTAMsg_SendStatPopup statpopup = 1; + if (has_statpopup()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->statpopup()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CDOTAClientMsg_SendStatPopup::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CDOTAClientMsg_SendStatPopup* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CDOTAClientMsg_SendStatPopup::MergeFrom(const CDOTAClientMsg_SendStatPopup& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_statpopup()) { + mutable_statpopup()->::CDOTAMsg_SendStatPopup::MergeFrom(from.statpopup()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CDOTAClientMsg_SendStatPopup::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CDOTAClientMsg_SendStatPopup::CopyFrom(const CDOTAClientMsg_SendStatPopup& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CDOTAClientMsg_SendStatPopup::IsInitialized() const { + + return true; +} + +void CDOTAClientMsg_SendStatPopup::Swap(CDOTAClientMsg_SendStatPopup* other) { + if (other != this) { + std::swap(statpopup_, other->statpopup_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CDOTAClientMsg_SendStatPopup::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CDOTAClientMsg_SendStatPopup_descriptor_; + metadata.reflection = CDOTAClientMsg_SendStatPopup_reflection_; + return metadata; +} + + // @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(global_scope) diff --git a/public/game/shared/dota/protobuf/dota_clientmessages.pb.h b/public/game/shared/dota/protobuf/dota_clientmessages.pb.h index baf2cdb6..59626e47 100644 --- a/public/game/shared/dota/protobuf/dota_clientmessages.pb.h +++ b/public/game/shared/dota/protobuf/dota_clientmessages.pb.h @@ -49,6 +49,7 @@ class CDOTAClientMsg_SwapAccept; class CDOTAClientMsg_WorldLine; class CDOTAClientMsg_RequestGraphUpdate; class CDOTAClientMsg_ChatWheel; +class CDOTAClientMsg_SendStatPopup; enum EDotaClientMessages { DOTA_CM_MapLine = 1, @@ -66,11 +67,12 @@ enum EDotaClientMessages { DOTA_CM_WorldLine = 13, DOTA_CM_RequestGraphUpdate = 14, DOTA_CM_ItemAlert = 15, - DOTA_CM_ChatWheel = 16 + DOTA_CM_ChatWheel = 16, + DOTA_CM_SendStatPopup = 17 }; bool EDotaClientMessages_IsValid(int value); const EDotaClientMessages EDotaClientMessages_MIN = DOTA_CM_MapLine; -const EDotaClientMessages EDotaClientMessages_MAX = DOTA_CM_ChatWheel; +const EDotaClientMessages EDotaClientMessages_MAX = DOTA_CM_SendStatPopup; const int EDotaClientMessages_ARRAYSIZE = EDotaClientMessages_MAX + 1; const ::google::protobuf::EnumDescriptor* EDotaClientMessages_descriptor(); @@ -1407,6 +1409,89 @@ class CDOTAClientMsg_ChatWheel : public ::google::protobuf::Message { void InitAsDefaultInstance(); static CDOTAClientMsg_ChatWheel* default_instance_; }; +// ------------------------------------------------------------------- + +class CDOTAClientMsg_SendStatPopup : public ::google::protobuf::Message { + public: + CDOTAClientMsg_SendStatPopup(); + virtual ~CDOTAClientMsg_SendStatPopup(); + + CDOTAClientMsg_SendStatPopup(const CDOTAClientMsg_SendStatPopup& from); + + inline CDOTAClientMsg_SendStatPopup& operator=(const CDOTAClientMsg_SendStatPopup& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CDOTAClientMsg_SendStatPopup& default_instance(); + + void Swap(CDOTAClientMsg_SendStatPopup* other); + + // implements Message ---------------------------------------------- + + CDOTAClientMsg_SendStatPopup* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CDOTAClientMsg_SendStatPopup& from); + void MergeFrom(const CDOTAClientMsg_SendStatPopup& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .CDOTAMsg_SendStatPopup statpopup = 1; + inline bool has_statpopup() const; + inline void clear_statpopup(); + static const int kStatpopupFieldNumber = 1; + inline const ::CDOTAMsg_SendStatPopup& statpopup() const; + inline ::CDOTAMsg_SendStatPopup* mutable_statpopup(); + inline ::CDOTAMsg_SendStatPopup* release_statpopup(); + + // @@protoc_insertion_point(class_scope:CDOTAClientMsg_SendStatPopup) + private: + inline void set_has_statpopup(); + inline void clear_has_statpopup(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::CDOTAMsg_SendStatPopup* statpopup_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_dota_5fclientmessages_2eproto(); + friend void protobuf_AssignDesc_dota_5fclientmessages_2eproto(); + friend void protobuf_ShutdownFile_dota_5fclientmessages_2eproto(); + + void InitAsDefaultInstance(); + static CDOTAClientMsg_SendStatPopup* default_instance_; +}; // =================================================================== @@ -1927,6 +2012,39 @@ inline void CDOTAClientMsg_ChatWheel::set_chat_message(EDOTAChatWheelMessage val chat_message_ = value; } +// ------------------------------------------------------------------- + +// CDOTAClientMsg_SendStatPopup + +// optional .CDOTAMsg_SendStatPopup statpopup = 1; +inline bool CDOTAClientMsg_SendStatPopup::has_statpopup() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CDOTAClientMsg_SendStatPopup::set_has_statpopup() { + _has_bits_[0] |= 0x00000001u; +} +inline void CDOTAClientMsg_SendStatPopup::clear_has_statpopup() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CDOTAClientMsg_SendStatPopup::clear_statpopup() { + if (statpopup_ != NULL) statpopup_->::CDOTAMsg_SendStatPopup::Clear(); + clear_has_statpopup(); +} +inline const ::CDOTAMsg_SendStatPopup& CDOTAClientMsg_SendStatPopup::statpopup() const { + return statpopup_ != NULL ? *statpopup_ : *default_instance_->statpopup_; +} +inline ::CDOTAMsg_SendStatPopup* CDOTAClientMsg_SendStatPopup::mutable_statpopup() { + set_has_statpopup(); + if (statpopup_ == NULL) statpopup_ = new ::CDOTAMsg_SendStatPopup; + return statpopup_; +} +inline ::CDOTAMsg_SendStatPopup* CDOTAClientMsg_SendStatPopup::release_statpopup() { + clear_has_statpopup(); + ::CDOTAMsg_SendStatPopup* temp = statpopup_; + statpopup_ = NULL; + return temp; +} + // @@protoc_insertion_point(namespace_scope) diff --git a/public/game/shared/dota/protobuf/dota_clientmessages.proto b/public/game/shared/dota/protobuf/dota_clientmessages.proto index 134128c4..af886ef6 100644 --- a/public/game/shared/dota/protobuf/dota_clientmessages.proto +++ b/public/game/shared/dota/protobuf/dota_clientmessages.proto @@ -86,6 +86,7 @@ enum EDotaClientMessages DOTA_CM_RequestGraphUpdate = 14; DOTA_CM_ItemAlert = 15; DOTA_CM_ChatWheel = 16; + DOTA_CM_SendStatPopup = 17; } //============================================================================= @@ -170,3 +171,8 @@ message CDOTAClientMsg_ChatWheel optional EDOTAChatWheelMessage chat_message = 1 [default = k_EDOTA_CW_Ok]; } +message CDOTAClientMsg_SendStatPopup +{ + optional CDOTAMsg_SendStatPopup statpopup = 1; +} + diff --git a/public/game/shared/dota/protobuf/dota_commonmessages.pb.cc b/public/game/shared/dota/protobuf/dota_commonmessages.pb.cc index 481455fa..027a1825 100644 --- a/public/game/shared/dota/protobuf/dota_commonmessages.pb.cc +++ b/public/game/shared/dota/protobuf/dota_commonmessages.pb.cc @@ -27,7 +27,11 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* CDOTAMsg_WorldLine_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CDOTAMsg_WorldLine_reflection_ = NULL; +const ::google::protobuf::Descriptor* CDOTAMsg_SendStatPopup_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CDOTAMsg_SendStatPopup_reflection_ = NULL; const ::google::protobuf::EnumDescriptor* EDOTAChatWheelMessage_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* EDOTAStatPopupTypes_descriptor_ = NULL; } // namespace @@ -109,7 +113,25 @@ void protobuf_AssignDesc_dota_5fcommonmessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTAMsg_WorldLine)); + CDOTAMsg_SendStatPopup_descriptor_ = file->message_type(4); + static const int CDOTAMsg_SendStatPopup_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAMsg_SendStatPopup, style_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAMsg_SendStatPopup, stat_strings_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAMsg_SendStatPopup, stat_images_), + }; + CDOTAMsg_SendStatPopup_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CDOTAMsg_SendStatPopup_descriptor_, + CDOTAMsg_SendStatPopup::default_instance_, + CDOTAMsg_SendStatPopup_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAMsg_SendStatPopup, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAMsg_SendStatPopup, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CDOTAMsg_SendStatPopup)); EDOTAChatWheelMessage_descriptor_ = file->enum_type(0); + EDOTAStatPopupTypes_descriptor_ = file->enum_type(1); } namespace { @@ -130,6 +152,8 @@ void protobuf_RegisterTypes(const ::std::string&) { CDOTAMsg_MapLine_descriptor_, &CDOTAMsg_MapLine::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CDOTAMsg_WorldLine_descriptor_, &CDOTAMsg_WorldLine::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CDOTAMsg_SendStatPopup_descriptor_, &CDOTAMsg_SendStatPopup::default_instance()); } } // namespace @@ -143,6 +167,8 @@ void protobuf_ShutdownFile_dota_5fcommonmessages_2eproto() { delete CDOTAMsg_MapLine_reflection_; delete CDOTAMsg_WorldLine::default_instance_; delete CDOTAMsg_WorldLine_reflection_; + delete CDOTAMsg_SendStatPopup::default_instance_; + delete CDOTAMsg_SendStatPopup_reflection_; } void protobuf_AddDesc_dota_5fcommonmessages_2eproto() { @@ -163,25 +189,32 @@ void protobuf_AddDesc_dota_5fcommonmessages_2eproto() { "Line\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022\017\n\007initial\030\003 " "\001(\010\"S\n\022CDOTAMsg_WorldLine\022\t\n\001x\030\001 \001(\005\022\t\n\001" "y\030\002 \001(\005\022\t\n\001z\030\003 \001(\005\022\017\n\007initial\030\004 \001(\010\022\013\n\003e" - "nd\030\005 \001(\010*\267\002\n\025EDOTAChatWheelMessage\022\021\n\rk_" - "EDOTA_CW_Ok\020\000\022\023\n\017k_EDOTA_CW_Care\020\001\022\026\n\022k_" - "EDOTA_CW_GetBack\020\002\022\030\n\024k_EDOTA_CW_NeedWar" - "ds\020\003\022\023\n\017k_EDOTA_CW_Stun\020\004\022\023\n\017k_EDOTA_CW_" - "Help\020\005\022\023\n\017k_EDOTA_CW_Push\020\006\022\026\n\022k_EDOTA_C" - "W_GoodJob\020\007\022\026\n\022k_EDOTA_CW_Missing\020\010\022\032\n\026k" - "_EDOTA_CW_Missing_Top\020\t\022\032\n\026k_EDOTA_CW_Mi" - "ssing_Mid\020\n\022\035\n\031k_EDOTA_CW_Missing_Bottom" - "\020\013B\005H\001\200\001\000", 689); + "nd\030\005 \001(\010\"~\n\026CDOTAMsg_SendStatPopup\0229\n\005st" + "yle\030\001 \001(\0162\024.EDOTAStatPopupTypes:\024k_EDOTA" + "_SPT_Textline\022\024\n\014stat_strings\030\002 \003(\t\022\023\n\013s" + "tat_images\030\003 \003(\005*\267\002\n\025EDOTAChatWheelMessa" + "ge\022\021\n\rk_EDOTA_CW_Ok\020\000\022\023\n\017k_EDOTA_CW_Care" + "\020\001\022\026\n\022k_EDOTA_CW_GetBack\020\002\022\030\n\024k_EDOTA_CW" + "_NeedWards\020\003\022\023\n\017k_EDOTA_CW_Stun\020\004\022\023\n\017k_E" + "DOTA_CW_Help\020\005\022\023\n\017k_EDOTA_CW_Push\020\006\022\026\n\022k" + "_EDOTA_CW_GoodJob\020\007\022\026\n\022k_EDOTA_CW_Missin" + "g\020\010\022\032\n\026k_EDOTA_CW_Missing_Top\020\t\022\032\n\026k_EDO" + "TA_CW_Missing_Mid\020\n\022\035\n\031k_EDOTA_CW_Missin" + "g_Bottom\020\013*\\\n\023EDOTAStatPopupTypes\022\030\n\024k_E" + "DOTA_SPT_Textline\020\000\022\025\n\021k_EDOTA_SPT_Basic" + "\020\001\022\024\n\020k_EDOTA_SPT_Poll\020\002B\005H\001\200\001\000", 911); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "dota_commonmessages.proto", &protobuf_RegisterTypes); CDOTAMsg_LocationPing::default_instance_ = new CDOTAMsg_LocationPing(); CDOTAMsg_ItemAlert::default_instance_ = new CDOTAMsg_ItemAlert(); CDOTAMsg_MapLine::default_instance_ = new CDOTAMsg_MapLine(); CDOTAMsg_WorldLine::default_instance_ = new CDOTAMsg_WorldLine(); + CDOTAMsg_SendStatPopup::default_instance_ = new CDOTAMsg_SendStatPopup(); CDOTAMsg_LocationPing::default_instance_->InitAsDefaultInstance(); CDOTAMsg_ItemAlert::default_instance_->InitAsDefaultInstance(); CDOTAMsg_MapLine::default_instance_->InitAsDefaultInstance(); CDOTAMsg_WorldLine::default_instance_->InitAsDefaultInstance(); + CDOTAMsg_SendStatPopup::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_dota_5fcommonmessages_2eproto); } @@ -216,6 +249,21 @@ bool EDOTAChatWheelMessage_IsValid(int value) { } } +const ::google::protobuf::EnumDescriptor* EDOTAStatPopupTypes_descriptor() { + protobuf_AssignDescriptorsOnce(); + return EDOTAStatPopupTypes_descriptor_; +} +bool EDOTAStatPopupTypes_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + // =================================================================== @@ -1477,6 +1525,314 @@ void CDOTAMsg_WorldLine::Swap(CDOTAMsg_WorldLine* other) { } +// =================================================================== + +#ifndef _MSC_VER +const int CDOTAMsg_SendStatPopup::kStyleFieldNumber; +const int CDOTAMsg_SendStatPopup::kStatStringsFieldNumber; +const int CDOTAMsg_SendStatPopup::kStatImagesFieldNumber; +#endif // !_MSC_VER + +CDOTAMsg_SendStatPopup::CDOTAMsg_SendStatPopup() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CDOTAMsg_SendStatPopup::InitAsDefaultInstance() { +} + +CDOTAMsg_SendStatPopup::CDOTAMsg_SendStatPopup(const CDOTAMsg_SendStatPopup& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CDOTAMsg_SendStatPopup::SharedCtor() { + _cached_size_ = 0; + style_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CDOTAMsg_SendStatPopup::~CDOTAMsg_SendStatPopup() { + SharedDtor(); +} + +void CDOTAMsg_SendStatPopup::SharedDtor() { + if (this != default_instance_) { + } +} + +void CDOTAMsg_SendStatPopup::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CDOTAMsg_SendStatPopup::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CDOTAMsg_SendStatPopup_descriptor_; +} + +const CDOTAMsg_SendStatPopup& CDOTAMsg_SendStatPopup::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_dota_5fcommonmessages_2eproto(); return *default_instance_; +} + +CDOTAMsg_SendStatPopup* CDOTAMsg_SendStatPopup::default_instance_ = NULL; + +CDOTAMsg_SendStatPopup* CDOTAMsg_SendStatPopup::New() const { + return new CDOTAMsg_SendStatPopup; +} + +void CDOTAMsg_SendStatPopup::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + style_ = 0; + } + stat_strings_.Clear(); + stat_images_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CDOTAMsg_SendStatPopup::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .EDOTAStatPopupTypes style = 1 [default = k_EDOTA_SPT_Textline]; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (EDOTAStatPopupTypes_IsValid(value)) { + set_style(static_cast< EDOTAStatPopupTypes >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_stat_strings; + break; + } + + // repeated string stat_strings = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_stat_strings: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_stat_strings())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->stat_strings(0).data(), this->stat_strings(0).length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_stat_strings; + if (input->ExpectTag(24)) goto parse_stat_images; + break; + } + + // repeated int32 stat_images = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_stat_images: + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + 1, 24, input, this->mutable_stat_images()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, this->mutable_stat_images()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_stat_images; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CDOTAMsg_SendStatPopup::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .EDOTAStatPopupTypes style = 1 [default = k_EDOTA_SPT_Textline]; + if (has_style()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->style(), output); + } + + // repeated string stat_strings = 2; + for (int i = 0; i < this->stat_strings_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->stat_strings(i).data(), this->stat_strings(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->stat_strings(i), output); + } + + // repeated int32 stat_images = 3; + for (int i = 0; i < this->stat_images_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteInt32( + 3, this->stat_images(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CDOTAMsg_SendStatPopup::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .EDOTAStatPopupTypes style = 1 [default = k_EDOTA_SPT_Textline]; + if (has_style()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->style(), target); + } + + // repeated string stat_strings = 2; + for (int i = 0; i < this->stat_strings_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->stat_strings(i).data(), this->stat_strings(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(2, this->stat_strings(i), target); + } + + // repeated int32 stat_images = 3; + for (int i = 0; i < this->stat_images_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArray(3, this->stat_images(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CDOTAMsg_SendStatPopup::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .EDOTAStatPopupTypes style = 1 [default = k_EDOTA_SPT_Textline]; + if (has_style()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->style()); + } + + } + // repeated string stat_strings = 2; + total_size += 1 * this->stat_strings_size(); + for (int i = 0; i < this->stat_strings_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->stat_strings(i)); + } + + // repeated int32 stat_images = 3; + { + int data_size = 0; + for (int i = 0; i < this->stat_images_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + Int32Size(this->stat_images(i)); + } + total_size += 1 * this->stat_images_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CDOTAMsg_SendStatPopup::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CDOTAMsg_SendStatPopup* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CDOTAMsg_SendStatPopup::MergeFrom(const CDOTAMsg_SendStatPopup& from) { + GOOGLE_CHECK_NE(&from, this); + stat_strings_.MergeFrom(from.stat_strings_); + stat_images_.MergeFrom(from.stat_images_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_style()) { + set_style(from.style()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CDOTAMsg_SendStatPopup::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CDOTAMsg_SendStatPopup::CopyFrom(const CDOTAMsg_SendStatPopup& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CDOTAMsg_SendStatPopup::IsInitialized() const { + + return true; +} + +void CDOTAMsg_SendStatPopup::Swap(CDOTAMsg_SendStatPopup* other) { + if (other != this) { + std::swap(style_, other->style_); + stat_strings_.Swap(&other->stat_strings_); + stat_images_.Swap(&other->stat_images_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CDOTAMsg_SendStatPopup::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CDOTAMsg_SendStatPopup_descriptor_; + metadata.reflection = CDOTAMsg_SendStatPopup_reflection_; + return metadata; +} + + // @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(global_scope) diff --git a/public/game/shared/dota/protobuf/dota_commonmessages.pb.h b/public/game/shared/dota/protobuf/dota_commonmessages.pb.h index 7d818765..8b5e502b 100644 --- a/public/game/shared/dota/protobuf/dota_commonmessages.pb.h +++ b/public/game/shared/dota/protobuf/dota_commonmessages.pb.h @@ -36,6 +36,7 @@ class CDOTAMsg_LocationPing; class CDOTAMsg_ItemAlert; class CDOTAMsg_MapLine; class CDOTAMsg_WorldLine; +class CDOTAMsg_SendStatPopup; enum EDOTAChatWheelMessage { k_EDOTA_CW_Ok = 0, @@ -66,6 +67,26 @@ inline bool EDOTAChatWheelMessage_Parse( return ::google::protobuf::internal::ParseNamedEnum( EDOTAChatWheelMessage_descriptor(), name, value); } +enum EDOTAStatPopupTypes { + k_EDOTA_SPT_Textline = 0, + k_EDOTA_SPT_Basic = 1, + k_EDOTA_SPT_Poll = 2 +}; +bool EDOTAStatPopupTypes_IsValid(int value); +const EDOTAStatPopupTypes EDOTAStatPopupTypes_MIN = k_EDOTA_SPT_Textline; +const EDOTAStatPopupTypes EDOTAStatPopupTypes_MAX = k_EDOTA_SPT_Poll; +const int EDOTAStatPopupTypes_ARRAYSIZE = EDOTAStatPopupTypes_MAX + 1; + +const ::google::protobuf::EnumDescriptor* EDOTAStatPopupTypes_descriptor(); +inline const ::std::string& EDOTAStatPopupTypes_Name(EDOTAStatPopupTypes value) { + return ::google::protobuf::internal::NameOfEnum( + EDOTAStatPopupTypes_descriptor(), value); +} +inline bool EDOTAStatPopupTypes_Parse( + const ::std::string& name, EDOTAStatPopupTypes* value) { + return ::google::protobuf::internal::ParseNamedEnum( + EDOTAStatPopupTypes_descriptor(), name, value); +} // =================================================================== class CDOTAMsg_LocationPing : public ::google::protobuf::Message { @@ -504,6 +525,118 @@ class CDOTAMsg_WorldLine : public ::google::protobuf::Message { void InitAsDefaultInstance(); static CDOTAMsg_WorldLine* default_instance_; }; +// ------------------------------------------------------------------- + +class CDOTAMsg_SendStatPopup : public ::google::protobuf::Message { + public: + CDOTAMsg_SendStatPopup(); + virtual ~CDOTAMsg_SendStatPopup(); + + CDOTAMsg_SendStatPopup(const CDOTAMsg_SendStatPopup& from); + + inline CDOTAMsg_SendStatPopup& operator=(const CDOTAMsg_SendStatPopup& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CDOTAMsg_SendStatPopup& default_instance(); + + void Swap(CDOTAMsg_SendStatPopup* other); + + // implements Message ---------------------------------------------- + + CDOTAMsg_SendStatPopup* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CDOTAMsg_SendStatPopup& from); + void MergeFrom(const CDOTAMsg_SendStatPopup& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .EDOTAStatPopupTypes style = 1 [default = k_EDOTA_SPT_Textline]; + inline bool has_style() const; + inline void clear_style(); + static const int kStyleFieldNumber = 1; + inline EDOTAStatPopupTypes style() const; + inline void set_style(EDOTAStatPopupTypes value); + + // repeated string stat_strings = 2; + inline int stat_strings_size() const; + inline void clear_stat_strings(); + static const int kStatStringsFieldNumber = 2; + inline const ::std::string& stat_strings(int index) const; + inline ::std::string* mutable_stat_strings(int index); + inline void set_stat_strings(int index, const ::std::string& value); + inline void set_stat_strings(int index, const char* value); + inline void set_stat_strings(int index, const char* value, size_t size); + inline ::std::string* add_stat_strings(); + inline void add_stat_strings(const ::std::string& value); + inline void add_stat_strings(const char* value); + inline void add_stat_strings(const char* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& stat_strings() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_stat_strings(); + + // repeated int32 stat_images = 3; + inline int stat_images_size() const; + inline void clear_stat_images(); + static const int kStatImagesFieldNumber = 3; + inline ::google::protobuf::int32 stat_images(int index) const; + inline void set_stat_images(int index, ::google::protobuf::int32 value); + inline void add_stat_images(::google::protobuf::int32 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& + stat_images() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* + mutable_stat_images(); + + // @@protoc_insertion_point(class_scope:CDOTAMsg_SendStatPopup) + private: + inline void set_has_style(); + inline void clear_has_style(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::std::string> stat_strings_; + ::google::protobuf::RepeatedField< ::google::protobuf::int32 > stat_images_; + int style_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_dota_5fcommonmessages_2eproto(); + friend void protobuf_AssignDesc_dota_5fcommonmessages_2eproto(); + friend void protobuf_ShutdownFile_dota_5fcommonmessages_2eproto(); + + void InitAsDefaultInstance(); + static CDOTAMsg_SendStatPopup* default_instance_; +}; // =================================================================== @@ -853,6 +986,102 @@ inline void CDOTAMsg_WorldLine::set_end(bool value) { end_ = value; } +// ------------------------------------------------------------------- + +// CDOTAMsg_SendStatPopup + +// optional .EDOTAStatPopupTypes style = 1 [default = k_EDOTA_SPT_Textline]; +inline bool CDOTAMsg_SendStatPopup::has_style() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CDOTAMsg_SendStatPopup::set_has_style() { + _has_bits_[0] |= 0x00000001u; +} +inline void CDOTAMsg_SendStatPopup::clear_has_style() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CDOTAMsg_SendStatPopup::clear_style() { + style_ = 0; + clear_has_style(); +} +inline EDOTAStatPopupTypes CDOTAMsg_SendStatPopup::style() const { + return static_cast< EDOTAStatPopupTypes >(style_); +} +inline void CDOTAMsg_SendStatPopup::set_style(EDOTAStatPopupTypes value) { + GOOGLE_DCHECK(EDOTAStatPopupTypes_IsValid(value)); + set_has_style(); + style_ = value; +} + +// repeated string stat_strings = 2; +inline int CDOTAMsg_SendStatPopup::stat_strings_size() const { + return stat_strings_.size(); +} +inline void CDOTAMsg_SendStatPopup::clear_stat_strings() { + stat_strings_.Clear(); +} +inline const ::std::string& CDOTAMsg_SendStatPopup::stat_strings(int index) const { + return stat_strings_.Get(index); +} +inline ::std::string* CDOTAMsg_SendStatPopup::mutable_stat_strings(int index) { + return stat_strings_.Mutable(index); +} +inline void CDOTAMsg_SendStatPopup::set_stat_strings(int index, const ::std::string& value) { + stat_strings_.Mutable(index)->assign(value); +} +inline void CDOTAMsg_SendStatPopup::set_stat_strings(int index, const char* value) { + stat_strings_.Mutable(index)->assign(value); +} +inline void CDOTAMsg_SendStatPopup::set_stat_strings(int index, const char* value, size_t size) { + stat_strings_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* CDOTAMsg_SendStatPopup::add_stat_strings() { + return stat_strings_.Add(); +} +inline void CDOTAMsg_SendStatPopup::add_stat_strings(const ::std::string& value) { + stat_strings_.Add()->assign(value); +} +inline void CDOTAMsg_SendStatPopup::add_stat_strings(const char* value) { + stat_strings_.Add()->assign(value); +} +inline void CDOTAMsg_SendStatPopup::add_stat_strings(const char* value, size_t size) { + stat_strings_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +CDOTAMsg_SendStatPopup::stat_strings() const { + return stat_strings_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +CDOTAMsg_SendStatPopup::mutable_stat_strings() { + return &stat_strings_; +} + +// repeated int32 stat_images = 3; +inline int CDOTAMsg_SendStatPopup::stat_images_size() const { + return stat_images_.size(); +} +inline void CDOTAMsg_SendStatPopup::clear_stat_images() { + stat_images_.Clear(); +} +inline ::google::protobuf::int32 CDOTAMsg_SendStatPopup::stat_images(int index) const { + return stat_images_.Get(index); +} +inline void CDOTAMsg_SendStatPopup::set_stat_images(int index, ::google::protobuf::int32 value) { + stat_images_.Set(index, value); +} +inline void CDOTAMsg_SendStatPopup::add_stat_images(::google::protobuf::int32 value) { + stat_images_.Add(value); +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& +CDOTAMsg_SendStatPopup::stat_images() const { + return stat_images_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* +CDOTAMsg_SendStatPopup::mutable_stat_images() { + return &stat_images_; +} + // @@protoc_insertion_point(namespace_scope) @@ -864,6 +1093,10 @@ template <> inline const EnumDescriptor* GetEnumDescriptor< EDOTAChatWheelMessage>() { return EDOTAChatWheelMessage_descriptor(); } +template <> +inline const EnumDescriptor* GetEnumDescriptor< EDOTAStatPopupTypes>() { + return EDOTAStatPopupTypes_descriptor(); +} } // namespace google } // namespace protobuf diff --git a/public/game/shared/dota/protobuf/dota_commonmessages.proto b/public/game/shared/dota/protobuf/dota_commonmessages.proto index 84ed257c..b8712c22 100644 --- a/public/game/shared/dota/protobuf/dota_commonmessages.proto +++ b/public/game/shared/dota/protobuf/dota_commonmessages.proto @@ -80,6 +80,13 @@ enum EDOTAChatWheelMessage k_EDOTA_CW_Missing_Bottom = 11; } +enum EDOTAStatPopupTypes +{ + k_EDOTA_SPT_Textline = 0; + k_EDOTA_SPT_Basic = 1; + k_EDOTA_SPT_Poll = 2; +} + message CDOTAMsg_LocationPing { optional int32 x = 1; @@ -111,6 +118,13 @@ message CDOTAMsg_WorldLine optional bool end = 5; } +message CDOTAMsg_SendStatPopup +{ + optional EDOTAStatPopupTypes style = 1 [default = k_EDOTA_SPT_Textline]; + repeated string stat_strings = 2; + repeated int32 stat_images = 3; +} + //============================================================================= diff --git a/public/game/shared/dota/protobuf/dota_usermessage_helpers.cpp b/public/game/shared/dota/protobuf/dota_usermessage_helpers.cpp index d4ca6f87..c940e60b 100644 --- a/public/game/shared/dota/protobuf/dota_usermessage_helpers.cpp +++ b/public/game/shared/dota/protobuf/dota_usermessage_helpers.cpp @@ -99,6 +99,9 @@ CDotaUsermessageHelpers::CDotaUsermessageHelpers() SETUP_MESSAGE_MANUAL( DOTA_UM_GamerulesStateChanged, CDOTA_UM_GamerulesStateChanged, GamerulesStateChanged ); SETUP_DOTA_MESSAGE( ShowSurvey ); SETUP_DOTA_MESSAGE( TutorialFade ); + SETUP_DOTA_MESSAGE( AddQuestLogEntry ); + SETUP_DOTA_MESSAGE( SendStatPopup ); + SETUP_DOTA_MESSAGE( TutorialFinish ); } const google::protobuf::Message *CDotaUsermessageHelpers::GetPrototype( int index ) const diff --git a/public/game/shared/dota/protobuf/dota_usermessages.pb.cc b/public/game/shared/dota/protobuf/dota_usermessages.pb.cc index 414862a4..47fbe602 100644 --- a/public/game/shared/dota/protobuf/dota_usermessages.pb.cc +++ b/public/game/shared/dota/protobuf/dota_usermessages.pb.cc @@ -181,6 +181,9 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* CDOTAUserMsg_TutorialTipInfo_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CDOTAUserMsg_TutorialTipInfo_reflection_ = NULL; +const ::google::protobuf::Descriptor* CDOTAUserMsg_TutorialFinish_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CDOTAUserMsg_TutorialFinish_reflection_ = NULL; const ::google::protobuf::Descriptor* CDOTAUserMsg_WorldLine_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CDOTAUserMsg_WorldLine_reflection_ = NULL; @@ -211,6 +214,12 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* CDOTA_UM_GamerulesStateChanged_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* CDOTA_UM_GamerulesStateChanged_reflection_ = NULL; +const ::google::protobuf::Descriptor* CDOTAUserMsg_AddQuestLogEntry_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CDOTAUserMsg_AddQuestLogEntry_reflection_ = NULL; +const ::google::protobuf::Descriptor* CDOTAUserMsg_SendStatPopup_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CDOTAUserMsg_SendStatPopup_reflection_ = NULL; const ::google::protobuf::EnumDescriptor* EDotaUserMessages_descriptor_ = NULL; const ::google::protobuf::EnumDescriptor* DOTA_CHAT_MESSAGE_descriptor_ = NULL; const ::google::protobuf::EnumDescriptor* DOTA_NO_BATTLE_POINTS_REASONS_descriptor_ = NULL; @@ -1163,7 +1172,24 @@ void protobuf_AssignDesc_dota_5fusermessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTAUserMsg_TutorialTipInfo)); - CDOTAUserMsg_WorldLine_descriptor_ = file->message_type(34); + CDOTAUserMsg_TutorialFinish_descriptor_ = file->message_type(34); + static const int CDOTAUserMsg_TutorialFinish_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_TutorialFinish, heading_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_TutorialFinish, emblem_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_TutorialFinish, body_), + }; + CDOTAUserMsg_TutorialFinish_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CDOTAUserMsg_TutorialFinish_descriptor_, + CDOTAUserMsg_TutorialFinish::default_instance_, + CDOTAUserMsg_TutorialFinish_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_TutorialFinish, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_TutorialFinish, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CDOTAUserMsg_TutorialFinish)); + CDOTAUserMsg_WorldLine_descriptor_ = file->message_type(35); static const int CDOTAUserMsg_WorldLine_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_WorldLine, player_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_WorldLine, worldline_), @@ -1179,7 +1205,7 @@ void protobuf_AssignDesc_dota_5fusermessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTAUserMsg_WorldLine)); - CDOTAUserMsg_TournamentDrop_descriptor_ = file->message_type(35); + CDOTAUserMsg_TournamentDrop_descriptor_ = file->message_type(36); static const int CDOTAUserMsg_TournamentDrop_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_TournamentDrop, winner_name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_TournamentDrop, event_type_), @@ -1195,7 +1221,7 @@ void protobuf_AssignDesc_dota_5fusermessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTAUserMsg_TournamentDrop)); - CDOTAUserMsg_ChatWheel_descriptor_ = file->message_type(36); + CDOTAUserMsg_ChatWheel_descriptor_ = file->message_type(37); static const int CDOTAUserMsg_ChatWheel_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_ChatWheel, chat_message_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_ChatWheel, player_id_), @@ -1212,7 +1238,7 @@ void protobuf_AssignDesc_dota_5fusermessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTAUserMsg_ChatWheel)); - CDOTAUserMsg_ReceivedXmasGift_descriptor_ = file->message_type(37); + CDOTAUserMsg_ReceivedXmasGift_descriptor_ = file->message_type(38); static const int CDOTAUserMsg_ReceivedXmasGift_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_ReceivedXmasGift, player_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_ReceivedXmasGift, item_name_), @@ -1229,7 +1255,7 @@ void protobuf_AssignDesc_dota_5fusermessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTAUserMsg_ReceivedXmasGift)); - CDOTAUserMsg_ShowSurvey_descriptor_ = file->message_type(38); + CDOTAUserMsg_ShowSurvey_descriptor_ = file->message_type(39); static const int CDOTAUserMsg_ShowSurvey_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_ShowSurvey, survey_id_), }; @@ -1244,7 +1270,7 @@ void protobuf_AssignDesc_dota_5fusermessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTAUserMsg_ShowSurvey)); - CDOTAUserMsg_UpdateSharedContent_descriptor_ = file->message_type(39); + CDOTAUserMsg_UpdateSharedContent_descriptor_ = file->message_type(40); static const int CDOTAUserMsg_UpdateSharedContent_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_UpdateSharedContent, slot_type_), }; @@ -1259,7 +1285,7 @@ void protobuf_AssignDesc_dota_5fusermessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTAUserMsg_UpdateSharedContent)); - CDOTAUserMsg_TutorialRequestExp_descriptor_ = file->message_type(40); + CDOTAUserMsg_TutorialRequestExp_descriptor_ = file->message_type(41); static const int CDOTAUserMsg_TutorialRequestExp_offsets_[1] = { }; CDOTAUserMsg_TutorialRequestExp_reflection_ = @@ -1273,7 +1299,7 @@ void protobuf_AssignDesc_dota_5fusermessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTAUserMsg_TutorialRequestExp)); - CDOTAUserMsg_TutorialFade_descriptor_ = file->message_type(41); + CDOTAUserMsg_TutorialFade_descriptor_ = file->message_type(42); static const int CDOTAUserMsg_TutorialFade_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_TutorialFade, tgt_alpha_), }; @@ -1288,7 +1314,7 @@ void protobuf_AssignDesc_dota_5fusermessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTAUserMsg_TutorialFade)); - CDOTAUserMsg_TutorialPingMinimap_descriptor_ = file->message_type(42); + CDOTAUserMsg_TutorialPingMinimap_descriptor_ = file->message_type(43); static const int CDOTAUserMsg_TutorialPingMinimap_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_TutorialPingMinimap, player_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_TutorialPingMinimap, pos_x_), @@ -1307,7 +1333,7 @@ void protobuf_AssignDesc_dota_5fusermessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTAUserMsg_TutorialPingMinimap)); - CDOTA_UM_GamerulesStateChanged_descriptor_ = file->message_type(43); + CDOTA_UM_GamerulesStateChanged_descriptor_ = file->message_type(44); static const int CDOTA_UM_GamerulesStateChanged_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTA_UM_GamerulesStateChanged, state_), }; @@ -1322,6 +1348,40 @@ void protobuf_AssignDesc_dota_5fusermessages_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(CDOTA_UM_GamerulesStateChanged)); + CDOTAUserMsg_AddQuestLogEntry_descriptor_ = file->message_type(45); + static const int CDOTAUserMsg_AddQuestLogEntry_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_AddQuestLogEntry, npc_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_AddQuestLogEntry, npc_dialog_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_AddQuestLogEntry, quest_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_AddQuestLogEntry, quest_type_), + }; + CDOTAUserMsg_AddQuestLogEntry_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CDOTAUserMsg_AddQuestLogEntry_descriptor_, + CDOTAUserMsg_AddQuestLogEntry::default_instance_, + CDOTAUserMsg_AddQuestLogEntry_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_AddQuestLogEntry, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_AddQuestLogEntry, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CDOTAUserMsg_AddQuestLogEntry)); + CDOTAUserMsg_SendStatPopup_descriptor_ = file->message_type(46); + static const int CDOTAUserMsg_SendStatPopup_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_SendStatPopup, player_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_SendStatPopup, statpopup_), + }; + CDOTAUserMsg_SendStatPopup_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CDOTAUserMsg_SendStatPopup_descriptor_, + CDOTAUserMsg_SendStatPopup::default_instance_, + CDOTAUserMsg_SendStatPopup_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_SendStatPopup, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CDOTAUserMsg_SendStatPopup, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CDOTAUserMsg_SendStatPopup)); EDotaUserMessages_descriptor_ = file->enum_type(0); DOTA_CHAT_MESSAGE_descriptor_ = file->enum_type(1); DOTA_NO_BATTLE_POINTS_REASONS_descriptor_ = file->enum_type(2); @@ -1452,6 +1512,8 @@ void protobuf_RegisterTypes(const ::std::string&) { CDOTAUserMsg_OverheadEvent_descriptor_, &CDOTAUserMsg_OverheadEvent::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CDOTAUserMsg_TutorialTipInfo_descriptor_, &CDOTAUserMsg_TutorialTipInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CDOTAUserMsg_TutorialFinish_descriptor_, &CDOTAUserMsg_TutorialFinish::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CDOTAUserMsg_WorldLine_descriptor_, &CDOTAUserMsg_WorldLine::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( @@ -1472,6 +1534,10 @@ void protobuf_RegisterTypes(const ::std::string&) { CDOTAUserMsg_TutorialPingMinimap_descriptor_, &CDOTAUserMsg_TutorialPingMinimap::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( CDOTA_UM_GamerulesStateChanged_descriptor_, &CDOTA_UM_GamerulesStateChanged::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CDOTAUserMsg_AddQuestLogEntry_descriptor_, &CDOTAUserMsg_AddQuestLogEntry::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CDOTAUserMsg_SendStatPopup_descriptor_, &CDOTAUserMsg_SendStatPopup::default_instance()); } } // namespace @@ -1587,6 +1653,8 @@ void protobuf_ShutdownFile_dota_5fusermessages_2eproto() { delete CDOTAUserMsg_OverheadEvent_reflection_; delete CDOTAUserMsg_TutorialTipInfo::default_instance_; delete CDOTAUserMsg_TutorialTipInfo_reflection_; + delete CDOTAUserMsg_TutorialFinish::default_instance_; + delete CDOTAUserMsg_TutorialFinish_reflection_; delete CDOTAUserMsg_WorldLine::default_instance_; delete CDOTAUserMsg_WorldLine_reflection_; delete CDOTAUserMsg_TournamentDrop::default_instance_; @@ -1607,6 +1675,10 @@ void protobuf_ShutdownFile_dota_5fusermessages_2eproto() { delete CDOTAUserMsg_TutorialPingMinimap_reflection_; delete CDOTA_UM_GamerulesStateChanged::default_instance_; delete CDOTA_UM_GamerulesStateChanged_reflection_; + delete CDOTAUserMsg_AddQuestLogEntry::default_instance_; + delete CDOTAUserMsg_AddQuestLogEntry_reflection_; + delete CDOTAUserMsg_SendStatPopup::default_instance_; + delete CDOTAUserMsg_SendStatPopup_reflection_; } void protobuf_AddDesc_dota_5fusermessages_2eproto() { @@ -1783,144 +1855,153 @@ void protobuf_AddDesc_dota_5fusermessages_2eproto() { "\030\003 \001(\005\022\027\n\017target_entindex\030\004 \001(\005\022\036\n\026sourc" "e_player_entindex\030\005 \001(\005\">\n\034CDOTAUserMsg_" "TutorialTipInfo\022\014\n\004name\030\001 \001(\t\022\020\n\010progres" - "s\030\002 \001(\005\"S\n\026CDOTAUserMsg_WorldLine\022\021\n\tpla" - "yer_id\030\001 \001(\005\022&\n\tworldline\030\002 \001(\0132\023.CDOTAM" - "sg_WorldLine\"F\n\033CDOTAUserMsg_TournamentD" - "rop\022\023\n\013winner_name\030\001 \001(\t\022\022\n\nevent_type\030\002" - " \001(\005\"|\n\026CDOTAUserMsg_ChatWheel\022;\n\014chat_m" - "essage\030\001 \001(\0162\026.EDOTAChatWheelMessage:\rk_" - "EDOTA_CW_Ok\022\021\n\tplayer_id\030\002 \001(\r\022\022\n\naccoun" - "t_id\030\003 \001(\r\"]\n\035CDOTAUserMsg_ReceivedXmasG" - "ift\022\021\n\tplayer_id\030\001 \001(\005\022\021\n\titem_name\030\002 \001(" - "\t\022\026\n\016inventory_slot\030\003 \001(\005\",\n\027CDOTAUserMs" - "g_ShowSurvey\022\021\n\tsurvey_id\030\001 \001(\005\"5\n CDOTA" - "UserMsg_UpdateSharedContent\022\021\n\tslot_type" - "\030\001 \001(\005\"!\n\037CDOTAUserMsg_TutorialRequestEx" - "p\".\n\031CDOTAUserMsg_TutorialFade\022\021\n\ttgt_al" - "pha\030\001 \001(\005\"x\n CDOTAUserMsg_TutorialPingMi" - "nimap\022\021\n\tplayer_id\030\001 \001(\r\022\r\n\005pos_x\030\002 \001(\002\022" - "\r\n\005pos_y\030\003 \001(\002\022\r\n\005pos_z\030\004 \001(\002\022\024\n\014entity_" - "index\030\005 \001(\005\"/\n\036CDOTA_UM_GamerulesStateCh" - "anged\022\r\n\005state\030\001 \001(\r*\363\t\n\021EDotaUserMessag" - "es\022\036\n\032DOTA_UM_AddUnitToSelection\020@\022\027\n\023DO" - "TA_UM_AIDebugLine\020A\022\025\n\021DOTA_UM_ChatEvent" - "\020B\022\037\n\033DOTA_UM_CombatHeroPositions\020C\022\031\n\025D" - "OTA_UM_CombatLogData\020D\022\036\n\032DOTA_UM_Combat" - "LogShowDeath\020F\022\"\n\036DOTA_UM_CreateLinearPr" - "ojectile\020G\022#\n\037DOTA_UM_DestroyLinearProje" - "ctile\020H\022$\n DOTA_UM_DodgeTrackingProjecti" - "les\020I\022\034\n\030DOTA_UM_GlobalLightColor\020J\022 \n\034D" - "OTA_UM_GlobalLightDirection\020K\022\032\n\026DOTA_UM" - "_InvalidCommand\020L\022\030\n\024DOTA_UM_LocationPin" - "g\020M\022\023\n\017DOTA_UM_MapLine\020N\022\033\n\027DOTA_UM_Mini" - "KillCamInfo\020O\022\035\n\031DOTA_UM_MinimapDebugPoi" - "nt\020P\022\030\n\024DOTA_UM_MinimapEvent\020Q\022\034\n\030DOTA_U" - "M_NevermoreRequiem\020R\022\031\n\025DOTA_UM_Overhead" - "Event\020S\022\036\n\032DOTA_UM_SetNextAutobuyItem\020T\022" - "\032\n\026DOTA_UM_SharedCooldown\020U\022 \n\034DOTA_UM_S" - "pectatorPlayerClick\020V\022\033\n\027DOTA_UM_Tutoria" - "lTipInfo\020W\022\025\n\021DOTA_UM_UnitEvent\020X\022\033\n\027DOT" - "A_UM_ParticleManager\020Y\022\023\n\017DOTA_UM_BotCha" - "t\020Z\022\024\n\020DOTA_UM_HudError\020[\022\031\n\025DOTA_UM_Ite" - "mPurchased\020\\\022\020\n\014DOTA_UM_Ping\020]\022\025\n\021DOTA_U" - "M_ItemFound\020^\022!\n\035DOTA_UM_CharacterSpeakC" - "oncept\020_\022\026\n\022DOTA_UM_SwapVerify\020`\022\025\n\021DOTA" - "_UM_WorldLine\020a\022\032\n\026DOTA_UM_TournamentDro" - "p\020b\022\025\n\021DOTA_UM_ItemAlert\020c\022\032\n\026DOTA_UM_Ha" - "lloweenDrops\020d\022\025\n\021DOTA_UM_ChatWheel\020e\022\034\n" - "\030DOTA_UM_ReceivedXmasGift\020f\022\037\n\033DOTA_UM_U" - "pdateSharedContent\020g\022\036\n\032DOTA_UM_Tutorial" - "RequestExp\020h\022\037\n\033DOTA_UM_TutorialPingMini" - "map\020i\022!\n\035DOTA_UM_GamerulesStateChanged\020j" - "\022\026\n\022DOTA_UM_ShowSurvey\020k\022\030\n\024DOTA_UM_Tuto" - "rialFade\020l*\343\016\n\021DOTA_CHAT_MESSAGE\022!\n\024CHAT" - "_MESSAGE_INVALID\020\377\377\377\377\377\377\377\377\377\001\022\032\n\026CHAT_MESS" - "AGE_HERO_KILL\020\000\022\032\n\026CHAT_MESSAGE_HERO_DEN" - "Y\020\001\022\036\n\032CHAT_MESSAGE_BARRACKS_KILL\020\002\022\033\n\027C" - "HAT_MESSAGE_TOWER_KILL\020\003\022\033\n\027CHAT_MESSAGE" - "_TOWER_DENY\020\004\022\033\n\027CHAT_MESSAGE_FIRSTBLOOD" - "\020\005\022\034\n\030CHAT_MESSAGE_STREAK_KILL\020\006\022\030\n\024CHAT" - "_MESSAGE_BUYBACK\020\007\022\026\n\022CHAT_MESSAGE_AEGIS" - "\020\010\022\034\n\030CHAT_MESSAGE_ROSHAN_KILL\020\t\022\035\n\031CHAT" - "_MESSAGE_COURIER_LOST\020\n\022\"\n\036CHAT_MESSAGE_" - "COURIER_RESPAWNED\020\013\022\033\n\027CHAT_MESSAGE_GLYP" - "H_USED\020\014\022\036\n\032CHAT_MESSAGE_ITEM_PURCHASE\020\r" - "\022\030\n\024CHAT_MESSAGE_CONNECT\020\016\022\033\n\027CHAT_MESSA" - "GE_DISCONNECT\020\017\022.\n*CHAT_MESSAGE_DISCONNE" - "CT_WAIT_FOR_RECONNECT\020\020\022*\n&CHAT_MESSAGE_" - "DISCONNECT_TIME_REMAINING\020\021\0221\n-CHAT_MESS" - "AGE_DISCONNECT_TIME_REMAINING_PLURAL\020\022\022\032" - "\n\026CHAT_MESSAGE_RECONNECT\020\023\022\030\n\024CHAT_MESSA" - "GE_ABANDON\020\024\022\036\n\032CHAT_MESSAGE_SAFE_TO_LEA" - "VE\020\025\022\034\n\030CHAT_MESSAGE_RUNE_PICKUP\020\026\022\034\n\030CH" - "AT_MESSAGE_RUNE_BOTTLE\020\027\022\031\n\025CHAT_MESSAGE" - "_INTHEBAG\020\030\022\033\n\027CHAT_MESSAGE_SECRETSHOP\020\031" - "\022#\n\037CHAT_MESSAGE_ITEM_AUTOPURCHASED\020\032\022\037\n" - "\033CHAT_MESSAGE_ITEMS_COMBINED\020\033\022\035\n\031CHAT_M" - "ESSAGE_SUPER_CREEPS\020\034\022%\n!CHAT_MESSAGE_CA" - "NT_USE_ACTION_ITEM\020\035\022\"\n\036CHAT_MESSAGE_CHA" - "RGES_EXHAUSTED\020\036\022\032\n\026CHAT_MESSAGE_CANTPAU" - "SE\020\037\022\035\n\031CHAT_MESSAGE_NOPAUSESLEFT\020 \022\035\n\031C" - "HAT_MESSAGE_CANTPAUSEYET\020!\022\027\n\023CHAT_MESSA" - "GE_PAUSED\020\"\022\"\n\036CHAT_MESSAGE_UNPAUSE_COUN" - "TDOWN\020#\022\031\n\025CHAT_MESSAGE_UNPAUSED\020$\022\036\n\032CH" - "AT_MESSAGE_AUTO_UNPAUSED\020%\022\032\n\026CHAT_MESSA" - "GE_YOUPAUSED\020&\022 \n\034CHAT_MESSAGE_CANTUNPAU" - "SETEAM\020\'\022(\n$CHAT_MESSAGE_SAFE_TO_LEAVE_A" - "BANDONER\020(\022\"\n\036CHAT_MESSAGE_VOICE_TEXT_BA" - "NNED\020)\022.\n*CHAT_MESSAGE_SPECTATORS_WATCHI" - "NG_THIS_GAME\020*\022 \n\034CHAT_MESSAGE_REPORT_RE" - "MINDER\020+\022\032\n\026CHAT_MESSAGE_ECON_ITEM\020,\022\026\n\022" - "CHAT_MESSAGE_TAUNT\020-\022\027\n\023CHAT_MESSAGE_RAN" - "DOM\020.\022\030\n\024CHAT_MESSAGE_RD_TURN\020/\022.\n*CHAT_" - "MESSAGE_SAFE_TO_LEAVE_ABANDONER_EARLY\0200\022" - " \n\034CHAT_MESSAGE_DROP_RATE_BONUS\0201\022!\n\035CHA" - "T_MESSAGE_NO_BATTLE_POINTS\0202\022\035\n\031CHAT_MES" - "SAGE_DENIED_AEGIS\0203\022\036\n\032CHAT_MESSAGE_INFO" - "RMATIONAL\0204\022\035\n\031CHAT_MESSAGE_AEGIS_STOLEN" - "\0205\022\035\n\031CHAT_MESSAGE_ROSHAN_CANDY\0206\022\034\n\030CHA" - "T_MESSAGE_ITEM_GIFTED\0207\022\'\n#CHAT_MESSAGE_" - "HERO_KILL_WITH_GREEVIL\0208*\262\001\n\035DOTA_NO_BAT" - "TLE_POINTS_REASONS\022%\n!NO_BATTLE_POINTS_W" - "RONG_LOBBY_TYPE\020\001\022\"\n\036NO_BATTLE_POINTS_PR" - "ACTICE_BOTS\020\002\022#\n\037NO_BATTLE_POINTS_CHEATS" - "_ENABLED\020\003\022!\n\035NO_BATTLE_POINTS_LOW_PRIOR" - "ITY\020\004*7\n\027DOTA_CHAT_INFORMATIONAL\022\034\n\030COOP" - "_BATTLE_POINTS_RULES\020\001*\251\001\n\024DOTA_COMBATLO" - "G_TYPES\022\031\n\025DOTA_COMBATLOG_DAMAGE\020\000\022\027\n\023DO" - "TA_COMBATLOG_HEAL\020\001\022\037\n\033DOTA_COMBATLOG_MO" - "DIFIER_ADD\020\002\022\"\n\036DOTA_COMBATLOG_MODIFIER_" - "REMOVE\020\003\022\030\n\024DOTA_COMBATLOG_DEATH\020\004*\345\001\n\023E" - "DotaEntityMessages\022\024\n\020DOTA_UNIT_SPEECH\020\000" - "\022\031\n\025DOTA_UNIT_SPEECH_MUTE\020\001\022\031\n\025DOTA_UNIT" - "_ADD_GESTURE\020\002\022\034\n\030DOTA_UNIT_REMOVE_GESTU" - "RE\020\003\022!\n\035DOTA_UNIT_REMOVE_ALL_GESTURES\020\004\022" - "\032\n\026DOTA_UNIT_FADE_GESTURE\020\006\022%\n!DOTA_UNIT" - "_SPEECH_CLIENTSIDE_RULES\020\007*\262\004\n\025DOTA_PART" - "ICLE_MESSAGE\022&\n\"DOTA_PARTICLE_MANAGER_EV" - "ENT_CREATE\020\000\022&\n\"DOTA_PARTICLE_MANAGER_EV" - "ENT_UPDATE\020\001\022.\n*DOTA_PARTICLE_MANAGER_EV" - "ENT_UPDATE_FORWARD\020\002\0222\n.DOTA_PARTICLE_MA" - "NAGER_EVENT_UPDATE_ORIENTATION\020\003\022/\n+DOTA" - "_PARTICLE_MANAGER_EVENT_UPDATE_FALLBACK\020" - "\004\022*\n&DOTA_PARTICLE_MANAGER_EVENT_UPDATE_" - "ENT\020\005\022-\n)DOTA_PARTICLE_MANAGER_EVENT_UPD" - "ATE_OFFSET\020\006\022\'\n#DOTA_PARTICLE_MANAGER_EV" - "ENT_DESTROY\020\007\0221\n-DOTA_PARTICLE_MANAGER_E" - "VENT_DESTROY_INVOLVING\020\010\022\'\n#DOTA_PARTICL" - "E_MANAGER_EVENT_RELEASE\020\t\022\'\n#DOTA_PARTIC" - "LE_MANAGER_EVENT_LATENCY\020\n\022+\n\'DOTA_PARTI" - "CLE_MANAGER_EVENT_SHOULD_DRAW\020\013*\206\003\n\023DOTA" - "_OVERHEAD_ALERT\022\027\n\023OVERHEAD_ALERT_GOLD\020\000" - "\022\027\n\023OVERHEAD_ALERT_DENY\020\001\022\033\n\027OVERHEAD_AL" - "ERT_CRITICAL\020\002\022\025\n\021OVERHEAD_ALERT_XP\020\003\022%\n" - "!OVERHEAD_ALERT_BONUS_SPELL_DAMAGE\020\004\022\027\n\023" - "OVERHEAD_ALERT_MISS\020\005\022\031\n\025OVERHEAD_ALERT_" - "DAMAGE\020\006\022\030\n\024OVERHEAD_ALERT_EVADE\020\007\022\030\n\024OV" - "ERHEAD_ALERT_BLOCK\020\010\022&\n\"OVERHEAD_ALERT_B" - "ONUS_POISON_DAMAGE\020\t\022\027\n\023OVERHEAD_ALERT_H" - "EAL\020\n\022\033\n\027OVERHEAD_ALERT_MANA_ADD\020\013\022\034\n\030OV" - "ERHEAD_ALERT_MANA_LOSS\020\014B\005H\001\200\001\000", 12031); + "s\030\002 \001(\005\"L\n\033CDOTAUserMsg_TutorialFinish\022\017" + "\n\007heading\030\001 \001(\t\022\016\n\006emblem\030\002 \001(\t\022\014\n\004body\030" + "\003 \001(\t\"S\n\026CDOTAUserMsg_WorldLine\022\021\n\tplaye" + "r_id\030\001 \001(\005\022&\n\tworldline\030\002 \001(\0132\023.CDOTAMsg" + "_WorldLine\"F\n\033CDOTAUserMsg_TournamentDro" + "p\022\023\n\013winner_name\030\001 \001(\t\022\022\n\nevent_type\030\002 \001" + "(\005\"|\n\026CDOTAUserMsg_ChatWheel\022;\n\014chat_mes" + "sage\030\001 \001(\0162\026.EDOTAChatWheelMessage:\rk_ED" + "OTA_CW_Ok\022\021\n\tplayer_id\030\002 \001(\r\022\022\n\naccount_" + "id\030\003 \001(\r\"]\n\035CDOTAUserMsg_ReceivedXmasGif" + "t\022\021\n\tplayer_id\030\001 \001(\005\022\021\n\titem_name\030\002 \001(\t\022" + "\026\n\016inventory_slot\030\003 \001(\005\",\n\027CDOTAUserMsg_" + "ShowSurvey\022\021\n\tsurvey_id\030\001 \001(\005\"5\n CDOTAUs" + "erMsg_UpdateSharedContent\022\021\n\tslot_type\030\001" + " \001(\005\"!\n\037CDOTAUserMsg_TutorialRequestExp\"" + ".\n\031CDOTAUserMsg_TutorialFade\022\021\n\ttgt_alph" + "a\030\001 \001(\005\"x\n CDOTAUserMsg_TutorialPingMini" + "map\022\021\n\tplayer_id\030\001 \001(\r\022\r\n\005pos_x\030\002 \001(\002\022\r\n" + "\005pos_y\030\003 \001(\002\022\r\n\005pos_z\030\004 \001(\002\022\024\n\014entity_in" + "dex\030\005 \001(\005\"/\n\036CDOTA_UM_GamerulesStateChan" + "ged\022\r\n\005state\030\001 \001(\r\"h\n\035CDOTAUserMsg_AddQu" + "estLogEntry\022\020\n\010npc_name\030\001 \001(\t\022\022\n\nnpc_dia" + "log\030\002 \001(\t\022\r\n\005quest\030\003 \001(\010\022\022\n\nquest_type\030\004" + " \001(\005\"[\n\032CDOTAUserMsg_SendStatPopup\022\021\n\tpl" + "ayer_id\030\001 \001(\005\022*\n\tstatpopup\030\002 \001(\0132\027.CDOTA" + "Msg_SendStatPopup*\310\n\n\021EDotaUserMessages\022" + "\036\n\032DOTA_UM_AddUnitToSelection\020@\022\027\n\023DOTA_" + "UM_AIDebugLine\020A\022\025\n\021DOTA_UM_ChatEvent\020B\022" + "\037\n\033DOTA_UM_CombatHeroPositions\020C\022\031\n\025DOTA" + "_UM_CombatLogData\020D\022\036\n\032DOTA_UM_CombatLog" + "ShowDeath\020F\022\"\n\036DOTA_UM_CreateLinearProje" + "ctile\020G\022#\n\037DOTA_UM_DestroyLinearProjecti" + "le\020H\022$\n DOTA_UM_DodgeTrackingProjectiles" + "\020I\022\034\n\030DOTA_UM_GlobalLightColor\020J\022 \n\034DOTA" + "_UM_GlobalLightDirection\020K\022\032\n\026DOTA_UM_In" + "validCommand\020L\022\030\n\024DOTA_UM_LocationPing\020M" + "\022\023\n\017DOTA_UM_MapLine\020N\022\033\n\027DOTA_UM_MiniKil" + "lCamInfo\020O\022\035\n\031DOTA_UM_MinimapDebugPoint\020" + "P\022\030\n\024DOTA_UM_MinimapEvent\020Q\022\034\n\030DOTA_UM_N" + "evermoreRequiem\020R\022\031\n\025DOTA_UM_OverheadEve" + "nt\020S\022\036\n\032DOTA_UM_SetNextAutobuyItem\020T\022\032\n\026" + "DOTA_UM_SharedCooldown\020U\022 \n\034DOTA_UM_Spec" + "tatorPlayerClick\020V\022\033\n\027DOTA_UM_TutorialTi" + "pInfo\020W\022\025\n\021DOTA_UM_UnitEvent\020X\022\033\n\027DOTA_U" + "M_ParticleManager\020Y\022\023\n\017DOTA_UM_BotChat\020Z" + "\022\024\n\020DOTA_UM_HudError\020[\022\031\n\025DOTA_UM_ItemPu" + "rchased\020\\\022\020\n\014DOTA_UM_Ping\020]\022\025\n\021DOTA_UM_I" + "temFound\020^\022!\n\035DOTA_UM_CharacterSpeakConc" + "ept\020_\022\026\n\022DOTA_UM_SwapVerify\020`\022\025\n\021DOTA_UM" + "_WorldLine\020a\022\032\n\026DOTA_UM_TournamentDrop\020b" + "\022\025\n\021DOTA_UM_ItemAlert\020c\022\032\n\026DOTA_UM_Hallo" + "weenDrops\020d\022\025\n\021DOTA_UM_ChatWheel\020e\022\034\n\030DO" + "TA_UM_ReceivedXmasGift\020f\022\037\n\033DOTA_UM_Upda" + "teSharedContent\020g\022\036\n\032DOTA_UM_TutorialReq" + "uestExp\020h\022\037\n\033DOTA_UM_TutorialPingMinimap" + "\020i\022!\n\035DOTA_UM_GamerulesStateChanged\020j\022\026\n" + "\022DOTA_UM_ShowSurvey\020k\022\030\n\024DOTA_UM_Tutoria" + "lFade\020l\022\034\n\030DOTA_UM_AddQuestLogEntry\020m\022\031\n" + "\025DOTA_UM_SendStatPopup\020n\022\032\n\026DOTA_UM_Tuto" + "rialFinish\020o*\343\016\n\021DOTA_CHAT_MESSAGE\022!\n\024CH" + "AT_MESSAGE_INVALID\020\377\377\377\377\377\377\377\377\377\001\022\032\n\026CHAT_ME" + "SSAGE_HERO_KILL\020\000\022\032\n\026CHAT_MESSAGE_HERO_D" + "ENY\020\001\022\036\n\032CHAT_MESSAGE_BARRACKS_KILL\020\002\022\033\n" + "\027CHAT_MESSAGE_TOWER_KILL\020\003\022\033\n\027CHAT_MESSA" + "GE_TOWER_DENY\020\004\022\033\n\027CHAT_MESSAGE_FIRSTBLO" + "OD\020\005\022\034\n\030CHAT_MESSAGE_STREAK_KILL\020\006\022\030\n\024CH" + "AT_MESSAGE_BUYBACK\020\007\022\026\n\022CHAT_MESSAGE_AEG" + "IS\020\010\022\034\n\030CHAT_MESSAGE_ROSHAN_KILL\020\t\022\035\n\031CH" + "AT_MESSAGE_COURIER_LOST\020\n\022\"\n\036CHAT_MESSAG" + "E_COURIER_RESPAWNED\020\013\022\033\n\027CHAT_MESSAGE_GL" + "YPH_USED\020\014\022\036\n\032CHAT_MESSAGE_ITEM_PURCHASE" + "\020\r\022\030\n\024CHAT_MESSAGE_CONNECT\020\016\022\033\n\027CHAT_MES" + "SAGE_DISCONNECT\020\017\022.\n*CHAT_MESSAGE_DISCON" + "NECT_WAIT_FOR_RECONNECT\020\020\022*\n&CHAT_MESSAG" + "E_DISCONNECT_TIME_REMAINING\020\021\0221\n-CHAT_ME" + "SSAGE_DISCONNECT_TIME_REMAINING_PLURAL\020\022" + "\022\032\n\026CHAT_MESSAGE_RECONNECT\020\023\022\030\n\024CHAT_MES" + "SAGE_ABANDON\020\024\022\036\n\032CHAT_MESSAGE_SAFE_TO_L" + "EAVE\020\025\022\034\n\030CHAT_MESSAGE_RUNE_PICKUP\020\026\022\034\n\030" + "CHAT_MESSAGE_RUNE_BOTTLE\020\027\022\031\n\025CHAT_MESSA" + "GE_INTHEBAG\020\030\022\033\n\027CHAT_MESSAGE_SECRETSHOP" + "\020\031\022#\n\037CHAT_MESSAGE_ITEM_AUTOPURCHASED\020\032\022" + "\037\n\033CHAT_MESSAGE_ITEMS_COMBINED\020\033\022\035\n\031CHAT" + "_MESSAGE_SUPER_CREEPS\020\034\022%\n!CHAT_MESSAGE_" + "CANT_USE_ACTION_ITEM\020\035\022\"\n\036CHAT_MESSAGE_C" + "HARGES_EXHAUSTED\020\036\022\032\n\026CHAT_MESSAGE_CANTP" + "AUSE\020\037\022\035\n\031CHAT_MESSAGE_NOPAUSESLEFT\020 \022\035\n" + "\031CHAT_MESSAGE_CANTPAUSEYET\020!\022\027\n\023CHAT_MES" + "SAGE_PAUSED\020\"\022\"\n\036CHAT_MESSAGE_UNPAUSE_CO" + "UNTDOWN\020#\022\031\n\025CHAT_MESSAGE_UNPAUSED\020$\022\036\n\032" + "CHAT_MESSAGE_AUTO_UNPAUSED\020%\022\032\n\026CHAT_MES" + "SAGE_YOUPAUSED\020&\022 \n\034CHAT_MESSAGE_CANTUNP" + "AUSETEAM\020\'\022(\n$CHAT_MESSAGE_SAFE_TO_LEAVE" + "_ABANDONER\020(\022\"\n\036CHAT_MESSAGE_VOICE_TEXT_" + "BANNED\020)\022.\n*CHAT_MESSAGE_SPECTATORS_WATC" + "HING_THIS_GAME\020*\022 \n\034CHAT_MESSAGE_REPORT_" + "REMINDER\020+\022\032\n\026CHAT_MESSAGE_ECON_ITEM\020,\022\026" + "\n\022CHAT_MESSAGE_TAUNT\020-\022\027\n\023CHAT_MESSAGE_R" + "ANDOM\020.\022\030\n\024CHAT_MESSAGE_RD_TURN\020/\022.\n*CHA" + "T_MESSAGE_SAFE_TO_LEAVE_ABANDONER_EARLY\020" + "0\022 \n\034CHAT_MESSAGE_DROP_RATE_BONUS\0201\022!\n\035C" + "HAT_MESSAGE_NO_BATTLE_POINTS\0202\022\035\n\031CHAT_M" + "ESSAGE_DENIED_AEGIS\0203\022\036\n\032CHAT_MESSAGE_IN" + "FORMATIONAL\0204\022\035\n\031CHAT_MESSAGE_AEGIS_STOL" + "EN\0205\022\035\n\031CHAT_MESSAGE_ROSHAN_CANDY\0206\022\034\n\030C" + "HAT_MESSAGE_ITEM_GIFTED\0207\022\'\n#CHAT_MESSAG" + "E_HERO_KILL_WITH_GREEVIL\0208*\262\001\n\035DOTA_NO_B" + "ATTLE_POINTS_REASONS\022%\n!NO_BATTLE_POINTS" + "_WRONG_LOBBY_TYPE\020\001\022\"\n\036NO_BATTLE_POINTS_" + "PRACTICE_BOTS\020\002\022#\n\037NO_BATTLE_POINTS_CHEA" + "TS_ENABLED\020\003\022!\n\035NO_BATTLE_POINTS_LOW_PRI" + "ORITY\020\004*7\n\027DOTA_CHAT_INFORMATIONAL\022\034\n\030CO" + "OP_BATTLE_POINTS_RULES\020\001*\251\001\n\024DOTA_COMBAT" + "LOG_TYPES\022\031\n\025DOTA_COMBATLOG_DAMAGE\020\000\022\027\n\023" + "DOTA_COMBATLOG_HEAL\020\001\022\037\n\033DOTA_COMBATLOG_" + "MODIFIER_ADD\020\002\022\"\n\036DOTA_COMBATLOG_MODIFIE" + "R_REMOVE\020\003\022\030\n\024DOTA_COMBATLOG_DEATH\020\004*\345\001\n" + "\023EDotaEntityMessages\022\024\n\020DOTA_UNIT_SPEECH" + "\020\000\022\031\n\025DOTA_UNIT_SPEECH_MUTE\020\001\022\031\n\025DOTA_UN" + "IT_ADD_GESTURE\020\002\022\034\n\030DOTA_UNIT_REMOVE_GES" + "TURE\020\003\022!\n\035DOTA_UNIT_REMOVE_ALL_GESTURES\020" + "\004\022\032\n\026DOTA_UNIT_FADE_GESTURE\020\006\022%\n!DOTA_UN" + "IT_SPEECH_CLIENTSIDE_RULES\020\007*\262\004\n\025DOTA_PA" + "RTICLE_MESSAGE\022&\n\"DOTA_PARTICLE_MANAGER_" + "EVENT_CREATE\020\000\022&\n\"DOTA_PARTICLE_MANAGER_" + "EVENT_UPDATE\020\001\022.\n*DOTA_PARTICLE_MANAGER_" + "EVENT_UPDATE_FORWARD\020\002\0222\n.DOTA_PARTICLE_" + "MANAGER_EVENT_UPDATE_ORIENTATION\020\003\022/\n+DO" + "TA_PARTICLE_MANAGER_EVENT_UPDATE_FALLBAC" + "K\020\004\022*\n&DOTA_PARTICLE_MANAGER_EVENT_UPDAT" + "E_ENT\020\005\022-\n)DOTA_PARTICLE_MANAGER_EVENT_U" + "PDATE_OFFSET\020\006\022\'\n#DOTA_PARTICLE_MANAGER_" + "EVENT_DESTROY\020\007\0221\n-DOTA_PARTICLE_MANAGER" + "_EVENT_DESTROY_INVOLVING\020\010\022\'\n#DOTA_PARTI" + "CLE_MANAGER_EVENT_RELEASE\020\t\022\'\n#DOTA_PART" + "ICLE_MANAGER_EVENT_LATENCY\020\n\022+\n\'DOTA_PAR" + "TICLE_MANAGER_EVENT_SHOULD_DRAW\020\013*\206\003\n\023DO" + "TA_OVERHEAD_ALERT\022\027\n\023OVERHEAD_ALERT_GOLD" + "\020\000\022\027\n\023OVERHEAD_ALERT_DENY\020\001\022\033\n\027OVERHEAD_" + "ALERT_CRITICAL\020\002\022\025\n\021OVERHEAD_ALERT_XP\020\003\022" + "%\n!OVERHEAD_ALERT_BONUS_SPELL_DAMAGE\020\004\022\027" + "\n\023OVERHEAD_ALERT_MISS\020\005\022\031\n\025OVERHEAD_ALER" + "T_DAMAGE\020\006\022\030\n\024OVERHEAD_ALERT_EVADE\020\007\022\030\n\024" + "OVERHEAD_ALERT_BLOCK\020\010\022&\n\"OVERHEAD_ALERT" + "_BONUS_POISON_DAMAGE\020\t\022\027\n\023OVERHEAD_ALERT" + "_HEAL\020\n\022\033\n\027OVERHEAD_ALERT_MANA_ADD\020\013\022\034\n\030" + "OVERHEAD_ALERT_MANA_LOSS\020\014B\005H\001\200\001\000", 12393); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "dota_usermessages.proto", &protobuf_RegisterTypes); CDOTAUserMsg_AIDebugLine::default_instance_ = new CDOTAUserMsg_AIDebugLine(); @@ -1978,6 +2059,7 @@ void protobuf_AddDesc_dota_5fusermessages_2eproto() { CDOTAUserMsg_ParticleManager_UpdateParticleShouldDraw::default_instance_ = new CDOTAUserMsg_ParticleManager_UpdateParticleShouldDraw(); CDOTAUserMsg_OverheadEvent::default_instance_ = new CDOTAUserMsg_OverheadEvent(); CDOTAUserMsg_TutorialTipInfo::default_instance_ = new CDOTAUserMsg_TutorialTipInfo(); + CDOTAUserMsg_TutorialFinish::default_instance_ = new CDOTAUserMsg_TutorialFinish(); CDOTAUserMsg_WorldLine::default_instance_ = new CDOTAUserMsg_WorldLine(); CDOTAUserMsg_TournamentDrop::default_instance_ = new CDOTAUserMsg_TournamentDrop(); CDOTAUserMsg_ChatWheel::default_instance_ = new CDOTAUserMsg_ChatWheel(); @@ -1988,6 +2070,8 @@ void protobuf_AddDesc_dota_5fusermessages_2eproto() { CDOTAUserMsg_TutorialFade::default_instance_ = new CDOTAUserMsg_TutorialFade(); CDOTAUserMsg_TutorialPingMinimap::default_instance_ = new CDOTAUserMsg_TutorialPingMinimap(); CDOTA_UM_GamerulesStateChanged::default_instance_ = new CDOTA_UM_GamerulesStateChanged(); + CDOTAUserMsg_AddQuestLogEntry::default_instance_ = new CDOTAUserMsg_AddQuestLogEntry(); + CDOTAUserMsg_SendStatPopup::default_instance_ = new CDOTAUserMsg_SendStatPopup(); CDOTAUserMsg_AIDebugLine::default_instance_->InitAsDefaultInstance(); CDOTAUserMsg_Ping::default_instance_->InitAsDefaultInstance(); CDOTAUserMsg_SwapVerify::default_instance_->InitAsDefaultInstance(); @@ -2043,6 +2127,7 @@ void protobuf_AddDesc_dota_5fusermessages_2eproto() { CDOTAUserMsg_ParticleManager_UpdateParticleShouldDraw::default_instance_->InitAsDefaultInstance(); CDOTAUserMsg_OverheadEvent::default_instance_->InitAsDefaultInstance(); CDOTAUserMsg_TutorialTipInfo::default_instance_->InitAsDefaultInstance(); + CDOTAUserMsg_TutorialFinish::default_instance_->InitAsDefaultInstance(); CDOTAUserMsg_WorldLine::default_instance_->InitAsDefaultInstance(); CDOTAUserMsg_TournamentDrop::default_instance_->InitAsDefaultInstance(); CDOTAUserMsg_ChatWheel::default_instance_->InitAsDefaultInstance(); @@ -2053,6 +2138,8 @@ void protobuf_AddDesc_dota_5fusermessages_2eproto() { CDOTAUserMsg_TutorialFade::default_instance_->InitAsDefaultInstance(); CDOTAUserMsg_TutorialPingMinimap::default_instance_->InitAsDefaultInstance(); CDOTA_UM_GamerulesStateChanged::default_instance_->InitAsDefaultInstance(); + CDOTAUserMsg_AddQuestLogEntry::default_instance_->InitAsDefaultInstance(); + CDOTAUserMsg_SendStatPopup::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_dota_5fusermessages_2eproto); } @@ -2113,6 +2200,9 @@ bool EDotaUserMessages_IsValid(int value) { case 106: case 107: case 108: + case 109: + case 110: + case 111: return true; default: return false; @@ -18441,6 +18531,344 @@ void CDOTAUserMsg_TutorialTipInfo::Swap(CDOTAUserMsg_TutorialTipInfo* other) { } +// =================================================================== + +#ifndef _MSC_VER +const int CDOTAUserMsg_TutorialFinish::kHeadingFieldNumber; +const int CDOTAUserMsg_TutorialFinish::kEmblemFieldNumber; +const int CDOTAUserMsg_TutorialFinish::kBodyFieldNumber; +#endif // !_MSC_VER + +CDOTAUserMsg_TutorialFinish::CDOTAUserMsg_TutorialFinish() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CDOTAUserMsg_TutorialFinish::InitAsDefaultInstance() { +} + +CDOTAUserMsg_TutorialFinish::CDOTAUserMsg_TutorialFinish(const CDOTAUserMsg_TutorialFinish& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CDOTAUserMsg_TutorialFinish::SharedCtor() { + _cached_size_ = 0; + heading_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + emblem_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + body_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CDOTAUserMsg_TutorialFinish::~CDOTAUserMsg_TutorialFinish() { + SharedDtor(); +} + +void CDOTAUserMsg_TutorialFinish::SharedDtor() { + if (heading_ != &::google::protobuf::internal::kEmptyString) { + delete heading_; + } + if (emblem_ != &::google::protobuf::internal::kEmptyString) { + delete emblem_; + } + if (body_ != &::google::protobuf::internal::kEmptyString) { + delete body_; + } + if (this != default_instance_) { + } +} + +void CDOTAUserMsg_TutorialFinish::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CDOTAUserMsg_TutorialFinish::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CDOTAUserMsg_TutorialFinish_descriptor_; +} + +const CDOTAUserMsg_TutorialFinish& CDOTAUserMsg_TutorialFinish::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_dota_5fusermessages_2eproto(); return *default_instance_; +} + +CDOTAUserMsg_TutorialFinish* CDOTAUserMsg_TutorialFinish::default_instance_ = NULL; + +CDOTAUserMsg_TutorialFinish* CDOTAUserMsg_TutorialFinish::New() const { + return new CDOTAUserMsg_TutorialFinish; +} + +void CDOTAUserMsg_TutorialFinish::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_heading()) { + if (heading_ != &::google::protobuf::internal::kEmptyString) { + heading_->clear(); + } + } + if (has_emblem()) { + if (emblem_ != &::google::protobuf::internal::kEmptyString) { + emblem_->clear(); + } + } + if (has_body()) { + if (body_ != &::google::protobuf::internal::kEmptyString) { + body_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CDOTAUserMsg_TutorialFinish::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string heading = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_heading())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->heading().data(), this->heading().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_emblem; + break; + } + + // optional string emblem = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_emblem: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_emblem())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->emblem().data(), this->emblem().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_body; + break; + } + + // optional string body = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_body: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_body())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->body().data(), this->body().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CDOTAUserMsg_TutorialFinish::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional string heading = 1; + if (has_heading()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->heading().data(), this->heading().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->heading(), output); + } + + // optional string emblem = 2; + if (has_emblem()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->emblem().data(), this->emblem().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->emblem(), output); + } + + // optional string body = 3; + if (has_body()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->body().data(), this->body().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->body(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CDOTAUserMsg_TutorialFinish::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional string heading = 1; + if (has_heading()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->heading().data(), this->heading().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->heading(), target); + } + + // optional string emblem = 2; + if (has_emblem()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->emblem().data(), this->emblem().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->emblem(), target); + } + + // optional string body = 3; + if (has_body()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->body().data(), this->body().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->body(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CDOTAUserMsg_TutorialFinish::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string heading = 1; + if (has_heading()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->heading()); + } + + // optional string emblem = 2; + if (has_emblem()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->emblem()); + } + + // optional string body = 3; + if (has_body()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->body()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CDOTAUserMsg_TutorialFinish::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CDOTAUserMsg_TutorialFinish* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CDOTAUserMsg_TutorialFinish::MergeFrom(const CDOTAUserMsg_TutorialFinish& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_heading()) { + set_heading(from.heading()); + } + if (from.has_emblem()) { + set_emblem(from.emblem()); + } + if (from.has_body()) { + set_body(from.body()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CDOTAUserMsg_TutorialFinish::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CDOTAUserMsg_TutorialFinish::CopyFrom(const CDOTAUserMsg_TutorialFinish& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CDOTAUserMsg_TutorialFinish::IsInitialized() const { + + return true; +} + +void CDOTAUserMsg_TutorialFinish::Swap(CDOTAUserMsg_TutorialFinish* other) { + if (other != this) { + std::swap(heading_, other->heading_); + std::swap(emblem_, other->emblem_); + std::swap(body_, other->body_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CDOTAUserMsg_TutorialFinish::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CDOTAUserMsg_TutorialFinish_descriptor_; + metadata.reflection = CDOTAUserMsg_TutorialFinish_reflection_; + return metadata; +} + + // =================================================================== #ifndef _MSC_VER @@ -20898,6 +21326,617 @@ void CDOTA_UM_GamerulesStateChanged::Swap(CDOTA_UM_GamerulesStateChanged* other) } +// =================================================================== + +#ifndef _MSC_VER +const int CDOTAUserMsg_AddQuestLogEntry::kNpcNameFieldNumber; +const int CDOTAUserMsg_AddQuestLogEntry::kNpcDialogFieldNumber; +const int CDOTAUserMsg_AddQuestLogEntry::kQuestFieldNumber; +const int CDOTAUserMsg_AddQuestLogEntry::kQuestTypeFieldNumber; +#endif // !_MSC_VER + +CDOTAUserMsg_AddQuestLogEntry::CDOTAUserMsg_AddQuestLogEntry() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CDOTAUserMsg_AddQuestLogEntry::InitAsDefaultInstance() { +} + +CDOTAUserMsg_AddQuestLogEntry::CDOTAUserMsg_AddQuestLogEntry(const CDOTAUserMsg_AddQuestLogEntry& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CDOTAUserMsg_AddQuestLogEntry::SharedCtor() { + _cached_size_ = 0; + npc_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + npc_dialog_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + quest_ = false; + quest_type_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CDOTAUserMsg_AddQuestLogEntry::~CDOTAUserMsg_AddQuestLogEntry() { + SharedDtor(); +} + +void CDOTAUserMsg_AddQuestLogEntry::SharedDtor() { + if (npc_name_ != &::google::protobuf::internal::kEmptyString) { + delete npc_name_; + } + if (npc_dialog_ != &::google::protobuf::internal::kEmptyString) { + delete npc_dialog_; + } + if (this != default_instance_) { + } +} + +void CDOTAUserMsg_AddQuestLogEntry::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CDOTAUserMsg_AddQuestLogEntry::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CDOTAUserMsg_AddQuestLogEntry_descriptor_; +} + +const CDOTAUserMsg_AddQuestLogEntry& CDOTAUserMsg_AddQuestLogEntry::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_dota_5fusermessages_2eproto(); return *default_instance_; +} + +CDOTAUserMsg_AddQuestLogEntry* CDOTAUserMsg_AddQuestLogEntry::default_instance_ = NULL; + +CDOTAUserMsg_AddQuestLogEntry* CDOTAUserMsg_AddQuestLogEntry::New() const { + return new CDOTAUserMsg_AddQuestLogEntry; +} + +void CDOTAUserMsg_AddQuestLogEntry::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_npc_name()) { + if (npc_name_ != &::google::protobuf::internal::kEmptyString) { + npc_name_->clear(); + } + } + if (has_npc_dialog()) { + if (npc_dialog_ != &::google::protobuf::internal::kEmptyString) { + npc_dialog_->clear(); + } + } + quest_ = false; + quest_type_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CDOTAUserMsg_AddQuestLogEntry::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string npc_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_npc_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->npc_name().data(), this->npc_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_npc_dialog; + break; + } + + // optional string npc_dialog = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_npc_dialog: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_npc_dialog())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->npc_dialog().data(), this->npc_dialog().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_quest; + break; + } + + // optional bool quest = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_quest: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &quest_))); + set_has_quest(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_quest_type; + break; + } + + // optional int32 quest_type = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_quest_type: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &quest_type_))); + set_has_quest_type(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CDOTAUserMsg_AddQuestLogEntry::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional string npc_name = 1; + if (has_npc_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->npc_name().data(), this->npc_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->npc_name(), output); + } + + // optional string npc_dialog = 2; + if (has_npc_dialog()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->npc_dialog().data(), this->npc_dialog().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->npc_dialog(), output); + } + + // optional bool quest = 3; + if (has_quest()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->quest(), output); + } + + // optional int32 quest_type = 4; + if (has_quest_type()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->quest_type(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CDOTAUserMsg_AddQuestLogEntry::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional string npc_name = 1; + if (has_npc_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->npc_name().data(), this->npc_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->npc_name(), target); + } + + // optional string npc_dialog = 2; + if (has_npc_dialog()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->npc_dialog().data(), this->npc_dialog().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->npc_dialog(), target); + } + + // optional bool quest = 3; + if (has_quest()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->quest(), target); + } + + // optional int32 quest_type = 4; + if (has_quest_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->quest_type(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CDOTAUserMsg_AddQuestLogEntry::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string npc_name = 1; + if (has_npc_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->npc_name()); + } + + // optional string npc_dialog = 2; + if (has_npc_dialog()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->npc_dialog()); + } + + // optional bool quest = 3; + if (has_quest()) { + total_size += 1 + 1; + } + + // optional int32 quest_type = 4; + if (has_quest_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->quest_type()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CDOTAUserMsg_AddQuestLogEntry::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CDOTAUserMsg_AddQuestLogEntry* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CDOTAUserMsg_AddQuestLogEntry::MergeFrom(const CDOTAUserMsg_AddQuestLogEntry& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_npc_name()) { + set_npc_name(from.npc_name()); + } + if (from.has_npc_dialog()) { + set_npc_dialog(from.npc_dialog()); + } + if (from.has_quest()) { + set_quest(from.quest()); + } + if (from.has_quest_type()) { + set_quest_type(from.quest_type()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CDOTAUserMsg_AddQuestLogEntry::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CDOTAUserMsg_AddQuestLogEntry::CopyFrom(const CDOTAUserMsg_AddQuestLogEntry& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CDOTAUserMsg_AddQuestLogEntry::IsInitialized() const { + + return true; +} + +void CDOTAUserMsg_AddQuestLogEntry::Swap(CDOTAUserMsg_AddQuestLogEntry* other) { + if (other != this) { + std::swap(npc_name_, other->npc_name_); + std::swap(npc_dialog_, other->npc_dialog_); + std::swap(quest_, other->quest_); + std::swap(quest_type_, other->quest_type_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CDOTAUserMsg_AddQuestLogEntry::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CDOTAUserMsg_AddQuestLogEntry_descriptor_; + metadata.reflection = CDOTAUserMsg_AddQuestLogEntry_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CDOTAUserMsg_SendStatPopup::kPlayerIdFieldNumber; +const int CDOTAUserMsg_SendStatPopup::kStatpopupFieldNumber; +#endif // !_MSC_VER + +CDOTAUserMsg_SendStatPopup::CDOTAUserMsg_SendStatPopup() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CDOTAUserMsg_SendStatPopup::InitAsDefaultInstance() { + statpopup_ = const_cast< ::CDOTAMsg_SendStatPopup*>(&::CDOTAMsg_SendStatPopup::default_instance()); +} + +CDOTAUserMsg_SendStatPopup::CDOTAUserMsg_SendStatPopup(const CDOTAUserMsg_SendStatPopup& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CDOTAUserMsg_SendStatPopup::SharedCtor() { + _cached_size_ = 0; + player_id_ = 0; + statpopup_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CDOTAUserMsg_SendStatPopup::~CDOTAUserMsg_SendStatPopup() { + SharedDtor(); +} + +void CDOTAUserMsg_SendStatPopup::SharedDtor() { + if (this != default_instance_) { + delete statpopup_; + } +} + +void CDOTAUserMsg_SendStatPopup::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CDOTAUserMsg_SendStatPopup::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CDOTAUserMsg_SendStatPopup_descriptor_; +} + +const CDOTAUserMsg_SendStatPopup& CDOTAUserMsg_SendStatPopup::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_dota_5fusermessages_2eproto(); return *default_instance_; +} + +CDOTAUserMsg_SendStatPopup* CDOTAUserMsg_SendStatPopup::default_instance_ = NULL; + +CDOTAUserMsg_SendStatPopup* CDOTAUserMsg_SendStatPopup::New() const { + return new CDOTAUserMsg_SendStatPopup; +} + +void CDOTAUserMsg_SendStatPopup::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + player_id_ = 0; + if (has_statpopup()) { + if (statpopup_ != NULL) statpopup_->::CDOTAMsg_SendStatPopup::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CDOTAUserMsg_SendStatPopup::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 player_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &player_id_))); + set_has_player_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_statpopup; + break; + } + + // optional .CDOTAMsg_SendStatPopup statpopup = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_statpopup: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_statpopup())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CDOTAUserMsg_SendStatPopup::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional int32 player_id = 1; + if (has_player_id()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->player_id(), output); + } + + // optional .CDOTAMsg_SendStatPopup statpopup = 2; + if (has_statpopup()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->statpopup(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CDOTAUserMsg_SendStatPopup::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional int32 player_id = 1; + if (has_player_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->player_id(), target); + } + + // optional .CDOTAMsg_SendStatPopup statpopup = 2; + if (has_statpopup()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->statpopup(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CDOTAUserMsg_SendStatPopup::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional int32 player_id = 1; + if (has_player_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->player_id()); + } + + // optional .CDOTAMsg_SendStatPopup statpopup = 2; + if (has_statpopup()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->statpopup()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CDOTAUserMsg_SendStatPopup::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CDOTAUserMsg_SendStatPopup* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CDOTAUserMsg_SendStatPopup::MergeFrom(const CDOTAUserMsg_SendStatPopup& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_player_id()) { + set_player_id(from.player_id()); + } + if (from.has_statpopup()) { + mutable_statpopup()->::CDOTAMsg_SendStatPopup::MergeFrom(from.statpopup()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CDOTAUserMsg_SendStatPopup::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CDOTAUserMsg_SendStatPopup::CopyFrom(const CDOTAUserMsg_SendStatPopup& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CDOTAUserMsg_SendStatPopup::IsInitialized() const { + + return true; +} + +void CDOTAUserMsg_SendStatPopup::Swap(CDOTAUserMsg_SendStatPopup* other) { + if (other != this) { + std::swap(player_id_, other->player_id_); + std::swap(statpopup_, other->statpopup_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CDOTAUserMsg_SendStatPopup::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CDOTAUserMsg_SendStatPopup_descriptor_; + metadata.reflection = CDOTAUserMsg_SendStatPopup_reflection_; + return metadata; +} + + // @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(global_scope) diff --git a/public/game/shared/dota/protobuf/dota_usermessages.pb.h b/public/game/shared/dota/protobuf/dota_usermessages.pb.h index 695f5a4b..f0cd68e3 100644 --- a/public/game/shared/dota/protobuf/dota_usermessages.pb.h +++ b/public/game/shared/dota/protobuf/dota_usermessages.pb.h @@ -89,6 +89,7 @@ class CDOTAUserMsg_ParticleManager_UpdateParticleLatency; class CDOTAUserMsg_ParticleManager_UpdateParticleShouldDraw; class CDOTAUserMsg_OverheadEvent; class CDOTAUserMsg_TutorialTipInfo; +class CDOTAUserMsg_TutorialFinish; class CDOTAUserMsg_WorldLine; class CDOTAUserMsg_TournamentDrop; class CDOTAUserMsg_ChatWheel; @@ -99,6 +100,8 @@ class CDOTAUserMsg_TutorialRequestExp; class CDOTAUserMsg_TutorialFade; class CDOTAUserMsg_TutorialPingMinimap; class CDOTA_UM_GamerulesStateChanged; +class CDOTAUserMsg_AddQuestLogEntry; +class CDOTAUserMsg_SendStatPopup; enum CDOTAResponseQuerySerialized_Fact_ValueType { CDOTAResponseQuerySerialized_Fact_ValueType_NUMERIC = 1, @@ -163,11 +166,14 @@ enum EDotaUserMessages { DOTA_UM_TutorialPingMinimap = 105, DOTA_UM_GamerulesStateChanged = 106, DOTA_UM_ShowSurvey = 107, - DOTA_UM_TutorialFade = 108 + DOTA_UM_TutorialFade = 108, + DOTA_UM_AddQuestLogEntry = 109, + DOTA_UM_SendStatPopup = 110, + DOTA_UM_TutorialFinish = 111 }; bool EDotaUserMessages_IsValid(int value); const EDotaUserMessages EDotaUserMessages_MIN = DOTA_UM_AddUnitToSelection; -const EDotaUserMessages EDotaUserMessages_MAX = DOTA_UM_TutorialFade; +const EDotaUserMessages EDotaUserMessages_MAX = DOTA_UM_TutorialFinish; const int EDotaUserMessages_ARRAYSIZE = EDotaUserMessages_MAX + 1; const ::google::protobuf::EnumDescriptor* EDotaUserMessages_descriptor(); @@ -6137,6 +6143,120 @@ class CDOTAUserMsg_TutorialTipInfo : public ::google::protobuf::Message { }; // ------------------------------------------------------------------- +class CDOTAUserMsg_TutorialFinish : public ::google::protobuf::Message { + public: + CDOTAUserMsg_TutorialFinish(); + virtual ~CDOTAUserMsg_TutorialFinish(); + + CDOTAUserMsg_TutorialFinish(const CDOTAUserMsg_TutorialFinish& from); + + inline CDOTAUserMsg_TutorialFinish& operator=(const CDOTAUserMsg_TutorialFinish& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CDOTAUserMsg_TutorialFinish& default_instance(); + + void Swap(CDOTAUserMsg_TutorialFinish* other); + + // implements Message ---------------------------------------------- + + CDOTAUserMsg_TutorialFinish* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CDOTAUserMsg_TutorialFinish& from); + void MergeFrom(const CDOTAUserMsg_TutorialFinish& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string heading = 1; + inline bool has_heading() const; + inline void clear_heading(); + static const int kHeadingFieldNumber = 1; + inline const ::std::string& heading() const; + inline void set_heading(const ::std::string& value); + inline void set_heading(const char* value); + inline void set_heading(const char* value, size_t size); + inline ::std::string* mutable_heading(); + inline ::std::string* release_heading(); + + // optional string emblem = 2; + inline bool has_emblem() const; + inline void clear_emblem(); + static const int kEmblemFieldNumber = 2; + inline const ::std::string& emblem() const; + inline void set_emblem(const ::std::string& value); + inline void set_emblem(const char* value); + inline void set_emblem(const char* value, size_t size); + inline ::std::string* mutable_emblem(); + inline ::std::string* release_emblem(); + + // optional string body = 3; + inline bool has_body() const; + inline void clear_body(); + static const int kBodyFieldNumber = 3; + inline const ::std::string& body() const; + inline void set_body(const ::std::string& value); + inline void set_body(const char* value); + inline void set_body(const char* value, size_t size); + inline ::std::string* mutable_body(); + inline ::std::string* release_body(); + + // @@protoc_insertion_point(class_scope:CDOTAUserMsg_TutorialFinish) + private: + inline void set_has_heading(); + inline void clear_has_heading(); + inline void set_has_emblem(); + inline void clear_has_emblem(); + inline void set_has_body(); + inline void clear_has_body(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* heading_; + ::std::string* emblem_; + ::std::string* body_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_dota_5fusermessages_2eproto(); + friend void protobuf_AssignDesc_dota_5fusermessages_2eproto(); + friend void protobuf_ShutdownFile_dota_5fusermessages_2eproto(); + + void InitAsDefaultInstance(); + static CDOTAUserMsg_TutorialFinish* default_instance_; +}; +// ------------------------------------------------------------------- + class CDOTAUserMsg_WorldLine : public ::google::protobuf::Message { public: CDOTAUserMsg_WorldLine(); @@ -7054,6 +7174,219 @@ class CDOTA_UM_GamerulesStateChanged : public ::google::protobuf::Message { void InitAsDefaultInstance(); static CDOTA_UM_GamerulesStateChanged* default_instance_; }; +// ------------------------------------------------------------------- + +class CDOTAUserMsg_AddQuestLogEntry : public ::google::protobuf::Message { + public: + CDOTAUserMsg_AddQuestLogEntry(); + virtual ~CDOTAUserMsg_AddQuestLogEntry(); + + CDOTAUserMsg_AddQuestLogEntry(const CDOTAUserMsg_AddQuestLogEntry& from); + + inline CDOTAUserMsg_AddQuestLogEntry& operator=(const CDOTAUserMsg_AddQuestLogEntry& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CDOTAUserMsg_AddQuestLogEntry& default_instance(); + + void Swap(CDOTAUserMsg_AddQuestLogEntry* other); + + // implements Message ---------------------------------------------- + + CDOTAUserMsg_AddQuestLogEntry* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CDOTAUserMsg_AddQuestLogEntry& from); + void MergeFrom(const CDOTAUserMsg_AddQuestLogEntry& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string npc_name = 1; + inline bool has_npc_name() const; + inline void clear_npc_name(); + static const int kNpcNameFieldNumber = 1; + inline const ::std::string& npc_name() const; + inline void set_npc_name(const ::std::string& value); + inline void set_npc_name(const char* value); + inline void set_npc_name(const char* value, size_t size); + inline ::std::string* mutable_npc_name(); + inline ::std::string* release_npc_name(); + + // optional string npc_dialog = 2; + inline bool has_npc_dialog() const; + inline void clear_npc_dialog(); + static const int kNpcDialogFieldNumber = 2; + inline const ::std::string& npc_dialog() const; + inline void set_npc_dialog(const ::std::string& value); + inline void set_npc_dialog(const char* value); + inline void set_npc_dialog(const char* value, size_t size); + inline ::std::string* mutable_npc_dialog(); + inline ::std::string* release_npc_dialog(); + + // optional bool quest = 3; + inline bool has_quest() const; + inline void clear_quest(); + static const int kQuestFieldNumber = 3; + inline bool quest() const; + inline void set_quest(bool value); + + // optional int32 quest_type = 4; + inline bool has_quest_type() const; + inline void clear_quest_type(); + static const int kQuestTypeFieldNumber = 4; + inline ::google::protobuf::int32 quest_type() const; + inline void set_quest_type(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:CDOTAUserMsg_AddQuestLogEntry) + private: + inline void set_has_npc_name(); + inline void clear_has_npc_name(); + inline void set_has_npc_dialog(); + inline void clear_has_npc_dialog(); + inline void set_has_quest(); + inline void clear_has_quest(); + inline void set_has_quest_type(); + inline void clear_has_quest_type(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* npc_name_; + ::std::string* npc_dialog_; + bool quest_; + ::google::protobuf::int32 quest_type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_dota_5fusermessages_2eproto(); + friend void protobuf_AssignDesc_dota_5fusermessages_2eproto(); + friend void protobuf_ShutdownFile_dota_5fusermessages_2eproto(); + + void InitAsDefaultInstance(); + static CDOTAUserMsg_AddQuestLogEntry* default_instance_; +}; +// ------------------------------------------------------------------- + +class CDOTAUserMsg_SendStatPopup : public ::google::protobuf::Message { + public: + CDOTAUserMsg_SendStatPopup(); + virtual ~CDOTAUserMsg_SendStatPopup(); + + CDOTAUserMsg_SendStatPopup(const CDOTAUserMsg_SendStatPopup& from); + + inline CDOTAUserMsg_SendStatPopup& operator=(const CDOTAUserMsg_SendStatPopup& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CDOTAUserMsg_SendStatPopup& default_instance(); + + void Swap(CDOTAUserMsg_SendStatPopup* other); + + // implements Message ---------------------------------------------- + + CDOTAUserMsg_SendStatPopup* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CDOTAUserMsg_SendStatPopup& from); + void MergeFrom(const CDOTAUserMsg_SendStatPopup& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional int32 player_id = 1; + inline bool has_player_id() const; + inline void clear_player_id(); + static const int kPlayerIdFieldNumber = 1; + inline ::google::protobuf::int32 player_id() const; + inline void set_player_id(::google::protobuf::int32 value); + + // optional .CDOTAMsg_SendStatPopup statpopup = 2; + inline bool has_statpopup() const; + inline void clear_statpopup(); + static const int kStatpopupFieldNumber = 2; + inline const ::CDOTAMsg_SendStatPopup& statpopup() const; + inline ::CDOTAMsg_SendStatPopup* mutable_statpopup(); + inline ::CDOTAMsg_SendStatPopup* release_statpopup(); + + // @@protoc_insertion_point(class_scope:CDOTAUserMsg_SendStatPopup) + private: + inline void set_has_player_id(); + inline void clear_has_player_id(); + inline void set_has_statpopup(); + inline void clear_has_statpopup(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::CDOTAMsg_SendStatPopup* statpopup_; + ::google::protobuf::int32 player_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_dota_5fusermessages_2eproto(); + friend void protobuf_AssignDesc_dota_5fusermessages_2eproto(); + friend void protobuf_ShutdownFile_dota_5fusermessages_2eproto(); + + void InitAsDefaultInstance(); + static CDOTAUserMsg_SendStatPopup* default_instance_; +}; // =================================================================== @@ -11544,6 +11877,184 @@ inline void CDOTAUserMsg_TutorialTipInfo::set_progress(::google::protobuf::int32 // ------------------------------------------------------------------- +// CDOTAUserMsg_TutorialFinish + +// optional string heading = 1; +inline bool CDOTAUserMsg_TutorialFinish::has_heading() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CDOTAUserMsg_TutorialFinish::set_has_heading() { + _has_bits_[0] |= 0x00000001u; +} +inline void CDOTAUserMsg_TutorialFinish::clear_has_heading() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CDOTAUserMsg_TutorialFinish::clear_heading() { + if (heading_ != &::google::protobuf::internal::kEmptyString) { + heading_->clear(); + } + clear_has_heading(); +} +inline const ::std::string& CDOTAUserMsg_TutorialFinish::heading() const { + return *heading_; +} +inline void CDOTAUserMsg_TutorialFinish::set_heading(const ::std::string& value) { + set_has_heading(); + if (heading_ == &::google::protobuf::internal::kEmptyString) { + heading_ = new ::std::string; + } + heading_->assign(value); +} +inline void CDOTAUserMsg_TutorialFinish::set_heading(const char* value) { + set_has_heading(); + if (heading_ == &::google::protobuf::internal::kEmptyString) { + heading_ = new ::std::string; + } + heading_->assign(value); +} +inline void CDOTAUserMsg_TutorialFinish::set_heading(const char* value, size_t size) { + set_has_heading(); + if (heading_ == &::google::protobuf::internal::kEmptyString) { + heading_ = new ::std::string; + } + heading_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CDOTAUserMsg_TutorialFinish::mutable_heading() { + set_has_heading(); + if (heading_ == &::google::protobuf::internal::kEmptyString) { + heading_ = new ::std::string; + } + return heading_; +} +inline ::std::string* CDOTAUserMsg_TutorialFinish::release_heading() { + clear_has_heading(); + if (heading_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = heading_; + heading_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// optional string emblem = 2; +inline bool CDOTAUserMsg_TutorialFinish::has_emblem() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CDOTAUserMsg_TutorialFinish::set_has_emblem() { + _has_bits_[0] |= 0x00000002u; +} +inline void CDOTAUserMsg_TutorialFinish::clear_has_emblem() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CDOTAUserMsg_TutorialFinish::clear_emblem() { + if (emblem_ != &::google::protobuf::internal::kEmptyString) { + emblem_->clear(); + } + clear_has_emblem(); +} +inline const ::std::string& CDOTAUserMsg_TutorialFinish::emblem() const { + return *emblem_; +} +inline void CDOTAUserMsg_TutorialFinish::set_emblem(const ::std::string& value) { + set_has_emblem(); + if (emblem_ == &::google::protobuf::internal::kEmptyString) { + emblem_ = new ::std::string; + } + emblem_->assign(value); +} +inline void CDOTAUserMsg_TutorialFinish::set_emblem(const char* value) { + set_has_emblem(); + if (emblem_ == &::google::protobuf::internal::kEmptyString) { + emblem_ = new ::std::string; + } + emblem_->assign(value); +} +inline void CDOTAUserMsg_TutorialFinish::set_emblem(const char* value, size_t size) { + set_has_emblem(); + if (emblem_ == &::google::protobuf::internal::kEmptyString) { + emblem_ = new ::std::string; + } + emblem_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CDOTAUserMsg_TutorialFinish::mutable_emblem() { + set_has_emblem(); + if (emblem_ == &::google::protobuf::internal::kEmptyString) { + emblem_ = new ::std::string; + } + return emblem_; +} +inline ::std::string* CDOTAUserMsg_TutorialFinish::release_emblem() { + clear_has_emblem(); + if (emblem_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = emblem_; + emblem_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// optional string body = 3; +inline bool CDOTAUserMsg_TutorialFinish::has_body() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void CDOTAUserMsg_TutorialFinish::set_has_body() { + _has_bits_[0] |= 0x00000004u; +} +inline void CDOTAUserMsg_TutorialFinish::clear_has_body() { + _has_bits_[0] &= ~0x00000004u; +} +inline void CDOTAUserMsg_TutorialFinish::clear_body() { + if (body_ != &::google::protobuf::internal::kEmptyString) { + body_->clear(); + } + clear_has_body(); +} +inline const ::std::string& CDOTAUserMsg_TutorialFinish::body() const { + return *body_; +} +inline void CDOTAUserMsg_TutorialFinish::set_body(const ::std::string& value) { + set_has_body(); + if (body_ == &::google::protobuf::internal::kEmptyString) { + body_ = new ::std::string; + } + body_->assign(value); +} +inline void CDOTAUserMsg_TutorialFinish::set_body(const char* value) { + set_has_body(); + if (body_ == &::google::protobuf::internal::kEmptyString) { + body_ = new ::std::string; + } + body_->assign(value); +} +inline void CDOTAUserMsg_TutorialFinish::set_body(const char* value, size_t size) { + set_has_body(); + if (body_ == &::google::protobuf::internal::kEmptyString) { + body_ = new ::std::string; + } + body_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CDOTAUserMsg_TutorialFinish::mutable_body() { + set_has_body(); + if (body_ == &::google::protobuf::internal::kEmptyString) { + body_ = new ::std::string; + } + return body_; +} +inline ::std::string* CDOTAUserMsg_TutorialFinish::release_body() { + clear_has_body(); + if (body_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = body_; + body_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + // CDOTAUserMsg_WorldLine // optional int32 player_id = 1; @@ -12080,6 +12591,225 @@ inline void CDOTA_UM_GamerulesStateChanged::set_state(::google::protobuf::uint32 state_ = value; } +// ------------------------------------------------------------------- + +// CDOTAUserMsg_AddQuestLogEntry + +// optional string npc_name = 1; +inline bool CDOTAUserMsg_AddQuestLogEntry::has_npc_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CDOTAUserMsg_AddQuestLogEntry::set_has_npc_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void CDOTAUserMsg_AddQuestLogEntry::clear_has_npc_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CDOTAUserMsg_AddQuestLogEntry::clear_npc_name() { + if (npc_name_ != &::google::protobuf::internal::kEmptyString) { + npc_name_->clear(); + } + clear_has_npc_name(); +} +inline const ::std::string& CDOTAUserMsg_AddQuestLogEntry::npc_name() const { + return *npc_name_; +} +inline void CDOTAUserMsg_AddQuestLogEntry::set_npc_name(const ::std::string& value) { + set_has_npc_name(); + if (npc_name_ == &::google::protobuf::internal::kEmptyString) { + npc_name_ = new ::std::string; + } + npc_name_->assign(value); +} +inline void CDOTAUserMsg_AddQuestLogEntry::set_npc_name(const char* value) { + set_has_npc_name(); + if (npc_name_ == &::google::protobuf::internal::kEmptyString) { + npc_name_ = new ::std::string; + } + npc_name_->assign(value); +} +inline void CDOTAUserMsg_AddQuestLogEntry::set_npc_name(const char* value, size_t size) { + set_has_npc_name(); + if (npc_name_ == &::google::protobuf::internal::kEmptyString) { + npc_name_ = new ::std::string; + } + npc_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CDOTAUserMsg_AddQuestLogEntry::mutable_npc_name() { + set_has_npc_name(); + if (npc_name_ == &::google::protobuf::internal::kEmptyString) { + npc_name_ = new ::std::string; + } + return npc_name_; +} +inline ::std::string* CDOTAUserMsg_AddQuestLogEntry::release_npc_name() { + clear_has_npc_name(); + if (npc_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = npc_name_; + npc_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// optional string npc_dialog = 2; +inline bool CDOTAUserMsg_AddQuestLogEntry::has_npc_dialog() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CDOTAUserMsg_AddQuestLogEntry::set_has_npc_dialog() { + _has_bits_[0] |= 0x00000002u; +} +inline void CDOTAUserMsg_AddQuestLogEntry::clear_has_npc_dialog() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CDOTAUserMsg_AddQuestLogEntry::clear_npc_dialog() { + if (npc_dialog_ != &::google::protobuf::internal::kEmptyString) { + npc_dialog_->clear(); + } + clear_has_npc_dialog(); +} +inline const ::std::string& CDOTAUserMsg_AddQuestLogEntry::npc_dialog() const { + return *npc_dialog_; +} +inline void CDOTAUserMsg_AddQuestLogEntry::set_npc_dialog(const ::std::string& value) { + set_has_npc_dialog(); + if (npc_dialog_ == &::google::protobuf::internal::kEmptyString) { + npc_dialog_ = new ::std::string; + } + npc_dialog_->assign(value); +} +inline void CDOTAUserMsg_AddQuestLogEntry::set_npc_dialog(const char* value) { + set_has_npc_dialog(); + if (npc_dialog_ == &::google::protobuf::internal::kEmptyString) { + npc_dialog_ = new ::std::string; + } + npc_dialog_->assign(value); +} +inline void CDOTAUserMsg_AddQuestLogEntry::set_npc_dialog(const char* value, size_t size) { + set_has_npc_dialog(); + if (npc_dialog_ == &::google::protobuf::internal::kEmptyString) { + npc_dialog_ = new ::std::string; + } + npc_dialog_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CDOTAUserMsg_AddQuestLogEntry::mutable_npc_dialog() { + set_has_npc_dialog(); + if (npc_dialog_ == &::google::protobuf::internal::kEmptyString) { + npc_dialog_ = new ::std::string; + } + return npc_dialog_; +} +inline ::std::string* CDOTAUserMsg_AddQuestLogEntry::release_npc_dialog() { + clear_has_npc_dialog(); + if (npc_dialog_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = npc_dialog_; + npc_dialog_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// optional bool quest = 3; +inline bool CDOTAUserMsg_AddQuestLogEntry::has_quest() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void CDOTAUserMsg_AddQuestLogEntry::set_has_quest() { + _has_bits_[0] |= 0x00000004u; +} +inline void CDOTAUserMsg_AddQuestLogEntry::clear_has_quest() { + _has_bits_[0] &= ~0x00000004u; +} +inline void CDOTAUserMsg_AddQuestLogEntry::clear_quest() { + quest_ = false; + clear_has_quest(); +} +inline bool CDOTAUserMsg_AddQuestLogEntry::quest() const { + return quest_; +} +inline void CDOTAUserMsg_AddQuestLogEntry::set_quest(bool value) { + set_has_quest(); + quest_ = value; +} + +// optional int32 quest_type = 4; +inline bool CDOTAUserMsg_AddQuestLogEntry::has_quest_type() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void CDOTAUserMsg_AddQuestLogEntry::set_has_quest_type() { + _has_bits_[0] |= 0x00000008u; +} +inline void CDOTAUserMsg_AddQuestLogEntry::clear_has_quest_type() { + _has_bits_[0] &= ~0x00000008u; +} +inline void CDOTAUserMsg_AddQuestLogEntry::clear_quest_type() { + quest_type_ = 0; + clear_has_quest_type(); +} +inline ::google::protobuf::int32 CDOTAUserMsg_AddQuestLogEntry::quest_type() const { + return quest_type_; +} +inline void CDOTAUserMsg_AddQuestLogEntry::set_quest_type(::google::protobuf::int32 value) { + set_has_quest_type(); + quest_type_ = value; +} + +// ------------------------------------------------------------------- + +// CDOTAUserMsg_SendStatPopup + +// optional int32 player_id = 1; +inline bool CDOTAUserMsg_SendStatPopup::has_player_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CDOTAUserMsg_SendStatPopup::set_has_player_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void CDOTAUserMsg_SendStatPopup::clear_has_player_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CDOTAUserMsg_SendStatPopup::clear_player_id() { + player_id_ = 0; + clear_has_player_id(); +} +inline ::google::protobuf::int32 CDOTAUserMsg_SendStatPopup::player_id() const { + return player_id_; +} +inline void CDOTAUserMsg_SendStatPopup::set_player_id(::google::protobuf::int32 value) { + set_has_player_id(); + player_id_ = value; +} + +// optional .CDOTAMsg_SendStatPopup statpopup = 2; +inline bool CDOTAUserMsg_SendStatPopup::has_statpopup() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CDOTAUserMsg_SendStatPopup::set_has_statpopup() { + _has_bits_[0] |= 0x00000002u; +} +inline void CDOTAUserMsg_SendStatPopup::clear_has_statpopup() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CDOTAUserMsg_SendStatPopup::clear_statpopup() { + if (statpopup_ != NULL) statpopup_->::CDOTAMsg_SendStatPopup::Clear(); + clear_has_statpopup(); +} +inline const ::CDOTAMsg_SendStatPopup& CDOTAUserMsg_SendStatPopup::statpopup() const { + return statpopup_ != NULL ? *statpopup_ : *default_instance_->statpopup_; +} +inline ::CDOTAMsg_SendStatPopup* CDOTAUserMsg_SendStatPopup::mutable_statpopup() { + set_has_statpopup(); + if (statpopup_ == NULL) statpopup_ = new ::CDOTAMsg_SendStatPopup; + return statpopup_; +} +inline ::CDOTAMsg_SendStatPopup* CDOTAUserMsg_SendStatPopup::release_statpopup() { + clear_has_statpopup(); + ::CDOTAMsg_SendStatPopup* temp = statpopup_; + statpopup_ = NULL; + return temp; +} + // @@protoc_insertion_point(namespace_scope) diff --git a/public/game/shared/dota/protobuf/dota_usermessages.proto b/public/game/shared/dota/protobuf/dota_usermessages.proto index dfcf6e63..2bac197b 100644 --- a/public/game/shared/dota/protobuf/dota_usermessages.proto +++ b/public/game/shared/dota/protobuf/dota_usermessages.proto @@ -117,6 +117,9 @@ enum EDotaUserMessages DOTA_UM_GamerulesStateChanged = 106; DOTA_UM_ShowSurvey = 107; DOTA_UM_TutorialFade = 108; + DOTA_UM_AddQuestLogEntry = 109; + DOTA_UM_SendStatPopup = 110; + DOTA_UM_TutorialFinish = 111; } //============================================================================= @@ -639,6 +642,13 @@ message CDOTAUserMsg_TutorialTipInfo optional int32 progress = 2; } +message CDOTAUserMsg_TutorialFinish +{ + optional string heading = 1; + optional string emblem = 2; + optional string body = 3; +} + message CDOTAUserMsg_WorldLine { optional int32 player_id = 1; @@ -698,3 +708,17 @@ message CDOTA_UM_GamerulesStateChanged optional uint32 state = 1; } +message CDOTAUserMsg_AddQuestLogEntry +{ + optional string npc_name = 1; + optional string npc_dialog = 2; + optional bool quest = 3; + optional int32 quest_type = 4; +} + +message CDOTAUserMsg_SendStatPopup +{ + optional int32 player_id = 1; + optional CDOTAMsg_SendStatPopup statpopup = 2; +} + diff --git a/public/game/shared/protobuf/ai_activity.pb.cc b/public/game/shared/protobuf/ai_activity.pb.cc index f9c51b92..50e535c2 100644 --- a/public/game/shared/protobuf/ai_activity.pb.cc +++ b/public/game/shared/protobuf/ai_activity.pb.cc @@ -53,7 +53,7 @@ void protobuf_AddDesc_ai_5factivity_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\021ai_activity.proto*\275v\n\010Activity\022\030\n\013ACT_" + "\n\021ai_activity.proto*\354{\n\010Activity\022\030\n\013ACT_" "INVALID\020\377\377\377\377\377\377\377\377\377\001\022\r\n\tACT_RESET\020\000\022\014\n\010ACT" "_IDLE\020\001\022\022\n\016ACT_TRANSITION\020\002\022\r\n\tACT_COVER" "\020\003\022\021\n\rACT_COVER_MED\020\004\022\021\n\rACT_COVER_LOW\020\005" @@ -432,7 +432,25 @@ void protobuf_AddDesc_ai_5factivity_2eproto() { "NK_BONE\020\236\004\022\033\n\026ACT_DOTA_IDLE_SLEEPING\020\237\004\022" "\023\n\016ACT_DOTA_INTRO\020\240\004\022\033\n\026ACT_DOTA_GESTURE" "_POINT\020\241\004\022\034\n\027ACT_DOTA_GESTURE_ACCENT\020\242\004\022" - "\032\n\025ACT_DOTA_SLEEPING_END\020\243\004B\005H\001\200\001\000", 15194); + "\032\n\025ACT_DOTA_SLEEPING_END\020\243\004\022\024\n\017ACT_DOTA_" + "AMBUSH\020\244\004\022\027\n\022ACT_DOTA_ITEM_LOOK\020\245\004\022\025\n\020AC" + "T_DOTA_STARTLE\020\246\004\022\031\n\024ACT_DOTA_FRUSTRATIO" + "N\020\247\004\022\034\n\027ACT_DOTA_TELEPORT_REACT\020\250\004\022 \n\033AC" + "T_DOTA_TELEPORT_END_REACT\020\251\004\022\023\n\016ACT_DOTA" + "_SHRUG\020\252\004\022\034\n\027ACT_DOTA_RELAX_LOOP_END\020\253\004\022" + "\032\n\025ACT_DOTA_PRESENT_ITEM\020\254\004\022\034\n\027ACT_DOTA_" + "IDLE_IMPATIENT\020\255\004\022\034\n\027ACT_DOTA_SHARPEN_WE" + "APON\020\256\004\022 \n\033ACT_DOTA_SHARPEN_WEAPON_OUT\020\257" + "\004\022\037\n\032ACT_DOTA_IDLE_SLEEPING_END\020\260\004\022\034\n\027AC" + "T_DOTA_BRIDGE_DESTROY\020\261\004\022\032\n\025ACT_DOTA_TAU" + "NT_SNIPER\020\262\004\022\035\n\030ACT_DOTA_DEATH_BY_SNIPER" + "\020\263\004\022\031\n\024ACT_DOTA_LOOK_AROUND\020\264\004\022\036\n\031ACT_DO" + "TA_CAGED_CREEP_RAGE\020\265\004\022\"\n\035ACT_DOTA_CAGED" + "_CREEP_RAGE_OUT\020\266\004\022\037\n\032ACT_DOTA_CAGED_CRE" + "EP_SMASH\020\267\004\022#\n\036ACT_DOTA_CAGED_CREEP_SMAS" + "H_OUT\020\270\004\022&\n!ACT_DOTA_IDLE_IMPATIENT_SWOR" + "D_TAP\020\271\004\022\030\n\023ACT_DOTA_INTRO_LOOP\020\272\004B\005H\001\200\001" + "\000", 15881); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "ai_activity.proto", &protobuf_RegisterTypes); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ai_5factivity_2eproto); @@ -998,6 +1016,29 @@ bool Activity_IsValid(int value) { case 545: case 546: case 547: + case 548: + case 549: + case 550: + case 551: + case 552: + case 553: + case 554: + case 555: + case 556: + case 557: + case 558: + case 559: + case 560: + case 561: + case 562: + case 563: + case 564: + case 565: + case 566: + case 567: + case 568: + case 569: + case 570: return true; default: return false; diff --git a/public/game/shared/protobuf/ai_activity.pb.h b/public/game/shared/protobuf/ai_activity.pb.h index 67ab662b..36fe25b8 100644 --- a/public/game/shared/protobuf/ai_activity.pb.h +++ b/public/game/shared/protobuf/ai_activity.pb.h @@ -578,11 +578,34 @@ enum Activity { ACT_DOTA_INTRO = 544, ACT_DOTA_GESTURE_POINT = 545, ACT_DOTA_GESTURE_ACCENT = 546, - ACT_DOTA_SLEEPING_END = 547 + ACT_DOTA_SLEEPING_END = 547, + ACT_DOTA_AMBUSH = 548, + ACT_DOTA_ITEM_LOOK = 549, + ACT_DOTA_STARTLE = 550, + ACT_DOTA_FRUSTRATION = 551, + ACT_DOTA_TELEPORT_REACT = 552, + ACT_DOTA_TELEPORT_END_REACT = 553, + ACT_DOTA_SHRUG = 554, + ACT_DOTA_RELAX_LOOP_END = 555, + ACT_DOTA_PRESENT_ITEM = 556, + ACT_DOTA_IDLE_IMPATIENT = 557, + ACT_DOTA_SHARPEN_WEAPON = 558, + ACT_DOTA_SHARPEN_WEAPON_OUT = 559, + ACT_DOTA_IDLE_SLEEPING_END = 560, + ACT_DOTA_BRIDGE_DESTROY = 561, + ACT_DOTA_TAUNT_SNIPER = 562, + ACT_DOTA_DEATH_BY_SNIPER = 563, + ACT_DOTA_LOOK_AROUND = 564, + ACT_DOTA_CAGED_CREEP_RAGE = 565, + ACT_DOTA_CAGED_CREEP_RAGE_OUT = 566, + ACT_DOTA_CAGED_CREEP_SMASH = 567, + ACT_DOTA_CAGED_CREEP_SMASH_OUT = 568, + ACT_DOTA_IDLE_IMPATIENT_SWORD_TAP = 569, + ACT_DOTA_INTRO_LOOP = 570 }; bool Activity_IsValid(int value); const Activity Activity_MIN = ACT_INVALID; -const Activity Activity_MAX = ACT_DOTA_SLEEPING_END; +const Activity Activity_MAX = ACT_DOTA_INTRO_LOOP; const int Activity_ARRAYSIZE = Activity_MAX + 1; const ::google::protobuf::EnumDescriptor* Activity_descriptor(); diff --git a/public/game/shared/protobuf/ai_activity.proto b/public/game/shared/protobuf/ai_activity.proto index ba7b3298..3480d672 100644 --- a/public/game/shared/protobuf/ai_activity.proto +++ b/public/game/shared/protobuf/ai_activity.proto @@ -671,6 +671,29 @@ enum Activity ACT_DOTA_GESTURE_POINT = 545; ACT_DOTA_GESTURE_ACCENT = 546; ACT_DOTA_SLEEPING_END = 547; + ACT_DOTA_AMBUSH = 548; + ACT_DOTA_ITEM_LOOK = 549; + ACT_DOTA_STARTLE = 550; + ACT_DOTA_FRUSTRATION = 551; + ACT_DOTA_TELEPORT_REACT = 552; + ACT_DOTA_TELEPORT_END_REACT = 553; + ACT_DOTA_SHRUG = 554; + ACT_DOTA_RELAX_LOOP_END = 555; + ACT_DOTA_PRESENT_ITEM = 556; + ACT_DOTA_IDLE_IMPATIENT = 557; + ACT_DOTA_SHARPEN_WEAPON = 558; + ACT_DOTA_SHARPEN_WEAPON_OUT = 559; + ACT_DOTA_IDLE_SLEEPING_END = 560; + ACT_DOTA_BRIDGE_DESTROY = 561; + ACT_DOTA_TAUNT_SNIPER = 562; + ACT_DOTA_DEATH_BY_SNIPER = 563; + ACT_DOTA_LOOK_AROUND = 564; + ACT_DOTA_CAGED_CREEP_RAGE = 565; + ACT_DOTA_CAGED_CREEP_RAGE_OUT = 566; + ACT_DOTA_CAGED_CREEP_SMASH = 567; + ACT_DOTA_CAGED_CREEP_SMASH_OUT = 568; + ACT_DOTA_IDLE_IMPATIENT_SWORD_TAP = 569; + ACT_DOTA_INTRO_LOOP = 570; };