* 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
23 lines
653 B
C#
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;
|
|
}
|