Files
tbd-station-14/Content.Server/Power/Components/BatteryChargerComponent.cs

22 lines
581 B
C#

using Content.Server.Power.NodeGroups;
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 partial class BatteryChargerComponent : BasePowerNetComponent
{
protected override void AddSelfToNet(IPowerNet net)
{
net.AddCharger(this);
}
protected override void RemoveSelfFromNet(IPowerNet net)
{
net.RemoveCharger(this);
}
}
}