Action stuff (#31305)
* Action stuff - Cleanup some event stuff - Avoid dirtying entity unnecessarily - Add ActionGrant as an easy way to apply / remove actions via compregistry. * Fix merge
This commit is contained in:
14
Content.Shared/Actions/ItemActionGrantComponent.cs
Normal file
14
Content.Shared/Actions/ItemActionGrantComponent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
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
|
||||
{
|
||||
[DataField(required: true), AutoNetworkedField, AlwaysPushInheritance]
|
||||
public List<EntProtoId> Actions = new();
|
||||
}
|
||||
Reference in New Issue
Block a user