Files
OldThink/Content.Shared/GameObjects/EntitySystems/SharedInstrumentSystem.cs
2020-05-20 15:15:17 +02:00

26 lines
699 B
C#

using Content.Shared.GameObjects.Components.Instruments;
using Robust.Shared.GameObjects;
using Robust.Shared.GameObjects.Systems;
namespace Content.Shared.GameObjects.EntitySystems
{
public class InstrumentSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
EntityQuery = new TypeEntityQuery(typeof(SharedInstrumentComponent));
}
public override void Update(float frameTime)
{
base.Update(frameTime);
foreach (var entity in RelevantEntities)
{
entity.GetComponent<SharedInstrumentComponent>().Update(frameTime);
}
}
}
}