mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 08:07:28 +00:00
24 lines
619 B
C#
24 lines
619 B
C#
using Content.Server.GameObjects.Components.Power;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
|
{
|
|
class PowerApcSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
EntityQuery = new TypeEntityQuery(typeof(ApcComponent));
|
|
}
|
|
|
|
public override void Update(float frameTime)
|
|
{
|
|
foreach (var entity in RelevantEntities)
|
|
{
|
|
var comp = entity.GetComponent<ApcComponent>();
|
|
comp.OnUpdate();
|
|
}
|
|
}
|
|
}
|
|
}
|