2024-01-03 17:24:02 +11:00
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
2023-10-31 16:54:41 +01:00
|
|
|
namespace Content.Shared.ContainerHeld;
|
|
|
|
|
|
2024-01-03 17:24:02 +11:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2023-10-31 16:54:41 +01:00
|
|
|
public sealed partial class ContainerHeldComponent: Component
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The amount of weight needed to be in the container
|
|
|
|
|
/// in order for it to toggle it's appearance
|
|
|
|
|
/// to ToggleVisuals.Toggled = true, and
|
|
|
|
|
/// SetHeldPrefix() to "full" instead of "empty".
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("threshold")]
|
|
|
|
|
public int Threshold { get; private set; } = 1;
|
|
|
|
|
}
|