2022-08-31 12:24:21 +02:00
|
|
|
using Content.Shared.Radiation.Systems;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Radiation.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Create circle pulse animation of radiation around object.
|
|
|
|
|
/// Drawn on client after creation only once per component lifetime.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
[Access(typeof(RadiationPulseSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class RadiationPulseComponent : Component
|
2022-08-31 12:24:21 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Timestamp when component was assigned to this entity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public TimeSpan StartTime;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// How long will animation play in seconds.
|
2023-09-30 14:35:32 +10:00
|
|
|
/// Can be overridden by <see cref="Robust.Shared.Spawners.TimedDespawnComponent"/>.
|
2022-08-31 12:24:21 +02:00
|
|
|
/// </summary>
|
|
|
|
|
public float VisualDuration = 2f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The range of animation.
|
|
|
|
|
/// Can be overridden by <see cref="RadiationSourceComponent"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float VisualRange = 5f;
|
|
|
|
|
}
|