add breakers to power batteries (#16903)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-06-07 19:43:54 +00:00
committed by GitHub
parent 5b5a3bae76
commit 6acfe53e5f
6 changed files with 70 additions and 0 deletions

View 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;
}