mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* initially works i think * yeah * pulled these numbers outta my ass * text * silly * fixy fix * fix * This sure is a videogame * init test fuck everything * sprites * fix dirty * query * another query * craftable changeling sting * remove todo * \n * doc
25 lines
792 B
C#
25 lines
792 B
C#
using Content.Shared.Popups;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Actions.Components;
|
|
|
|
/// <summary>
|
|
/// Prevents an action from being used unless the entity providing it is held by the user.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(ActionRestrictionsSystem))]
|
|
[EntityCategory("Actions")]
|
|
public sealed partial class ActionProviderHeldComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Localization ID of the popup shown when the user is not holding the action provider.
|
|
/// </summary>
|
|
[DataField]
|
|
public LocId? OnFailPopup;
|
|
|
|
/// <summary>
|
|
/// The popup type the fail popup should appear as.
|
|
/// </summary>
|
|
[DataField]
|
|
public PopupType OnFailPopupType = PopupType.SmallCaution;
|
|
}
|