Radiation rework (#10970)
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using Content.Server.Radiation.Systems;
|
||||
|
||||
namespace Content.Server.Radiation.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Blocks radiation when placed on tile.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(RadiationSystem))]
|
||||
public sealed class RadiationBlockerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Does it block radiation at all?
|
||||
/// </summary>
|
||||
[DataField("enabled")]
|
||||
public bool Enabled = true;
|
||||
|
||||
/// <summary>
|
||||
/// How many rads per second does the blocker absorb?
|
||||
/// </summary>
|
||||
[DataField("resistance")]
|
||||
public float RadResistance = 1f;
|
||||
|
||||
/// <summary>
|
||||
/// Current position of the rad blocker in grid coordinates.
|
||||
/// Null if doesn't anchored or doesn't block rads.
|
||||
/// </summary>
|
||||
public (EntityUid Grid, Vector2i Tile)? CurrentPosition;
|
||||
}
|
||||
Reference in New Issue
Block a user