TempAffectingAnomalyComponent.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. namespace Content.Server.Anomaly.Components;
  2. /// <summary>
  3. /// This component is used for handling anomalies that affect the temperature
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class TempAffectingAnomalyComponent : Component
  7. {
  8. /// <summary>
  9. /// The the amount the tempurature should be modified by (negative for decreasing temp)
  10. /// </summary>
  11. [DataField("tempChangePerSecond")]
  12. public float TempChangePerSecond = 0;
  13. /// <summary>
  14. /// The minimum amount of severity required
  15. /// before the anomaly becomes a hotspot.
  16. /// </summary>
  17. [DataField("anomalyHotSpotThreshold")]
  18. public float AnomalyHotSpotThreshold = 0.6f;
  19. /// <summary>
  20. /// The temperature of the hotspot where the anomaly is
  21. /// </summary>
  22. [DataField("hotspotExposeTemperature")]
  23. public float HotspotExposeTemperature = 0;
  24. /// <summary>
  25. /// The volume of the hotspot where the anomaly is.
  26. /// </summary>
  27. [DataField("hotspotExposeVolume")]
  28. public float HotspotExposeVolume = 50;
  29. }