2023-04-29 23:05:10 +03:00
|
|
|
|
namespace Content.Server.Electrocution;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Component for virtual electrocution entities (representing an in-progress shock).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
|
[Access(typeof(ElectrocutionSystem))]
|
|
|
|
|
|
public sealed class ElectrocutionComponent : Component
|
2021-10-25 16:21:56 +02:00
|
|
|
|
{
|
2023-04-29 23:05:10 +03:00
|
|
|
|
[DataField("timeLeft")]
|
|
|
|
|
|
public float TimeLeft;
|
|
|
|
|
|
|
|
|
|
|
|
[DataField("electrocuting")]
|
|
|
|
|
|
public EntityUid Electrocuting;
|
|
|
|
|
|
|
|
|
|
|
|
[DataField("accumDamage")]
|
|
|
|
|
|
public float AccumulatedDamage;
|
2021-10-25 16:21:56 +02:00
|
|
|
|
|
2023-04-29 23:05:10 +03:00
|
|
|
|
[DataField("source")]
|
|
|
|
|
|
public EntityUid Source;
|
2021-10-25 16:21:56 +02:00
|
|
|
|
}
|