Files
tbd-station-14/Content.Server/Atmos/Piping/Binary/Components/GasValveComponent.cs
2022-02-02 14:35:40 +11:00

25 lines
702 B
C#

using Content.Shared.Sound;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Atmos.Piping.Binary.Components
{
[RegisterComponent]
public class GasValveComponent : Component
{
[ViewVariables]
[DataField("open")]
public bool Open { get; set; } = true;
[DataField("inlet")]
public string InletName { get; set; } = "inlet";
[DataField("outlet")]
public string OutletName { get; set; } = "outlet";
[DataField("valveSound")]
public SoundSpecifier ValveSound { get; } = new SoundCollectionSpecifier("valveSqueak");
}
}