* Change EntityQuery to not retrieve paused by default * GetAllComponents Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
20 lines
503 B
C#
20 lines
503 B
C#
#nullable enable
|
|
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)
|
|
{
|
|
foreach (var comp in ComponentManager.EntityQuery<BatteryComponent>(true))
|
|
{
|
|
comp.OnUpdate(frameTime);
|
|
}
|
|
}
|
|
}
|
|
}
|