ContainerHeldComponent.cs 522 B

12345678910111213141516
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.ContainerHeld;
  3. [RegisterComponent, NetworkedComponent]
  4. public sealed partial class ContainerHeldComponent: Component
  5. {
  6. /// <summary>
  7. /// The amount of weight needed to be in the container
  8. /// in order for it to toggle it's appearance
  9. /// to ToggleVisuals.Toggled = true, and
  10. /// SetHeldPrefix() to "full" instead of "empty".
  11. /// </summary>
  12. [DataField("threshold")]
  13. public int Threshold { get; private set; } = 1;
  14. }