using Content.Shared.Atmos; namespace Content.Server.Power.Generation.Teg; /// /// A "circulator" for the thermo-electric generator (TEG). /// Circulators are used by the TEG to take in a side of either hot or cold gas. /// /// [RegisterComponent] [Access(typeof(TegSystem))] public sealed partial class TegCirculatorComponent : Component { /// /// The difference between the inlet and outlet pressure at the start of the previous tick. /// [ViewVariables(VVAccess.ReadWrite)] [DataField("lastPressureDelta")] public float LastPressureDelta; /// /// The amount of moles transferred by the circulator last tick. /// [ViewVariables(VVAccess.ReadWrite)] [DataField("lastMolesTransferred")] public float LastMolesTransferred; /// /// Minimum pressure delta between inlet and outlet for which the circulator animation speed is "fast". /// [ViewVariables(VVAccess.ReadWrite)] [DataField("visualSpeedDelta")] public float VisualSpeedDelta = 5 * Atmospherics.OneAtmosphere; /// /// Light color of this circulator when it's running at "slow" speed. /// [ViewVariables(VVAccess.ReadWrite)] [DataField("lightColorSlow")] public Color LightColorSlow = Color.FromHex("#FF3300"); /// /// Light color of this circulator when it's running at "fast" speed. /// [ViewVariables(VVAccess.ReadWrite)] [DataField("lightColorFast")] public Color LightColorFast = Color.FromHex("#AA00FF"); }