RadiationPulseComponent.cs 922 B

1234567891011121314151617181920212223242526272829
  1. using Content.Shared.Radiation.Systems;
  2. namespace Content.Shared.Radiation.Components;
  3. /// <summary>
  4. /// Create circle pulse animation of radiation around object.
  5. /// Drawn on client after creation only once per component lifetime.
  6. /// </summary>
  7. [RegisterComponent]
  8. [Access(typeof(RadiationPulseSystem))]
  9. public sealed partial class RadiationPulseComponent : Component
  10. {
  11. /// <summary>
  12. /// Timestamp when component was assigned to this entity.
  13. /// </summary>
  14. public TimeSpan StartTime;
  15. /// <summary>
  16. /// How long will animation play in seconds.
  17. /// Can be overridden by <see cref="Robust.Shared.Spawners.TimedDespawnComponent"/>.
  18. /// </summary>
  19. public float VisualDuration = 2f;
  20. /// <summary>
  21. /// The range of animation.
  22. /// Can be overridden by <see cref="RadiationSourceComponent"/>.
  23. /// </summary>
  24. public float VisualRange = 5f;
  25. }