6
2025-12-18 02:55:17 +03:00

25 lines
786 B
C#

using Content.Shared.Construction.EntitySystems;
using Content.Shared.Whitelist;
using Robust.Shared.GameStates;
namespace Content.Shared.Construction.Components;
/// <summary>
/// Will not allow anchoring if there is an anchored item in the same tile that fails the <see cref="EntityWhitelist"/>.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(BlockAnchorOnSystem))]
public sealed partial class BlockAnchorOnComponent : Component
{
/// <summary>
/// If not null, entities that match this whitelist are allowed.
/// </summary>
[DataField]
public EntityWhitelist? Whitelist;
/// <summary>
/// If not null, entities that match this blacklist are not allowed.
/// </summary>
[DataField]
public EntityWhitelist? Blacklist;
}