Files
tbd-station-14/Content.Server/Atmos/Piping/Binary/Components/GasValveComponent.cs
2021-11-06 17:32:33 -07:00

26 lines
735 B
C#

using Content.Shared.Interaction;
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
{
public override string Name => "GasValve";
[ViewVariables]
[DataField("open")]
public bool Open { get; set; } = true;
[DataField("pipe")]
[ViewVariables(VVAccess.ReadWrite)]
public string PipeName { get; } = "pipe";
[DataField("valveSound")]
public SoundSpecifier _valveSound { get; } = new SoundCollectionSpecifier("valveSqueak");
}
}