32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Nutrition.Components;
|
|
// WD EDIT: Moved from Server to Shared
|
|
|
|
/// <summary>
|
|
/// Component that denotes a piece of clothing that blocks the mouth or otherwise prevents eating & drinking.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// In the event that more head-wear & mask functionality is added (like identity systems, or raising/lowering of
|
|
/// masks), then this component might become redundant.
|
|
/// </remarks>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class IngestionBlockerComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Is this component currently blocking consumption.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("enabled")]
|
|
[AutoNetworkedField]
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Goobstation
|
|
/// Is this component always prevents smoke ingestion when enabled.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField]
|
|
public bool BlockSmokeIngestion { get; set; }
|
|
}
|