Files
tbd-station-14/Content.Shared/_Offbrand/Surgery/WhitelistConstructionGraphStep.cs
Janet Blackquill 5fa17e22a1 De-MPL Offbrand
2025-09-27 22:43:24 -04:00

21 lines
631 B
C#

using Content.Shared.Construction.Steps;
using Content.Shared.Whitelist;
namespace Content.Shared._Offbrand.Surgery;
public sealed partial class WhitelistConstructionGraphStep : ArbitraryInsertConstructionGraphStep
{
[DataField]
public EntityWhitelist? Whitelist;
[DataField]
public EntityWhitelist? Blacklist;
public override bool EntityValid(EntityUid uid, IEntityManager entityManager, IComponentFactory compFactory)
{
var entityWhitelist = entityManager.EntitySysManager.GetEntitySystem<EntityWhitelistSystem>();
return entityWhitelist.CheckBoth(uid, Blacklist, Whitelist);
}
}