ArtifactHeatTriggerComponent.cs 1017 B

12345678910111213141516171819202122232425262728
  1. namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
  2. // TODO: This should probably be generalized for cold temperature too,
  3. // but right now there is no sane way to make a freezer.
  4. /// <summary>
  5. /// Triggers artifact if its in hot environment or
  6. /// has contacted with a hot object (lit welder, lighter, etc).
  7. /// </summary>
  8. [RegisterComponent]
  9. public sealed partial class ArtifactHeatTriggerComponent : Component
  10. {
  11. /// <summary>
  12. /// Minimal surrounding gas temperature to trigger artifact.
  13. /// Around 100 degrees celsius by default.
  14. /// Doesn't affect hot items temperature.
  15. /// </summary>
  16. [DataField("activationTemperature")]
  17. [ViewVariables(VVAccess.ReadWrite)]
  18. public float ActivationTemperature = 373;
  19. /// <summary>
  20. /// Should artifact be activated by hot items (welders, lighter, etc)?
  21. /// </summary>
  22. [DataField("activateHot")]
  23. [ViewVariables(VVAccess.ReadWrite)]
  24. public bool ActivateHotItems = true;
  25. }