18 lines
480 B
C#
18 lines
480 B
C#
namespace Content.Server.Emp;
|
|
|
|
/// <summary>
|
|
/// Upon being triggered will EMP area around it.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
sealed class EmpOnTriggerComponent : Component
|
|
{
|
|
[DataField("range"), ViewVariables(VVAccess.ReadWrite)]
|
|
public float Range = 1.0f;
|
|
|
|
/// <summary>
|
|
/// How much energy will be consumed per battery in range
|
|
/// </summary>
|
|
[DataField("energyConsumption"), ViewVariables(VVAccess.ReadWrite)]
|
|
public float EnergyConsumption;
|
|
}
|