2022-10-11 05:09:10 +02:00
|
|
|
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))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class RadiationReceiverComponent : Component
|
2022-10-11 05:09:10 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Current radiation value in rads per second.
|
|
|
|
|
/// Periodically updated by radiation system.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadOnly)]
|
|
|
|
|
public float CurrentRadiation;
|
|
|
|
|
}
|
|
|
|
|
|