AirIntakeComponent.cs 970 B

1234567891011121314151617181920212223242526272829
  1. using Content.Server.Atmos.EntitySystems;
  2. using Content.Shared.Atmos;
  3. namespace Content.Server.Atmos.Components;
  4. /// <summary>
  5. /// This is basically a siphon vent for <see cref="GetFilterAirEvent"/>.
  6. /// </summary>
  7. [RegisterComponent, Access(typeof(AirFilterSystem))]
  8. public sealed partial class AirIntakeComponent : Component
  9. {
  10. /// <summary>
  11. /// Target pressure change for a single atmos tick
  12. /// </summary>
  13. [DataField, ViewVariables(VVAccess.ReadWrite)]
  14. public float TargetPressureChange = 5f;
  15. /// <summary>
  16. /// How strong the intake pump is, it will be able to replenish air from lower pressure areas.
  17. /// </summary>
  18. [DataField, ViewVariables(VVAccess.ReadWrite)]
  19. public float PumpPower = 2f;
  20. /// <summary>
  21. /// Pressure to intake gases up to, maintains pressure of the air volume.
  22. /// </summary>
  23. [DataField, ViewVariables(VVAccess.ReadWrite)]
  24. public float Pressure = Atmospherics.OneAtmosphere;
  25. }