mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
27 lines
683 B
C#
27 lines
683 B
C#
namespace Content.Server.Electrocution;
|
|
|
|
/// <summary>
|
|
/// Component for virtual electrocution entities (representing an in-progress shock).
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
[Access(typeof(ElectrocutionSystem))]
|
|
public sealed partial class ElectrocutionComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The entity being electrocuted.
|
|
/// </summary>
|
|
[DataField("electrocuting")]
|
|
public EntityUid Electrocuting;
|
|
|
|
/// <summary>
|
|
/// The entity causing the electrocution.
|
|
/// </summary>
|
|
[DataField("source")]
|
|
public EntityUid Source;
|
|
|
|
/// <summary>
|
|
/// Remaining duration of the electrocution.
|
|
/// </summary>
|
|
[DataField("timeLeft")]
|
|
public float TimeLeft;
|
|
}
|