2020-12-08 11:56:10 +01:00
|
|
|
using JetBrains.Annotations;
|
2021-02-11 01:13:03 -08:00
|
|
|
using Robust.Shared.GameObjects;
|
2019-03-23 15:04:14 +01:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Client.Camera
|
2019-03-23 15:04:14 +01:00
|
|
|
{
|
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);
|
|
|
|
|
|
2021-09-28 13:35:29 +02:00
|
|
|
foreach (var recoil in EntityManager.EntityQuery<CameraRecoilComponent>(true))
|
2019-03-23 15:04:14 +01:00
|
|
|
{
|
|
|
|
|
recoil.FrameUpdate(frameTime);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|