mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-07 07:41:26 +00:00
feat: activity component debug stuff and fix issues with duplicates in debug ui (#1850)
Tested that duplicate data in ui is no longer hidden and that activity debug stuff is shown
This commit is contained in:
@@ -385,16 +385,19 @@ bool ControllablePhysicsComponent::OnGetObjectReportInfo(GameMessages::GameMsg&
|
||||
info.PushDebug<AMFBoolValue>("Is Static") = m_Static;
|
||||
|
||||
auto& pickupRadii = info.PushDebug("Active Pickup Radius Scales");
|
||||
|
||||
size_t i = 0;
|
||||
for (const auto& scale : m_ActivePickupRadiusScales) {
|
||||
pickupRadii.PushDebug<AMFStringValue>(std::to_string(scale)) = "";
|
||||
pickupRadii.PushDebug<AMFStringValue>(std::to_string(i++) + " " + std::to_string(scale)) = "";
|
||||
}
|
||||
|
||||
info.PushDebug<AMFDoubleValue>("Largest Pickup Radius") = m_PickupRadius;
|
||||
info.PushDebug<AMFBoolValue>("Is Teleporting") = m_IsTeleporting;
|
||||
|
||||
auto& activeSpeedBoosts = info.PushDebug("Active Speed Boosts");
|
||||
i = 0;
|
||||
for (const auto& boost : m_ActiveSpeedBoosts) {
|
||||
activeSpeedBoosts.PushDebug<AMFStringValue>(std::to_string(boost)) = "";
|
||||
activeSpeedBoosts.PushDebug<AMFStringValue>(std::to_string(i++) + " " + std::to_string(boost)) = "";
|
||||
}
|
||||
|
||||
info.PushDebug<AMFDoubleValue>("Speed Boost") = m_SpeedBoost;
|
||||
|
Reference in New Issue
Block a user