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:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user