Relocate TemperatureProtectionComponent (#30437)

Moves it from the atmos module to the temperature module where it is actually used.
This commit is contained in:
TemporalOroboros
2024-07-30 12:31:55 -07:00
committed by GitHub
parent 7fefcbc6fb
commit bea8c1a0b8
2 changed files with 1 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
using Content.Server.Temperature.Systems;
namespace Content.Server.Temperature.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);