Predict gas valves (#33836)
* Predict gas valves * wawawewa * Fix imports before I get yelled at * soff
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using Content.Shared.Atmos.Piping.Binary.Systems;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Atmos.Piping.Binary.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Component for manual atmospherics pumps that can open or close to let gas through.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(SharedGasValveSystem))]
|
||||
public sealed partial class GasValveComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether the valve is currently open and letting gas through.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadOnly)]
|
||||
public bool Open = true;
|
||||
|
||||
/// <summary>
|
||||
/// Inlet for the nodecontainer.
|
||||
/// </summary>
|
||||
[DataField("inlet")]
|
||||
public string InletName = "inlet";
|
||||
|
||||
/// <summary>
|
||||
/// Outlet for the nodecontainer.
|
||||
/// </summary>
|
||||
[DataField("outlet")]
|
||||
public string OutletName = "outlet";
|
||||
|
||||
/// <summary>
|
||||
/// Sound when <see cref="Open"/> is toggled.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public SoundSpecifier ValveSound = new SoundCollectionSpecifier("valveSqueak");
|
||||
}
|
||||
Reference in New Issue
Block a user