2020-05-13 19:04:50 +02:00
|
|
|
using Content.Server.GameObjects.Components.Mobs;
|
2020-05-14 17:26:08 +02:00
|
|
|
using Content.Shared.GameObjects.Components.Mobs;
|
2020-05-13 19:04:50 +02:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
|
using Robust.Shared.Interfaces.GameObjects;
|
|
|
|
|
|
2020-07-06 14:27:03 -07:00
|
|
|
namespace Content.Server.Interfaces.GameObjects.Components.Interaction
|
2020-05-13 19:04:50 +02:00
|
|
|
{
|
|
|
|
|
public class StunSystem : EntitySystem
|
|
|
|
|
{
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
{
|
|
|
|
|
base.Initialize();
|
|
|
|
|
|
|
|
|
|
EntityQuery = new TypeEntityQuery(typeof(StunnableComponent));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
{
|
|
|
|
|
base.Update(frameTime);
|
|
|
|
|
|
|
|
|
|
foreach (var entity in RelevantEntities)
|
|
|
|
|
{
|
|
|
|
|
entity.GetComponent<StunnableComponent>().Update(frameTime);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|