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
This commit is contained in:
Kot
2024-01-09 10:40:52 +04:00
committed by GitHub
parent fd024cf131
commit e97fd47a87
4 changed files with 55 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
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;
}