RadiationReceiverComponent.cs 600 B

1234567891011121314151617181920
  1. using Content.Server.Radiation.Systems;
  2. using Content.Shared.Radiation.Components;
  3. namespace Content.Server.Radiation.Components;
  4. /// <summary>
  5. /// Marks component that receive radiation from <see cref="RadiationSourceComponent"/>.
  6. /// </summary>
  7. [RegisterComponent]
  8. [Access(typeof(RadiationSystem))]
  9. public sealed partial class RadiationReceiverComponent : Component
  10. {
  11. /// <summary>
  12. /// Current radiation value in rads per second.
  13. /// Periodically updated by radiation system.
  14. /// </summary>
  15. [ViewVariables(VVAccess.ReadOnly)]
  16. public float CurrentRadiation;
  17. }