Files
OldThink/Content.Shared/GameObjects/EntitySystems/SharedInstrumentSystem.cs

26 lines
699 B
C#
Raw Normal View History

2020-05-20 15:15:17 +02:00
using Content.Shared.GameObjects.Components.Instruments;
2020-05-18 13:29:31 +02:00
using Robust.Shared.GameObjects;
using Robust.Shared.GameObjects.Systems;
2020-05-20 15:15:17 +02:00
namespace Content.Shared.GameObjects.EntitySystems
2020-05-18 13:29:31 +02:00
{
public class InstrumentSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
2020-05-20 15:15:17 +02:00
EntityQuery = new TypeEntityQuery(typeof(SharedInstrumentComponent));
2020-05-18 13:29:31 +02:00
}
public override void Update(float frameTime)
{
base.Update(frameTime);
foreach (var entity in RelevantEntities)
{
2020-05-20 15:15:17 +02:00
entity.GetComponent<SharedInstrumentComponent>().Update(frameTime);
2020-05-18 13:29:31 +02:00
}
}
}
}