Files
tbd-station-14/Content.Shared/Radiation/Events/OnIrradiatedEvent.cs
Leon Friedrich 9d4e60068b Optimize & clean up RadiationSystem (#34459)
* Optimize & clean up RadiationSystem

* comments

* Update Content.Server/Radiation/Systems/RadiationSystem.GridCast.cs

Co-authored-by: Thomas <87614336+Aeshus@users.noreply.github.com>

---------

Co-authored-by: Thomas <87614336+Aeshus@users.noreply.github.com>
2025-01-18 12:07:20 +11:00

15 lines
413 B
C#

namespace Content.Shared.Radiation.Events;
/// <summary>
/// Raised on entity when it was irradiated
/// by some radiation source.
/// </summary>
public readonly record struct OnIrradiatedEvent(float FrameTime, float RadsPerSecond)
{
public readonly float FrameTime = FrameTime;
public readonly float RadsPerSecond = RadsPerSecond;
public float TotalRads => RadsPerSecond * FrameTime;
}