* 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>
15 lines
413 B
C#
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;
|
|
}
|