using System; using Content.Shared.Chemistry.Reagent; using Robust.Shared.GameObjects; using Robust.Shared.GameStates; using Robust.Shared.Serialization; namespace Content.Shared.Chemistry.Components { /// /// Shared class for injectors & syringes /// [NetworkedComponent()] public class SharedInjectorComponent : Component { public override string Name => "Injector"; /// /// Component data used for net updates. Used by client for item status ui /// [Serializable, NetSerializable] protected sealed class InjectorComponentState : ComponentState { public ReagentUnit CurrentVolume { get; } public ReagentUnit TotalVolume { get; } public InjectorToggleMode CurrentMode { get; } public InjectorComponentState(ReagentUnit currentVolume, ReagentUnit totalVolume, InjectorToggleMode currentMode) { CurrentVolume = currentVolume; TotalVolume = totalVolume; CurrentMode = currentMode; } } public enum InjectorToggleMode { Inject, Draw } } }