* Fix test * Kill float accumulators * Use entity proxy methods * DataField auto name generation where possible * Kill comp properties * Clean up server comps * Make events record structs * Clean up shared body code * Clean up server body code * Rename organ events to be same names as in med refactor
65 lines
1.7 KiB
C#
65 lines
1.7 KiB
C#
using Content.Server.Body.Systems;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Server.Body.Components;
|
|
|
|
[RegisterComponent]
|
|
[Access(typeof(ThermalRegulatorSystem))]
|
|
public sealed partial class ThermalRegulatorComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The next time that the body will regulate its heat.
|
|
/// </summary>
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
|
|
public TimeSpan NextUpdate;
|
|
|
|
/// <summary>
|
|
/// The interval at which thermal regulation is processed.
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan UpdateInterval = TimeSpan.FromSeconds(1);
|
|
|
|
/// <summary>
|
|
/// Heat generated due to metabolism. It's generated via metabolism
|
|
/// </summary>
|
|
[DataField]
|
|
public float MetabolismHeat;
|
|
|
|
/// <summary>
|
|
/// Heat output via radiation.
|
|
/// </summary>
|
|
[DataField]
|
|
public float RadiatedHeat;
|
|
|
|
/// <summary>
|
|
/// Maximum heat regulated via sweat
|
|
/// </summary>
|
|
[DataField]
|
|
public float SweatHeatRegulation;
|
|
|
|
/// <summary>
|
|
/// Maximum heat regulated via shivering
|
|
/// </summary>
|
|
[DataField]
|
|
public float ShiveringHeatRegulation;
|
|
|
|
/// <summary>
|
|
/// Amount of heat regulation that represents thermal regulation processes not
|
|
/// explicitly coded.
|
|
/// </summary>
|
|
[DataField]
|
|
public float ImplicitHeatRegulation;
|
|
|
|
/// <summary>
|
|
/// Normal body temperature
|
|
/// </summary>
|
|
[DataField]
|
|
public float NormalBodyTemperature;
|
|
|
|
/// <summary>
|
|
/// Deviation from normal temperature for body to start thermal regulation
|
|
/// </summary>
|
|
[DataField]
|
|
public float ThermalRegulationTemperatureThreshold;
|
|
}
|