2020-06-28 09:23:26 -06:00
|
|
|
|
using Content.Server.GameObjects.Components.Power.Chargers;
|
2019-11-22 09:48:56 +11:00
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
|
|
|
2020-07-06 14:27:03 -07:00
|
|
|
|
namespace Content.Server.Interfaces.GameObjects.Components.Interaction
|
2019-11-22 09:48:56 +11:00
|
|
|
|
{
|
|
|
|
|
|
[UsedImplicitly]
|
2020-06-28 09:23:26 -06:00
|
|
|
|
internal class BaseChargerSystem : EntitySystem
|
2019-11-22 09:48:56 +11:00
|
|
|
|
{
|
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
|
{
|
2020-06-28 09:23:26 -06:00
|
|
|
|
EntityQuery = new TypeEntityQuery(typeof(BaseCharger));
|
2019-11-22 09:48:56 +11:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
|
{
|
|
|
|
|
|
foreach (var entity in RelevantEntities)
|
|
|
|
|
|
{
|
2020-06-28 09:23:26 -06:00
|
|
|
|
entity.GetComponent<BaseCharger>().OnUpdate(frameTime);
|
2019-11-22 09:48:56 +11:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|