Electrocution. (#4958)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
This commit is contained in:
committed by
GitHub
parent
66a3d5bf29
commit
ed3bf94a3b
@@ -0,0 +1,21 @@
|
||||
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; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user