Files
wwdpublic/Content.Server/Atmos/Components/TemperatureProtectionComponent.cs
Nemanja c3f420815f Add events for TemperatureProtection and PressureProtection (#25165)
(cherry picked from commit 8ed32a1e42d768322ccb6dc6f5311bd58fd0dea3)
2024-02-18 23:11:15 +01:00

21 lines
611 B
C#

using Content.Server.Temperature.Systems;
namespace Content.Server.Atmos.Components;
[RegisterComponent]
[Access(typeof(TemperatureSystem))]
public sealed partial class TemperatureProtectionComponent : Component
{
/// <summary>
/// How much to multiply temperature deltas by.
/// </summary>
[DataField]
public float Coefficient = 1.0f;
}
/// <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);