-
Notifications
You must be signed in to change notification settings - Fork 592
Expand file tree
/
Copy pathPortableScrubberComponent.cs
More file actions
73 lines (64 loc) · 2.1 KB
/
Copy pathPortableScrubberComponent.cs
File metadata and controls
73 lines (64 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
using Content.Shared.Atmos;
using Content.Shared.Guidebook;
namespace Content.Server.Atmos.Portable
{
[RegisterComponent]
public sealed partial class PortableScrubberComponent : Component
{
/// <summary>
/// The air inside this machine.
/// </summary>
[DataField("gasMixture"), ViewVariables(VVAccess.ReadWrite)]
public GasMixture Air { get; private set; } = new();
[DataField("port"), ViewVariables(VVAccess.ReadWrite)]
public string PortName { get; set; } = "port";
/// <summary>
/// Which gases this machine will scrub out.
/// Unlike fixed scrubbers controlled by an air alarm,
/// this can't be changed in game.
/// </summary>
[DataField("filterGases")]
public HashSet<Gas> FilterGases = new()
{
Gas.CarbonDioxide,
Gas.Plasma,
Gas.Tritium,
Gas.WaterVapor,
Gas.Ammonia,
Gas.NitrousOxide,
Gas.Frezon,
// Funkystation Start: Funky atmos - /tg/ gases
Gas.BZ,
Gas.Nitrium,
Gas.Hydrogen,
Gas.HyperNoblium,
Gas.ProtoNitrate,
Gas.Zauker,
Gas.Halon,
Gas.Helium,
Gas.AntiNoblium,
// Funkystation End: Funky atmos - /tg/ gases
#region Starlight
// Starlight gases
Gas.Ulnitranium,
Gas.ZXA,
#endregion
};
[ViewVariables(VVAccess.ReadWrite)]
public bool Enabled = true;
/// <summary>
/// Maximum internal pressure before it refuses to take more.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float MaxPressure = 2500;
/// <summary>
/// The speed at which gas is scrubbed from the environment.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float TransferRate = 800;
#region GuidebookData
[GuidebookData]
public float Volume => Air.Volume;
#endregion
}
}