Files
crystall-punk-14/Content.Server/Power/Components/ChargerComponent.cs

38 lines
1.1 KiB
C#
Raw Permalink Normal View History

using Content.Shared.Power;
2023-08-15 18:49:30 -04:00
using Content.Shared.Whitelist;
namespace Content.Server.Power.Components
{
[RegisterComponent]
public sealed partial class ChargerComponent : Component
{
[ViewVariables]
2022-10-16 03:21:54 -07:00
public CellChargerStatus Status;
2023-05-31 15:48:55 +02:00
/// <summary>
/// The charge rate of the charger, in watts
/// </summary>
[DataField("chargeRate")]
2023-05-31 15:48:55 +02:00
public float ChargeRate = 20.0f;
2023-08-15 18:49:30 -04:00
/// <summary>
/// The container ID that is holds the entities being charged.
/// </summary>
2022-10-16 03:21:54 -07:00
[DataField("slotId", required: true)]
public string SlotId = string.Empty;
2023-08-15 18:49:30 -04:00
/// <summary>
/// A whitelist for what entities can be charged by this Charger.
/// </summary>
[DataField("whitelist")]
public EntityWhitelist? Whitelist;
/// <summary>
/// Indicates whether the charger is portable and thus subject to EMP effects
/// and bypasses checks for transform, anchored, and ApcPowerReceiverComponent.
/// </summary>
[DataField]
public bool Portable = false;
}
}