Files
tbd-station-14/Content.Shared/ContainerHeld/ContainerHeldComponent.cs
metalgearsloth 2166958bd0 AutoCompState + ItemToggle fixes (#23422)
* AutoCompState + ItemToggle fixes

Fix a lot of the comp states that are never actually networked and also cleaned up ItemToggle events a bunch. ItemToggle will still need some future work for lights and sounds.

* Also catch these
2024-01-03 17:24:02 +11:00

17 lines
522 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.ContainerHeld;
[RegisterComponent, NetworkedComponent]
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;
}