2021-07-04 18:11:52 +02:00
|
|
|
|
using Content.Server.Power.NodeGroups;
|
2021-02-01 10:19:43 -06:00
|
|
|
|
using Robust.Shared.GameObjects;
|
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]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed 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
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|