AntiRotOnBuckleComponent.cs 653 B

12345678910111213141516171819202122
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Atmos.Rotting;
  3. /// <summary>
  4. /// Perishable entities buckled to an entity with this component will stop rotting.
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent]
  7. public sealed partial class AntiRotOnBuckleComponent : Component
  8. {
  9. /// <summary>
  10. /// Does this component require power to function.
  11. /// </summary>
  12. [DataField("requiresPower"), ViewVariables(VVAccess.ReadWrite)]
  13. public bool RequiresPower = true;
  14. /// <summary>
  15. /// Whether this component is active or not.
  16. /// </summarY>
  17. [ViewVariables(VVAccess.ReadWrite)]
  18. public bool Enabled = true;
  19. }