* 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
17 lines
522 B
C#
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;
|
|
}
|