Files
tbd-station-14/Content.Server/AI/SleepAiMessage.cs
2021-06-09 22:19:39 +02:00

25 lines
692 B
C#

using Content.Server.AI.Components;
using Robust.Shared.GameObjects;
namespace Content.Server.AI
{
/// <summary>
/// Indicates whether an AI should be updated by the AiSystem or not.
/// Useful to sleep AI when they die or otherwise should be inactive.
/// </summary>
internal sealed class SleepAiMessage : EntityEventArgs
{
/// <summary>
/// Sleep or awake.
/// </summary>
public bool Sleep { get; }
public AiControllerComponent Component { get; }
public SleepAiMessage(AiControllerComponent component, bool sleep)
{
Component = component;
Sleep = sleep;
}
}
}