2021-03-08 05:00:50 +01:00
|
|
|
using Content.Shared.GameObjects.Components.Mobs;
|
2020-08-13 22:17:12 +10:00
|
|
|
using JetBrains.Annotations;
|
2021-02-11 01:13:03 -08:00
|
|
|
using Robust.Shared.GameObjects;
|
2020-05-13 19:04:50 +02:00
|
|
|
|
2021-03-08 05:00:50 +01:00
|
|
|
namespace Content.Shared.GameObjects.EntitySystems
|
2020-05-13 19:04:50 +02:00
|
|
|
{
|
2020-08-13 22:17:12 +10:00
|
|
|
[UsedImplicitly]
|
|
|
|
|
internal sealed class StunSystem : EntitySystem
|
2020-05-13 19:04:50 +02:00
|
|
|
{
|
|
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
{
|
|
|
|
|
base.Update(frameTime);
|
|
|
|
|
|
2021-03-08 05:00:50 +01:00
|
|
|
foreach (var component in ComponentManager.EntityQuery<SharedStunnableComponent>(true))
|
2020-05-13 19:04:50 +02:00
|
|
|
{
|
2020-08-13 22:17:12 +10:00
|
|
|
component.Update(frameTime);
|
2020-05-13 19:04:50 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|