2020-10-14 22:32:06 +02:00
|
|
|
|
using Content.Server.GameObjects.Components.Metabolism;
|
|
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
|
|
|
|
|
{
|
|
|
|
|
|
[UsedImplicitly]
|
|
|
|
|
|
public class MetabolismSystem : EntitySystem
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
|
{
|
|
|
|
|
|
base.Update(frameTime);
|
|
|
|
|
|
|
2021-02-04 00:20:48 +11:00
|
|
|
|
foreach (var metabolism in ComponentManager.EntityQuery<MetabolismComponent>(true))
|
2020-10-14 22:32:06 +02:00
|
|
|
|
{
|
|
|
|
|
|
metabolism.Update(frameTime);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|