using Content.Shared.Popups; using Robust.Shared.GameStates; using Robust.Shared.Prototypes; namespace Content.Shared.Actions.Components; /// /// Prevents an action from being used unless the entity providing it is held by the user. /// [RegisterComponent, NetworkedComponent, Access(typeof(ActionRestrictionsSystem))] [EntityCategory("Actions")] public sealed partial class ActionProviderHeldComponent : Component { /// /// Localization ID of the popup shown when the user is not holding the action provider. /// [DataField] public LocId? OnFailPopup; /// /// The popup type the fail popup should appear as. /// [DataField] public PopupType OnFailPopupType = PopupType.SmallCaution; }