* Construction WiP * Construction kinda works! * Lots more construction work. * It mostly works!
24 lines
641 B
C#
24 lines
641 B
C#
using Content.Server.GameObjects.Components.Interactable.Tools;
|
|
using SS14.Shared.GameObjects;
|
|
using SS14.Shared.GameObjects.Systems;
|
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
|
{
|
|
class WelderSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
EntityQuery = new TypeEntityQuery(typeof(WelderComponent));
|
|
}
|
|
|
|
public override void Update(float frameTime)
|
|
{
|
|
foreach (var entity in RelevantEntities)
|
|
{
|
|
var comp = entity.GetComponent<WelderComponent>();
|
|
comp.OnUpdate(frameTime);
|
|
}
|
|
}
|
|
}
|
|
}
|