2019-03-23 15:04:14 +01:00
|
|
|
using Content.Client.GameObjects.Components.Mobs;
|
2020-12-08 11:56:10 +01:00
|
|
|
using JetBrains.Annotations;
|
2019-04-15 21:11:38 -06:00
|
|
|
using Robust.Shared.GameObjects.Systems;
|
2019-03-23 15:04:14 +01:00
|
|
|
|
|
|
|
|
namespace Content.Client.GameObjects.EntitySystems
|
|
|
|
|
{
|
2020-12-08 11:56:10 +01:00
|
|
|
[UsedImplicitly]
|
2019-03-23 15:04:14 +01:00
|
|
|
public sealed class CameraRecoilSystem : EntitySystem
|
|
|
|
|
{
|
|
|
|
|
public override void FrameUpdate(float frameTime)
|
|
|
|
|
{
|
|
|
|
|
base.FrameUpdate(frameTime);
|
|
|
|
|
|
2020-08-16 05:38:35 +02:00
|
|
|
foreach (var recoil in EntityManager.ComponentManager.EntityQuery<CameraRecoilComponent>())
|
2019-03-23 15:04:14 +01:00
|
|
|
{
|
|
|
|
|
recoil.FrameUpdate(frameTime);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|