RadiationSourceComponent.cs 935 B

1234567891011121314151617181920212223242526272829
  1. namespace Content.Shared.Radiation.Components;
  2. /// <summary>
  3. /// Irradiate all objects in range.
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class RadiationSourceComponent : Component
  7. {
  8. /// <summary>
  9. /// Radiation intensity in center of the source in rads per second.
  10. /// From there radiation rays will travel over distance and loose intensity
  11. /// when hit radiation blocker.
  12. /// </summary>
  13. [ViewVariables(VVAccess.ReadWrite)]
  14. [DataField("intensity")]
  15. public float Intensity = 1;
  16. /// <summary>
  17. /// Defines how fast radiation rays will loose intensity
  18. /// over distance. The bigger the value, the shorter range
  19. /// of radiation source will be.
  20. /// </summary>
  21. [ViewVariables(VVAccess.ReadWrite)]
  22. [DataField("slope")]
  23. public float Slope = 0.5f;
  24. [DataField, ViewVariables(VVAccess.ReadWrite)]
  25. public bool Enabled = true;
  26. }