RadiationBlockerComponent.cs 823 B

1234567891011121314151617181920212223242526272829
  1. using Content.Server.Radiation.Systems;
  2. namespace Content.Server.Radiation.Components;
  3. /// <summary>
  4. /// Blocks radiation when placed on tile.
  5. /// </summary>
  6. [RegisterComponent]
  7. [Access(typeof(RadiationSystem))]
  8. public sealed partial class RadiationBlockerComponent : Component
  9. {
  10. /// <summary>
  11. /// Does it block radiation at all?
  12. /// </summary>
  13. [DataField("enabled")]
  14. public bool Enabled = true;
  15. /// <summary>
  16. /// How many rads per second does the blocker absorb?
  17. /// </summary>
  18. [DataField("resistance")]
  19. public float RadResistance = 1f;
  20. /// <summary>
  21. /// Current position of the rad blocker in grid coordinates.
  22. /// Null if doesn't anchored or doesn't block rads.
  23. /// </summary>
  24. public (EntityUid Grid, Vector2i Tile)? CurrentPosition;
  25. }