mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +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>
16 lines
558 B
C#
16 lines
558 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Actions;
|
|
|
|
/// <summary>
|
|
/// Works in tandem with <see cref="ActionGrantComponent"/> by granting those actions to the equipper entity.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(ActionGrantSystem))]
|
|
public sealed partial class ItemActionGrantComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Actions will only be available if the item is in the clothing slot.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public bool ActiveIfWorn;
|
|
}
|