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

23 lines
618 B
C#
Raw Normal View History

using Content.Server.GameObjects.Components.Power;
using Robust.Shared.GameObjects;
using Robust.Shared.GameObjects.Systems;
namespace Content.Server.Interfaces.GameObjects.Components.Interaction
{
internal class PowerSmesSystem : EntitySystem
{
public override void Initialize()
{
EntityQuery = new TypeEntityQuery(typeof(SmesComponent));
}
public override void Update(float frameTime)
{
foreach (var entity in RelevantEntities)
{
entity.GetComponent<SmesComponent>().OnUpdate();
}
}
}
}