using Content.Server.Power.Components; using Content.Shared.Power; using Content.Shared.Rounding; using Content.Shared.SMES; using Robust.Server.GameObjects; using Robust.Shared.Timing; namespace Content.Server.Power.SMES; /// /// Handles the "user-facing" side of the actual SMES object. /// This is operations that are specific to the SMES, like UI and visuals. /// Logic is handled in /// Code interfacing with the powernet is handled in and . /// [RegisterComponent, Access(typeof(SmesSystem))] public sealed class SmesComponent : Component { [ViewVariables] public ChargeState LastChargeState; [ViewVariables] public TimeSpan LastChargeStateTime; [ViewVariables] public int LastChargeLevel; [ViewVariables] public TimeSpan LastChargeLevelTime; [ViewVariables] public TimeSpan VisualsChangeDelay = TimeSpan.FromSeconds(1); }