2021-06-19 13:25:05 +02:00
|
|
|
using Content.Shared.Atmos;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Atmos.Piping.Other.Components
|
|
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class GasMinerComponent : Component
|
2021-06-19 13:25:05 +02:00
|
|
|
{
|
|
|
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
public bool Broken { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("maxExternalAmount")]
|
|
|
|
|
public float MaxExternalAmount { get; set; } = float.PositiveInfinity;
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("maxExternalPressure")]
|
2021-10-19 20:07:47 +01:00
|
|
|
public float MaxExternalPressure { get; set; } = Atmospherics.GasMinerDefaultMaxExternalPressure;
|
2021-06-19 13:25:05 +02:00
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("spawnGas")]
|
2021-06-21 10:51:06 +02:00
|
|
|
public Gas? SpawnGas { get; set; } = null;
|
2021-06-19 13:25:05 +02:00
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("spawnTemperature")]
|
|
|
|
|
public float SpawnTemperature { get; set; } = Atmospherics.T20C;
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("spawnAmount")]
|
|
|
|
|
public float SpawnAmount { get; set; } = Atmospherics.MolesCellStandard * 20f;
|
|
|
|
|
}
|
|
|
|
|
}
|