30 lines
880 B
C#
30 lines
880 B
C#
using Content.Shared.Atmos;
|
|
|
|
namespace Content.Shared.Temperature.Components;
|
|
|
|
/// <summary>
|
|
/// Handles changing temperature,
|
|
/// informing others of the current temperature.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class TemperatureComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Surface temperature which is modified by the environment.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float CurrentTemperature = Atmospherics.T20C;
|
|
|
|
/// <summary>
|
|
/// Heat capacity per kg of mass.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float SpecificHeat = 50f;
|
|
|
|
/// <summary>
|
|
/// How well does the air surrounding you merge into your body temperature?
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float AtmosTemperatureTransferEfficiency = 0.1f;
|
|
}
|