2024-02-14 02:44:47 -05:00
|
|
|
|
using Content.Server.Temperature.Systems;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Atmos.Components;
|
2021-11-18 23:08:30 -07:00
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
2024-02-14 02:44:47 -05:00
|
|
|
|
[Access(typeof(TemperatureSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class TemperatureProtectionComponent : Component
|
2021-11-18 23:08:30 -07:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// How much to multiply temperature deltas by.
|
|
|
|
|
|
/// </summary>
|
2024-02-14 02:44:47 -05:00
|
|
|
|
[DataField]
|
2021-11-18 23:08:30 -07:00
|
|
|
|
public float Coefficient = 1.0f;
|
|
|
|
|
|
}
|
2024-02-14 02:44:47 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Event raised on an entity with <see cref="TemperatureProtectionComponent"/> to determine the actual value of the coefficient.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[ByRefEvent]
|
|
|
|
|
|
public record struct GetTemperatureProtectionEvent(float Coefficient);
|