2020-10-29 20:17:03 +02:00
|
|
|
|
using Content.Server.GameObjects.Components.Power;
|
|
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
|
|
|
|
|
{
|
|
|
|
|
|
[UsedImplicitly]
|
|
|
|
|
|
public class BatterySystem : EntitySystem
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
|
{
|
2020-11-14 00:43:29 +11:00
|
|
|
|
foreach (var comp in ComponentManager.EntityQuery<BatteryComponent>())
|
2020-10-29 20:17:03 +02:00
|
|
|
|
{
|
|
|
|
|
|
comp.OnUpdate(frameTime);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|