Make manual valves work (#6121)

* Make manual valves work

* Change some GasValveSystem lookups
This commit is contained in:
wrexbe
2022-01-15 05:18:45 -08:00
committed by GitHub
parent a3c1d8f22a
commit 94207a42e9
7 changed files with 102 additions and 17 deletions

View File

@@ -1,4 +1,3 @@
using Content.Shared.Interaction;
using Content.Shared.Sound;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
@@ -15,11 +14,13 @@ namespace Content.Server.Atmos.Piping.Binary.Components
[DataField("open")]
public bool Open { get; set; } = true;
[DataField("pipe")]
[ViewVariables(VVAccess.ReadWrite)]
public string PipeName { get; } = "pipe";
[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");
public SoundSpecifier ValveSound { get; } = new SoundCollectionSpecifier("valveSqueak");
}
}