entity storage tweaks (#19182)

This commit is contained in:
Nemanja
2023-08-15 18:49:30 -04:00
committed by GitHub
parent 87b774209f
commit b8250f9601
6 changed files with 18 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
using Content.Shared.Construction.Prototypes;
using Content.Shared.Power;
using Content.Shared.Whitelist;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Power.Components
@@ -13,14 +14,12 @@ namespace Content.Server.Power.Components
/// <summary>
/// The charge rate of the charger, in watts
/// </summary>
[DataField("chargeRate")]
public float ChargeRate = 20.0f;
/// <summary>
/// The charge rate with no machine upgrades
/// </summary>
[DataField("baseChargeRate")]
public float BaseChargeRate = 20.0f;
@@ -37,7 +36,16 @@ namespace Content.Server.Power.Components
[DataField("partRatingChargeRateModifier")]
public float PartRatingChargeRateModifier = 1.5f;
/// <summary>
/// The container ID that is holds the entities being charged.
/// </summary>
[DataField("slotId", required: true)]
public string SlotId = string.Empty;
/// <summary>
/// A whitelist for what entities can be charged by this Charger.
/// </summary>
[DataField("whitelist")]
public EntityWhitelist? Whitelist;
}
}