2021-07-04 18:11:52 +02:00
|
|
|
|
using Content.Server.Power.NodeGroups;
|
2020-06-28 09:23:26 -06:00
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Server.Power.Components
|
2020-06-28 09:23:26 -06:00
|
|
|
|
{
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class BatteryDischargerComponent : BasePowerNetComponent
|
2020-06-28 09:23:26 -06:00
|
|
|
|
{
|
2021-07-04 18:11:52 +02:00
|
|
|
|
protected override void AddSelfToNet(IPowerNet net)
|
2020-06-28 09:23:26 -06:00
|
|
|
|
{
|
2021-07-04 18:11:52 +02:00
|
|
|
|
net.AddDischarger(this);
|
2020-06-28 09:23:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
|
2021-07-04 18:11:52 +02:00
|
|
|
|
protected override void RemoveSelfFromNet(IPowerNet net)
|
2020-06-28 09:23:26 -06:00
|
|
|
|
{
|
2021-07-04 18:11:52 +02:00
|
|
|
|
net.RemoveDischarger(this);
|
2020-06-28 09:23:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|