using Robust.Shared.Serialization; namespace Content.Shared._NF.Power; /// /// UI key for an object with adjustable power draw. /// [NetSerializable, Serializable] public enum AdjustablePowerDrawUiKey : byte { Key, } /// /// UI state for a machine with adjustable power draw. /// /// [Serializable, NetSerializable] public sealed class AdjustablePowerDrawBuiState : BoundUserInterfaceState { public bool On; public float Load; public string? Text; } /// /// Sent client to server to change the input breaker state on a large battery. /// [Serializable, NetSerializable] public sealed class AdjustablePowerDrawSetEnabledMessage(bool on) : BoundUserInterfaceMessage { public bool On = on; } /// /// Sent client to server to change the input breaker state on a large battery. /// [Serializable, NetSerializable] public sealed class AdjustablePowerDrawSetLoadMessage(float load) : BoundUserInterfaceMessage { public float Load = load; }