2021-06-09 22:19:39 +02:00
|
|
|
using Content.Server.AI.LoadBalancer;
|
2020-06-18 22:52:44 +10:00
|
|
|
using Content.Shared.AI;
|
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.AI.EntitySystems
|
2020-06-18 22:52:44 +10:00
|
|
|
{
|
|
|
|
|
#if DEBUG
|
|
|
|
|
[UsedImplicitly]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class ServerAiDebugSystem : EntitySystem
|
2020-06-18 22:52:44 +10:00
|
|
|
{
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
{
|
|
|
|
|
base.Initialize();
|
|
|
|
|
AiActionRequestJob.FoundAction += NotifyActionJob;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Shutdown()
|
|
|
|
|
{
|
|
|
|
|
base.Shutdown();
|
|
|
|
|
AiActionRequestJob.FoundAction -= NotifyActionJob;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void NotifyActionJob(SharedAiDebug.UtilityAiDebugMessage message)
|
|
|
|
|
{
|
2021-04-14 14:12:11 +02:00
|
|
|
RaiseNetworkEvent(message);
|
2020-06-18 22:52:44 +10:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
}
|