Portable Generator Rework (#19302)

This commit is contained in:
Pieter-Jan Briers
2023-08-25 20:40:42 +02:00
committed by GitHub
parent 50828363fe
commit bf16698efa
73 changed files with 1933 additions and 473 deletions

View File

@@ -13,6 +13,7 @@ namespace Content.Server.Power.Components
}
public abstract partial class BaseNetConnectorComponent<TNetType> : Component, IBaseNetConnectorComponent<TNetType>
where TNetType : class
{
[Dependency] private readonly IEntityManager _entMan = default!;
@@ -46,7 +47,10 @@ namespace Content.Server.Power.Components
public void ClearNet()
{
if (_net != null)
{
RemoveSelfFromNet(_net);
_net = null;
}
}
protected abstract void AddSelfToNet(TNetType net);