25 lines
599 B
C#
25 lines
599 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
|
|
{
|
|
[DataField("electrocuting")]
|
|
public EntityUid Electrocuting;
|
|
|
|
[DataField("source")]
|
|
public EntityUid Source;
|
|
|
|
[DataField("timeLeft")]
|
|
public float TimeLeft;
|
|
|
|
[DataField("accumDamage")]
|
|
public float AccumulatedDamage;
|
|
|
|
[DataField("baseDamage")]
|
|
public float BaseDamage = 20f;
|
|
}
|