More refactors

This commit is contained in:
zumorica
2020-05-20 15:15:17 +02:00
parent fede057bc4
commit 400a71f8a1
4 changed files with 69 additions and 12 deletions

View File

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