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:
22
Content.Shared/Atmos/Rotting/AntiRotOnBuckleComponent.cs
Normal file
22
Content.Shared/Atmos/Rotting/AntiRotOnBuckleComponent.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user