using Content.Shared.Body.Components; using Content.Shared.Inventory; using Robust.Shared.GameStates; namespace Content.Shared.Atmos.Components; /// /// Gas masks or the likes; used by for breathing. /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] [ComponentProtoName("BreathMask")] public sealed partial class BreathToolComponent : Component { /// /// Tool is functional only in allowed slots /// [DataField] public SlotFlags AllowedSlots = SlotFlags.MASK | SlotFlags.HEAD; [ViewVariables] public bool IsFunctional => ConnectedInternalsEntity != null; /// /// Entity that the breath tool is currently connected to. /// [DataField, AutoNetworkedField] public EntityUid? ConnectedInternalsEntity; }