Re-organize all projects (#4166)
This commit is contained in:
21
Content.Server/Lathe/LatheSystem.cs
Normal file
21
Content.Server/Lathe/LatheSystem.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Content.Server.Lathe.Components;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Lathe
|
||||
{
|
||||
[UsedImplicitly]
|
||||
internal sealed class LatheSystem : EntitySystem
|
||||
{
|
||||
public override void Update(float frameTime)
|
||||
{
|
||||
foreach (var comp in ComponentManager.EntityQuery<LatheComponent>(true))
|
||||
{
|
||||
if (comp.Producing == false && comp.Queue.Count > 0)
|
||||
{
|
||||
comp.Produce(comp.Queue.Dequeue());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user