Files
OldThink/Content.Shared/Containers/DragInsertContainerComponent.cs
2024-01-28 08:05:56 +03:00

26 lines
744 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Containers;
/// <summary>
/// This is used for a container that can have entities inserted into it via a
/// </summary>
[RegisterComponent, NetworkedComponent]
[Access(typeof(DragInsertContainerSystem))]
public sealed partial class DragInsertContainerComponent : Component
{
[DataField, ViewVariables(VVAccess.ReadWrite)]
public string ContainerId;
/// <summary>
/// If true, there will also be verbs for inserting / removing objects from this container.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public bool UseVerbs = true;
public DragInsertContainerComponent(string containerId)
{
ContainerId = containerId;
}
}