Remove IoC resolves in BaseNetConnectorNodeGroup and friends (#20333)

This commit is contained in:
Leon Friedrich
2023-09-20 00:44:49 +12:00
committed by GitHub
parent 39af74e0a3
commit 86fa8ae180
6 changed files with 53 additions and 50 deletions

View File

@@ -5,6 +5,9 @@ using Content.Server.NodeContainer.NodeGroups;
namespace Content.Server.Power.Components
{
// TODO find a way to just remove this or turn it into one component.
// Component interface queries require enumerating over ALL of an entities components.
// So BaseNetConnectorNodeGroup<TNetType> is slow as shit.
public interface IBaseNetConnectorComponent<in TNetType>
{
public TNetType? Net { set; }