2022-05-13 00:59:03 -07:00
|
|
|
|
namespace Content.Server.Electrocution
|
2021-10-25 16:21:56 +02:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Component for virtual electrocution entities (representing an in-progress shock).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent]
|
2022-06-07 15:26:28 +02:00
|
|
|
|
[Access(typeof(ElectrocutionSystem))]
|
2021-10-25 16:21:56 +02:00
|
|
|
|
public sealed class ElectrocutionComponent : Component
|
|
|
|
|
|
{
|
|
|
|
|
|
[DataField("timeLeft")] public float TimeLeft { get; set; }
|
|
|
|
|
|
[DataField("electrocuting")] public EntityUid Electrocuting { get; set; }
|
|
|
|
|
|
[DataField("accumDamage")] public float AccumulatedDamage { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|