Make NPC steering actually debuggable (#14142)
This commit is contained in:
@@ -18,6 +18,7 @@ namespace Content.Client.NPC
|
||||
[Dependency] private readonly IInputManager _inputManager = default!;
|
||||
[Dependency] private readonly IMapManager _mapManager = default!;
|
||||
[Dependency] private readonly IResourceCache _cache = default!;
|
||||
[Dependency] private readonly NPCSteeringSystem _steering = default!;
|
||||
|
||||
public PathfindingDebugMode Modes
|
||||
{
|
||||
@@ -37,6 +38,15 @@ namespace Content.Client.NPC
|
||||
overlayManager.AddOverlay(new PathfindingOverlay(EntityManager, _eyeManager, _inputManager, _mapManager, _cache, this));
|
||||
}
|
||||
|
||||
if ((value & PathfindingDebugMode.Steering) != 0x0)
|
||||
{
|
||||
_steering.DebugEnabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
_steering.DebugEnabled = false;
|
||||
}
|
||||
|
||||
_modes = value;
|
||||
|
||||
RaiseNetworkEvent(new RequestPathfindingDebugMessage()
|
||||
|
||||
Reference in New Issue
Block a user