committed by
GitHub
parent
ea60a81fdf
commit
103bc19508
24
Content.Server/Power/Components/BatteryChargerComponent.cs
Normal file
24
Content.Server/Power/Components/BatteryChargerComponent.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Content.Server.Power.NodeGroups;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Power.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Connects the loading side of a <see cref="BatteryComponent"/> to a non-APC power network.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public class BatteryChargerComponent : BasePowerNetComponent
|
||||
{
|
||||
public override string Name => "BatteryCharger";
|
||||
|
||||
protected override void AddSelfToNet(IPowerNet net)
|
||||
{
|
||||
net.AddCharger(this);
|
||||
}
|
||||
|
||||
protected override void RemoveSelfFromNet(IPowerNet net)
|
||||
{
|
||||
net.RemoveCharger(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user