add breakers to power batteries (#16903)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
14
Content.Server/Power/Components/BreakerComponent.cs
Normal file
14
Content.Server/Power/Components/BreakerComponent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Content.Server.Power.EntitySystems;
|
||||
|
||||
namespace Content.Server.Power.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Access(typeof(BreakerSystem))]
|
||||
public sealed class BreakerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Once power supplied exceeds this limit the breaker will pop.
|
||||
/// </summary>
|
||||
[DataField("limit", required: true), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float Limit;
|
||||
}
|
||||
Reference in New Issue
Block a user