2020-05-13 19:04:50 +02:00
|
|
|
using Content.Server.GameObjects.Components.Mobs;
|
2020-08-13 22:17:12 +10:00
|
|
|
using JetBrains.Annotations;
|
2020-05-13 19:04:50 +02:00
|
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
|
|
2020-08-13 14:40:27 +02:00
|
|
|
namespace Content.Server.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-02-04 00:20:48 +11:00
|
|
|
foreach (var component in ComponentManager.EntityQuery<StunnableComponent>(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
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|