mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-10 10:51:14 +03:00
* revert * dependencies --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
32 lines
1,016 B
C#
32 lines
1,016 B
C#
using Content.Shared.Radiation.Systems;
|
|
|
|
namespace Content.Shared.Radiation.Components;
|
|
|
|
/// <summary>
|
|
/// Irradiate all objects in range.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
[Access(typeof(SharedRadiationSystem))]
|
|
public sealed partial class RadiationSourceComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("intensity")]
|
|
public float Intensity = 1;
|
|
|
|
/// <summary>
|
|
/// Defines how fast radiation rays will loose intensity
|
|
/// over distance. The bigger the value, the shorter range
|
|
/// of radiation source will be.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("slope")]
|
|
public float Slope = 0.5f;
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public bool Enabled = true;
|
|
}
|