Files
tbd-station-14/Content.Server/Nutrition/Components/IngestionBlockerComponent.cs
themias a18aac158e Add action to pull down mask (#9015)
* Add action to pull down mask

* Update based on review comments

* fix access

* cleanup

* Update based on review comments

* revert change to ToggleableClothingSystem

* switch to unequip

* Specify the unequip is for togglemaskevent only

* fix issue of activating mask in hands with something else in mask slot

* Update based on review comments

* switch to dependency for ActionSystem for consistency

* whoops other instance too

* review changes
2022-06-30 09:44:53 +02:00

22 lines
796 B
C#

using Content.Server.Clothing;
namespace Content.Server.Nutrition.EntitySystems;
/// <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, Access(typeof(FoodSystem), typeof(DrinkSystem), typeof(MaskSystem))]
public sealed class IngestionBlockerComponent : Component
{
/// <summary>
/// Is this component currently blocking consumption.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("enabled")]
public bool Enabled { get; set; } = true;
}