using Content.Shared.Atmos.Piping.Binary.Systems;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Atmos.Piping.Binary.Components;
///
/// Component for manual atmospherics pumps that can open or close to let gas through.
///
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(SharedGasValveSystem))]
public sealed partial class GasValveComponent : Component
{
///
/// Whether the valve is currently open and letting gas through.
///
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadOnly)]
public bool Open = true;
///
/// Inlet for the nodecontainer.
///
[DataField("inlet")]
public string InletName = "inlet";
///
/// Outlet for the nodecontainer.
///
[DataField("outlet")]
public string OutletName = "outlet";
///
/// Sound when is toggled.
///
[DataField]
public SoundSpecifier ValveSound = new SoundCollectionSpecifier("valveSqueak");
}