diff --git a/dGame/dComponents/ModelComponent.cpp b/dGame/dComponents/ModelComponent.cpp index f5f4e190..85d206e2 100644 --- a/dGame/dComponents/ModelComponent.cpp +++ b/dGame/dComponents/ModelComponent.cpp @@ -24,6 +24,7 @@ ModelComponent::ModelComponent(Entity* parent, const int32_t componentID) : Comp m_userModelID = m_Parent->GetVarAs(u"userModelID"); RegisterMsg(this, &ModelComponent::OnRequestUse); RegisterMsg(this, &ModelComponent::OnResetModelToDefaults); + RegisterMsg(this, &ModelComponent::OnGetObjectReportInfo); } bool ModelComponent::OnResetModelToDefaults(GameMessages::GameMsg& msg) { @@ -338,3 +339,19 @@ void ModelComponent::RemoveAttack() { set.Send(); } } + +bool ModelComponent::OnGetObjectReportInfo(GameMessages::GameMsg& msg) { + auto& reportMsg = static_cast(msg); + if (!reportMsg.info) return false; + auto& cmptInfo = reportMsg.info->PushDebug("Model Behaviors (Mutable)"); + cmptInfo.PushDebug("Component ID") = GetComponentID(); + + cmptInfo.PushDebug("Name") = "Objects_" + std::to_string(m_Parent->GetLOT()) + "_name"; + cmptInfo.PushDebug("Has Unique Name") = false; + cmptInfo.PushDebug("UGID (from item)") = std::to_string(m_userModelID); + cmptInfo.PushDebug("UGID") = std::to_string(m_userModelID); + cmptInfo.PushDebug("Description") = ""; + cmptInfo.PushDebug("Behavior Count") = m_Behaviors.size(); + + return true; +} diff --git a/dGame/dComponents/ModelComponent.h b/dGame/dComponents/ModelComponent.h index 981abc8d..97b165cb 100644 --- a/dGame/dComponents/ModelComponent.h +++ b/dGame/dComponents/ModelComponent.h @@ -34,6 +34,7 @@ public: bool OnRequestUse(GameMessages::GameMsg& msg); bool OnResetModelToDefaults(GameMessages::GameMsg& msg); + bool OnGetObjectReportInfo(GameMessages::GameMsg& msg); void Serialize(RakNet::BitStream& outBitStream, bool bIsInitialUpdate) override;