Files
crystall-punk-14/Content.Server/Electrocution/Components/ElectrocutionComponent.cs

22 lines
717 B
C#
Raw Normal View History

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
{
public override string Name => "Electrocution";
[DataField("timeLeft")] public float TimeLeft { get; set; }
[DataField("electrocuting")] public EntityUid Electrocuting { get; set; }
[DataField("accumDamage")] public float AccumulatedDamage { get; set; }
}
}