Files
tbd-station-14/Content.Client/GameObjects/EntitySystems/CameraRecoilSystem.cs
Pieter-Jan Briers 0882435293 Fancy guns. (#152)
2019-03-23 15:04:14 +01:00

28 lines
742 B
C#

using Content.Client.GameObjects.Components.Mobs;
using SS14.Shared.GameObjects;
using SS14.Shared.GameObjects.Systems;
namespace Content.Client.GameObjects.EntitySystems
{
public sealed class CameraRecoilSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
EntityQuery = new TypeEntityQuery(typeof(CameraRecoilComponent));
}
public override void FrameUpdate(float frameTime)
{
base.FrameUpdate(frameTime);
foreach (var entity in RelevantEntities)
{
var recoil = entity.GetComponent<CameraRecoilComponent>();
recoil.FrameUpdate(frameTime);
}
}
}
}