Files
OldThink/Content.Server/GameObjects/EntitySystems/InstrumentSystem.cs

26 lines
687 B
C#
Raw Normal View History

2020-05-20 17:13:49 +02:00
using Content.Server.GameObjects.Components.Instruments;
2020-05-18 13:29:31 +02:00
using Robust.Shared.GameObjects;
using Robust.Shared.GameObjects.Systems;
2020-05-20 17:13:49 +02:00
namespace Content.Server.GameObjects.EntitySystems
2020-05-18 13:29:31 +02:00
{
public class InstrumentSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
2020-05-20 17:13:49 +02:00
EntityQuery = new TypeEntityQuery(typeof(InstrumentComponent));
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 17:13:49 +02:00
entity.GetComponent<InstrumentComponent>().Update(frameTime);
2020-05-18 13:29:31 +02:00
}
}
}
}