using System.Collections.Generic;
using System.Linq;
using Content.Server.GameObjects.Components.Interactable;
using Robust.Shared.GameObjects;
using Robust.Shared.GameObjects.Systems;
namespace Content.Server.GameObjects.EntitySystems
{
///
/// Despite the name, it's only really used for the welder logic in tools. Go figure.
///
public class WelderSystem : EntitySystem
{
public override void Update(float frameTime)
{
foreach (var welder in EntityManager.ComponentManager.EntityQuery())
{
if(welder.WelderLit && !welder.Owner.Deleted)
welder.OnUpdate(frameTime);
}
}
}
}