committed by
GitHub
parent
ea60a81fdf
commit
103bc19508
26
Content.Server/Power/EntitySystems/PowerApcSystem.cs
Normal file
26
Content.Server/Power/EntitySystems/PowerApcSystem.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
#nullable enable
|
||||
using Content.Server.Power.Components;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Power.EntitySystems
|
||||
{
|
||||
[UsedImplicitly]
|
||||
internal sealed class PowerApcSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
UpdatesAfter.Add(typeof(PowerNetSystem));
|
||||
}
|
||||
|
||||
public override void Update(float frameTime)
|
||||
{
|
||||
foreach (var apc in ComponentManager.EntityQuery<ApcComponent>())
|
||||
{
|
||||
apc.Update();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user