TemperatureArtifactComponent.cs 755 B

1234567891011121314151617181920212223
  1. using Content.Shared.Atmos;
  2. namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
  3. /// <summary>
  4. /// Change atmospherics temperature until it reach target.
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class TemperatureArtifactComponent : Component
  8. {
  9. [DataField("targetTemp"), ViewVariables(VVAccess.ReadWrite)]
  10. public float TargetTemperature = Atmospherics.T0C;
  11. [DataField("spawnTemp")]
  12. public float SpawnTemperature = 100;
  13. /// <summary>
  14. /// If true, artifact will heat/cool not only its current tile, but surrounding tiles too.
  15. /// This will change room temperature much faster.
  16. /// </summary>
  17. [DataField("affectAdjacent")]
  18. public bool AffectAdjacentTiles = true;
  19. }