6
StarHorizon_Public/Content.Shared/Chemistry/Components/SlotBasedConnectedContainerComponent.cs
2025-11-03 10:15:18 +03:00

26 lines
797 B
C#

using Content.Shared.Containers;
using Content.Shared.Inventory;
using Content.Shared.Whitelist;
using Robust.Shared.GameStates;
namespace Content.Shared.Chemistry.Components;
/// <summary>
/// Component for marking linked container in character slot, to which entity is bound.
/// </summary>
[RegisterComponent, Access(typeof(SlotBasedConnectedContainerSystem)), NetworkedComponent]
public sealed partial class SlotBasedConnectedContainerComponent : Component
{
/// <summary>
/// The slot in which target container should be.
/// </summary>
[DataField(required: true)]
public SlotFlags TargetSlot;
/// <summary>
/// A whitelist for determining whether container is valid or not .
/// </summary>
[DataField]
public EntityWhitelist? ContainerWhitelist;
}