Radiation rework (#10970)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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 class RadiationReceiverComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Current radiation value in rads per second.
|
||||
/// Periodically updated by radiation system.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
public float CurrentRadiation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user