mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-02-15 03:31:44 +01:00
* cleanup * fix fixtures * prediction * fix test * review * fix svalinn visuals * fix chargers * fix portable recharger and its unlit visuals * fix borgs * oomba review * fix examination prediction
35 lines
1021 B
C#
35 lines
1021 B
C#
using Content.Shared.Power.EntitySystems;
|
|
using Content.Shared.Guidebook;
|
|
|
|
namespace Content.Shared.Power.Components;
|
|
|
|
/// <summary>
|
|
/// Battery node on the pow3r network. Needs other components to connect to actual networks.
|
|
/// Use this for batteries that cannot be predicted.
|
|
/// Use <see cref="PredictedBatteryComponent"/> otherwise.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
[Virtual]
|
|
[Access(typeof(SharedBatterySystem))]
|
|
public partial class BatteryComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Maximum charge of the battery in joules (i.e. watt seconds)
|
|
/// </summary>
|
|
[DataField]
|
|
[GuidebookData]
|
|
public float MaxCharge;
|
|
|
|
/// <summary>
|
|
/// Current charge of the battery in joules (ie. watt seconds)
|
|
/// </summary>
|
|
[DataField("startingCharge")] // TODO: rename this datafield to currentCharge
|
|
public float CurrentCharge;
|
|
|
|
/// <summary>
|
|
/// The price per one joule. Default is 1 speso for 10kJ.
|
|
/// </summary>
|
|
[DataField]
|
|
public float PricePerJoule = 0.0001f;
|
|
}
|