Delta-v/Content.Server/Radiation/Components/RadiationReceiverComponent.cs

27 lines
817 B
C#

using Content.Server.Radiation.Systems;
using Content.Shared.Radiation.Components;
namespace Content.Server.Radiation.Components;
/// <summary>
/// Marks component that receive radiation from <see cref="RadiationSourceComponent"/>.
/// </summary>
[RegisterComponent]
[Access(typeof(RadiationSystem))]
public sealed partial class RadiationReceiverComponent : Component
{
/// <summary>
/// Current radiation value in rads per second.
/// Periodically updated by radiation system.
/// </summary>
[ViewVariables(VVAccess.ReadOnly)]
public float CurrentRadiation;
/// <summary>
/// DeltaV - multiplier on the rads received if the RadiationSource is the same entity as this RadiationReceiver
/// </summary>
[DataField]
public float SelfSourceMultiplier = 1.0f;
}