mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-11-08 03:54:16 +03:00
* ActionRestrictions * katana use ActionGrant/ItemActionGrant * TeleportAction * no more DashAbility * no more TeleportSpell * no more EnergyKatana * cleanup * fix whitelist and popup * docs * display recharge cooldown * refactor: whitespace consistency!111 * Revert "display recharge cooldown" This reverts commit 3b93b179 * popup for limited charges * maybe fix * no more CanUseCharge * upd * better? * refactor: using _SharedPhysicsSystem for TeleportActionSystem collision detection + small refactoring * refactor: xml-doc --------- Co-authored-by: Fildrance <fildrance@gmail.com>
25 lines
807 B
C#
25 lines
807 B
C#
using Content.Shared.Whitelist;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Actions.Components;
|
|
|
|
/// <summary>
|
|
/// Prevents an action from being used by entities that do not pass the configured whitelist.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(ActionRestrictionsSystem))]
|
|
[EntityCategory("Actions")]
|
|
public sealed partial class ActionUserWhitelistComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Whitelist that an entity must pass to use the action.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public EntityWhitelist Whitelist = new();
|
|
|
|
/// <summary>
|
|
/// Localization ID of the popup shown when the user does not pass <see cref="Whitelist"/>.
|
|
/// </summary>
|
|
[DataField]
|
|
public LocId? OnFailPopup;
|
|
}
|