Files
tbd-station-14/Content.Shared/Atmos/Rotting/AntiRotOnBuckleComponent.cs
Kot e97fd47a87 Powered stasis bed prevents body decay (#23520)
* Powered stasis bed prevents body decay

* Update following CR comments

* Remove unused import

* Simplify if-statements

* Change implementation following CR suggestions

* Add comment & remove explicit get/set
2024-01-09 01:40:52 -05:00

23 lines
653 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Atmos.Rotting;
/// <summary>
/// Perishable entities buckled to an entity with this component will stop rotting.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class AntiRotOnBuckleComponent : Component
{
/// <summary>
/// Does this component require power to function.
/// </summary>
[DataField("requiresPower"), ViewVariables(VVAccess.ReadWrite)]
public bool RequiresPower = true;
/// <summary>
/// Whether this component is active or not.
/// </summarY>
[ViewVariables(VVAccess.ReadWrite)]
public bool Enabled = true;
}