2024-02-14 02:44:47 -05:00
|
|
|
|
using Content.Server.Atmos.EntitySystems;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Atmos.Components;
|
|
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
|
[Access(typeof(BarotraumaSystem))]
|
|
|
|
|
|
public sealed partial class PressureProtectionComponent : Component
|
2020-08-07 16:23:16 +02:00
|
|
|
|
{
|
2024-02-14 02:44:47 -05:00
|
|
|
|
[DataField]
|
|
|
|
|
|
public float HighPressureMultiplier = 1f;
|
|
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
|
public float HighPressureModifier;
|
2021-09-22 13:02:25 +02:00
|
|
|
|
|
2024-02-14 02:44:47 -05:00
|
|
|
|
[DataField]
|
|
|
|
|
|
public float LowPressureMultiplier = 1f;
|
2020-08-07 16:23:16 +02:00
|
|
|
|
|
2024-02-14 02:44:47 -05:00
|
|
|
|
[DataField]
|
|
|
|
|
|
public float LowPressureModifier;
|
|
|
|
|
|
}
|
2021-09-22 13:02:25 +02:00
|
|
|
|
|
2024-02-14 02:44:47 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Event raised on an entity with <see cref="PressureProtectionComponent"/> in order to adjust its default values.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[ByRefEvent]
|
|
|
|
|
|
public record struct GetPressureProtectionValuesEvent
|
|
|
|
|
|
{
|
|
|
|
|
|
public float HighPressureMultiplier;
|
|
|
|
|
|
public float HighPressureModifier;
|
|
|
|
|
|
public float LowPressureMultiplier;
|
|
|
|
|
|
public float LowPressureModifier;
|
2020-08-07 16:23:16 +02:00
|
|
|
|
}
|
2024-02-14 02:44:47 -05:00
|
|
|
|
|