Files
crystall-punk-14/Content.Shared/Radiation/Components/RadiationSourceComponent.cs

30 lines
935 B
C#
Raw Permalink Normal View History

2022-10-11 05:09:10 +02:00
namespace Content.Shared.Radiation.Components;
2022-08-31 12:24:21 +02:00
/// <summary>
/// Irradiate all objects in range.
/// </summary>
[RegisterComponent]
public sealed partial class RadiationSourceComponent : Component
2022-08-31 12:24:21 +02:00
{
/// <summary>
2022-10-11 05:09:10 +02:00
/// Radiation intensity in center of the source in rads per second.
/// From there radiation rays will travel over distance and loose intensity
/// when hit radiation blocker.
2022-08-31 12:24:21 +02:00
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
2022-10-11 05:09:10 +02:00
[DataField("intensity")]
public float Intensity = 1;
2022-08-31 12:24:21 +02:00
/// <summary>
2022-10-11 05:09:10 +02:00
/// Defines how fast radiation rays will loose intensity
/// over distance. The bigger the value, the shorter range
/// of radiation source will be.
2022-08-31 12:24:21 +02:00
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
2022-10-11 05:09:10 +02:00
[DataField("slope")]
public float Slope = 0.5f;
[DataField, ViewVariables(VVAccess.ReadWrite)]
public bool Enabled = true;
2022-08-31 12:24:21 +02:00
}