| 123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- namespace Content.Server.Power.Components
- {
- /// <summary>
- /// Self-recharging battery.
- /// </summary>
- [RegisterComponent]
- public sealed partial class BatterySelfRechargerComponent : Component
- {
- /// <summary>
- /// Does the entity auto recharge?
- /// </summary>
- [DataField] public bool AutoRecharge;
- /// <summary>
- /// At what rate does the entity automatically recharge?
- /// </summary>
- [DataField] public float AutoRechargeRate;
- /// <summary>
- /// Should this entity stop automatically recharging if a charge is used?
- /// </summary>
- [DataField] public bool AutoRechargePause = false;
- /// <summary>
- /// How long should the entity stop automatically recharging if a charge is used?
- /// </summary>
- [DataField] public float AutoRechargePauseTime = 0f;
- /// <summary>
- /// Do not auto recharge if this timestamp has yet to happen, set for the auto recharge pause system.
- /// </summary>
- [DataField] public TimeSpan NextAutoRecharge = TimeSpan.FromSeconds(0f);
- }
- }
|