20 lines
660 B
C#
20 lines
660 B
C#
using Robust.Shared.Analyzers;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
|
|
namespace Content.Server.Electrocution
|
|
{
|
|
/// <summary>
|
|
/// Component for virtual electrocution entities (representing an in-progress shock).
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
[Friend(typeof(ElectrocutionSystem))]
|
|
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; }
|
|
|
|
}
|
|
}
|