* Engine namespace changes.
* Automated remove redundant using statements.
* Simplified Graphics namespace.
* Apparently the container system stores full type names in the map file.😞 This updates those names.
* API Changes to LocalizationManager.LoadCulture.
* Update submodule to v0.3.2
22 lines
605 B
C#
22 lines
605 B
C#
using Content.Server.GameObjects.Components.Research;
|
|
using JetBrains.Annotations;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
|
{
|
|
[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());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|