2021-02-02 05:20:24 -06:00
|
|
|
#nullable enable
|
2020-08-13 14:40:27 +02:00
|
|
|
using Content.Server.GameObjects.Components.Power.ApcNetComponents;
|
2020-08-13 22:17:12 +10:00
|
|
|
using JetBrains.Annotations;
|
2021-02-11 01:13:03 -08:00
|
|
|
using Robust.Shared.GameObjects;
|
2018-07-26 14:26:19 -07:00
|
|
|
|
2020-08-13 14:40:27 +02:00
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
2018-07-26 14:26:19 -07:00
|
|
|
{
|
2020-08-13 22:17:12 +10:00
|
|
|
[UsedImplicitly]
|
|
|
|
|
internal sealed class PowerApcSystem : EntitySystem
|
2018-07-26 14:26:19 -07:00
|
|
|
{
|
|
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
{
|
2020-10-26 22:07:11 +11:00
|
|
|
foreach (var apc in ComponentManager.EntityQuery<ApcComponent>(false))
|
2018-07-26 14:26:19 -07:00
|
|
|
{
|
2020-08-13 22:17:12 +10:00
|
|
|
apc.Update();
|
2020-06-28 09:23:26 -06:00
|
|
|
}
|
2018-07-26 14:26:19 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|