22 lines
573 B
C#
22 lines
573 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 class BatteryChargerComponent : BasePowerNetComponent
|
|
{
|
|
protected override void AddSelfToNet(IPowerNet net)
|
|
{
|
|
net.AddCharger(this);
|
|
}
|
|
|
|
protected override void RemoveSelfFromNet(IPowerNet net)
|
|
{
|
|
net.RemoveCharger(this);
|
|
}
|
|
}
|
|
}
|