Electrocution. (#4958)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
This commit is contained in:
committed by
GitHub
parent
66a3d5bf29
commit
ed3bf94a3b
32
Content.Shared/Electrocution/ElectrocutionEvents.cs
Normal file
32
Content.Shared/Electrocution/ElectrocutionEvents.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Shared.Electrocution
|
||||
{
|
||||
public class ElectrocutionAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public readonly EntityUid TargetUid;
|
||||
public readonly EntityUid? SourceUid;
|
||||
public float SiemensCoefficient = 1f;
|
||||
|
||||
public ElectrocutionAttemptEvent(EntityUid targetUid, EntityUid? sourceUid, float siemensCoefficient)
|
||||
{
|
||||
TargetUid = targetUid;
|
||||
SourceUid = sourceUid;
|
||||
SiemensCoefficient = siemensCoefficient;
|
||||
}
|
||||
}
|
||||
|
||||
public class ElectrocutedEvent : EntityEventArgs
|
||||
{
|
||||
public readonly EntityUid TargetUid;
|
||||
public readonly EntityUid? SourceUid;
|
||||
public readonly float SiemensCoefficient;
|
||||
|
||||
public ElectrocutedEvent(EntityUid targetUid, EntityUid? sourceUid, float siemensCoefficient)
|
||||
{
|
||||
TargetUid = targetUid;
|
||||
SourceUid = sourceUid;
|
||||
SiemensCoefficient = siemensCoefficient;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user