Files
tbd-station-14/Content.Server/Power/Components/BatteryChargerComponent.cs
2022-02-16 18:23:23 +11:00

23 lines
606 B
C#

using Content.Server.Power.NodeGroups;
using Robust.Shared.GameObjects;
namespace Content.Server.Power.Components
{
/// <summary>
/// Connects the loading side of a <see cref="BatteryComponent"/> to a non-APC power network.
/// </summary>
[RegisterComponent]
public sealed class BatteryChargerComponent : BasePowerNetComponent
{
protected override void AddSelfToNet(IPowerNet net)
{
net.AddCharger(this);
}
protected override void RemoveSelfFromNet(IPowerNet net)
{
net.RemoveCharger(this);
}
}
}