mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Uses the following Cherry-Picks: https://github.com/space-wizards/space-station-14/pull/26994 https://github.com/space-wizards/space-station-14/pull/26518 https://github.com/space-wizards/space-station-14/pull/26279 https://github.com/space-wizards/space-station-14/pull/24946 https://github.com/space-wizards/space-station-14/pull/27188 Requires: https://github.com/Simple-Station/Einstein-Engines/pull/535 https://github.com/Simple-Station/Einstein-Engines/pull/534 --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Co-authored-by: Jake Huxell <JakeHuxell@pm.me> Co-authored-by: Tayrtahn <tayrtahn@gmail.com> Co-authored-by: 0x6273 <0x40@keemail.me> Co-authored-by: DEATHB4DEFEAT <zachcaffee@outlook.com>
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;
|
|
}
|