Final touches on the first pass of imgui hierarchy debugger

Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
This commit is contained in:
AMZN-Olex
2021-10-07 12:53:33 -04:00
parent 77c23b6c8f
commit a114077e72
4 changed files with 298 additions and 13 deletions
@@ -15,6 +15,9 @@
namespace Multiplayer
{
/**
* /brief Provides ImGui and debug draw hierarchy information at runtime.
*/
class MultiplayerDebugHierarchyReporter
: public AZ::EntitySystemBus::Handler
{
@@ -22,15 +25,17 @@ namespace Multiplayer
MultiplayerDebugHierarchyReporter();
~MultiplayerDebugHierarchyReporter() override;
//! main update loop
//! Main update loop.
void OnImGuiUpdate();
//! Draws bandwidth text over entities
//! Draws hierarchy information over hierarchy root entities.
void UpdateDebugOverlay();
//! EntitySystemBus overrides.
//! @{
void OnEntityActivated(const AZ::EntityId& entityId) override;
void OnEntityDeactivated(const AZ::EntityId& entityId) override;
//! @}
private:
AZ::ScheduledEvent m_updateDebugOverlay;
@@ -46,7 +51,9 @@ namespace Multiplayer
AZStd::unordered_map<NetworkHierarchyRootComponent*, HierarchyRootInfo> m_hierarchyRoots;
void CollectHierarchyRoots();
char m_statusBuffer[100] = {};
float m_awarenessRadius = 1000.f;
};
}