2020-06-12 16:22:36 +02:00
|
|
|
|
using Content.Client.GameObjects.Components.Mobs;
|
2020-12-08 11:56:10 +01:00
|
|
|
|
using JetBrains.Annotations;
|
2020-06-12 16:22:36 +02:00
|
|
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
|
|
using Robust.Shared.Interfaces.Timing;
|
|
|
|
|
|
using Robust.Shared.IoC;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.GameObjects.EntitySystems
|
|
|
|
|
|
{
|
2020-12-08 11:56:10 +01:00
|
|
|
|
[UsedImplicitly]
|
2020-11-09 20:22:19 -08:00
|
|
|
|
public class AlertsSystem : EntitySystem
|
2020-06-12 16:22:36 +02:00
|
|
|
|
{
|
2020-08-24 14:10:28 +02:00
|
|
|
|
[Dependency] private readonly IGameTiming _gameTiming = default!;
|
2020-06-12 16:22:36 +02:00
|
|
|
|
|
|
|
|
|
|
public override void FrameUpdate(float frameTime)
|
|
|
|
|
|
{
|
|
|
|
|
|
base.FrameUpdate(frameTime);
|
|
|
|
|
|
|
|
|
|
|
|
if (!_gameTiming.IsFirstTimePredicted)
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
2020-11-09 20:22:19 -08:00
|
|
|
|
foreach (var clientAlertsComponent in EntityManager.ComponentManager.EntityQuery<ClientAlertsComponent>())
|
2020-06-12 16:22:36 +02:00
|
|
|
|
{
|
2020-11-09 20:22:19 -08:00
|
|
|
|
clientAlertsComponent.FrameUpdate(frameTime);
|
2020-06-12 16:22:36 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|