2021-07-04 18:11:52 +02:00
|
|
|
|
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]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class BatteryChargerComponent : BasePowerNetComponent
|
2021-07-04 18:11:52 +02:00
|
|
|
|
{
|
|
|
|
|
|
protected override void AddSelfToNet(IPowerNet net)
|
|
|
|
|
|
{
|
|
|
|
|
|
net.AddCharger(this);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void RemoveSelfFromNet(IPowerNet net)
|
|
|
|
|
|
{
|
|
|
|
|
|
net.RemoveCharger(this);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|